Skip to content

Commit

Permalink
infra: downsizing of ECS tasks in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina committed Nov 22, 2023
1 parent d045fa4 commit dd3b8bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infra/lib/scorer/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ export function createIndexerService({
];

new awsx.ecs.FargateService("scorer-staking-indexer", {
propagateTags: "TASK_DEFINITION",
cluster: cluster.arn,
desiredCount: 1,
networkConfiguration: {
Expand Down Expand Up @@ -637,6 +638,7 @@ export function createIndexerService({
links: [],
},
},
tags: { name: "scorer-staking-indexer" },
},
tags: {
name: "scorer-staking-indexer",
Expand Down
6 changes: 6 additions & 0 deletions infra/prod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,9 @@ const scorerServiceDefault = createScorerECSService(
{
...baseScorerServiceConfig,
targetGroup: targetGroupDefault,
memory: 1024,
cpu: 512,
desiredCount: 2,
},
envConfig
);
Expand All @@ -696,6 +699,9 @@ const scorerServiceRegistry = createScorerECSService(
listenerRulePriority: 3000,
httpListenerRulePaths: ["/registry/*"],
targetGroup: targetGroupRegistry,
memory: 4096,
cpu: 2048,
desiredCount: 2,
},
envConfig
);
Expand Down

0 comments on commit dd3b8bd

Please sign in to comment.