<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20605">
<style type="text/css"><!--html { font-family: "Color Emoji", "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; }--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>In my case it was about 130k sql queries (before timeout occured ) if i want schedule remote command for all ~ 1600 hosts. I was trying to execute via api with spacecmd and by dividing into few command and matching hosts by first letter but it was hanging on building pkg cache for minutes.<br></div><div data-signatureblock="true"><div><br></div><div>Wysłano z: Poczta systemu Windows</div><div><br></div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>Od:</b> <a href="mailto:stephan.duehr@dass-it.de" target="_parent">Stephan Duehr</a><br><b>Wysłano:</b> ‎piątek‎, ‎21‎ ‎listopada‎ ‎2014 ‎12‎:‎14<br><b>Do:</b> <a href="mailto:spacewalk-list@redhat.com" target="_parent">spacewalk-list@redhat.com</a></font></div></div><div><br></div><div dir=""><div id="readingPaneBodyContent">Hi,<br><br>I don't think spacewalk proxy would help in this case.<br><br>One case where this hits you is scheduling config file deployment,<br>eg. deploy all file of a config channel to all systems subscribed<br>to the channel for a larger number of systems, in my test-case it<br>happened for > 400 systems.<br><br>See https://bugzilla.redhat.com/show_bug.cgi?id=1087844<br><br>I also don't think that Oracle would do any better, it looks like<br>spacewalk is sending the SQL Queries sequentially.<br><br>Also the missing parallelism is not the only problem, I've also<br>analyzed the SQL queries and observed, comparing 300 and 400 systems,<br>the total number of queries was  2172 for 300 systems and 4021 for 400<br>systems.<br><br>A workaround could be an API script to schedule the config deployment<br>actions.<br><br>Regards,<br><br>Stephan<br><br>On 11/21/2014 06:49 AM, Krzysztof Pawłowski wrote:<br>> Hello Amedeo,<br>> Does all spacewalk proxy use the same database server or i'm wrong ?<br>> <br>> 2014-10-29 16:56 GMT+01:00 Amedeo Salvati <amedeo@oscert.net <mailto:amedeo@oscert.net>>:<br>> <br>>     this will scale out (not scale UP) your env, but you will change where your client will be connected -> to spacewalk or to spacewalk proxy<br>> <br>>     Da: spacewalk-list-bounces@redhat.com <mailto:spacewalk-list-bounces@redhat.com><br>>     A: spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com><br>>     Cc:<br>>     Data: Wed, 29 Oct 2014 15:49:09 +0100<br>>     Oggetto: Re: [Spacewalk-list] Spacewalk performance tuning for deployments with 1000+ hosts<br>> <br>>     > Does this solve problem with web ui ?<br>> <br>>     > Sent from my Windows Phone<br>>     --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>>     > From: Amedeo Salvati <mailto:amedeo@oscert.net><br>>     > Sent: ‎2014-‎10-‎29 12:03<br>>     > To: spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com><br>>     > Cc: spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com><br>>     > Subject: Re: [Spacewalk-list]Spacewalk performance tuning for deployments with 1000+ hosts<br>> <br>>     > repeat I think you must use rhn|spacewalk proxies<br>> <br>>     > best regards<br>>     > a<br>> <br>> <br>>     > Da: spacewalk-list-bounces@redhat.com <mailto:spacewalk-list-bounces@redhat.com><br>>     > A: spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com><br>>     > Cc:<br>>     > Data: Wed, 29 Oct 2014 07:22:30 +0100<br>>     > Oggetto: Re: [Spacewalk-list] Spacewalk performance tuning for deployments with 1000+ hosts<br>> <br>>     > > Unfortunately it doesn't help :(<br>> <br>>     > > When i want do sth with all 1500 systems i get :<br>> <br>> <br>>       > > Service Temporarily Unavailable<br>> <br>>     > > The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.<br>> <br>> <br>> <br>>     > > 2014-10-28 17:41 GMT+01:00 Matthew Madey <mattmadey@gmail.com <mailto:mattmadey@gmail.com>>:<br>> <br>> <br>>         > > Here are some configurations you might find helpful for tuning Apache\Tomcat\Java\Networking.. Like others have mentioned.. when you get over 1000+ clients, it's a good idea to start<br>>         scaling horizontally with Spacewalk Proxies. We use 4 proxies in our production environment and are servicing 8000+ clients. We can actually patch 1600 clients at a time and the GUI is still<br>>         pretty responsive. Can't guarantee this will resolve your issue, but this worked for us. <br>> <br>>         > > Add maxThreads to /etc/tomcat6/server.xml____<br>> <br>>         __> >  __<br>> <br>>         > >     <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" address="127.0.0.1" maxThreads="1024" maxKeepAliveRequests="1000"/>____<br>> <br>>         > >     <!-- A "Connector" using the shared thread pool-->____<br>> <br>>         > >     <!--____<br>> <br>>         > >     <Connector executor="tomcatThreadPool"____<br>> <br>>         > >                port="8080" protocol="HTTP/1.1" ____<br>> <br>>         > >                connectionTimeout="20000" ____<br>> <br>>         > >                redirectPort="8443" />____<br>> <br>>         __> >  __<br>> <br>>         > >     <!-- Define an AJP 1.3 Connector on port 8009 -->____<br>> <br>>         > >     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="127.0.0.1" maxThreads="1024"/>____<br>> <br>>         > >   ____<br>> <br>>         > >     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="::1" maxThreads="1024"/>____<br>> <br>>         __> >  __<br>> <br>>         __> >   <br>> <br>>         > > Tune Apache to service more requests /etc/httpd/conf.d/zz-spacewalk-server.conf____<br>> <br>>         __> >  __<br>> <br>>         __> >  __<br>> <br>>         > > #######################################################____<br>> <br>>         > > # Authorship and versioning info____<br>> <br>>         > > # $Author$____<br>> <br>>         > > # $Date$____<br>> <br>>         > > # $URL$____<br>> <br>>         > > # $Rev$____<br>> <br>>         > > # deployment_location: /etc/httpd/conf.d/____<br>> <br>>         > > #######################################################____<br>> <br>>         > > # ** DO NOT EDIT **____<br>> <br>>         > > # Master configuration file for the rhn_server setup____<br>> <br>>         > > #____<br>> <br>>         __> >  __<br>> <br>>         > > ##____<br>> <br>>         > > ## Spacewalk settings____<br>> <br>>         > > ##____<br>> <br>>         __> >  __<br>> <br>>         > > <VirtualHost *>____<br>> <br>>         __> >  __<br>> <br>>         > > <IfModule mod_jk.c>____<br>> <br>>         > >     # Inherit the mod_jk settings defined in zz-spacewalk-www.conf____<br>> <br>>         > >     JkMountCopy On____<br>> <br>>         > > </IfModule>____<br>> <br>>         __> >  __<br>> <br>>         > > <Directory "/var/www/html/*">____<br>> <br>>         > >         AllowOverride all____<br>> <br>>         > > </Directory>____<br>> <br>>         __> >  __<br>> <br>>         > > RewriteEngine on____<br>> <br>>         > > RewriteOptions inherit____<br>> <br>>         > > </VirtualHost>____<br>> <br>>         __> >  __<br>> <br>>         > > # Override default httpd prefork settings____<br>> <br>>         > > <IfModule prefork.c>____<br>> <br>>         > > StartServers       8____<br>> <br>>         > > MinSpareServers    400____<br>> <br>>         > > MaxSpareServers   400____<br>> <br>>         > > ServerLimit      1024____<br>> <br>>         > > MaxClients       1024____<br>> <br>>         > > MaxRequestsPerChild  200____<br>> <br>>         > > </IfModule>____<br>> <br>>         __> >  __<br>> <br>>         > > Include /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf____<br>> <br>>         __> >  __<br>> <br>>         __> >  __<br>> <br>>         __> >  __<br>> <br>>         __> >  Also added some network tuning to /etc/sysctl.conf<br>> <br>>         __> >  __<br>> <br>>         > > net.ipv4.icmp_echo_ignore_broadcasts = 1____<br>> <br>>         > > net.ipv4.conf.all.secure_redirects = 0____<br>> <br>>         > > net.ipv4.tcp_max_syn_backlog = 8192____<br>> <br>>         > > net.ipv4.conf.default.secure_redirects = 0____<br>> <br>>         > > net.ipv4.tcp_syncookies = 1____<br>> <br>>         > > net.ipv4.conf.all.accept_source_route = 0____<br>> <br>>         > > net.ipv4.conf.all.rp_filter = 1____<br>> <br>>         > > net.ipv4.conf.all.send_redirects = 0____<br>> <br>>         > > net.ipv4.conf.default.accept_redirects = 0____<br>> <br>>         > > net.ipv4.conf.all.accept_redirects = 0____<br>> <br>>         > > net.ipv4.conf.default.send_redirects = 0____<br>> <br>>         > > net.core.somaxconn = 1536____<br>> <br>>         > > net.core.dev_weight = 512____<br>> <br>>         > > ##3x normal for a queue and budget suited to networks greater than 100mbps____<br>> <br>>         > > net.core.netdev_budget = 10000____<br>> <br>>         > > net.core.netdev_max_backlog = 30000<br>> <br>> <br>> <br>>         > > Depending on the amount of memory on your Spacewalk server, you may want to increase your JAVA_OPTS Xms and Xmx settings to something a little higher. Typically only needed if you are seeing Java Heap out of memory errors in your Spacewalk logs.<br>> <br>> <br>> <br>>         > > On Tue, Oct 28, 2014 at 11:21 AM, Waldirio Manhães Pinheiro <waldirio@gmail.com <mailto:waldirio@gmail.com>> wrote:<br>> <br>>             > > Dear Krzysztof<br>> <br>>             > > Have you checked your numa configuration ?!<br>> <br>>             > > Maybe you can customize you environment to use the same bus to application / memory.<br>> <br>>             > > ______________<br>>             > > Atenciosamente<br>>             > > Waldirio<br>>             > > msn: waldirio@gmail.com <mailto:waldirio@gmail.com><br>>             > > Skype: waldirio<br>>             > > Site: www.waldirio.com.br <http://www.waldirio.com.br><br>>             > > Blog: blog.waldirio.com.br <http://blog.waldirio.com.br><br>>             > > LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646<br>>             > > PGP: www.waldirio.com.br/public.html <http://www.waldirio.com.br/public.html><br>> <br>>             > > On Tue, Oct 28, 2014 at 2:10 PM, Krzysztof Pawłowski <msciciel@msciciel.eu <mailto:msciciel@msciciel.eu>> wrote:<br>> <br>>                 > > We have dedicated machine for db pgsql (16GB RAM , 8 cores)  and seperate for spacewalk (16GB RAM, 8 Cores).<br>> <br>>                 > > I think that problem is with enormous number of queries to database. During such request db is not utilized 100% and spacewalk is also not 100% utilized.<br>> <br>> <br>> <br>>                 > > 2014-10-28 16:25 GMT+01:00 Götz Reinicke - IT Koordinator <goetz.reinicke@filmakademie.de <mailto:goetz.reinicke@filmakademie.de>>:<br>> <br>>                     > > Hi,<br>>                     > > Am 28.10.14 um 12:57 schrieb Krzysztof Pawłowski:<br>>                     > > > Hi,<br>>                     > > > Is there any guide about tuning spacewalk performance ? With every new<br>>                     > > > host spacewalk is getting slowly. Using SSM with more than 200-300 hosts<br>>                     > > > is impossible due timeouts. It's also not possible to deploy config<br>>                     > > > files to all hosts.<br>>                     > > > Standard java tuning was done, java gc is not the problem now.<br>>                     > > ><br>>                     > > > Any suggestions ?<br>> <br>>                     > > what server hardware do you use? What is the systemload while performing<br>>                     > > that tasks? CPU, RAM, Disksystem, IO, Network .... ?<br>> <br>> <br>>                     > >         /Götz<br>> <br>>                     > > --<br>>                     > > Götz Reinicke<br>>                     > > IT-Koordinator<br>> <br>>                     > > Tel. +49 7141 969 82 420 <tel:%2B49%207141%20969%2082%20420><br>>                     > > E-Mail goetz.reinicke@filmakademie.de <mailto:goetz.reinicke@filmakademie.de><br>> <br>>                     > > Filmakademie Baden-Württemberg GmbH<br>>                     > > Akademiehof 10<br>>                     > > 71638 Ludwigsburg<br>>                     > > www.filmakademie.de <http://www.filmakademie.de><br>> <br>>                     > > Eintragung Amtsgericht Stuttgart HRB 205016<br>> <br>>                     > > Vorsitzender des Aufsichtsrats: Jürgen Walter MdL<br>> <br>> <br>>     > [The entire original message is not included.]<br>> <br>>     _______________________________________________<br>>     Spacewalk-list mailing list<br>>     Spacewalk-list@redhat.com <mailto:Spacewalk-list@redhat.com><br>>     https://www.redhat.com/mailman/listinfo/spacewalk-list<br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> Spacewalk-list mailing list<br>> Spacewalk-list@redhat.com<br>> https://www.redhat.com/mailman/listinfo/spacewalk-list<br>> <br><br><br>-- <br>Stephan Dühr                                stephan.duehr@dass-it.de<br>dass IT GmbH                               Phone: +49.221.3565666-90<br>http://www.dass-IT.de                        Fax: +49.221.3565666-10<br><br>Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRB52500<br>Geschäftsführer: S. Dühr, M. Außendorf, Jörg Steffens, P. Storz<br><br>_______________________________________________<br>Spacewalk-list mailing list<br>Spacewalk-list@redhat.com<br>https://www.redhat.com/mailman/listinfo/spacewalk-list</div></div></div>
</body>
</html>