Skip to content

[Studio] feat: add branch-compensate alert rules for HA replication - #658

Open
zhaohai666 wants to merge 1 commit into
apache:rocketmq-studiofrom
zhaohai666:pr-04-branch-compensate-alert
Open

[Studio] feat: add branch-compensate alert rules for HA replication#658
zhaohai666 wants to merge 1 commit into
apache:rocketmq-studiofrom
zhaohai666:pr-04-branch-compensate-alert

Conversation

@zhaohai666

Copy link
Copy Markdown

Summary

  • Add complete CRUD subsystem for branch-compensate alert rules monitoring HA replication lag
  • Add BranchCompensateAlertRuleController with REST API for create/read/update/delete operations
  • Add BranchCompensateAlertRuleService with threshold validation logic
  • Add BranchCompensateAlertRuleRepository interface with in-memory ConcurrentHashMap implementation
  • Add BranchCompensateAlertRuleVO defining rule structure (thresholds, enabled flag, etc.)
  • Monitor master-slave replication lag with configurable alert thresholds
  • Include comprehensive test coverage (controller + service)

Test plan

  • Verify CRUD operations via BranchCompensateAlertRuleController
  • Verify threshold validation rejects invalid configurations
  • Verify InMemoryRepository correctly persists and retrieves rules
  • Verify enable/disable toggle works correctly
  • Run BranchCompensateAlertRuleControllerTest and BranchCompensateAlertRuleServiceTest

…onitoring

- Add BranchCompensateAlertRuleController with full CRUD REST API
- Add BranchCompensateAlertRuleService with threshold validation logic
- Add BranchCompensateAlertRuleRepository interface with in-memory implementation
- Add BranchCompensateAlertRuleVO for HA replication lag rule definition
- Monitor master-slave replication lag with configurable alert thresholds
- Include 2 test classes covering controller and service layers
@zhaohai666 zhaohai666 changed the title [studio] feat: add branch-compensate alert rules for HA replication [Studio] feat: add branch-compensate alert rules for HA replication Jul 29, 2026
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