Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix io1 iops to 5000 #136

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/infra/infra-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
);
}
if (this.singleNodeCluster) {
console.log('Single node value is true, creating single node configurations');

Check warning on line 498 in lib/infra/infra-stack.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
singleNodeInstance = new Instance(this, 'single-node-instance', {
vpc: props.vpc,
instanceType: singleNodeInstanceType,
Expand All @@ -514,7 +514,7 @@
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 @@
: 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 @@
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 @@
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
Loading