<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 10:34 AM, Nir Soffer <span dir="ltr"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Wed, Oct 5, 2016 at 10:24 AM, Simone Tiraboschi <span dir="ltr"><<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</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"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>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></span>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></div></div></div></blockquote><div><br></div></span><div>Simone, reusing the connection is good idea anyway, but what you describe is </div><div>a bug in the client library. The library does *not* need to load and parse the</div><div>schema at all for sending requests to vdsm.</div><div><br></div><div>The schema is only needed if you want to verify request parameters,</div><div>or provide online help, these are not needed in a client library.</div><div><br></div><div>Please file an infra bug about it.</div></div></div></div></blockquote><div><br></div><div>Done, <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1381899">https://bugzilla.redhat.com/show_bug.cgi?id=1381899</a></div><div>Thanks. </div><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-HOEnZb"><font color="#888888"><div><br></div><div>Nir</div></font></span><div><div class="gmail-h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">The issue is tracked here:<br><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1349829" target="_blank">https://bugzilla.redhat.com/sh<wbr>ow_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" target="_blank">https://bugzilla.redhat.com/sh<wbr>ow_bug.cgi?id=1376843</a> - [RFE] Implement a keep-alive with reconnect if needed logic for the python jsonrpc client<div><div><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><font color="#888888">gregor<br>
</font></span><span><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" target="_blank">rgolan@redhat.com</a><br>
</span><div><div>> <mailto:<a href="mailto:rgolan@redhat.com" target="_blank">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::<a href="http://ovirt_hosted_engine_ha.li" target="_blank">ovirt_hosted_engine_ha.li</a><wbr>b.storage_server.StorageServer<wbr>::(connect_storage_server)<br>
> Connecting storage server<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:08,144::storage_server::<wbr>220::<a href="http://ovirt_hosted_engine_ha.li" target="_blank">ovirt_hosted_engine_ha.li</a><wbr>b.storage_server.StorageServer<wbr>::(connect_storage_server)<br>
> Refreshing the storage domain<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:08,705::hosted_engine::6<wbr>85::ovirt_hosted_engine_ha.age<wbr>nt.hosted_engine.HostedEngine:<wbr>:(_initialize_storage_images)<br>
> Preparing images<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:08,705::image::126::ovir<wbr>t_hosted_engine_ha.lib.image.I<wbr>mage::(prepare_images)<br>
> Preparing images<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:09,653::hosted_engine::6<wbr>88::ovirt_hosted_engine_ha.age<wbr>nt.hosted_engine.HostedEngine:<wbr>:(_initialize_storage_images)<br>
> Reloading vm.conf from the shared storage domain<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:09,653::config::205::ovi<wbr>rt_hosted_engine_ha.agent.host<wbr>ed_engine.HostedEngine.config:<wbr>:(refresh_local_conf_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.ovf<wbr>.ovf_store.OVFStore::(scan)<br>
> Found OVF_STORE: imgUUID:223d26c2-1668-493c-a32<wbr>2-8054923d135f,<br>
> volUUID:108a362c-f5a9-440e-881<wbr>7-1ed8a129afe8<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:10,309::ovf_store::100::<wbr>ovirt_hosted_engine_ha.lib.ovf<wbr>.ovf_store.OVFStore::(scan)<br>
> Found OVF_STORE: imgUUID:12ca2fc6-01f7-41ab-ab2<wbr>2-e75c822ac9b6,<br>
> volUUID:1a18851e-6858-401c-be6<wbr>e-af14415034b5<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:10,652::ovf_store::109::<wbr>ovirt_hosted_engine_ha.lib.ovf<wbr>.ovf_store.OVFStore::(getEngin<wbr>eVMOVF)<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.ovf<wbr>.ovf_store.OVFStore::(getEngin<wbr>eVMOVF)<br>
> OVF_STORE volume path:<br>
> /rhev/data-center/mnt/ovirt01.<wbr>lutwyn.org:_SHE__DOMAIN/31a9e9<wbr>fd-8dcb-4475-aac4-09f897ee1b45<wbr>/images/12ca2fc6-01f7-41ab-ab2<wbr>2-e75c822ac9b6/1a18851e-6858-<wbr>401c-be6e-af14415034b5<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:11,494::config::225::ovi<wbr>rt_hosted_engine_ha.agent.host<wbr>ed_engine.HostedEngine.config:<wbr>:(refresh_local_conf_file)<br>
> Found an OVF for HE VM, trying to convert<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:11,497::config::230::ovi<wbr>rt_hosted_engine_ha.agent.host<wbr>ed_engine.HostedEngine.config:<wbr>:(refresh_local_conf_file)<br>
> Got vm.conf from OVF_STORE<br>
> MainThread::INFO::2016-08-08<br>
> 15:03:11,675::hosted_engine::4<wbr>62::ovirt_hosted_engine_ha.age<wbr>nt.hosted_engine.HostedEngine:<wbr>:(start_monitoring)<br>
> Current state EngineUp (score: 3400)<br>
><br>
><br>
</div></div><div><div>> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</div></div></blockquote></div></div></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div></div>