<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 14:59, Nir Soffer <<a href="mailto:nsoffer@redhat.com" class="">nsoffer@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><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=""><<a href="mailto:michal.skrivanek@redhat.com" target="_blank" class="">michal.skrivanek@redhat.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 <<a href="mailto:nsoffer@redhat.com" target="_blank" class="">nsoffer@redhat.com</a>> 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=""><<a href="mailto:stirabos@redhat.com" target="_blank" class="">stirabos@redhat.com</a>></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=""><<a href="mailto:nsoffer@redhat.com" target="_blank" class="">nsoffer@redhat.com</a>></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=""><<a href="mailto:stirabos@redhat.com" target="_blank" class="">stirabos@redhat.com</a>></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=""><<a href="mailto:gregor_forum@catrix.at" target="_blank" class="">gregor_forum@catrix.at</a>></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:-) </div></div></blockquote><div class=""><br class=""></div><div class="">This is orthogonal issue.</div></div></div></div></div></blockquote><div><br class=""></div>Yes it is. And that’s the issue;-)</div><div>Both are wrong, but by “fixing” the schema validation only you lose the motivation to fix the meaningless wasteful reconnect</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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. </div></div></div></div></div></blockquote><div><br class=""></div>none of the other tools is using json-rpc.</div><div><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=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 </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/<wbr class="">mailman/listinfo/users</a><br class=""></span></div></blockquote></div><br class=""></div></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>