You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve been testing the creation of thousands of ephemeral consumers in a leaf node/cluster against a mirrored stream, with the goal of offloading consumer load from the central hub cluster. However, I’ve noticed an unexpected increase in CPU and messages in/out on the central hub cluster, and I would like clarification on whether this behaviour is expected or if there’s a way to better offload consumers?
Test setup:
Shared account, APP
Hub cluster, 3 nodes. Domain hub
Leaf cluster, 3 nodes, using APP account. Domain leaf-0
Stream s1 created in the Hub cluster (APP account)
Mirrored stream s1-mirror created in the leaf cluster (APP account)
While testing with 100k ephemeral consumers created in the leaf cluster against the mirrored stream (s1-mirror), I noticed an increase in CPU usage and message traffic in/out of the central hub cluster. I had expected that consumers on the leaf cluster wouldn’t impact the hub/central cluster in this manner.
It seems that the hub cluster is being notified of the inbox of a consumer in the leaf cluster. Is this expected behavior? I was under the impression that the leaf cluster would handle consumers locally without placing additional load on the hub cluster.
Question:
Is this behaviour expected when using mirrored streams and leaf clusters, specifically the increased load on the hub cluster?
Is there a way to offload consumer load entirely to the leaf clusters without affecting the hub cluster?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’ve been testing the creation of thousands of ephemeral consumers in a leaf node/cluster against a mirrored stream, with the goal of offloading consumer load from the central hub cluster. However, I’ve noticed an unexpected increase in CPU and messages in/out on the central hub cluster, and I would like clarification on whether this behaviour is expected or if there’s a way to better offload consumers?
Test setup:
s1
created in the Hub cluster (APP account)s1-mirror
created in the leaf cluster (APP account)While testing with 100k ephemeral consumers created in the leaf cluster against the mirrored stream (s1-mirror), I noticed an increase in CPU usage and message traffic in/out of the central hub cluster. I had expected that consumers on the leaf cluster wouldn’t impact the hub/central cluster in this manner.
Checking the trace logs of a hub node i see this:
It seems that the hub cluster is being notified of the inbox of a consumer in the leaf cluster. Is this expected behavior? I was under the impression that the leaf cluster would handle consumers locally without placing additional load on the hub cluster.
Question:
Beta Was this translation helpful? Give feedback.
All reactions