Availability zone support
Related tasks
- https://app.asana.com/0/851925973517080/1164220342391729/f
- https://app.asana.com/0/851925973517080/1167376254477994/f
Context
We were migrating some enviroments to another Availability Zone in order to avoid interfering with an on-going competition. In order to complete that task, cloudsim needs to have some configuration to deploy simulations to a certain Availability Zone.
Change
- Add 2 enviroment variables to ec2Config called
IGN_EC2_AVAILABILITY_ZONE
for the AZ andIGN_EC2_SUBNET
for the subnet. - Add a new field to instanceTemplate to configure the Availability zone.
Other information
- We need to update the documentation.
IGN_EC2_SUBNET
defines the subnet ID cludsim will use to deploy machines. Example values:subnet-0e632d68a9032ab9d
IGN_EC2_AVAILABILITY_ZONE
defines the AZ cloudsim will use to deploy machines. Example values:us-east-1a
Additional documentation
-
IGN_EC2_SUBNET
receives a default value.subnet-0e632d68a9032ab9d
-
IGN_EC2_AVAILABILITY_ZONE
receives a default value.us-east-1a
Reviewers
Edited by Marcos Huck