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,
|
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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue