For Gurobi Remote Services, there are two types of license files: server and client. A server license file is much larger because it contains the information to run the remote services. The client license files contain just enough information to point Gurobi to the server. Below, we have an example of each for Gurobi Compute Server and our Token Server.
Compute Server license files
Example client license file
Here is an example of a client license file that would allow a client to connect to a Cluster Manager with an API key and submit all the jobs under a specific application name:
CSMANAGER=http://mymanager:61080 CSAPIACCESSID=0e8c35d5-ff20-4e5d-a639-10105e56b264 CSAPISECRET=d588f010-ad47-4310-933e-1902057661c9 CSAPPNAME=app1
Here is another example that would allow your client to connect a self-managed Compute Server with a specific password, and submit all the jobs with priority 10:
COMPUTESERVER=http://server1:61000 PASSWORD=abcd PRIORITY=10
For more options and instructions to set up your client compute server license file, please see How do I create a Compute Server client license?
Example server license file
# DO NOT EDIT THIS FILE except as noted
#
# License ID 123456
#
# Place this file in your home directory that takes precedence
# or in one of the following shared locations:
# * C:\gurobi\ on Windows
# * /opt/gurobi/ on Linux
# * /Library/gurobi/ on Mac OS X
# Or set the environment variable GRB_LICENSE_FILE to point to this file,
# it will override the default locations
#
# Gurobi license for Gurobi Optimization
ORGANIZATION=YourOrganization
TYPE=NODE
VERSION=12
HOSTNAME=YourHostName
HOSTID=YourHostID
CORES=8
EXPIRATION=2026-03-14
CSENABLED=1
KEY=XXXXXXXX
CKEY=XXXXXXXX
For more options and instructions to set up your compute server license file for the server, please see How do I set up and use a Compute Server license?
Token server license files
A token server is also known as a floating license and a site license.
Example client license file
TOKENSERVER=192.168.1.100
# PORT=41954
For more options and instructions to set up your client token server license file, please see How do I create a token server client license?
Example server license file
# DO NOT EDIT THIS FILE except as noted
#
# License ID 123456
#
# Place this file in your home directory that takes precedence
# or in one of the following shared locations:
# * C:\gurobi\ on Windows
# * /opt/gurobi/ on Linux
# * /Library/gurobi/ on Mac OS X
# Or set the environment variable GRB_LICENSE_FILE to point to this file,
# it will override the default locations
#
# Gurobi license for Gurobi Optimization
ORGANIZATION=YourOrganization
TYPE=TOKEN
VERSION=12
TOKENSERVER=192.168.1.100
HOSTNAME=YourHostName
HOSTID=YourHostID
CORES=8
EXPIRATION=2026-03-14
USELIMIT=10
KEY=XXXXXXXX
CKEY=XXXXXXXX
# Uncomment and edit the following lines as desired:
# PORT=41954
# PASSWORD=YourPrivatePassword
For more options and instructions to set up your token server license file for the server, please see How do I set up and use a floating token server license?
Comments
0 comments
Article is closed for comments.