CPU usage spikes hourly in idle system with over 2000 devices (resource-aggregator)
rlopinfn opened this issue · 2 comments
rlopinfn commented
Description
When running plgd with 2800 onboarded devices, we noticed CPU usage spikes occurring hourly while system is in idle state.
How can it be reproduced?
- Have system running with 2800 devices onboarded.
- Monitor plgd host machine CPU usage.
Environment
- plgd-dev/hub/bundle:2.12.1
- Deployment option: (
helm
)
jkralik commented
Hi @rlopinfn.
Could you please provide the configuration?
What is configured for the environment variable MOCK_OAUTH_SERVER_ACCESS_TOKEN_LIFETIME? If it is set to 1 hour, then this behavior is expected because devices refresh their tokens.
jkralik commented
@rlopinfn Fixed in the release https://github.com/plgd-dev/hub/releases/tag/v2.13.0 .