Node:Master server configuration, Next:, Up:Beginning to use Mingle



Master server configuration

Master server is a normal Mingle server that maintains the list of host names inside the cluster. Upon reception of a user request that needs to be routed through the cluster, a local Mingle server first fetches the host list from the master server, and then forwards the request to each remote host in the list.

You can configure the master server by using the "IsMaster" parameter in the Mingle configure file (A default Mingle configure file is contained in the Mingle server package). For example,

IsMaster = 1

will set the local Mingle server to be the master server.

For a master server, Use the parameter "ClusterHosts" to specify the list of host names (and port numbers) inside the cluster. For example,

ClusterHost = "area51", "grassyknoll:3000"

Note that you must specify all the hosts in one line, separating two adjacent hosts by a comma followed by one or more blank spaces.

For a normal server, use the parameter "MasterHost" and "MasterPort" to specify the master server from which a list of host names can be fetched. For example,

MasterHost = area51
MasterPort = 3000