modify task memory and cpu

This commit is contained in:
nsxshota 2023-11-23 10:21:28 +09:00
commit e34c561b28
3 changed files with 6 additions and 5 deletions

View file

@ -38,8 +38,8 @@ export class BackEndCluster extends Construct {
this, this,
'BackEndTaskDef', 'BackEndTaskDef',
{ {
memoryLimitMiB: 512, memoryLimitMiB: 3072,
cpu: 256, cpu: 512,
executionRole: props.backendTaskExecutionRole, executionRole: props.backendTaskExecutionRole,
runtimePlatform:{ runtimePlatform:{
operatingSystemFamily: ecs.OperatingSystemFamily.LINUX, operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,

View file

@ -33,8 +33,8 @@ export class FrontEndCluster extends Construct {
this, this,
'FrontendTaskDef', 'FrontendTaskDef',
{ {
memoryLimitMiB: 512, memoryLimitMiB: 3072,
cpu: 256, cpu: 512,
executionRole: props.frontendTaskExecutionRole, executionRole: props.frontendTaskExecutionRole,
runtimePlatform:{ runtimePlatform:{
operatingSystemFamily: ecs.OperatingSystemFamily.LINUX, operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,

View file

@ -56,10 +56,11 @@ export class Network extends Construct {
], ],
natGateways: 1, natGateways: 1,
}) })
// Cluster
this.cluster = new ecs.Cluster(this, 'EcsCluster', { this.cluster = new ecs.Cluster(this, 'EcsCluster', {
clusterName: 'langflow-cluster', clusterName: 'langflow-cluster',
vpc: this.vpc, vpc: this.vpc,
enableFargateCapacityProviders: true,
}); });
// Private DNS // Private DNS