<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7 Oct 2016, at 15:28, Simone Tiraboschi &lt;<a href="mailto:stirabos@redhat.com" class="">stirabos@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Oct 7, 2016 at 3:25 PM, Michal Skrivanek <span dir="ltr" class="">&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank" class="">michal.skrivanek@redhat.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><span class="gmail-"><blockquote type="cite" class=""><div class="">On 7 Oct 2016, at 14:59, Nir Soffer &lt;<a href="mailto:nsoffer@redhat.com" target="_blank" class="">nsoffer@redhat.com</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 7, 2016 at 3:52 PM, Michal Skrivanek <span dir="ltr" class="">&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank" class="">michal.skrivanek@redhat.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">On 7 Oct 2016, at 14:42, Nir Soffer &lt;<a href="mailto:nsoffer@redhat.com" target="_blank" class="">nsoffer@redhat.com</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 5, 2016 at 1:33 PM, Simone Tiraboschi <span dir="ltr" class="">&lt;<a href="mailto:stirabos@redhat.com" target="_blank" class="">stirabos@redhat.com</a>&gt;</span> wrote:<br class=""><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" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote"><span class="">On Wed, Oct 5, 2016 at 10:34 AM, Nir Soffer <span dir="ltr" class="">&lt;<a href="mailto:nsoffer@redhat.com" target="_blank" class="">nsoffer@redhat.com</a>&gt;</span> wrote:<br class=""><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" class=""><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Oct 5, 2016 at 10:24 AM, Simone Tiraboschi <span dir="ltr" class="">&lt;<a href="mailto:stirabos@redhat.com" target="_blank" class="">stirabos@redhat.com</a>&gt;</span> wrote:<br class=""><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" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote"><span class="">On Wed, Oct 5, 2016 at 9:17 AM, gregor <span dir="ltr" class="">&lt;<a href="mailto:gregor_forum@catrix.at" target="_blank" class="">gregor_forum@catrix.at</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br class="">
<br class="">
did you found a solution or cause for this high CPU usage?<br class="">
I have installed the self hosted engine on another server and there is<br class="">
no VM running but ovirt-ha-agent uses heavily the CPU.<br class=""></blockquote><div class=""><br class=""></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 class=""></div></div></div></blockquote></span></div></div></div></blockquote></span></div></div></div></blockquote></div></div></div></div></blockquote><div class=""><br class=""></div></span>wasn’t it suppose to be fixed to reuse the connection? Like all the other clients (vdsm migration code:-)&nbsp;</div></div></blockquote><div class=""><br class=""></div><div class="">This is orthogonal issue.</div></div></div></div></div></blockquote><div class=""><br class=""></div></span>Yes it is. And that’s the issue;-)</div><div class="">Both are wrong, but by “fixing” the schema validation only you lose the motivation to fix the meaningless wasteful reconnect</div></div></blockquote><div class=""><br class=""></div><div class="">Yes, we are going to fix that too ( <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1349829" class="">https://bugzilla.redhat.com/show_bug.cgi?id=1349829</a>&nbsp;) </div></div></div></div></div></blockquote><div><br class=""></div>that’s great! Also al the other vdsClient uses?:-)</div><div>What is that periodic one call anyway? Is there only one? Maybe we don’t need it so much.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">but it would require also <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1376843" class="">https://bugzilla.redhat.com/show_bug.cgi?id=1376843</a>&nbsp;to be fixed.</div></div></div></div></div></blockquote><div><br class=""></div>This is less good. Well, worst case you can reconnect yourself, all you need is a notification when the existing connection breaks</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><span class="gmail-"><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Does schema validation matter then if there would be only one connection at the start up?</div></div></blockquote><div class=""><br class=""></div><div class="">Loading once does not help command line tools like vdsClient, hosted-engine and</div><div class="">vdsm-tool.&nbsp;</div></div></div></div></div></blockquote><div class=""><br class=""></div></span>none of the other tools is using json-rpc.</div></div></blockquote><div class=""><br class=""></div><div class="">hosted-engine-setup is, and sooner or later we'll have to migrate also the remaining tools since xmlrpc has been deprecated with 4.0</div></div></div></div></div></blockquote><div><br class=""></div>ok. though setup is a one-time action so it’s not an issue there</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><span class="gmail-"><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">Nir</div><div class="">&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><span class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><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" class=""><div class="gmail_extra"><div class="gmail_quote"><span class=""><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" class=""><div class="gmail_extra"><div class="gmail_quote"><span class=""><div class=""><br class=""></div></span><div class="">Simone, reusing the connection is good idea anyway, but what you describe is&nbsp;</div><div class="">a bug in the client library. The library does *not* need to load and parse the</div><div class="">schema at all for sending requests to vdsm.</div><div class=""><br class=""></div><div class="">The schema is only needed if you want to verify request parameters,</div><div class="">or provide online help, these are not needed in a client library.</div><div class=""><br class=""></div><div class="">Please file an infra bug about it.</div></div></div></div></blockquote><div class=""><br class=""></div></span><div class="">Done, <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1381899" target="_blank" class="">https://bugzilla.redhat.com/sh<wbr class="">ow_bug.cgi?id=1381899</a></div></div></div></div></blockquote><div class=""><br class=""></div><div class="">Here is a patch that should eliminate most most of the problem:</div><div class=""><a href="https://gerrit.ovirt.org/65230" target="_blank" class="">https://gerrit.ovirt.org/65230</a><br class=""></div><div class=""><br class=""></div><div class="">Would be nice if it can be tested on the system showing this problem.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Nir</div></div></div></div></span><span class="">
______________________________<wbr class="">_________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" target="_blank" class="">Users@ovirt.org</a><br class=""><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank" class="">http://lists.ovirt.org/mailman<wbr class="">/listinfo/users</a><br class=""></span></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div></div>
______________________________<wbr class="">_________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" target="_blank" class="">Users@ovirt.org</a><br class=""><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank" class="">http://lists.ovirt.org/<wbr class="">mailman/listinfo/users</a><br class=""></div></blockquote></div><br class=""></span></div><br class="">______________________________<wbr class="">_________________<br class="">
Users mailing list<br class="">
<a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class="">
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank" class="">http://lists.ovirt.org/<wbr class="">mailman/listinfo/users</a><br class="">
<br class=""></blockquote></div><br class=""></div></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class="">http://lists.ovirt.org/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></body></html>