I have a setup where we are running 1 Master and 3 chunk servers . In case one of my chunk servers goes down My set up is working fine .I want the same functionality with my Master server too .How can I do that ?
My exact need is : I am going to have 2 master servers and if one goes down 2nd one should act as master
You should try LizardFS http://lizardfs.com and on http://github.com/lizardfs/lizardfs , its fork of MooseFS and have build in master ha compability.
The simplest way is to have in eg. keepalived with virtual ip bind to this virtual ip master server and deploy second master server on diffrent machine but in config you need to set PERSONALITY from master to shadow. When first master going down and keepalived swith ip to second machine you need change back PERSONALITY to master nad reload master server.
If you write correct config for keepalived you can get 1-2 sec downtime.