File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212echo " Creating xdmod databases.."
1313
14- for db in mod_hpcdb mod_logger mod_shredder moddb modw modw_aggregates modw_filters modw_supremm modw_etl modw_jobefficiency
14+ for db in mod_hpcdb mod_logger mod_shredder moddb modw modw_aggregates modw_filters modw_supremm modw_etl modw_jobefficiency modw_cloud
1515do
1616 echo " Creating $db database.."
1717 echo " create database if not exists $db " | mysql -uroot
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ RUN /build/install.sh && rm -rf /build
66COPY conf/httpd.conf /etc/httpd/conf.d/xdmod.conf
77COPY conf/simplesamlphp /etc/xdmod/simplesamlphp
88COPY hierarchy.csv /srv/xdmod/hierarchy.csv
9+ COPY historical/ /srv/xdmod/historical
910COPY scripts/ /srv/xdmod/scripts
1011COPY bin/sendmail /usr/sbin/sendmail
1112COPY entrypoint.sh /usr/local/bin/entrypoint.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ ` whoami` != ' root' ]; then
4+ echo " ERROR: This script should only be run as root" >&2
5+ exit 1
6+ fi
7+ historialdir=' /srv/xdmod/historical'
8+ if [ -f $historialdir /.hasrun ]; then
9+ echo " ERROR: This has already been run once. Trying to do it again will cause errors" >&2
10+ exit 2
11+ fi
12+ touch $historialdir /.hasrun
13+ jq --argfile f1 /etc/xdmod/resources.json --argfile f2 $historialdir /resources.json -n ' $f1 + $f2' | sudo tee /etc/xdmod/resources.json
14+ jq --argfile f1 /etc/xdmod/resource_specs.json --argfile f2 $historialdir /resource_specs.json -n ' $f1 + $f2' | sudo tee /etc/xdmod/resource_specs.json
15+ types=' Cloud Jobs Storage'
16+ for resource in $historialdir /Jobs/* .log; do
17+ sudo -u xdmod xdmod-shredder -r ` basename $resource .log` -f slurm -i $resource ;
18+ done
19+ last_modified_start_date=$( date +' %F %T' )
20+ sudo -u xdmod xdmod-shredder -r cumulonimbus -d $historialdir /Cloud/ -f openstack
21+ sudo -u xdmod xdmod-ingestor --last-modified-start-date " $last_modified_start_date "
22+ for storage_dir in $historialdir /Storage/* ; do
23+ sudo -u xdmod xdmod-shredder -f storage -r $( basename $storage_dir ) -d $storage_dir
24+ done
25+ last_modified_start_date=$( date +' %F %T' )
26+ sudo -u xdmod xdmod-ingestor --datatype storage
27+ cat names.slurm.csv names.csv > /tmp/historical.names.csv
28+ sudo -u xdmod xdmod-import-csv -t names -i /tmp/historical.names.csv
29+ sudo -u xdmod xdmod-ingestor
Original file line number Diff line number Diff line change 1+ cgray , Carl , Gray
2+ sfoster , Stephanie , Foster
3+ csimmons , Charles , Simmons
4+ astewart , Andrea , Stewart
5+ hpcadmin ,, HPC Administrators
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "resource" : " compsci" ,
4+ "processors" : 9000 ,
5+ "nodes" : 900 ,
6+ "ppn" : 10
7+ },
8+ {
9+ "resource" : " maths" ,
10+ "processors" : 5500 ,
11+ "nodes" : 550 ,
12+ "ppn" : 10
13+ },
14+ {
15+ "resource" : " humanities" ,
16+ "processors" : 2500 ,
17+ "nodes" : 250 ,
18+ "ppn" : 10
19+ },
20+ {
21+ "resource" : " parallelfs" ,
22+ "processors" : 1 ,
23+ "nodes" : 1 ,
24+ "ppn" : 1
25+ },
26+ {
27+ "resource" : " cumulonimbus" ,
28+ "processors" : 10000 ,
29+ "nodes" : 1000 ,
30+ "ppn" : 10
31+ }
32+ ]
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "resource" : " compsci" ,
4+ "resource_type" : " HPC" ,
5+ "name" : " Computer Science"
6+ },
7+ {
8+ "resource" : " maths" ,
9+ "resource_type" : " HPC" ,
10+ "name" : " Mathematics"
11+ },
12+ {
13+ "resource" : " humanities" ,
14+ "resource_type" : " HPC" ,
15+ "name" : " Humanities"
16+ },
17+ {
18+ "resource" : " parallelfs" ,
19+ "resource_type" : " Disk" ,
20+ "name" : " GPFS Parallel FS"
21+ },
22+ {
23+ "resource" : " cumulonimbus" ,
24+ "resource_type" : " Cloud" ,
25+ "name" : " Cumulonimbus Cloud"
26+ }
27+ ]
You can’t perform that action at this time.
0 commit comments