mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-16 21:07:30 +01:00
Provide idential nodestate functionality in NATS API
Entire-Checkpoint: 3a40b75edd68
This commit is contained in:
@@ -117,6 +117,8 @@ type ResampleConfig struct {
|
||||
type NATSConfig struct {
|
||||
SubjectJobEvent string `json:"subject-job-event"`
|
||||
SubjectNodeState string `json:"subject-node-state"`
|
||||
JobConcurrency int `json:"job-concurrency"`
|
||||
NodeConcurrency int `json:"node-concurrency"`
|
||||
}
|
||||
|
||||
type IntRange struct {
|
||||
|
||||
@@ -121,6 +121,14 @@ var configSchema = `
|
||||
"subject-node-state": {
|
||||
"description": "NATS subject for node state updates",
|
||||
"type": "string"
|
||||
},
|
||||
"job-concurrency": {
|
||||
"description": "Number of concurrent worker goroutines for processing job events (default: 8).",
|
||||
"type": "integer"
|
||||
},
|
||||
"node-concurrency": {
|
||||
"description": "Number of concurrent worker goroutines for processing node state events (default: 2).",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": ["subject-job-event", "subject-node-state"]
|
||||
|
||||
Reference in New Issue
Block a user