SCMS
From PRAGMAgridWIKI
Below are proposed implementation of SCMS. Base on GLUE schema.
Contents |
Current Implementation
So now SCMSWeb provides basic for GLUE schema both LDIF and XML which external applications could retrieve easily. For example, PRAGMA GOC has GLUE LDIF, Extendted LDIF, and extended GLUE XML.
In addition to the GLUE XML, the latest version of SCMSWeb also provides the information in KML format so that you can view the grid in Google Earth or Google Maps. The full-screen Google Maps of PRAGMA resource is provided at Geo Map. You may also obtain KML for Google Earth and KML for Google Maps. If you are working on developing interactive web application based on AJAX technology, you might be interesting to get the information in JSON.
Data Example
This section shows GLUE information in various forms. Since SCMSWeb has so many information that GLUE don't support, the GLUE generated by SCMSWeb will has more element.
Mock up
<?xml version="1.0" encoding="UTF-8"?> <Site xmlns="http://infnforge.cnaf.infn.it/glueinfomodel/Spec/V12/R1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://infnforge.cnaf.infn.it/glueinfomodel/Spec/V12/R1 http://infnforge.cnaf.infn.it/glueinfomodel/uploads/Spec/GLUESchema12.xsd" UniqueID="Amata"> <Name>Amata</Name> <Description>This is the description of Grid services provided by Amata</Description> <UserSupportContact>mailto: thaigrid-tech@thaigrid.net</UserSupportContact> <SysAdminContact>mailto: thaigrid-tech@thaigrid.net</SysAdminContact> <SecurityContact>mailto: thaigrid-tech@thaigrid.net</SecurityContact> <Location>Bangkok, Thailand</Location> <Latitude>13.84609443613754</Latitude> <Longitude>100.5685919200741</Longitude> <Web>http://amata.cpe.ku.ac.th/</Web> <Sponsor>HPCNC</Sponsor> <OtherInfo>KU</OtherInfo> <OtherInfo>HPCNC</OtherInfo> <Cluster UniqueID="amata.cpe.ku.ac.th"> <Name>amata.cpe.ku.ac.th</Name> <TmpDir>/tmp</TmpDir> <WNTmpDir>/tmp</WNTmpDir> <ComputingElement UniqueID="amata.cpe.ku.ac.th:2119/jobmanager-sqms"> <HostName>amata.cpe.ku.ac.th</HostName> <GateKeeperPort>2119</GateKeeperPort> <JobManager>sqms</JobManager> <ContactString>amata.cpe.ku.ac.th:2119/jobmanager-sqms</ContactString> <ApplicationDir>/opt</ApplicationDir> <DataDir>/data</DataDir> <Status>Production</Status> <RunningJobs>2</RunningJobs> <WaitingJobs>0</WaitingJobs> <TotalJobs>0</TotalJobs> <EstimatedResponseTime>0</EstimatedResponseTime> <WorstResponseTime>0</WorstResponseTime> <FreeJobSlots>0</FreeJobSlots> <MaxWallClockTime>0</MaxWallClockTime> <MaxCPUTime>0</MaxCPUTime> <MaxTotalJobs>0</MaxTotalJobs> <MaxRunningJobs>0</MaxRunningJobs> <Priority>0</Priority> <AssignedJobSlots>0</AssignedJobSlots> <!-- job entries typically not used--> <Job LocalID="111"> <GlobalID>http://111</GlobalID> <LocalOwner>chem</LocalOwner> <GlobalOwner>dn:</GlobalOwner> <Status>Running</Status> <SchedulerSpecific>...</SchedulerSpecific> </Job> <Job LocalID="112"> <GlobalID>http://112</GlobalID> <LocalOwner>chem</LocalOwner> <GlobalOwner>dn:</GlobalOwner> <Status>Running</Status> <SchedulerSpecific>...</SchedulerSpecific> </Job> </ComputingElement> <!-- current usage envision only one subcluster per cluster, the schema allows more than one --> <SubCluster UniqueID="amata.cpe.ku.ac.th"> <Name>amata.cpe.ku.ac.th</Name> <PhysicalCPUs>0</PhysicalCPUs> <LogicalCPUs>0</LogicalCPUs> <TmpDir>/tmp</TmpDir> <WNTmpDir>/tmp</WNTmpDir> <OperatingSystem Name="Rocks" Release="4.1.0" Version="3" /> <Processor Model="Athlon" ClockSpeed="1000" Vendor="AMD" OtherDescription="String" InstructionSet="String" /> <NetworkAdapter OutboundIP="true" InboundIP="true"/> <MainMemory VirtualSize="3072" RAMSize="2048"/> <Architecture SMPSize="1" PlatformType="String"/> <Benchmark SF00="400" SI00="1060"/> <Location LocalID="String"> <Name>String</Name> <Version>String</Version> <Path>String</Path> </Location> </SubCluster> </Cluster> <Host UniqueID="compute1.cpe.ku.ac.th"> <Name>compute1.cpe.ku.ac.th</Name> <UpTime>0</UpTime> <Architecture SMPSize="1" PlatformType="String" SMTSize="1"/> <MainMemory VirtualAvailable="0" RAMAvailable="0" VirtualSize="0" RAMSize="0"/> <OperatingSystem Version="String" Name="String" Release="String"/> <Processor OtherDescription="String" InstructionSet="String" Vendor="String" CacheL2="0" ClockSpeed="3000" CacheL1="0" Model="String" CacheL1D="0" CacheL1I="0"/> <Load Last5Min="0" Last15Min="0" Last1Min="0"/> <NetworkAdapter OutboundIP="true" InboundIP="true" Name="String" MTU="0" IPAddress="String"/> <Benchmark SF00="0" SI00="0"/> <RunTimeEnv> <Variable>String</Variable> <Variable>String</Variable> <Variable>String</Variable> </RunTimeEnv> <StorageDevice Name="String2" Type="string" TransferRate="0" Size="0" /> <StoragePartition WriteRate="0" Name="String1" Size="String" RateRate="0"/> <StoragePartition WriteRate="0" Name="String2" Size="String" RateRate="0"/> <LocalFileSystem Name="String1" Type="String" Size="0" ReadOnly="true" AvailableSpace="0" Root="String"/> <LocalFileSystem Name="String2" Type="String" Size="0" ReadOnly="true" AvailableSpace="0" Root="String"/> <RemoteFileSystem Name="String3" Type="String" Size="0" ReadOnly="true" AvailableSpace="0" Root="String"/> <StorageDevice2StoragePartition StoragePartitionName="String1" StorageDeviceName="String2"/> <StoragePartition2FileSystem StoragePartitionName="String1" FileSystemName="String2"/> </Host> </Site>
Sample from our MAGI Cluster
The data below was generated by early work on SCMS to create portable data exchange format.
For data reference, you can use SCMSWeb pages at MAGI here
<?xml version='1.0' encoding='UTF-8'?>
<Site xmlns='http://infnforge.cnaf.infn.it/glueinfomodel/Spec/V12/R1' UniqueID='MAGI'>
<Latitude>0.0</Latitude>
<SysAdminContact>mailto: root@magi1.cpe.ku.ac.th</SysAdminContact>
<Location>HPCNC_KU</Location>
<Web>http://magi1.cpe.ku.ac.th</Web>
<UserSupportContact>mailto: support@hpcnc.cpe.ku.ac.th</UserSupportContact>
<Description>MAGI</Description>
<Sponsor>HPCNC_KU</Sponsor>
<SecurityContact>mailto: root@magi1.cpe.ku.ac.th</SecurityContact>
<Longitude>0.0</Longitude>
<Name>MAGI</Name>
<Cluster UniqueID='MAGI'>
<WNTmpDir>/tmp</WNTmpDir>
<Name>MAGI</Name>
<TmpDir>/tmp</TmpDir>
<SubCluster UniqueID='MAGI'>
<TmpDir>/tmp</TmpDir>
<WNTmpDir>/tmp</WNTmpDir>
<Name>MAGI</Name>
<PhysicalCPUs>4</PhysicalCPUs>
<LogicalCPUs>4</LogicalCPUs>
<MainMemory RAMSize='2008' RAMAvailable='76' VirtualAvailable='0' VirtualSize='10056'/>
<Architecture SMPSize='1' SMTSize='1' PlatformType='i686'/>
<OperatingSystem Release='1 (Yarrow) (2.4.22-1.2199.nptl)' Version='0' Name='Fedora Core '/>
<Processor Vendor='' CacheL1D='0' CacheL2='0' CacheL1I='0' ClockSpeed='1833.180054' Model='' InstructionSet='i686' OtherDescription='AMD Athlon(TM) XP 2500+' CacheL1='0'/>
</SubCluster>
<Host UniqueID='magi4.cpe.ku.ac.th'>
<UpTime>5449178.000000</UpTime>
<Name>magi4.cpe.ku.ac.th</Name>
<Architecture SMPSize='1' SMTSize='1' PlatformType='i686'/>
<MainMemory RAMSize='502' RAMAvailable='12' VirtualAvailable='0' VirtualSize='2549'/>
<OperatingSystem Release='1 (Yarrow) (2.4.22-1.2199.nptl)' Version='0' Name='Fedora Core '/>
<Processor Vendor='' CacheL1D='0' CacheL2='0' CacheL1I='0' ClockSpeed='1833.180054' Model='' InstructionSet='i686' OtherDescription='AMD Athlon(TM) XP 2500+' CacheL1='0'/>
<Load Last5Min='0.02' Last15Min='0.0' Last1Min='0.02'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='6724' Name='/dev/hda2' Type='ext3' Root='/' Size='14012'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='85' Name='/dev/hda1' Type='ext3' Root='/boot' Size='93'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='26736' Name='/dev/hda4' Type='ext3' Root='/data' Size='55276'/>
<Utilization Users='4.3' Idle='95.6' System='0.0' Nice='0.0'/>
<Memory Cached='245' Shared='0' Used='490' Free='12' Buffers='37'/>
<LoadAvg Five='2' Runnable='1' Total='84' Fifteen='0' One='2'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='lo' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Ethernet BytesReceived='9531' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='9412' DropTransmitted='0' ErrorsTransmitted='0' Interface='eth0' PacketsTransmitted='11' PacketsReceived='11' ErrorsReceived='0'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='myri0' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Interrupt ProcessorID='0' IRQNumber='0' Rate='0' Name='timer'/>
<Interrupt ProcessorID='0' IRQNumber='1' Rate='0' Name='keyboard'/>
<Interrupt ProcessorID='0' IRQNumber='2' Rate='0' Name='cascade'/>
<Interrupt ProcessorID='0' IRQNumber='5' Rate='0' Name='myri/gm'/>
<Interrupt ProcessorID='0' IRQNumber='9' Rate='0' Name='usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='11' Rate='0' Name='libata usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='12' Rate='0' Name='ehci_hcd SysKonnect SK-98xx PS/2 Mouse'/>
<Interrupt ProcessorID='0' IRQNumber='14' Rate='0' Name='ide0'/>
<Interrupt ProcessorID='0' IRQNumber='15' Rate='0' Name='ide1'/>
<Swap SwapOut='0' SwapIn='0'/>
<Page PageOut='100' PageIn='0'/>
<ContextSwitch Rate='40'/>
<Disk WriteIO='0' ReadIO='0' WriteBlock='2' ReadBlock='0'/>
<Mainboard Fan1='5357' Fan3='0' Fan2='0' Temperature='48'/>
</Host>
<Host UniqueID='magi1.cpe.ku.ac.th'>
<UpTime>5532220.000000</UpTime>
<Name>magi1.cpe.ku.ac.th</Name>
<Architecture SMPSize='1' SMTSize='1' PlatformType='i686'/>
<MainMemory RAMSize='502' RAMAvailable='39' VirtualAvailable='0' VirtualSize='2549'/>
<OperatingSystem Release='1 (Yarrow) (2.4.22-1.2199.nptl)' Version='0' Name='Fedora Core '/>
<Processor Vendor='' CacheL1D='0' CacheL2='0' CacheL1I='0' ClockSpeed='1833.180054' Model='' InstructionSet='i686' OtherDescription='AMD Athlon(TM) XP 2500+' CacheL1='0'/>
<Load Last5Min='0.1' Last15Min='0.04' Last1Min='0.02'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='8364' Name='/dev/hda2' Type='ext3' Root='/' Size='18684'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='85' Name='/dev/hda1' Type='ext3' Root='/boot' Size='93'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='4876' Name='/dev/hda4' Type='ext3' Root='/data' Size='14956'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='2912' Name='/dev/sda1' Type='ext3' Root='/home' Size='73020'/>
<Utilization Users='0.1' Idle='99.6' System='0.1' Nice='0.0'/>
<Memory Cached='148' Shared='0' Used='463' Free='39' Buffers='76'/>
<LoadAvg Five='10' Runnable='1' Total='178' Fifteen='4' One='2'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='lo' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Ethernet BytesReceived='10140' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='1498' DropTransmitted='0' ErrorsTransmitted='0' Interface='eth0' PacketsTransmitted='16' PacketsReceived='16' ErrorsReceived='0'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='myri0' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Interrupt ProcessorID='0' IRQNumber='0' Rate='0' Name='timer'/>
<Interrupt ProcessorID='0' IRQNumber='1' Rate='0' Name='keyboard'/>
<Interrupt ProcessorID='0' IRQNumber='2' Rate='0' Name='cascade'/>
<Interrupt ProcessorID='0' IRQNumber='5' Rate='0' Name='usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='8' Rate='0' Name='rtc'/>
<Interrupt ProcessorID='0' IRQNumber='9' Rate='0' Name='libata usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='10' Rate='0' Name='SysKonnect SK-98xx'/>
<Interrupt ProcessorID='0' IRQNumber='11' Rate='0' Name='ehci_hcd via82cxxx'/>
<Interrupt ProcessorID='0' IRQNumber='12' Rate='0' Name='myri/gm'/>
<Interrupt ProcessorID='0' IRQNumber='14' Rate='0' Name='ide0'/>
<Interrupt ProcessorID='0' IRQNumber='15' Rate='0' Name='ide1'/>
<Swap SwapOut='0' SwapIn='0'/>
<Page PageOut='0' PageIn='0'/>
<ContextSwitch Rate='81'/>
<Disk WriteIO='0' ReadIO='0' WriteBlock='33' ReadBlock='1'/>
<Mainboard Fan1='5532' Fan3='0' Fan2='0' Temperature='48'/>
</Host>
<Host UniqueID='magi2.cpe.ku.ac.th'>
<UpTime>1307641.500000</UpTime>
<Name>magi2.cpe.ku.ac.th</Name>
<Architecture SMPSize='1' SMTSize='1' PlatformType='i686'/>
<MainMemory RAMSize='502' RAMAvailable='12' VirtualAvailable='0' VirtualSize='2409'/>
<OperatingSystem Release='1 (Yarrow) (2.4.22-1.2199.nptl)' Version='0' Name='Fedora Core '/>
<Processor Vendor='' CacheL1D='0' CacheL2='0' CacheL1I='0' ClockSpeed='1100.066040' Model='' InstructionSet='i686' OtherDescription='AMD Athlon(TM) XP 2500+' CacheL1='0'/>
<Load Last5Min='0.0' Last15Min='0.0' Last1Min='0.0'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='10560' Name='/dev/hda2' Type='ext3' Root='/' Size='17812'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='79' Name='/dev/hda1' Type='ext3' Root='/boot' Size='87'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='23564' Name='/dev/hda4' Type='ext3' Root='/data' Size='53332'/>
<Utilization Users='0.0' Idle='99.9' System='0.0' Nice='0.0'/>
<Memory Cached='65' Shared='0' Used='490' Free='12' Buffers='123'/>
<LoadAvg Five='0' Runnable='1' Total='65' Fifteen='0' One='0'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='lo' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Ethernet BytesReceived='185' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='133' DropTransmitted='0' ErrorsTransmitted='0' Interface='eth0' PacketsTransmitted='2' PacketsReceived='2' ErrorsReceived='0'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='myri0' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Interrupt ProcessorID='0' IRQNumber='0' Rate='0' Name='timer'/>
<Interrupt ProcessorID='0' IRQNumber='1' Rate='0' Name='keyboard'/>
<Interrupt ProcessorID='0' IRQNumber='2' Rate='0' Name='cascade'/>
<Interrupt ProcessorID='0' IRQNumber='5' Rate='0' Name='myri/gm'/>
<Interrupt ProcessorID='0' IRQNumber='8' Rate='0' Name='rtc'/>
<Interrupt ProcessorID='0' IRQNumber='9' Rate='0' Name='usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='11' Rate='0' Name='libata usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='12' Rate='0' Name='ehci_hcd eth0'/>
<Interrupt ProcessorID='0' IRQNumber='14' Rate='0' Name='ide0'/>
<Interrupt ProcessorID='0' IRQNumber='15' Rate='0' Name='ide1'/>
<Swap SwapOut='0' SwapIn='0'/>
<Page PageOut='100' PageIn='0'/>
<ContextSwitch Rate='21'/>
<Disk WriteIO='0' ReadIO='0' WriteBlock='3' ReadBlock='0'/>
<Mainboard Fan1='5487' Fan3='0' Fan2='0' Temperature='48'/>
</Host>
<Host UniqueID='magi3.cpe.ku.ac.th'>
<UpTime>5449208.000000</UpTime>
<Name>magi3.cpe.ku.ac.th</Name>
<Architecture SMPSize='1' SMTSize='1' PlatformType='i686'/>
<MainMemory RAMSize='502' RAMAvailable='13' VirtualAvailable='0' VirtualSize='2549'/>
<OperatingSystem Release='1 (Yarrow) (2.4.22-1.2199.nptl)' Version='0' Name='Fedora Core '/>
<Processor Vendor='' CacheL1D='0' CacheL2='0' CacheL1I='0' ClockSpeed='1833.180054' Model='' InstructionSet='i686' OtherDescription='AMD Athlon(TM) XP 2500+' CacheL1='0'/>
<Load Last5Min='1.0' Last15Min='1.0' Last1Min='1.0'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='6720' Name='/dev/hda2' Type='ext3' Root='/' Size='14008'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='85' Name='/dev/hda1' Type='ext3' Root='/boot' Size='93'/>
<LocalFileSystem ReadOnly='false' AvailableSpace='18172' Name='/dev/hda4' Type='ext3' Root='/data' Size='55276'/>
<Utilization Users='100.0' Idle='0.0' System='0.0' Nice='0.0'/>
<Memory Cached='145' Shared='0' Used='489' Free='13' Buffers='28'/>
<LoadAvg Five='100' Runnable='2' Total='90' Fifteen='100' One='100'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='lo' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Ethernet BytesReceived='456' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='99' DropTransmitted='0' ErrorsTransmitted='0' Interface='eth0' PacketsTransmitted='2' PacketsReceived='2' ErrorsReceived='0'/>
<Ethernet BytesReceived='0' DropReceived='0' CollisionsTransmitted='0' BytesTransmitted='0' DropTransmitted='0' ErrorsTransmitted='0' Interface='myri0' PacketsTransmitted='0' PacketsReceived='0' ErrorsReceived='0'/>
<Interrupt ProcessorID='0' IRQNumber='0' Rate='0' Name='timer'/>
<Interrupt ProcessorID='0' IRQNumber='1' Rate='0' Name='keyboard'/>
<Interrupt ProcessorID='0' IRQNumber='2' Rate='0' Name='cascade'/>
<Interrupt ProcessorID='0' IRQNumber='5' Rate='0' Name='myri/gm'/>
<Interrupt ProcessorID='0' IRQNumber='8' Rate='0' Name='rtc'/>
<Interrupt ProcessorID='0' IRQNumber='9' Rate='0' Name='usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='11' Rate='0' Name='libata usb-uhci usb-uhci'/>
<Interrupt ProcessorID='0' IRQNumber='12' Rate='0' Name='ehci_hcd SysKonnect SK-98xx via82cxxx'/>
<Interrupt ProcessorID='0' IRQNumber='14' Rate='0' Name='ide0'/>
<Interrupt ProcessorID='0' IRQNumber='15' Rate='0' Name='ide1'/>
<Swap SwapOut='0' SwapIn='0'/>
<Page PageOut='100' PageIn='0'/>
<ContextSwitch Rate='24'/>
<Disk WriteIO='0' ReadIO='0' WriteBlock='2' ReadBlock='0'/>
<Mainboard Fan1='5625' Fan3='0' Fan2='0' Temperature='59'/>
</Host>
</Cluster>
</Site>
