mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-16 01:31:45 +01:00
Update example and demo config
This commit is contained in:
@@ -1,55 +1,22 @@
|
|||||||
{
|
{
|
||||||
"main": {
|
"main": {
|
||||||
"addr": "127.0.0.1:8080",
|
"addr": "127.0.0.1:8080",
|
||||||
"short-running-jobs-duration": 300,
|
"apiAllowedIPs": ["*"]
|
||||||
"resampling": {
|
|
||||||
"minimumPoints": 600,
|
|
||||||
"trigger": 300,
|
|
||||||
"resolutions": [240, 60]
|
|
||||||
},
|
|
||||||
"apiAllowedIPs": ["*"],
|
|
||||||
"emission-constant": 317
|
|
||||||
},
|
},
|
||||||
"cron": {
|
"cron": {
|
||||||
"commit-job-worker": "2m",
|
"commit-job-worker": "1m",
|
||||||
"duration-worker": "5m",
|
"duration-worker": "3m",
|
||||||
"footprint-worker": "10m"
|
"footprint-worker": "5m"
|
||||||
},
|
|
||||||
"archive": {
|
|
||||||
"kind": "file",
|
|
||||||
"path": "./var/job-archive"
|
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"jwts": {
|
"jwts": {
|
||||||
"max-age": "2000h"
|
"max-age": "2000h"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nats": {
|
|
||||||
"address": "nats://0.0.0.0:4222",
|
|
||||||
"username": "root",
|
|
||||||
"password": "root"
|
|
||||||
},
|
|
||||||
"metric-store": {
|
"metric-store": {
|
||||||
"checkpoints": {
|
"checkpoints": {
|
||||||
"file-format": "avro",
|
"interval": "1h"
|
||||||
"interval": "1h",
|
|
||||||
"directory": "./var/checkpoints",
|
|
||||||
"restore": "48h"
|
|
||||||
},
|
},
|
||||||
"archive": {
|
"retention-in-memory": "12h"
|
||||||
"interval": "1h",
|
|
||||||
"directory": "./var/archive"
|
|
||||||
},
|
|
||||||
"retention-in-memory": "48h",
|
|
||||||
"subscriptions": [
|
|
||||||
{
|
|
||||||
"subscribe-to": "hpc-nats",
|
|
||||||
"cluster-tag": "fritz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"subscribe-to": "hpc-nats",
|
|
||||||
"cluster-tag": "alex"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
"https-key-file": "/etc/letsencrypt/live/url/privkey.pem",
|
"https-key-file": "/etc/letsencrypt/live/url/privkey.pem",
|
||||||
"user": "clustercockpit",
|
"user": "clustercockpit",
|
||||||
"group": "clustercockpit",
|
"group": "clustercockpit",
|
||||||
"validate": false,
|
|
||||||
"apiAllowedIPs": ["*"],
|
"apiAllowedIPs": ["*"],
|
||||||
"short-running-jobs-duration": 300,
|
"short-running-jobs-duration": 300,
|
||||||
"resampling": {
|
"resampling": {
|
||||||
@@ -18,13 +17,48 @@
|
|||||||
"subjectNodeState": "cc.node.state"
|
"subjectNodeState": "cc.node.state"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nats": {
|
||||||
|
"address": "nats://0.0.0.0:4222",
|
||||||
|
"username": "root",
|
||||||
|
"password": "root"
|
||||||
|
},
|
||||||
|
"auth": {
|
||||||
|
"jwts": {
|
||||||
|
"max-age": "2000h"
|
||||||
|
}
|
||||||
|
},
|
||||||
"cron": {
|
"cron": {
|
||||||
"commit-job-worker": "1m",
|
"commit-job-worker": "1m",
|
||||||
"duration-worker": "5m",
|
"duration-worker": "5m",
|
||||||
"footprint-worker": "10m"
|
"footprint-worker": "10m"
|
||||||
},
|
},
|
||||||
"archive": {
|
"archive": {
|
||||||
"kind": "file",
|
"kind": "s3",
|
||||||
"path": "./var/job-archive"
|
"endpoint": "http://x.x.x.x",
|
||||||
}
|
"bucket": "jobarchive",
|
||||||
|
"accessKey": "xx",
|
||||||
|
"secretKey": "xx",
|
||||||
|
"retention": {
|
||||||
|
"policy": "move",
|
||||||
|
"age": 365,
|
||||||
|
"location": "./var/archive"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"metric-store": {
|
||||||
|
"checkpoints": {
|
||||||
|
"interval": "1h"
|
||||||
|
},
|
||||||
|
"retention-in-memory": "12h",
|
||||||
|
"subscriptions": [
|
||||||
|
{
|
||||||
|
"subscribe-to": "hpc-nats",
|
||||||
|
"cluster-tag": "fritz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"subscribe-to": "hpc-nats",
|
||||||
|
"cluster-tag": "alex"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ui-file": "ui-config.json"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user