<div dir="ltr">Hello,<div>I made the same conclusion one year ago about the "All System" performance:</div><div><a href="https://www.redhat.com/archives/spacewalk-list/2014-March/msg00072.html">https://www.redhat.com/archives/spacewalk-list/2014-March/msg00072.html</a><br></div><div><br></div><div>I'm happy to see that someone else noticed that this page is slower on his set up too!</div><div><br></div><div>Pierre</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-14 8:56 GMT+02:00 Nahelou Sébastien <span dir="ltr"><<a href="mailto:sebastien.nahelou@worldline.com" target="_blank">sebastien.nahelou@worldline.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="FR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ok, like us.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you for your help.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sebastien<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a> [mailto:<a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a>]
<b>De la part de</b> Matthew Madey<br>
<b>Envoyé :</b> lundi 13 octobre 2014 20:30</span></p><div><div class="h5"><br>
<b>À :</b> <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
<b>Objet :</b> Re: [Spacewalk-list] Spacewalk CPU lack / Scaling<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">We use Oracle, so I can't comment on PGSQL directly.. however I believe we have our concurrent connection limit set to around 2000. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Oct 13, 2014 at 2:43 AM, Nahelou Sébastien <<a href="mailto:sebastien.nahelou@worldline.com" target="_blank">sebastien.nahelou@worldline.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you so much for your answers.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hangs happens when we load the "all systems" page when organisation. I will try your
 configuration tuning.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Last question, what do you preconize for PGSQL tuning ? Particularly, How many maximum
 connections do you configure ?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank again</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sebastien</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a> [mailto:<a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a>]
<b>De la part de</b> Matthew Madey<br>
<b>Envoyé :</b> vendredi 10 octobre 2014 18:25<br>
<b>À :</b> <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
<b>Objet :</b> Re: [Spacewalk-list] Spacewalk CPU lack / Scaling</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">We had a similar issue with Tomcat.. our Spacewalk server has 8000+ clients and is now running smoothly after some performance tuning. See the code snippets below, hopefully they'll
 help you out.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Add maxThreads to /etc/tomcat6/server.xml<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black">    <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" address="127.0.0.1" maxThreads="1024" maxKeepAliveRequests="1000"/></span><u></u><u></u></pre>
