Score:0

RabbitMQ CPU Usage Spikes

it flag

I've installed RabbitMQ on kubernetes(k3s) on ARM (Oracle OCI Ampere A1) using the community docker image.

I'm seeing very regular periodic CPU usage spikes (two series of spikes, both with a period of 60 seconds and offset by about 20 or so seconds). Is this normal? Is there something I can do to reduce these?

Netdata CPU Utilization for the RabbitMQ Namespace

This is an entirely empty installation of RabbitMQ, I haven't even tried to connect to it. I'm concerned that these CPU usage spikes might get worse when there are messages actually flowing through rabbitmq.

The configuration I'm using is:

enabled_plugins: |
  [rabbitmq_peer_discovery_k8s, rabbitmq_management, rabbitmq_prometheus].
rabbitmq.conf: |
  cluster_formation.peer_discovery_backend = k8s
  cluster_formation.k8s.host = kubernetes.default.svc.devcluster.oci.domain
  cluster_formation.k8s.address_type = hostname
  cluster_formation.k8s.service_name = rabbitmq-internode-svc
  queue_master_locator=min-masters

I want to be able to scale it up later, but presently I have only one RabbitMQ pod.

I also have some probes configured from k3s with a 60s period, could these be the cause of this CPU usage? If I remember correctly (I had written the k3s service many months ago now), these were based on RabbitMQ recommendations for k8s deployments.

  livenessProbe:
      exec:
        command: ["rabbitmq-diagnostics", "status"]
      initialDelaySeconds: 60
      periodSeconds: 60
      timeoutSeconds: 15
  readinessProbe:
      exec:
        command: ["rabbitmq-diagnostics", "ping"]
      initialDelaySeconds: 20
      periodSeconds: 60
      timeoutSeconds: 10
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.