modify task memory and cpu

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

View file

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

View file

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

View file

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