Skip to content

Commit

Permalink
boost hasura-proxy Fargate container CPU / memory (staging) (#4076)
Browse files Browse the repository at this point in the history
  • Loading branch information
freemvmt authored Dec 12, 2024
1 parent 43592f4 commit 891edc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions infrastructure/application/Pulumi.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ config:
secure: AAABAHfDtVpAD8w32yINWTjgvuRQixWXYFf3/rEcyh59/pRSz+J4ZYCXNq5jqBiIXM2emB+7zOY=
application:hasura-cpu: "512"
application:hasura-memory: "2048"
application:hasura-proxy-cpu: "512"
application:hasura-proxy-memory: "2048"
application:hasura-planx-api-key:
secure: AAABAExsXFL7HabeK0Z1oSUJzI2NqVqEmKJ1ojYXyX4Hi8Sbt1Ht9QJc/Yn3cPBAB2r32HKa4HtqqLmfGjS+04lFB/I=
application:idox-nexus-client:
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/application/Pulumi.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ config:
secure: AAABAHsoh7ZNkr6ep3xXsUZpp/JIjshBX+tJ0KOFgGnJ4wxR0oIcB6VewVDuwSyFJRVix72YahM=
application:hasura-cpu: "512"
application:hasura-memory: "2048"
application:hasura-proxy-cpu: "512"
application:hasura-proxy-memory: "2048"
application:hasura-planx-api-key:
secure: AAABANHLs3ItPxkteh0chwMP2bKuHO3ovuRLi4FsIrCqerzXVIaTLFDqNR+4KBTeMPz4cnF5tCTwsrJv9GruZdXU+lg=
application:idox-nexus-client:
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/application/services/hasura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export const createHasuraService = async ({
containers: {
hasuraProxy: {
image: repo.buildAndPushImage("../../hasura.planx.uk/proxy"),
memory: 1024 /*MB*/,
cpu: config.requireNumber("hasura-proxy-cpu"),
memory: config.requireNumber("hasura-proxy-memory"),
portMappings: [hasuraListenerHttp],
environment: [
{ name: "HASURA_PROXY_PORT", value: String(HASURA_PROXY_PORT) },
Expand Down

0 comments on commit 891edc1

Please sign in to comment.