Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce pub/sub messages from stress relief #1248

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Jul 24, 2024

Which problem is this PR solving?

We don't need to publish stress level if it hasn't changed. This will help reduce the amount of pub/sub messages being transmitted in the cluster

Short description of the changes

  • made stressReliefMessage struct more memory efficient
  • add a counter for tracking how long it has been since last stress level publish

@VinozzZ VinozzZ requested a review from a team as a code owner July 24, 2024 20:22
@VinozzZ VinozzZ merged commit f44e532 into main Jul 24, 2024
6 checks passed
@VinozzZ VinozzZ deleted the yingrong.reduce_message_stress_relief branch July 24, 2024 20:28
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.

2 participants