Skip to content

Reduce CPU usage#58

Merged
stgraber merged 3 commits into
canonical:mainfrom
masnax:cpu-usage
May 1, 2023
Merged

Reduce CPU usage#58
stgraber merged 3 commits into
canonical:mainfrom
masnax:cpu-usage

Conversation

@masnax
Copy link
Copy Markdown
Contributor

@masnax masnax commented May 1, 2023

Microcluster uses a large amount of CPU mainly due to the heartbeats being a bit too eager. This reduces frequency of heartbeats from 1 second to 10, and reduces redundant calls to fetch the dqlite leader.

masnax added 3 commits May 1, 2023 09:50
…heartbeat

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
@masnax masnax requested a review from stgraber May 1, 2023 15:05
@stgraber stgraber merged commit dd78e86 into canonical:main May 1, 2023
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