starting standard state workers

Bug #1686185 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned

Bug Description

While doing some scale testing, and deploying lots of applications, watching the logs shows *lots* of these entries:
machine-0: 23:37:18 INFO juju.state starting standard state workers
machine-0: 23:37:18 INFO juju.worker start "txnlog"
machine-0: 23:37:18 INFO juju.worker start "presence"
machine-0: 23:37:18 INFO juju.worker start "leadership"
machine-0: 23:37:18 INFO juju.worker start "singular"
machine-0: 23:37:18 INFO juju.state creating cloud image metadata storage
machine-0: 23:37:18 INFO juju.state started state for model-f00a9bea-ab04-48e3-8b6d-3a6aa500b1a3 successfully
machine-0: 23:37:18 INFO juju.worker runner is dying
machine-0: 23:37:18 INFO juju.worker stopped "txnlog", err: <nil>
machine-0: 23:37:18 INFO juju.worker stopped "singular", err: <nil>
machine-0: 23:37:18 INFO juju.worker stopped "presence", err: <nil>
machine-0: 23:37:18 INFO juju.worker stopped "leadership", err: <nil>

This may be creating a State object for each application deployed, or some other oddity. Either way, we shouldn't be trying to start and then stop 4+ workers every second in the log file.

I was triggering this while doing:

for x in `seq -f "%04g" 1 5`; do echo $x; for m in `seq 0 4`; do juju deploy -m m-$m cs:~jameinel/ubuntu-lite ul$x -n 3 --to 0,1,2 & done; time wait; sleep 5; done

Which is deploying a new application into 5 different models concurrently. In a loop 5 times.

Changed in juju:
milestone: 2.2-beta3 → 2.2-beta4
Changed in juju:
milestone: 2.2-beta4 → 2.2-rc1
Revision history for this message
Tim Penhey (thumper) wrote :

I'm curious if this still happens as the code should be using elements from the state pool.

The only problem would be if the tests are creating new models, but if they aren't, we shouldn't be getting this.

Changed in juju:
importance: High → Medium
milestone: 2.2-rc1 → none
tags: added: logging
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.