Skip to content

Commit

Permalink
For #576 - Adding support for betzy.sigma2.no and fram.sigma2.no in t…
Browse files Browse the repository at this point in the history
…he dashboard.
  • Loading branch information
ashenr committed Oct 22, 2024
1 parent 88e7757 commit 1eebb12
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 7 deletions.
53 changes: 48 additions & 5 deletions code/dashboard-2/src/Constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { GrNodes, GrServers } from 'react-icons/gr'
import { GrNodes } from 'react-icons/gr'
import { GiFox } from 'react-icons/gi'
import { LuBookOpen, LuGraduationCap, LuShip } from 'react-icons/lu'
import * as yup from 'yup'

import {
Expand Down Expand Up @@ -93,7 +94,21 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
path: '/dashboard/saga',
matches: '/saga',
text: 'Saga',
icon: GrServers
icon: LuBookOpen
},
{
type: 'link',
path: '/dashboard/fram',
matches: '/fram',
text: 'Fram',
icon: LuShip
},
{
type: 'link',
path: '/dashboard/betzy',
matches: '/betzy',
text: 'Betzy',
icon: LuGraduationCap
},
]

Expand Down Expand Up @@ -150,17 +165,45 @@ export const CLUSTER_INFO: Record<string, Cluster> = {
'saga': {
cluster: 'saga',
canonical: 'saga.sigma2.no',
subclusters: [{name: 'login', nodes: 'login*'}],
subclusters: [],
uptime: false,
violators: false,
deadweight: false,
defaultQuery: 'login*',
defaultQuery: 'c*-1',
name: 'Saga',
hasDowntime: false,
description: 'Sigma2 \'Saga\' supercomputer',
prefix: 'saga-',
policy: '(To be determined)',
}
},
'fram': {
cluster: 'fram',
canonical: 'fram.sigma2.no',
subclusters: [],
uptime: false,
violators: false,
deadweight: false,
defaultQuery: 'c*-1',
name: 'Fram',
hasDowntime: false,
description: 'Sigma2 \'Fram\' supercomputer',
prefix: 'fram-',
policy: '(To be determined)',
},
'betzy': {
cluster: 'betzy',
canonical: 'betzy.sigma2.no',
subclusters: [],
uptime: false,
violators: false,
deadweight: false,
defaultQuery: 'b11*',
name: 'Betzy',
hasDowntime: false,
description: 'Sigma2 \'Betzy\' supercomputer',
prefix: 'betzy-',
policy: '(To be determined)',
},
}

export const DASHBOARD_COLUMN: { [K in keyof DashboardTableItem]: DashboardTableColumnHeader } = {
Expand Down
9 changes: 7 additions & 2 deletions code/dashboard-2/src/pages/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ export default function DashboardPage() {
<ChakraLink as={ReactRouterLink} to={jobQueryLink} isExternal mr="10px">
Job query <ExternalLinkIcon mx="2px"/>
</ChakraLink>
Aggregates:{' '}
{subclusterLinks}
{
subclusterLinks.length > 0 &&
<>
Aggregates:{' '}
{subclusterLinks}
</>
}
</Text>
<ViolatorsAndZombiesLinks cluster={selectedCluster}/>
<NodeSelectionInput
Expand Down

0 comments on commit 1eebb12

Please sign in to comment.