<pre><span style="color:black">    <!-- A "Connector" using the shared thread pool--></span><u></u><u></u></pre>
<pre><span style="color:black">    <!--</span><u></u><u></u></pre>
<pre><span style="color:black">    <Connector executor="tomcatThreadPool"</span><u></u><u></u></pre>
<pre><span style="color:black">               port="8080" protocol="HTTP/1.1" </span><u></u><u></u></pre>
<pre><span style="color:black">               connectionTimeout="20000" </span><u></u><u></u></pre>
<pre><span style="color:black">               redirectPort="8443" /></span><u></u><u></u></pre>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black"> </span><u></u><u></u></pre>
<pre style="word-wrap:break-word"><span style="color:black">    <!-- Define an AJP 1.3 Connector on port 8009 --></span><u></u><u></u></pre>
<pre><span style="color:black">    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="127.0.0.1" maxThreads="1024"/></span><u></u><u></u></pre>
<pre><span style="color:black">  </span><u></u><u></u></pre>
<pre><span style="color:black">    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="::1" maxThreads="1024"/></span><u></u><u></u></pre>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black">Tune Apache to service more requests /etc/httpd/conf.d/zz-spacewalk-server.conf</span><u></u><u></u></pre>
</div>
<div>
<pre> <u></u><u></u></pre>
</div>
<div>
<pre> <u></u><u></u></pre>
</div>
<div>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black">#######################################################</span><u></u><u></u></pre>
<pre><span style="color:black"># Authorship and versioning info</span><u></u><u></u></pre>
<pre><span style="color:black"># $Author$</span><u></u><u></u></pre>
<pre><span style="color:black"># $Date$</span><u></u><u></u></pre>
<pre><span style="color:black"># $URL$</span><u></u><u></u></pre>
<pre><span style="color:black"># $Rev$</span><u></u><u></u></pre>
<pre><span style="color:black"># deployment_location: /etc/httpd/conf.d/</span><u></u><u></u></pre>
<pre><span style="color:black">#######################################################</span><u></u><u></u></pre>
<pre><span style="color:black"># ** DO NOT EDIT **</span><u></u><u></u></pre>
<pre><span style="color:black"># Master configuration file for the rhn_server setup</span><u></u><u></u></pre>
<pre><span style="color:black">#</span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black">##</span><u></u><u></u></pre>
<pre><span style="color:black">## Spacewalk settings</span><u></u><u></u></pre>
<pre><span style="color:black">##</span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black"><VirtualHost *></span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black"><IfModule mod_jk.c></span><u></u><u></u></pre>
<pre><span style="color:black">    # Inherit the mod_jk settings defined in zz-spacewalk-www.conf</span><u></u><u></u></pre>
<pre><span style="color:black">    JkMountCopy On</span><u></u><u></u></pre>
<pre><span style="color:black"></IfModule></span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black"><Directory "/var/www/html/*"></span><u></u><u></u></pre>
<pre><span style="color:black">        AllowOverride all</span><u></u><u></u></pre>
<pre><span style="color:black"></Directory></span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black">RewriteEngine on</span><u></u><u></u></pre>
<pre><span style="color:black">RewriteOptions inherit</span><u></u><u></u></pre>
<pre><span style="color:black"></VirtualHost></span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black"># Override default httpd prefork settings</span><u></u><u></u></pre>
<pre><span style="color:black"><IfModule prefork.c></span><u></u><u></u></pre>
<pre><span style="color:black">StartServers       8</span><u></u><u></u></pre>
<pre><span style="color:black">MinSpareServers    400</span><u></u><u></u></pre>
<pre><span style="color:black">MaxSpareServers   400</span><u></u><u></u></pre>
<pre><span style="color:black">ServerLimit      1024</span><u></u><u></u></pre>
<pre><span style="color:black">MaxClients       1024</span><u></u><u></u></pre>
<pre><span style="color:black">MaxRequestsPerChild  200</span><u></u><u></u></pre>
<pre><span style="color:black"></IfModule></span><u></u><u></u></pre>
<pre><span style="color:black"> </span><u></u><u></u></pre>
<pre><span style="color:black">Include /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf</span><u></u><u></u></pre>
<div>
<pre> <u></u><u></u></pre>
</div>
<div>
<pre> <u></u><u></u></pre>
</div>
<div>
<pre> <u></u><u></u></pre>
</div>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black">Also added some network tuning to /etc/sysctl.conf</span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black">net.ipv4.icmp_echo_ignore_broadcasts = 1</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.all.secure_redirects = 0</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.tcp_max_syn_backlog = 8192</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.default.secure_redirects = 0</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.tcp_syncookies = 1</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.all.accept_source_route = 0</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.all.rp_filter = 1</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.all.send_redirects = 0</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.default.accept_redirects = 0</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.all.accept_redirects = 0</span><u></u><u></u></pre>
<pre><span style="color:black">net.ipv4.conf.default.send_redirects = 0</span><u></u><u></u></pre>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black">net.core.somaxconn = 1536</span><u></u><u></u></pre>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black">net.core.dev_weight = 512</span><u></u><u></u></pre>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black">##3x normal for a queue and budget suited to networks greater than 100mbps</span><u></u><u></u></pre>
<pre><span style="color:black">net.core.netdev_budget = 10000</span><u></u><u></u></pre>
<pre><span style="color:black">net.core.netdev_max_backlog = 30000</span><u></u><u></u></pre>
</div>
<div>
<pre><span style="color:black"> </span><u></u><u></u></pre>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Fri, Oct 10, 2014 at 4:35 AM, Michael Mraka <<a href="mailto:michael.mraka@redhat.com" target="_blank">michael.mraka@redhat.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal">Nahelou Sébastien wrote:<br>
% Hi Spacewalk lovers<br>
<br>
Hello Sebastian,<br>
<br>
% Since we upgrade from 2.0 to 2.2, we encounter a capacity problem due to CPU usage overall.<br>
% When users load a system page in the GUI, the tomcat process grow to 90% usage. Api and GUI become unavailable or very slow.<br>
<br>
Are you able to identify which page causes such high load?<br>
<br>
% Our architecture is as following:<br>
% 5 rhn proxies<br>
% LVS Master/slave mode<br>
% 1 front master: SERVICES="jabberd $TOMCAT httpd osa-dispatcher Monitoring MonitoringScout rhn-search cobblerd taskomatic"<br>
% 1 front slave: SERVICES="jabberd $TOMCAT httpd osa-dispatcher Monitoring MonitoringScout "<br>
% 1 cluster PGSQL<br>
%<br>
% Our masters have 2* Intel(R) Xeon(R) CPU E5-2609 / 92 RAM / raid 1 using CentOS 6.5.<br>
%<br>
% We have about 6000 systems registered,  about 40 organizations and more than 600 channels (including cloned)<br>
%<br>
% My questions are:<br>
% - Is it possible to scale spacewalk horizontally ? By changing lvs configuration to Active/Active ? By using HAProxy ? other ?<br>
<br>
We've never tested Active/Active cluster. I dare to say it won't work.<br>
Our recomendation is to use one Spacewalk Proxy for every 5000 systems.<br>
<br>
% - Is it possible to tune tomcat better than adding memory ? (we use actually -Xms8196m -Xmx16384m)<br>
<br>
I don't know. Frankly I've never heard a report about necessity to do so.<br>
<br>
% - What is the maximum number of systems that we can register in 1 organisation ? (Actually our max seems to be 1700)<br>
<br>
We know about installations with tens to hundereds of thousands systems.<br>
<br>
% - Is there a maximum number of systems that we can register in a Spacewalk cluster ?<br>
<br>
No, it's limmited only by numbers in your spacewalk certificate.<br>
Default certificate is limited to 20000. If you need more you can<br>
generate your own.<br>
<br>
% Thank in advance<br>
%<br>
% Sébastien NAHELOU<br>
% System engineer<br>
% Worldline - Seclin - France<br>
<br>
<br>
Regards,<br>
<br>
--<br>
Michael Mráka<br>
Satellite Engineering, Red Hat<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray"><br>
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le
 détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus,
 l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.<br>
<br>
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
 the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
 from any virus transmitted.</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div><div><div class="h5">
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le
 détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus,
 l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.<br>
<br>
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
 the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
 from any virus transmitted.<br>
</font>
</div></div></div>

<br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div>