If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > replication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-09, 17:07
sarajusa sarajusa is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
replication

hi,

how can we make slave to master and re-direct writes from master to slave, if master went down.

please help with this issue.

thanks in advance.

thanks
regards
raju

Last edited by sarajusa; 07-06-09 at 17:11.
Reply With Quote
  #2 (permalink)  
Old 07-10-09, 11:23
alexsqlforums alexsqlforums is offline
Registered User
 
Join Date: Jan 2009
Location: NYC
Posts: 11
These are not accurate steps.

You have to create a custom script that can monitor master (a simple use your_db) and if master server is down for more than 60-180 seconds then.
1. Stop slave
2. Comment out read_only in my.cnf and restart Mysql.
3. Point all your webservers to slave IP.
Reply With Quote
  #3 (permalink)  
Old 07-10-09, 12:28
sarajusa sarajusa is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
replication

hi,

thank you very much alex. could u tell me where can i find the script so that i can redirect all the writes from master to slave when it went down
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On