Lettuce Redis Connection Thread Priority #2472
Replies: 3 comments 2 replies
-
It boils down to what your Redis I/O threads are busy with. If your |
Beta Was this translation helpful? Give feedback.
-
Agree with @emindeniz99. When the CPU hits 100%, many threads wait for responses to redis commands provided by the single lettuce thread. The processor does not prioritize the lettuce thread enough to avoid the bottleneck. I tried giving higher priority to the thread, nothing changed On my side, I hope that virtual threads will increase lettuce throughput in this context |
Beta Was this translation helpful? Give feedback.
-
Recording a profile with the example of the occurrence would help us understand how we can improve the code. |
Beta Was this translation helpful? Give feedback.
-
Hello 👋🏻,
At work, we are using spring boot for the backend. Our Redis connections are managed by Lettuce.
Sometimes our application suffers from CPU peak, CPU hits 90-100%. When that happens, all Redis commands slow very. On the other side, our mysql commands are not slowing down like Redis commands.
Our mysql configuration is 100 connection thread pool. The Redis connection is a single connection thanks to lettuce.
We wonder if cpu scheduling can cause this case or not. Because MySQL commands(threads) can execute on the CPU 100 times more than Redis 1 connection thread.
Do you have any idea? What do you think about this idea?
Thank you
Have a nice day
Beta Was this translation helpful? Give feedback.
All reactions