Skip to content

fix: resolve Serf queue depth issue with comprehensive monitoring - #19

Merged
mmchougule merged 2 commits into
mainfrom
fix-serf-queue-depth-v2
Aug 1, 2025
Merged

fix: resolve Serf queue depth issue with comprehensive monitoring#19
mmchougule merged 2 commits into
mainfrom
fix-serf-queue-depth-v2

Conversation

@mmchougule

Copy link
Copy Markdown
Collaborator
  • Add state change detection using hash comparison
  • Add queue depth throttling (3600 limit)
  • Increase broadcast period from 5s to 30s
  • Add conservative Serf configuration
  • Add Prometheus metrics for monitoring:
    • hypercore_serf_queue_depth
    • hypercore_workload_count
    • hypercore_broadcast_skipped_total
    • hypercore_state_changes_total
  • Add /metrics endpoint for Prometheus scraping

This provides comprehensive monitoring while maintaining safety.

- Add state change detection using hash comparison
- Add queue depth throttling (3600 limit)
- Increase broadcast period from 5s to 30s
- Add conservative Serf configuration
- Add Prometheus metrics for monitoring:
  * hypercore_serf_queue_depth
  * hypercore_workload_count
  * hypercore_broadcast_skipped_total
  * hypercore_state_changes_total
- Add /metrics endpoint for Prometheus scraping

This provides comprehensive monitoring while maintaining safety.
- Adjust spacing and alignment for consistency
- Ensure proper organization of Prometheus metrics in the Agent struct
- Maintain existing functionality while enhancing code clarity
@mmchougule
mmchougule merged commit 3f5742e into main Aug 1, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant