Skip to content

Commit

Permalink
Merge pull request #133 from guardian/pm-drop-max-gpu-price
Browse files Browse the repository at this point in the history
Drop max spot price for gpu instances
  • Loading branch information
philmcmahon authored Feb 3, 2025
2 parents ee786e2 + d6438af commit 6163450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions packages/cdk/lib/__snapshots__/transcription-service.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ exports[`The TranscriptionService stack matches the snapshot 1`] = `
"OnDemandBaseCapacity": 0,
"OnDemandPercentageAboveBaseCapacity": 10,
"SpotAllocationStrategy": "capacity-optimized",
"SpotMaxPrice": "0.7520",
"SpotMaxPrice": "0.5260",
},
"LaunchTemplate": {
"LaunchTemplateSpecification": {
Expand Down Expand Up @@ -2104,12 +2104,7 @@ service transcription-service-worker start",
{
"ContainerPath": "/media-download",
"ReadOnly": false,
"SourceVolume": "media-download-download-volume",
},
{
"ContainerPath": "/tmp",
"ReadOnly": false,
"SourceVolume": "media-download-temp-volume",
"SourceVolume": "media-download-volume",
},
],
"Name": "media-download-task-TaskContainer",
Expand Down Expand Up @@ -2166,10 +2161,7 @@ service transcription-service-worker start",
},
"Volumes": [
{
"Name": "media-download-download-volume",
},
{
"Name": "media-download-temp-volume",
"Name": "media-download-volume",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk/lib/transcription-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class TranscriptionService extends GuStack {
launchTemplate: gpuWorkerLaunchTemplate,
instancesDistribution: {
...commonInstancesDistributionprops,
spotMaxPrice: '0.7520',
spotMaxPrice: '0.5260',
},
launchTemplateOverrides: gpuInstanceTypes.map(instanceTypeToOverride),
},
Expand Down

0 comments on commit 6163450

Please sign in to comment.