High CPU usage after implemented State Recovery #5280
Unanswered
yuribraskulki-anotaai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm facing a problem in a production project with CPU usage after changes on the server to use the State recovery
The only changes was the use of the State Recovery, and change of the redis adapter to redis streams adapter
The server instance:
Before:
With state Recovery:
So with the changes the CPU usage of the websocket pod's was reaching its max, so we scaled them to support the needs, but what is strange is the difference between them, and the peak of the CPU usage always come with a peak of disconnections, that made me think that the problem is with something with the state recovery itself
Before the state recovery the peak of CPU usage was 0.24 core/pod
Now it is reaching 1.3 core/pod with 4 more pod's
Today we made a staging test to validate if the reconnection was the problem, and with 100 rooms, and no reconnects the usage was stable, after with reconnects the CPU usage got 3 times higher
I would like to know if someone faced the same problem or something like it, and if this high usage of the CPU is expected with the recovery
The tests that we ran today was with this script
Beta Was this translation helpful? Give feedback.
All reactions