[2.9] juju is slow processing relations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
High
|
Unassigned |
Bug Description
juju 2.9.3
Juju 2.9 processes relations much slower than previous juju versions.
Example 1:
`juju add-relation nrpe-host-storage nagios` between 11 nrpe-host-storage units (nrpe charm) and nagios took ~23 minutes. I'd expect this to happen in a fraction of this time. `juju debug-logs` with timestamps below.
unit-nagios-0: 12:11:04 INFO juju.worker.
unit-nagios-0: 12:11:04 INFO juju.worker.
unit-nagios-0: 12:12:48 INFO juju.worker.
unit-nagios-0: 12:12:49 INFO juju.worker.
unit-nagios-0: 12:14:34 INFO juju.worker.
unit-nagios-0: 12:14:40 INFO juju.worker.
unit-nagios-0: 12:16:27 INFO juju.worker.
unit-nagios-0: 12:16:27 INFO juju.worker.
unit-nagios-0: 12:18:17 INFO juju.worker.
unit-nagios-0: 12:18:17 INFO juju.worker.
unit-nagios-0: 12:20:09 INFO juju.worker.
unit-nagios-0: 12:20:15 INFO juju.worker.
unit-nagios-0: 12:22:08 INFO juju.worker.
unit-nagios-0: 12:22:09 INFO juju.worker.
unit-nagios-0: 12:24:03 INFO juju.worker.
unit-nagios-0: 12:24:04 INFO juju.worker.
unit-nagios-0: 12:26:01 INFO juju.worker.
unit-nagios-0: 12:26:07 INFO juju.worker.
unit-nagios-0: 12:28:05 INFO juju.worker.
unit-nagios-0: 12:28:05 INFO juju.worker.
unit-nagios-0: 12:30:06 INFO juju.worker.
unit-nagios-0: 12:30:13 INFO juju.worker.
unit-nagios-0: 12:32:16 INFO juju.worker.
unit-nagios-0: 12:34:20 INFO juju.worker.
unit-nagios-0: 12:34:27 INFO juju.worker.
Example 2.
`juju add-relation woodpecker prometheus` between 100 woodpecker units and prometheus took more than 24 hours. I don't have logs for this though. But I clearly remember that even after 24 hours, prometheus still did not list all 100 targets.
I tried to do a fairly naïve reproduction of this on a localhost lxd cloud. The following commands did not reproduce the bug.
juju deploy ubuntu
juju add-unit -n 10 ubuntu
juju deploy nrpe
juju deploy nagios
# wait for things to settle
juju relate ubuntu nrpe && juju relate nrpe:monitors nagios:monitors
The last step above took 2 minutes.
What cloud is this running on? Are the boxen in question heavily loaded with workload related tasks? Do you have any advice on putting together a minimal repro case different from the naïve one above?