[Spacewalk-list] Recommendations for Tuning Spacewalk
Matthew Madey
mattmadey at gmail.com
Mon Oct 13 22:37:31 UTC 2014
We use Oracle, so I don't know any of the Postgres tunings.. but here are
some you might find helpful for tuning Apache\Tomcat\Java\Networking
Add maxThreads to /etc/tomcat6/server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"
address="127.0.0.1" maxThreads="1024" maxKeepAliveRequests="1000"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
URIEncoding="UTF-8" address="127.0.0.1" maxThreads="1024"/>
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
URIEncoding="UTF-8" address="::1" maxThreads="1024"/>
Tune Apache to service more requests /etc/httpd/conf.d/zz-spacewalk-server.conf
#######################################################
# Authorship and versioning info
# $Author$
# $Date$
# $URL$
# $Rev$
# deployment_location: /etc/httpd/conf.d/
#######################################################
# ** DO NOT EDIT **
# Master configuration file for the rhn_server setup
#
##
## Spacewalk settings
##
<VirtualHost *>
<IfModule mod_jk.c>
# Inherit the mod_jk settings defined in zz-spacewalk-www.conf
JkMountCopy On
</IfModule>
<Directory "/var/www/html/*">
AllowOverride all
</Directory>
RewriteEngine on
RewriteOptions inherit
</VirtualHost>
# Override default httpd prefork settings
<IfModule prefork.c>
StartServers 8
MinSpareServers 400
MaxSpareServers 400
ServerLimit 1024
MaxClients 1024
MaxRequestsPerChild 200
</IfModule>
Include /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf
Also added some network tuning to /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.core.somaxconn = 1536
net.core.dev_weight = 512
##3x normal for a queue and budget suited to networks greater than 100mbps
net.core.netdev_budget = 10000
net.core.netdev_max_backlog = 30000
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.
Best of luck!
On Mon, Oct 13, 2014 at 4:03 PM, Glen Collins <glenc2004 at comcast.net> wrote:
> Hello all. Can anyone provide a concise document/URL for tuning spacewalk?
> I have been reading many tuning guides for Postgres but I have not really
> found anything for spacewalk that would give details on how to tune for s
> specific number of clients. I've seen many on here having 2,3 and 4K
> clients without issue. And I'm just curious how to tune for both
> Spacewalk/Java and Postgres to get the most out of the system. I want to be
> ahead of the game than having issue down the road as my environment grows.
>
> Thanks!
>
> Glen Collins
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20141013/e115f44c/attachment.htm>
More information about the Spacewalk-list
mailing list