Skip to content

Commit

Permalink
Reduce iops for aws instances (#1221)
Browse files Browse the repository at this point in the history
* set the default iops to be same as console for AWS

* fix
  • Loading branch information
Michaelvll authored Oct 11, 2022
1 parent 16e4083 commit 29f1458
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sky/templates/aws-ray.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ available_node_types:
node_config:
InstanceType: {{instance_type}}
ImageId: {{image_id}} # Deep Learning AMI (Ubuntu 18.04); see aws.py.
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.ServiceResource.create_instances
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: {{disk_size}}
# use default Iops for gp3
VolumeType: gp3
Iops: 3000
Throughput: 125
{% if use_spot %}
InstanceMarketOptions:
MarketType: spot
Expand All @@ -49,6 +54,9 @@ available_node_types:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: {{disk_size}}
VolumeType: gp3
Iops: 3000
Throughput: 125
{% if use_spot %}
InstanceMarketOptions:
MarketType: spot
Expand Down

0 comments on commit 29f1458

Please sign in to comment.