Skip to content

Commit

Permalink
⚡️ Update containers scaling throughput
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Oct 19, 2024
1 parent aa9459c commit b997b43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iac/Erpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export function ErpcStack({ app, stack }: StackContext) {
maxContainers: 4,
cpuUtilization: 80,
memoryUtilization: 80,
// Max throughput per container (10k requests per container)
requestsPerContainer: 10_000,
},
// Bind the secret we will be using
bind: secrets,
Expand Down
2 changes: 2 additions & 0 deletions iac/Indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ const baseProps: Record<"indexer" | "reader", Partial<ServiceProps>> = {
maxContainers: 4,
cpuUtilization: 90,
memoryUtilization: 90,
// Max throughput per container (5k requests per container)
requestsPerContainer: 5_000,
},
cdk: {
fargateService: {
Expand Down

0 comments on commit b997b43

Please sign in to comment.