<br><br><div class="gmail_quote">On Thu, Jun 28, 2012 at 7:52 AM, Julien Danjou <span dir="ltr"><<a href="mailto:julien@danjou.info" target="_blank">julien@danjou.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jun 28 2012, Doug Hellmann wrote:<br>
<br>
> I propose that we move the code that connects to libvirt and gets the list<br>
> of instances into the class that calls the pollsters (AgentManager) so we<br>
> can support both calling patterns. That will make the AgentManager the<br>
> ComputeAgentManager (since network pollsters won't necessarily need to talk<br>
> to libvirt) and we will need other managers for calling pollsters that do<br>
> not use compute resources. I don't see that as a problem, since those<br>
> pollsters probably won't run on the compute nodes anyway so we will want<br>
> them to be loaded in another agent process.<br>
><br>
> What do the rest of you think about this change?<br>
<br>
</div>That recalls me my first idea of having one nova.service.Service (but<br>
only one agent daemon) by OS component. Except this time we would put<br>
them in only one daemon. So that sounds fine to me.<br></blockquote><div><br></div><div>I'm not sure about using one daemon. It could work in some cases, but may not scale. If we rename bin/ceilometer-agent to bin/ceilometer-compute-agent and we add a bin/ceilometer-central-agent then that central agent could poll a bunch of services. If we have a lot of data to work with, though, we might want a bin/ceilometer-volume-agent and bin/ceilometer-network-agent so those daemons can poll the separate services more quickly. We could probably do that by making bin/ceilometer-central-agent take a command line argument to control which plugin(s) it loads.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How do you propose we configure the enabled manager then? Using the same<br>
kind of system that we have for plugins?<br></blockquote><div><br></div><div>I'm not sure we need that many different managers. If we only need a couple, we could just have separate wrapper scripts like we do for the collector and agent now.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That'd basically makes us have a 2 levels plugin system in the end,<br>
which doesn't bother me anyway since for now everything is automagically<br>
configured and running.</blockquote><div><br></div><div>Right.</div><div><br></div><div>Doug</div><div> </div></div>