From 9ea0d6c8d1b584d6c869fd13e76c6cb470c4d512 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 12 Apr 2023 10:10:07 +0200 Subject: [PATCH] Update demo script --- docs/config.json | 26 +++++++++++++------------- startDemo.sh | 11 ++++------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/docs/config.json b/docs/config.json index 0e67f22..f48d224 100644 --- a/docs/config.json +++ b/docs/config.json @@ -1,50 +1,50 @@ { - "addr": "127.0.0.1:8080", + "addr": "127.0.0.1:8080", "archive": { "kind": "file", "path": "./var/job-archive" }, "clusters": [ { - "name": "emmy", + "name": "fritz", "metricDataRepository": { "kind": "cc-metric-store", - "url": "http://localhost:8081", - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw" + "url": "http://localhost:8082", + "token": "" }, "filterRanges": { "numNodes": { "from": 1, - "to": 32 + "to": 64 }, "duration": { "from": 0, - "to": 172800 + "to": 86400 }, "startTime": { - "from": "2010-01-01T00:00:00Z", + "from": "2022-01-01T00:00:00Z", "to": null } } }, { - "name": "woody", + "name": "alex", "metricDataRepository": { "kind": "cc-metric-store", - "url": "http://localhost:8081", - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw" + "url": "http://localhost:8082", + "token": "" }, "filterRanges": { "numNodes": { "from": 1, - "to": 1 + "to": 64 }, "duration": { "from": 0, - "to": 172800 + "to": 86400 }, "startTime": { - "from": "2015-01-01T00:00:00Z", + "from": "2022-01-01T00:00:00Z", "to": null } } diff --git a/startDemo.sh b/startDemo.sh index 8667df0..447bdcc 100755 --- a/startDemo.sh +++ b/startDemo.sh @@ -5,16 +5,13 @@ if [ -d './var' ]; then ./cc-backend --server --dev else make - - cd var - wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz - tar xJf job-archive-dev.tar.xz - rm ./job-archive-dev.tar.xz - cd ../ + wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-demo.tar + tar xf job-archive-demo.tar + rm ./job-archive-demo.tar cp ./configs/env-template.txt .env cp ./docs/config.json config.json ./cc-backend --migrate-db - ./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev + ./cc-backend --server --dev --init-db --add-user demo:admin:demo fi