Advanced Topics

CloudWatch Integration

The Gurobi Remote Services Agent (grb_rs) running on each node of your cluster also sends log messages to the machine standard syslog. You can then use the AWS CloudWatch Agent to forward the syslog to the CloudWatch monitoring system and have a central place to access your logs. In order to install the CloudWatch agent, please refer to the AWS documentation.

Using Ansible

In this guide, we have explained how to setup a cluster using AWS AMIs and configuring the instances using properties passed as user data. There are other ways to deploy a cluster, and one interesting alternative is to use Ansible. With Ansible, you can write a script that will start instances, deploy the latest server package and the necessary configuration files using SSH.

Using the Gurobi Router

A Remote Services Router may be used when you need to isolate better the cluster nodes in an EC2 VPC. Without a router, the clients need to have direct access to each node in the cluster and the node DNS name must be accessible from the clients. Instead, a router provides a point of contact for all clients and will route the communication to the appropriate node in the cluster. A Remote Services Router acts as a reverse proxy. Behind a router, the cluster nodes can use private DNS names. To do so, set the configuration property AWS_HOSTNAME_MODE to private. The security group inbound rules can also be restricted so that only the router can communicate with the nodes. The router will use HTTP as default but it can also use HTTPS so that the data can be encrypted from the clients to the router. The router can then route the traffic using HTTPS or HTTP depending on the configuration of the cluster. It is a common configuration to enable HTTPS only between the clients and the router while having the router and the nodes communicate over unencrypted HTTP in a protected network. Using this setup you only have to manage certificates on the router. Another alternative is to terminate TLS before the router, for example using an EC2 Application Elastic Balancer (ALB). Please refer to the Remote Services Reference Manual for more details on the router configuration.

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.