Node:An example, Previous:RSA key distribution, Up:Beginning to use Mingle
Suppose you wish to set up a Mingle cluster consisting of two hosts:
area51.cmcl.cs.cmu.edu
(area51
in short) and
grassynoll.cmcl.cs.cmu.edu
(grassyknoll
in short). In both hosts,
there will be one Mingle server running at port number 7018. You would
like to configure the host area51
to be the master server. Your local
user name at host area51
is abovik
and your local user name at host
grassyknoll
is gbovik
. Your preferred Mingle ID is mbovik
, and you
wish to cache RSA keys for one day.
First, you log in to area51
, and modify the following parameters in
the configure file:
MinglePort = 7018 IsMaster = 1 ClusterHosts = "LOCAL", "grassyknoll" UserMode = 1 PublicTTL = 24 PrivateTTL = 24
Then, start the Mingle server at area51
:
[abovik@area51]$mingle -c mingle.config & Mingle server 0.1 Local ip: 128.2.220.239 local port: 7018 Start accepting requests now...
And perform the Mingle single sign-on and Mingle init:
[abovik@area51]$mingle signon mbovik Select your Mingle password: ******** Reenter password: ******** Success: Sign-on successfully.
[abovik@area51]$mingle init mbovik Please enter your password: ******** Success: Mingle init successfully.
[abovik@area51]$mingle display Mingle ID = mbovik Local user ID = abovik
Next, you log in to grassyknoll
, and modify the following parameters in
the configure file there:
MinglePort = 7018 IsMaster = 0 MasterHost = area51 UserMode = 1 PublicTTL = 24 PrivateTTL = 24
Start the Mingle server at grassyknoll
:
[gbovik@grassyknoll]$mingle -c mingle.config & Mingle server 0.1 Local ip: 128.2.220.241 local port: 7018 Start accepting requests now...
Finally, perform Mingle init at grassyknoll
:
[gbovik@grassyknoll]$mingle init mbovik Please enter your password: ******** Success: Mingle init successfully.
[gbovik@grassyknoll]$mingle display Mingle ID = mbovik Local user ID = gbovik
From now on, you are done with the initial set up, you can start
submitting requests from either area51
or grassyknoll
as you would
like.