Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-21-2011, 09:57 AM
|
#1
|
Member
Registered: Sep 2009
Posts: 97
Rep:
|
Cluster question
Hello
I have some service (web for example), that i want to cluster (active/passive). I have two esx in two different location on two different datastore. I want to set up a apache cluster between two linux machines (centos) on different datastore.
|
|
|
06-21-2011, 10:28 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
this is not clustering, just HA. two different locations would suggest different subnets, therefore you'd need to be looking at changing your DNS entries for this, not actually anything on the machines themselves. DNS HA is generally pretty sucky. You could look at mechanisms to use http proxies (which themselves could be apache) to do failover to the servers behind, and those two proxies would then both be the target of DNS A records, however if one of those proxies fail you're still no better off...
|
|
|
06-21-2011, 10:36 AM
|
#3
|
Member
Registered: Sep 2009
Posts: 97
Original Poster
Rep:
|
Hmm, i mean i was looking into different types of hearbeat solution.
|
|
|
06-21-2011, 03:01 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Well if you think that is the solution you may want to provide some useful information about the environment you're working with.
|
|
|
06-21-2011, 07:34 PM
|
#5
|
Member
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269
Rep:
|
As acid_kewpie already mentioned you most likely can't do anything with clustering. Since you mentioned having these servers in two different physical locations this most likely means different IPs (unless you have a reliable means of transit between the two sites). As already mentioned you will then run into problems with DNS. I think the best you could hope for is using something to do regular server checks, and initiate a DNS change if the primary server is down.
Now the problem you can have with this is the time it will take for DNS changes to replicate through the world, and users hitting the down server until you update.
|
|
|
All times are GMT -5. The time now is 04:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|