Skip to content

Commit

Permalink
⚡️ Reduce ponder instances size
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Aug 27, 2024
1 parent 3991f7e commit 2819002
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions iac/builder/Ponder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export const ponderInstanceTypeConfig = {
cpuUtilization: 90,
memoryUtilization: 90,
},
hardware: {
cpu: "0.5 vCPU",
memory: "1 GB",
storage: "20 GB"
} as const
},
reading: {
suffix: "IndexerReader",
Expand All @@ -57,6 +62,11 @@ export const ponderInstanceTypeConfig = {
cpuUtilization: 90,
memoryUtilization: 90,
},
hardware: {
cpu: "0.25 vCPU",
memory: "0.5 GB",
storage: "10 GB"
} as const
},
};

Expand Down Expand Up @@ -109,8 +119,8 @@ export function addPonderService({
// Arm architecture (lower cost)
architecture: "arm64",
// Hardware config
cpu: "1 vCPU",
memory: "2 GB",
cpu: instanceType.hardware.cpu,
memory: instanceType.hardware.memory,
storage: "30 GB",
// Log retention
logRetention: "one_week",
Expand Down

0 comments on commit 2819002

Please sign in to comment.