Try our new documentation site (beta).
Client Configuration
Compute Server clients must know how to reach the desired
servers. Your first option for providing this information is through a
client gurobi.lic
file. That file should contain a line like
the following:
COMPUTESERVER=server1.mydomain.com,server2.mydomain.comYou can create this license file yourself, using your favorite text editor (
Notepad
is a good choice on Windows).
You simply need to provide
a list of the names of the machines that are acting as compute
servers. You can refer to the compute server machines using their
names (e.g., server.mydomain.com) or their IP addresses (e.g.,
192.168.1.100).
Your client license file may optionally specify a few additional pieces of information. The first is the compute server password:
PASSWORD=abcdThis should match the password that you chose when you started the compute server. The second is the job priority:
PRIORITY=10As you might expect, higher priority jobs take precedence over lower priority jobs. Priorities will be discussed in more detail shortly. The third is the queuing timeout:
TIMEOUT=60A job that has been sitting in queue for longer than the specified
TIMEOUT
value (in seconds) will return with a JOB_REJECTED
error.
Your other option for specifying the desired compute servers is
through API calls. The appropriate call depends on your programming
language. From C, you would call
GRBloadclientenv. From our
object-oriented interfaces, the GRBEnv
constructors each
provide a signature that allows you to specify the compute server(s),
the compute server password, the job priority, and a timeout for
jobs submitted by that program.