Try our new documentation site.

Starting an EC2 instance

Selecting the AMI

Here is the current list of Amazon Machine Images (AMIs). To start an EC2 instance in the AWS Console, just click the link below. You may also use any other AWS tools to start your EC2 instance.

RegionAMI ID
ap-northeast-1ami-4de3c62a
ap-northeast-2ami-f577a49b
ap-south-1ami-5467143b
ap-southeast-1ami-ec2a968f
ap-southeast-2ami-2d38374e
eu-central-1ami-84b767eb
eu-west-1ami-73417e15
sa-east-1ami-0a3a5966
us-east-1ami-4011aa56
us-east-2ami-5cedc939
us-west-1ami-74edb614
us-west-2ami-6249dd02

Note: These AMI IDs may change without notice. You should not hard-code a Gurobi Cloud AMI ID into a program. Instead, your program should always retrieve the list of current AMI IDs from http://packages.gurobi.com/ami.json, which is encoded as a JSON object.

Configuring and Connecting to a Compute Server

Configuring the Inbound Security Group

Port RangeProtocolRequiredDescription
61000-65000TCPYesCompute Server
80TCPNoWeb administration

Note: The source address for the inbound ports should be the computers that will be the clients of the compute server.

Configuration Parameters

Configuration parameters are passed to the instance via EC2 User Data. Each should be formatted as KEY=VALUE, one per line. The following table indicates required and recommended configuration parameters; you can find additional configuration parameters in the Gurobi Remote Services Parameters in the Gurobi Optimizer Reference Manual.

KeyDescriptionRequiredComments
CLOUDKEYThe cloud key for your cloud licenseYesFind this value under the Downloads > Licenses menu on the Gurobi website
PASSWORDThe password that the client program must supply in order to submit a jobNoHighly recommended
ADMINPASSWORDThe password for performing administrative tasksNoHighly recommended; for improved security, this should be different from the PASSWORD value
IDLESHUTDOWNIf the machine is idle for the specified number of minutes, it will shut down automaticallyNoIf this is omitted, the machine will not shut down automatically when inactive

Here is a sample:

CLOUDKEY=d67dcf8a-72b6-11e5-840b-0779f0f8b08e
PASSWORD=myAccessPassword
ADMINPASSWORD=myAdminPassword
IDLESHUTDOWN=60

Connecting to the Instance

For a Gurobi Compute Server, you normally should not login to the server itself. Instead, 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 your EC2 instance.

Configuring and Connecting to a Distributed Worker

Configuring the Inbound Security Group

Port RangeProtocolRequiredDescription
61000-65000TCPYesCommunication with master
80TCPNoWeb administration

Note: The source address for ports 61000-65000 should be the computers that will be the master for the distributed algorithms. If the master computer is running in the same AWS availability zone, you should use the private network address.

Configuration Parameters

Configuration parameters are passed to the instance via EC2 User Data. Each should be formatted as KEY=VALUE, one per line. The following table indicates required and recommended configuration parameters; you can find additional configuration parameters in the Gurobi Remote Services Parameters section of the Gurobi Optimizer Reference Manual.

KeyDescriptionRequiredComments
PASSWORDThe password that the client program must supply in order to submit a jobNoIf the worker will be used with another compute server, this should be the exact same value as the compute server
ADMINPASSWORDThe password for performing administrative tasksNoThis should be different from the PASSWORD value, if used.
IDLESHUTDOWNIf the machine is idle for the specified number of minutes, it will shut down automaticallyNoIf this is omitted, the machine will not shut down automatically when inactive

Here is a sample:

PASSWORD=myAccessPassword
ADMINPASSWORD=myAdminPassword
IDLESHUTDOWN=60

Connecting to the Instance

For a distributed worker, you normally should not login to the server itself. Instead, you should add the address of the EC2 instance to the WorkerPool parameter when solving a model. Additionally, if you configured the distributed worker with a PASSWORD, you should use that value in the WorkerPassword parameter.

Configuring and Connecting to a Traditional Computer

Configuring the Inbound Security Group

Port RangeProtocolRequiredDescription
22TCPYesssh access to computer

Configuration Parameters

Configuration parameters are passed to the instance via EC2 User Data. The user data should consist of a single line: CLOUDKEY=value; you can find the cloud key value under the Downloads > Licenses menu on the Gurobi website.

Connecting to the Instance

The AMI is built on Ubuntu Cloud images for Amazon EC2. This is a 64-bit system running Ubuntu 14.04. The initial username is ubuntu, which has sudo privileges. Use your private key to connect to this account on the server. A Gurobi license key is installed automatically; no additional Gurobi license is required.

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.

Search