Category: Reliable Penguin

Reduce TCP WAIT Times

Interesting discussion here: http://stackoverflow.com/questions/410616/increasing-the-maximum-number-of-tcp-ip-connections-in-linux Especially, this section: Default Sysctl values on a typical linux box for tcp_tw_recycle & tcp_tw_reuse would be

These do not allow a connection in wait state after use, and force them to last the complete time_wait cycle. I recommend setting them to:

This allows fast cycling of sockets in time_wait state and re-using them. But before you do this change make sure that this does not conflict with the protocols that you would use for the application that needs these sockets. Some other references: http://www.speedguide.net/articles/linux-tweaking-121 and http://wiki.docdroppers.org/index.php?title=Sysctl_Modifications

Read More »

Zabbix Proxy Install

Zabbix is our favorite monitoring tool and the new 2.0 release contains a range of great new features. One of the most useful features of the Zabbix architecture is support for Zabbix proxies. A Zabbix proxy gathers monitoring data and forwards it to the central monitoring server. This is really useful if you have a group of servers inside a firewall that need to be monitored. Just setup a Zabbix proxy inside the firewall and all the monitoring data can be securely forwarded to the central external monitoring server. The documentation of proxy setup is here: http://www.zabbix.com/documentation/2.0/manual/distributed_monitoring/proxies For a CentOS 6 server here are the steps that I used to install and configure a Zabbix proxy. Download latest source distribution from http://www.zabbix.com/download.php. Unpack, compile and install according to docs at: http://www.zabbix.com/documentation/2.0/manual/installation/install Since we’re installing from source we need a selection of build tools which I added with:

The Zabbix

Read More »

Manage Apache Modules On Ubuntu

Configuration for enable modules is stored in: /etc/apache2/mods-enabled Available but inactive modules are stored in: /etc/apache2/mods-available A module can be enabled with:

Where [modulename] is the module to be enabled. For example:

will enable the rewrite module. A module can be disabled in a similar fashion with:

Don’t forget to restart apache after making changes with:

Read More »

Syncing Content Between RackSpace Cloud Servers With Unison

We have two RackSpace Cloud Server running CentOS that need to have the web content kept in sync. Changes on either server need to be replicated to the other server. Easy way to get this accomplished is with the Unison File Syncronizer (http://www.cis.upenn.edu/~bcpierce/unison/). Here are the steps: 1. Install SSH keys for root on each server so SSH can run without passwords between the servers. 2. Add /etc/hosts file entries to map the private addresses of the servers to names.

3. Install Unison on each server:

4. Create a profile on each server at /root/.unison/sync_web.prf containing:

Notice the hostname “web2-priv” in red above. The file on web1 should reference web2-priv. The file on web2 should reference web1-priv. You’ll need to adjust the path listed in the file to match your environment. 5. Next create a script to run Unison with the profile created in the previous step.

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.