Hey Guys, I have 3 webservers rented with a datacentre. Each of them provides the same webservices to different clients. So clients A,B,C would log onto webserver 1. Clients D,E,F log onto webserver 2. Clients XYZ, log onto webserver 3. Each of the webservers provide the same services using apache, php & mysql. Data is collected from an application logged to sql and the users can view / manipulate that data over the web. My problem is there is no redundancy. If webserver 1 goes down then clients A,B,C have no services. I need to add in redundancy. I can''t at the moment afford a 4th server. So I need to make do with whats currently there. Were talking about 100megs of new data on each server per day. Would something like mysql replication be the best bet? Anybody have any better ideas? Correct me if Im wrong but under replication wouldn''t one server be a master and all others be slaves? So if I made webserver 1 the master then all clients would have to log into that one if they want to manipulate the data and if it goes down them Im screwed on all clients? I know I need a better setup just wondering whats the best way to go about it... Thanks, Wayne
On Mar 23, 2006, at 8:57 AM, Wayne wrote:> My problem is there is no redundancy. If webserver 1 goes down then > clients > A,B,C have no services. > I need to add in redundancy. I can''t at the moment afford a 4th > server. > So I need to make do with whats currently there.you might want to think about run a Red Hat Cluster Suite cluster, since it''s been ported to CentOS. read the readme here: http://mirror.centos.org/centos/4/csgfs/Readme.txt be aware that while i believe that this system would satisfy your needs (based on the information you''ve provided), setting up CS/GFS is a nontrivial task. read all the docs and be sure you understand what you''re doing; if not, ask. important considerations: 1) you *need* shared storage. use a fibre channel or iSCSI SAN, or use an external disk chassis with a scsi controller for each host. 2) you *need* some automatic means of fencing (i.e. power-cycling) the hosts in the cluster. a network-controlled power switch will do this well; if you don''t want to buy one, some servers have remote management ports that will permit fencing. -steve --- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On 23/03/2006 14:21, "Steve Huff" <shuff@vecna.org> wrote:> you might want to think about run a Red Hat Cluster Suite cluster, > since it''s been ported to CentOS. read the readme here: > > http://mirror.centos.org/centos/4/csgfs/Readme.txt > > be aware that while i believe that this system would satisfy your > needs (based on the information you''ve provided), setting up CS/GFS > is a nontrivial task. read all the docs and be sure you understand > what you''re doing; if not, ask. > > important considerations: > 1) you *need* shared storage. use a fibre channel or iSCSI SAN, or > use an external disk chassis with a scsi controller for each host. > 2) you *need* some automatic means of fencing (i.e. power-cycling) > the hosts in the cluster. a network-controlled power switch will do > this well; if you don''t want to buy one, some servers have remote > management ports that will permit fencing. > > -steveHi Steve, This solution would be perfect, by my problem is that Im renting the servers in the datacentre and I have no physical access. The servers are with fasthosts.co.uk so I cannot do something like this. I can only communicate between the servers using TCP/IP. Thanks for your recommendation though, I would love to be able to use it. Regards, Wayne
Wayne wrote:> > Hi Steve, > > This solution would be perfect, by my problem is that Im renting the servers > in the datacentre and I have no physical access. The servers are with > fasthosts.co.uk so I cannot do something like this. I can only communicate > between the servers using TCP/IP. > Thanks for your recommendation though, I would love to be able to use it. > > Regards, > WayneWayne Have a chat with the guys at Poundhost in Maidenhead. They do a reasonably priced cluster solution. Don''t know the exact details but if it isn''t to your exact requirements I''m sure they will help you with something that is (http://www.poundhost.com/productlist.php?cat=6). Also a iSCSI based solution may not be too hard. The basics were covered in the Open Source section of last months PC Pro. If it works as well as they found, it is impressive stuff. Regards David