Solved

I use linux and my sql for database sever

Posted on 2004-04-06
1
223 Views
Last Modified: 2010-03-18
  how can i set up second server that can work when the first server is down what is the hardware and software that I need
0
Comment
Question by:teera
1 Comment
 
LVL 9

Accepted Solution

by:
Alf666 earned 350 total points
ID: 10768089
Tough question :-)

You have to be very precise about what you are trying to do.

There are two questions :

1) Data replication
2) Switching mechanism (when your first server goes down).


1) Data replication

If your server is mainly for reading data (not too many writes), then it's very simple. Set the first server as a master, and the second one as a slave. This way, the second one will be an almost perfect replica of the first one. I say almost perfect, because you don't control exactly what happens at the precise moment of failure.

The problems you'll have to think about is what you do when you bring back the main server on. It won't be synced. In this case, I recommend a manual intervention that will change your slave server to become the master, and the old master to become a slave.

For more information :

http://www.mysql.com/doc/en/Replication_Features.html


2) Switching mechanism

That's the tough part. You can do manual switching (by, for example, switching IP addresses), or use clustering or high availability software.

One project (among others) is MySQL High Availability cluster :

http://mysql-ha.sourceforge.net/

There is also the well known Linux-HA project :

http://linux-ha.org/
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question