Try our new documentation site (beta).
Managing Runtimes
A runtime is an executable built to run jobs using a given version of the Gurobi Optimizer. Each node in the cluster can handle multiple runtimes, so different Gurobi versions can be supported on the same node at the same time. The Gurobi Remote Services agent will automatically select the appropriate runtime, depending on the version of the Gurobi Optimizer library used by the client program.
Runtime executables, named grb_rsw, are installed in the data directory of a node, under the following directory structure (the version numbers used in this example are just for demonstration purpose):
grb_rs data/ runtimes/ v8.0.0/ grb_rsw v8.0.1/ grb_rsw
The Remote Services agent will select the latest technical release that matches the major and minor version of the client. With the example above, if the client uses version 8.0.0, runtime version 8.0.1 will be selected. If later a version 8.0.2 is installed, the same client will use it without any modification.
Note that the Remote Services agent should be no older than the runtimes you deploy for it. Thus, for example, you can deploy runtime version 8.0.0 in an agent version 8.5, but not vice-versa. Note also that the ability to support different versions in a single Compute Server only started with version 8.0, so older versions such as 7.0 or 7.5 are not supported.
Deploying Runtimes
The Remote Services installation package will contain the latest supported runtime, which will be ready to use. You don't need to take any action to install a runtime when you first install Remote Services.
When new versions are released, you have the choice of reinstalling Remote Services with the latest runtimes or deploying only the runtimes that you need.
To deploy a specific runtime to a running node, you first need to stop the processing on that node:
grbcluster --server=server1 --password=cluster stop
Once all running jobs have finished processing and the node processing state has changed to STOPPED, you can deploy the new runtime using the grbcluster deploy command:
>grbcluster --server=server1 --password=cluster deploy gurobi_server801/linux64/bin/data/runtimes/v8.0.1/grb_rsw
You can examine the list of available runtimes using the grbcluster nodes command. Available versions are listed in the RUNTIMES column:
> grbcluster --server=server1 --password=pass nodes --long ADDRESS STATUS TYPE LICENSE PROCESSING #Q #R JL IDLE %MEM %CPU STARTED RUNTIMES VERSION server1 ALIVE COMPUTE VALID ACCEPTING 0 0 2 46h59m 9.79 0.50 2017-09-27 17:03:24 [8.0.0,8.0.1] 8.0.0 server2 ALIVE COMPUTE VALID ACCEPTING 0 0 2 46h46m 8.75 0.00 2017-09-27 17:16:11 [8.0.0] 8.0.0
You can remove an old runtime using grbcluster undeploy:
> grbcluster --server=server1 --password=cluster undeploy 8.0.0 > grbcluster --server=server1 --password=pass nodes --long ADDRESS STATUS TYPE LICENSE PROCESSING #Q #R JL IDLE %MEM %CPU STARTED RUNTIMES VERSION server1 ALIVE COMPUTE VALID ACCEPTING 0 0 2 46h59m 9.79 0.50 2017-09-27 17:03:24 [8.0.1] 8.0.0 server2 ALIVE COMPUTE VALID ACCEPTING 0 0 2 46h46m 8.75 0.00 2017-09-27 17:16:11 [8.0.0] 8.0.0
After deploying or undeploying, you can resume the job processing on the node, at which point new jobs will use the latest runtimes:
> grbcluster --server=server1 --password=cluster start
You can use the flag --all-stopped with the deploy or undeploy commands to deploy or undeploy to multiple nodes at a time. Note that this flag will only apply to nodes that are already STOPPED, so you should issue the stop command fist (typically with the --all flag) to stop the nodes.
In conclusion, you can incrementally deploy new runtimes on cluster nodes as they become available without having to reinstall Remote Services. This works only for technical releases, and if you do not need to deploy a fix in the Remote Services stack.