millions of warnings per day, state DB grows by 4GB/day

Peter Grandi pg at juju.list.sabi.co.UK
Thu Aug 27 17:14:50 UTC 2015


> [ ... ] (Even just getting mongo stats on the collections as a
> whole is likely to help us understand where the size is coming
> from.)  If it is what I think it is, then I would expect the
> txns collection to be growing rapidly. [ ... ]

So I got into the state MongoDB instance with (from a web page
plus some help from #Juju):

  mongo --ssl --authenticationDatabase admin \
   -u admin -p $FROMMACHINEAGENTCONF localhost:37017/juju

and the collection sizes are I think as you guessed, with this
(shortened for readability) output:

  http://paste.ubuntu.com/12206023/

showing that 'lease', 'txns', 'txns.stash' are large. Even if
they have relatively few entries (still many for 'txns' and
'txns.log').

Fortunately the partition is which '/var/lib/juju/db/' resides
is quite large, so size is not an issue, I was more worried
about the amount of traffic and load indicating a possibly
bigger problem.

I'll proceed soon to upgrade to the latest stable (1.24.5 IIRC)
taking backups and checking the details mentioned by MennoS.

Many thanks!



More information about the Juju mailing list