Skip to content

Commit

Permalink
[TM-1494] Only beef up the research service in staging and prod.
Browse files Browse the repository at this point in the history
It increases costs a fair amount, and we don't really use this service in other environments.
  • Loading branch information
roguenet committed Nov 27, 2024
1 parent 6156e11 commit 820c578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdk/service-stack/lib/service-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ type Mutable<T> = {
};

const customizeFargate = (service: string, env: string, props: Mutable<ApplicationLoadBalancedFargateServiceProps>) => {
if (service === "research-service") {
if (service === "research-service" && ["prod", "staging"].includes(env)) {
// Beef up the research service in staging and prod
props.cpu = 2048;
props.memoryLimitMiB = 4096;
}
Expand Down

0 comments on commit 820c578

Please sign in to comment.