<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:42, 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 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="gmail-">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><br class=""></div>wasn’t it suppose to be fixed to reuse the connection? Like all the other clients (vdsm migration code:-) </div><div>Does schema validation matter then if there would be only one connection at the start up?</div><div><br class=""><blockquote type="cite" class=""><div 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="gmail-"><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/<wbr class="">show_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" 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>
_______________________________________________<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>