<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">&lt;<a href="mailto:gregor_forum@catrix.at" target="_blank">gregor_forum@catrix.at</a>&gt;</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&#39;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>
&gt; On Mon, Aug 8, 2016 at 1:03 PM, Roy Golan &lt;<a href="mailto:rgolan@redhat.com">rgolan@redhat.com</a><br>
</span><div class="gmail-HOEnZb"><div class="gmail-h5">&gt; &lt;mailto:<a href="mailto:rgolan@redhat.com">rgolan@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Does the spikes correlates with info messages on extracting the ovf?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; yes, it seems so and it happens every 14-15 seconds....<br>
&gt;<br>
&gt; These are the lines I see scrolling in agent.log when I notice cpu<br>
&gt; spikes in ovirt-ha-agent...<br>
&gt;<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:07,815::storage_server::<wbr>212::ovirt_hosted_engine_ha.<wbr>lib.storage_server.<wbr>StorageServer::(connect_<wbr>storage_server)<br>
&gt; Connecting storage server<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:08,144::storage_server::<wbr>220::ovirt_hosted_engine_ha.<wbr>lib.storage_server.<wbr>StorageServer::(connect_<wbr>storage_server)<br>
&gt; Refreshing the storage domain<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:08,705::hosted_engine::<wbr>685::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>storage_images)<br>
&gt; Preparing images<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:08,705::image::126::<wbr>ovirt_hosted_engine_ha.lib.<wbr>image.Image::(prepare_images)<br>
&gt; Preparing images<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:09,653::hosted_engine::<wbr>688::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>storage_images)<br>
&gt; Reloading vm.conf from the shared storage domain<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:09,653::config::205::<wbr>ovirt_hosted_engine_ha.agent.<wbr>hosted_engine.HostedEngine.<wbr>config::(refresh_local_conf_<wbr>file)<br>
&gt; Trying to get a fresher copy of vm configuration from the OVF_STORE<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:09,843::ovf_store::100::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(scan)<br>
&gt; Found OVF_STORE: imgUUID:223d26c2-1668-493c-<wbr>a322-8054923d135f,<br>
&gt; volUUID:108a362c-f5a9-440e-<wbr>8817-1ed8a129afe8<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:10,309::ovf_store::100::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(scan)<br>
&gt; Found OVF_STORE: imgUUID:12ca2fc6-01f7-41ab-<wbr>ab22-e75c822ac9b6,<br>
&gt; volUUID:1a18851e-6858-401c-<wbr>be6e-af14415034b5<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:10,652::ovf_store::109::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(<wbr>getEngineVMOVF)<br>
&gt; Extracting Engine VM OVF from the OVF_STORE<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:10,974::ovf_store::116::<wbr>ovirt_hosted_engine_ha.lib.<wbr>ovf.ovf_store.OVFStore::(<wbr>getEngineVMOVF)<br>
&gt; OVF_STORE volume path:<br>
&gt; /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>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:11,494::config::225::<wbr>ovirt_hosted_engine_ha.agent.<wbr>hosted_engine.HostedEngine.<wbr>config::(refresh_local_conf_<wbr>file)<br>
&gt; Found an OVF for HE VM, trying to convert<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:11,497::config::230::<wbr>ovirt_hosted_engine_ha.agent.<wbr>hosted_engine.HostedEngine.<wbr>config::(refresh_local_conf_<wbr>file)<br>
&gt; Got vm.conf from OVF_STORE<br>
&gt; MainThread::INFO::2016-08-08<br>
&gt; 15:03:11,675::hosted_engine::<wbr>462::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(start_<wbr>monitoring)<br>
&gt; Current state EngineUp (score: 3400)<br>
&gt;<br>
&gt;<br>
</div></div><div class="gmail-HOEnZb"><div class="gmail-h5">&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;<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>