Try our new documentation site (beta).
Accessing your Cluster
Verify the Cluster Status
You can use grbcluster
to display the status of your cluster, it will list of the nodes with information
about the license and some important configuration properties. Please refer to the Remote Services Reference Manual
for more details or run grbcluster --help
:
$ grbcluster --server=ec2-64-157-158-267.compute-1.amazonaws.com --password=myAccessPassword nodes
ADDRESS STATUS TYPE LICENSE #Q #R JL IDLE %MEM %CPU
ec2-54-158-158-167.compute-1.amazonaws.com ALIVE COMPUTE VALID 0 0 2 1m 20.39 0.00
If you have started multiple nodes including compute servers and workers, you should see an entry for each node. Of course, you need to wait for the instances to start and join the cluster. Here is an example with a cluster composed of 2 compute servers and 2 distributed workers:
$ grbcluster --server=ec2-55-158-157-177.compute-1.amazonaws.com --password=myAccessPassword nodes
ADDRESS STATUS TYPE LICENSE #Q #R JL IDLE %MEM %CPU
ec2-35-244-70-24.compute-1.amazonaws.com ALIVE COMPUTE VALID 0 0 2 7m 20.38 0.00
ec2-52-91-74-197.compute-1.amazonaws.com ALIVE WORKER N/A 0 0 1 <1s 20.21 0.00
ec2-52-92-45-250.compute-1.amazonaws.com ALIVE WORKER N/A 0 0 1 2m 20.32 1.00
ec2-55-158-157-177.compute-1.amazonaws.com ALIVE COMPUTE VALID 0 0 2 20m 20.25 0.00
Submitting a job
For a Gurobi Compute Server, you should configure a Gurobi Compute Server
client to use the Gurobi Compute Server. This is explained in the
section "Creating a Compute Server client license" in the Gurobi
Optimizer Quick Start Guide. When running an EC2 instance as a Compute
Server, you simply need to set COMPUTESERVER
to the address of one your EC2
cluster node addresses. You also need to set the PASSWORD
property to match
the client password given during the node configuration.
When using gurobi_cl
, you can also
provide the address of one of the cluster nodes and the password:
gurobi_cl --server=ec2-55-158-157-177.compute-1.amazonaws.com --password=myAccessPassword stein9.mps
Note that both COMPUTESERVER
may define a list of nodes for better
robustness so that the first reachable address will be used to contact the cluster. These values will not limit the
dispatch or load balancing of the jobs within the cluster.