From 29f145863daee694b4221c62380664727c14db51 Mon Sep 17 00:00:00 2001 From: Zhanghao Wu Date: Tue, 11 Oct 2022 14:49:37 -0700 Subject: [PATCH] Reduce iops for aws instances (#1221) * set the default iops to be same as console for AWS * fix --- sky/templates/aws-ray.yml.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sky/templates/aws-ray.yml.j2 b/sky/templates/aws-ray.yml.j2 index da3fac0717a..0880be270ad 100644 --- a/sky/templates/aws-ray.yml.j2 +++ b/sky/templates/aws-ray.yml.j2 @@ -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 @@ -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