Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSlaves ¶
CreateSlaves Call this to create N slaves it automatically updates the store/DB
func Creator ¶
func Creator()
Creator Goroutine responsible for creating a redis instance/Proc waits on channel Cchan for any work to be done
func Destoryer ¶
func Destoryer() bool
Destoryer This shouldbe started as a goroutine as it runs unconditionally This listens on the Dchan declared globally, A pointer to Proc variable is sent across through this channel The only job of this goroutine is to update MSG structure of the Proc entry The MSG will be read by RedMon (Redis Monitoring goroutine) and perform the action The primary duty of this goroutine is to initate send SHUTDOWN of a redis PROC
func Maintainer ¶
func Maintainer()
Maintainer This is the main function that handles all the task updates
func MakeMaster ¶
MakeMaster Now that we have chosen a slave as a master make that as a master properly by communicating to Destroyer
func PromoteASlave ¶
PromoteASlave This will load all the procs whose type is SLAVE and elect a Slave as a new master, should be called when a master Proc Failed / Crashed
Types ¶
This section is empty.