<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 9:17 AM, gregor <span dir="ltr"><<a href="mailto:gregor_forum@catrix.at" target="_blank">gregor_forum@catrix.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
did you found a solution or cause for this high CPU usage?<br>
I have installed the self hosted engine on another server and there is<br>
no VM running but ovirt-ha-agent uses heavily the CPU.<br></blockquote><div><br></div>Yes, it's due to the fact that ovirt-ha-agent periodically reconnects over json rpc and this is CPU intensive since the client has to parse the yaml API specification each time it connects.<br>The issue is tracked here:<br><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1349829">https://bugzilla.redhat.com/show_bug.cgi?id=1349829</a> - ovirt-ha-agent should reuse json-rpc connections<br>but it depends on:<br><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1376843">https://bugzilla.redhat.com/show_bug.cgi?id=1376843</a> - [RFE] Implement a keep-alive with reconnect if needed logic for the python jsonrpc client<br><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
cheers<br>
<span class="gmail-HOEnZb"><font color="#888888">gregor<br>
</font></span><span class="gmail-im gmail-HOEnZb"><br>
On 08/08/16 15:09, Gianluca Cecchi wrote:<br>
> On Mon, Aug 8, 2016 at 1:03 PM, Roy Golan <<a href="mailto:rgolan@redhat.com">rgolan@redhat.com</a><br>
</span><div class="gmail-HOEnZb"><div class="gmail-h5">> <mailto:<a href="mailto:rgolan@redhat.com">rgolan@redhat.com</a>>> wrote:<br>
><br>
> Does the spikes correlates with info messages on extracting the ovf?<br>
><br>
><br>
><br>
><br>
><br>
><br>
> yes, it seems so and it happens every 14-15 seconds....<br>
><br>
> These are the lines I see scrolling in agent.log when I notice cpu<br>
> spikes in ovirt-ha-agent...<br>
><br>
> MainThread::INFO::2016-08-08<br>
> 15:03:07,815::storage_server::<wbr>212::ovirt_hosted_engine_ha.<wbr>lib.storage_server.<wbr>StorageServer::(connect_<wbr>storage_server)<br>
> Connecting storage server<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:08,144::storage_server::<wbr>220::ovirt_hosted_engine_ha.<wbr>lib.storage_server.<wbr>StorageServer::(connect_<wbr>storage_server)<br>
> Refreshing the storage domain<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:08,705::hosted_engine::<wbr>685::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>storage_images)<br>
> Preparing images<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:08,705::image::126::<wbr>ovirt_hosted_engine_ha.lib.<wbr>image.Image::(prepare_images)<br>
> Preparing images<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:09,653::hosted_engine::<wbr>688::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>storage_images)<br>
> Reloading vm.conf from the shared storage domain<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:09,653::config::205::<wbr>ovirt_hosted_engine_ha.agent.<wbr>hosted_engine.HostedEngine.<wbr>config::(refresh_local_conf_<wbr>file)<br>
> Trying to get a fresher copy of vm configuration from the OVF_STORE<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:09,843::ovf_store::100::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(scan)<br>
> Found OVF_STORE: imgUUID:223d26c2-1668-493c-<wbr>a322-8054923d135f,<br>
> volUUID:108a362c-f5a9-440e-<wbr>8817-1ed8a129afe8<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:10,309::ovf_store::100::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(scan)<br>
> Found OVF_STORE: imgUUID:12ca2fc6-01f7-41ab-<wbr>ab22-e75c822ac9b6,<br>
> volUUID:1a18851e-6858-401c-<wbr>be6e-af14415034b5<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:10,652::ovf_store::109::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(<wbr>getEngineVMOVF)<br>
> Extracting Engine VM OVF from the OVF_STORE<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:10,974::ovf_store::116::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(<wbr>getEngineVMOVF)<br>
> OVF_STORE volume path:<br>
> /rhev/data-center/mnt/ovirt01.<wbr>lutwyn.org:_SHE__DOMAIN/<wbr>31a9e9fd-8dcb-4475-aac4-<wbr>09f897ee1b45/images/12ca2fc6-<wbr>01f7-41ab-ab22-e75c822ac9b6/<wbr>1a18851e-6858-401c-be6e-<wbr>af14415034b5<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:11,494::config::225::<wbr>ovirt_hosted_engine_ha.agent.<wbr>hosted_engine.HostedEngine.<wbr>config::(refresh_local_conf_<wbr>file)<br>
> Found an OVF for HE VM, trying to convert<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:11,497::config::230::<wbr>ovirt_hosted_engine_ha.agent.<wbr>hosted_engine.HostedEngine.<wbr>config::(refresh_local_conf_<wbr>file)<br>
> Got vm.conf from OVF_STORE<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:11,675::hosted_engine::<wbr>462::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(start_<wbr>monitoring)<br>
> Current state EngineUp (score: 3400)<br>
><br>
><br>
</div></div><div class="gmail-HOEnZb"><div class="gmail-h5">> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>