modify task memory and cpu
This commit is contained in:
parent
ca8c0d8fd7
commit
e34c561b28
3 changed files with 6 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue