Skip to content

Commit

Permalink
Nginx conf update and change instance type
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Jun 26, 2024
1 parent f302c84 commit be7a43b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 33 deletions.
2 changes: 1 addition & 1 deletion infrastructure/lib/stacks/monitoringDashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class OpenSearchMetricsMonitoringStack extends Stack {
private snsMonitorCanaryFailed(canaryName: string, canaryUrl: string, vpcStack: VpcStack): void {
const canary = new Canary(this, 'CanaryHeartbeatMonitor', {
canaryName: canaryName,
schedule: Schedule.rate(Duration.minutes(1)),
schedule: Schedule.rate(Duration.minutes(15)),
test: Test.custom({
code: Code.fromAsset(path.join(__dirname, '../../canary')),
handler: 'urlMonitor.handler',
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/lib/stacks/opensearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class OpenSearchDomainStack extends Stack {
}

this.domain = new opensearch.Domain(this, 'OpenSearchHealthDomain', {
version: opensearch.EngineVersion.OPENSEARCH_2_11,
version: opensearch.EngineVersion.OPENSEARCH_2_13,
vpc: props.vpcStack.vpc,
vpcSubnets: [this.props.vpcStack.subnets],
securityGroups: props.vpcStack.securityGroup ? [props.vpcStack.securityGroup] : undefined,
Expand All @@ -137,7 +137,7 @@ export class OpenSearchDomainStack extends Stack {
masterNodes: 3,
dataNodes: 6,
dataNodeInstanceType: "r6g.2xlarge.search",
masterNodeInstanceType: "m6g.large.search",
masterNodeInstanceType: "m6g.xlarge.search",
},
ebs: {
enabled: true,
Expand Down
1 change: 1 addition & 0 deletions infrastructure/lib/stacks/opensearchNginxProxyReadonly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export class OpenSearchMetricsNginxReadonly extends Stack {
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_max_temp_file_size 4096m;
}
}'`;
}
Expand Down
34 changes: 7 additions & 27 deletions infrastructure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"typescript": "~3.9.7"
},
"dependencies": {
"aws-cdk-lib": "2.144.0",
"aws-cdk-lib": "2.146.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/test/monitoring-stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ test('Monitoring Stack Test', () => {
"RuntimeVersion": "syn-nodejs-puppeteer-7.0",
"Schedule": {
"DurationInSeconds": "0",
"Expression": "rate(1 minute)"
"Expression": "rate(15 minute)"
},
"StartCanaryAfterCreation": true,
"VPCConfig": {
Expand Down
14 changes: 13 additions & 1 deletion infrastructure/test/opensearch-stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ test('OpenSearchDomain Stack Test', () => {
"UserPoolId": {
"Ref": "UserPool"
}
}
},
"ClusterConfig": {
"DedicatedMasterCount": 3,
"DedicatedMasterEnabled": true,
"DedicatedMasterType": "m6g.xlarge.search",
"InstanceCount": 6,
"InstanceType": "r6g.2xlarge.search",
"ZoneAwarenessConfig": {
"AvailabilityZoneCount": 2
},
"ZoneAwarenessEnabled": true
},
"EngineVersion": "OpenSearch_2.13",
});
});

0 comments on commit be7a43b

Please sign in to comment.