From 70f527d74c6e5da2c1c7b51125360e6f6a3774c4 Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Thu, 3 Oct 2024 19:00:16 -0700 Subject: [PATCH] Fix io1 iops to 5000 Signed-off-by: Rishabh Singh --- lib/infra/infra-stack.ts | 8 ++++---- test/opensearch-cluster-cdk.test.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/infra/infra-stack.ts b/lib/infra/infra-stack.ts index 9d6b11cb255..6dad4a5347f 100644 --- a/lib/infra/infra-stack.ts +++ b/lib/infra/infra-stack.ts @@ -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')), @@ -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, @@ -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, @@ -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, diff --git a/test/opensearch-cluster-cdk.test.ts b/test/opensearch-cluster-cdk.test.ts index 6de9df4ef07..e01ee5ab156 100644 --- a/test/opensearch-cluster-cdk.test.ts +++ b/test/opensearch-cluster-cdk.test.ts @@ -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, }, }, ],