Skip to content

Commit

Permalink
Fix io1 iops to 5000 (#136)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Singh <[email protected]>
  • Loading branch information
rishabh6788 authored Oct 4, 2024
1 parent 48b5b73 commit 2c636f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/infra/infra-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export class InfraStack extends Stack {
volume: BlockDeviceVolume.ebs(this.dataNodeStorage, {
deleteOnTermination: true,
volumeType: this.storageVolumeType,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? this.dataNodeStorage * 50 : 3000,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? 5000 : 3000,
}),
}],
init: CloudFormationInit.fromElements(...this.getCfnInitElement(this, clusterLogGroup, 'single-node')),
Expand Down Expand Up @@ -617,7 +617,7 @@ export class InfraStack extends Stack {
: BlockDeviceVolume.ebs(this.dataNodeStorage, {
deleteOnTermination: true,
volumeType: this.storageVolumeType,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? this.dataNodeStorage * 50 : 3000,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? 5000 : 3000,
}),
}],
requireImdsv2: true,
Expand Down Expand Up @@ -651,7 +651,7 @@ export class InfraStack extends Stack {
volume: BlockDeviceVolume.ebs(this.dataNodeStorage, {
deleteOnTermination: true,
volumeType: this.storageVolumeType,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? this.dataNodeStorage * 50 : 3000,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? 5000 : 3000,
}),
}],
requireImdsv2: true,
Expand Down Expand Up @@ -726,7 +726,7 @@ export class InfraStack extends Stack {
volume: BlockDeviceVolume.ebs(this.mlNodeStorage, {
deleteOnTermination: true,
volumeType: this.storageVolumeType,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? this.mlNodeStorage * 50 : 3000,
iops: (this.storageVolumeType === EbsDeviceVolumeType.IO1) ? 5000 : 3000,
}),
}],
requireImdsv2: true,
Expand Down
2 changes: 1 addition & 1 deletion test/opensearch-cluster-cdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ test('Test Resources with security enabled multi-node with existing Vpc with use
Ebs: {
VolumeSize: 200,
VolumeType: 'io1',
Iops: 10000,
Iops: 5000,
},
},
],
Expand Down

0 comments on commit 2c636f2

Please sign in to comment.