Notes from Scale testing
John Arbash Meinel
john at arbash-meinel.com
Thu Oct 31 09:11:15 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2013-10-31 12:34, William Reade wrote:
>
> On Thu, Oct 31, 2013 at 12:37 AM, William Reade
> <william.reade at canonical.com <mailto:william.reade at canonical.com>>
> wrote:
>
> The service watch fires on any change to the document, and adding
> a unit increments the service's unitcount field. The easy fix is
> to wrap the service watcher so that it discards irrelevant changes;
> the hard fix (schema change!) is to move the refcounts into their
> own docs, as we do elsewhere in state.
>
>
> In fact, the only relevant service change *is* the CharmURL change
> -- we should just explicitly watch that alone, and drop the
> service-life handling (when the service becomes Dying, the API
> server handles setting the units to Dying already; and rather than
> special-casing the can't-happen handling of service-Dead we can
> just drop it entirely).
Do you have to watch the Service doc and then just discard changes
that aren't the CharmURL ?
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlJyHrMACgkQJdeBCYSNAAPDuACgvwJmQDgvMiAl3QFsQefiF6qQ
f2AAn3EtN6BWAhj23HCzu5lOmgtxwv94
=NW82
-----END PGP SIGNATURE-----
More information about the Juju-dev
mailing list