feat: use SSD with high throughput (#218)

This commit is contained in:
Zilong Zhou
2025-06-17 18:39:42 +08:00
committed by GitHub
parent 4e11eafd1d
commit 3d8f1779a2
2 changed files with 19 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ import logging
import dotenv import dotenv
import signal import signal
INSTANCE_TYPE = "t3.large" INSTANCE_TYPE = "t3.medium"
# Load environment variables from .env file # Load environment variables from .env file
dotenv.load_dotenv() dotenv.load_dotenv()
@@ -97,6 +97,15 @@ def _allocate_vm(region=DEFAULT_REGION):
os.getenv('AWS_SECURITY_GROUP_ID') os.getenv('AWS_SECURITY_GROUP_ID')
] ]
} }
],
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
'VolumeType': 'io2',
'Iops': 16000,
}
}
] ]
} }

View File

@@ -128,6 +128,15 @@ class AWSProvider(Provider):
"DeviceIndex": 0, "DeviceIndex": 0,
"Groups": security_groups "Groups": security_groups
} }
],
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
'VolumeType': 'io2',
'Iops': 16000,
}
}
] ]
} }