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 --password=myAccessPassword nodes
ADDRESS                                    STATUS TYPE    LICENSE #Q #R JL IDLE %MEM  %CPU 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 --password=myAccessPassword nodes
ADDRESS                                    STATUS TYPE    LICENSE #Q #R JL IDLE %MEM  %CPU   ALIVE  COMPUTE VALID   0  0  2  7m   20.38 0.00   ALIVE  WORKER  N/A     0  0  1  <1s  20.21 0.00   ALIVE  WORKER  N/A     0  0  1  2m   20.32 1.00 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 --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.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.