Skip to content

Performance- and resource-issues with bigger broker configuration #248

@cmasopust

Description

@cmasopust

One of our brokers should be deployed with ~650 addresses, ~300 diverts and ~620 roles. Our users are now complaining about very long runtime of the role and even in some cases the playbook is failing with the error "ERROR! A worker was found in a dead state" (which, after some googling, seems to be related to running out of memory).

I guess that this configuration is probably a bit away from usual broker configs, but that's what it is here.

Any ideas (besides reducing the number of addresses and diverts) what we can do to reduce the runtime and resource consumption? Have you ever tested the role with such big number of addresses and diverts?

Profiling the deployment shows the following result:

...
TASKS RECAP **********************************************************************
Saturday 30 August 2025  08:44:22 +0200 (0:00:00.075)          0:25:02.537 *******
==================================================================================
middleware_automation.amq.activemq : Create security settings matches ---- 483.80s
middleware_automation.amq.activemq : Create security settings matches ---- 480.07s
middleware_automation.amq.activemq : Create addresses string -------------- 70.89s
middleware_automation.amq.activemq : Create addresses string -------------- 59.88s
middleware_automation.amq.activemq : Create diverts configuration string -- 38.60s
middleware_automation.amq.activemq : Create security settings ------------- 27.57s
middleware_automation.amq.activemq : Create diverts configuration string -- 22.02s
middleware_automation.amq.activemq : Set journal configuration ------------ 18.18s
middleware_automation.amq.activemq : Create security settings ------------- 14.52s
Append configuration to file ---------------------------------------------- 11.83s
Gathering Facts ----------------------------------------------------------- 11.61s
middleware_automation.amq.activemq : Get masked password for user ---------- 4.01s
middleware_automation.amq.activemq : Get masked password for user ---------- 4.01s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.90s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.85s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.82s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.61s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.58s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.57s
middleware_automation.amq.activemq : Get masked password for user ---------- 3.47s

ROLES RECAP **********************************************************************
Saturday 30 August 2025  08:44:22 +0200 (0:00:00.081)          0:25:02.542 *******
==================================================================================
activemq ---------------------------------------------------------------- 1460.55s
...

Thanks!
Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions