Opensvc daemon status and warning based on treshold#1237
Merged
caffeinated92 merged 2 commits intodevelopfrom Oct 7, 2025
Merged
Opensvc daemon status and warning based on treshold#1237caffeinated92 merged 2 commits intodevelopfrom
caffeinated92 merged 2 commits intodevelopfrom
Conversation
…improve stats fetching logic in ReplicationManager; round memory and swap usage calculations in OpenSVCNodeCard for accuracy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new monitoring and warning mechanisms for OpenSVC orchestrator nodes, focusing on memory and swap thresholds, and improves the reliability and performance of OpenSVC stats collection. It also includes minor fixes and enhancements to the dashboard display and error messaging.
OpenSVC node health monitoring:
CheckOpenSVCTresholdsmethod toClusterto monitor nodes for minimum available memory and swap thresholds, setting new warning states (WARN0150,WARN0151) when thresholds are breached.config/error.gofor memory and swap threshold breaches (WARN0150,WARN0151).OpenSVC stats handling improvements:
DaemonNodeStatsstruct to includeMinAvailMemandMinAvailSwapfields, and modified the stats extraction logic to retrieve these values. [1] [2]GetOpenSVCStatsto return an empty slice instead of an error when not using OpenSVC, improving downstream logic.Concurrency and performance enhancements:
ReplicationManagerconcurrent and protected with a flag to prevent overlapping fetches, improving performance and reliability. [1] [2] [3]Dashboard calculation fix: