kubemq-io / kubemq-community

KubeMQ is a Kubernetes native message queue broker
https://kubemq.io
Apache License 2.0
659 stars 48 forks source link

`kubemq-run` processes consume all CPU/memory #30

Closed fcannizzaro closed 1 year ago

fcannizzaro commented 1 year ago

Hi! I'm using KubeMQ to connect some microservices, yesterday suddenly the server became inaccessible due to CPU/memory usage (usually there are ~15 kubemq-run processes, while in this case there were a lot of these processes that consumed every resource, below a screenshot of some of them).

image

what I did I deleted and recreated the cluster to fix this issue. I also made some tests to provoke it again (by sending 32k messages at the same time using parallel processes, 8k per process) and nothing happened, there was never a resource peak, so what can cause this issue?

params reading the documentation I see there are some resource-related params

 --resources-limits-key-CPU string          set resources limits CPU  (default "1000m")
 --resources-limits-key-memory string       set resources limits memory (default "512Mi")
 --resources-requests-key-CPU string        set resources requests CPU (default "100m")
 --resources-requests-memory string         set resources request memory (default "256Mi")

but they seem to be settings per instance and do not limit the number of processes spawned by kubemq.

Any idea? Thanks

kubemq commented 1 year ago

Hi, {;ease address your question on the slack channel,