Linux.com

Some more thoughts of what you can use...

Posted by: Administrator on April 25, 2006 01:44 PM
There are several technologies I would use in several levels here, so let's start with Linux (L):


  • Use a clustered filesystem like the <a href="http://www.redhat.com/software/rha/gfs/" title="redhat.com">RedHat GLobal File System</a redhat.com> to share common read-only files from a single source

  • Use <a href="http://www.linux-ha.org/" title="linux-ha.org">Linux HA Services</a linux-ha.org> (high availability) with Virtual IP addresses (used in DNS) to ensure that all my DNS IP nodes should always be alive

  • Use something like <a href="http://www.linux-nis.org/" title="linux-nis.org">NIS/NIS+</a linux-nis.org> or <a href="http://www.openldap.org/" title="openldap.org">OpenLDAP</a openldap.org> to keep common files in sync and to possible provide single sign on and related services

  • Perhaps you may also need a good TCP Load Balancing solution, and I can highly recommend <a href="http://siag.nu/pen/" title="siag.nu">Pen</a siag.nu>



In general you want your Linux OS servers in sync with each other with the ability to "fail" nodes without loosing connectivity from the Interet.


Now for a look at Apache (A), and here I would look at nothing really spectacular, except to deploy perhaps <a href="http://httpd.apache.org/docs/1.3/mod/mod_proxy.html" title="apache.org">mod_proxy</a apache.org> to serve cached static pages from the clustered file system.


Then, for MySQL (M) there are the new clustered services in version 5.x:


  • <a href="http://www.howtoforge.com/loadbalanced_mysql_cluster_debian" title="howtoforge.com">A HOWTO article</a howtoforge.com> taking you step by step through the set-up of MySQL Cluster

  • You could also look at <a href="http://dev.mysql.com/doc/refman/5.1/en/replication.html" title="mysql.com">MySQL Replication</a mysql.com> in cases where you do not need MySQl Cluster, like in e-commerce site back-ends.



Finally the P... I like <a href="http://perl.org/" title="perl.org">Perl (P)</a perl.org> and therefor I provide some clustered orientated modules that could help:


  • With Apache, you could use <a href="http://perl.apache.org/" title="apache.org">mod_perl</a apache.org> which includes several recipes for database based session management

  • Perhaps look at something like <a href="http://search.cpan.org/~arak/DBIx-DBCluster-0.01/DBCluster.pm" title="cpan.org">DBIx::DBCluster</a cpan.org> if you do not use something like MySQL CLuster.



Well, in a nutshell, there is the technologies I would consider when clustering LAMP. Have a nice day<nobr> <wbr></nobr>:)

#

Return to How to configure a low-cost load-balanced LAMP cluster