Skip to content

Commit

Permalink
chore: bump seed timeout (#2911)
Browse files Browse the repository at this point in the history
* chore: bump seed timeout

- from about 4 seconds to about 30 seconds

* chore: remove depth bump on callWithRetry

* feat: use healthcheck instead of increasing seed timeout

* feat: use more direct apollo server healthcheck

* feat(localenv): fine-tune healthcheck interval

* chore: bump backend healthcheck start period

* fix(localenv): adjust healthcheck params
  • Loading branch information
BlairCurrey authored Sep 16, 2024
1 parent 230ac21 commit 86e0a96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
10 changes: 9 additions & 1 deletion localenv/cloud-nine-wallet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ services:
- ../cloud-nine-wallet/seed.yml:/workspace/seed.yml
- ../cloud-nine-wallet/private-key.pem:/workspace/private-key.pem
depends_on:
- cloud-nine-backend
cloud-nine-backend:
condition: service_healthy
cloud-nine-backend:
hostname: cloud-nine-wallet-backend
image: rafiki-backend
Expand Down Expand Up @@ -78,6 +79,13 @@ services:
depends_on:
- shared-database
- shared-redis
healthcheck:
test: ["CMD", "wget", "--header=apollo-require-preflight: true", "http://localhost:3001/graphql?query=%7B__typename%7D", "-O", "/dev/null"]
start_period: 60s
start_interval: 5s
interval: 30s
retries: 1
timeout: 3s
cloud-nine-auth:
hostname: cloud-nine-wallet-auth
image: rafiki-auth
Expand Down
13 changes: 11 additions & 2 deletions localenv/happy-life-bank/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ services:
- ../happy-life-bank/seed.yml:/workspace/seed.yml
- ../happy-life-bank/private-key.pem:/workspace/private-key.pem
depends_on:
- cloud-nine-mock-ase
- happy-life-backend
happy-life-backend:
condition: service_healthy
cloud-nine-mock-ase:
condition: service_started
happy-life-backend:
hostname: happy-life-bank-backend
image: rafiki-backend
Expand Down Expand Up @@ -69,6 +71,13 @@ services:
KEY_ID: 53f2d913-e98a-40b9-b270-372d0547f23d
depends_on:
- cloud-nine-backend
healthcheck:
test: ["CMD", "wget", "--header=apollo-require-preflight: true", "http://localhost:3001/graphql?query=%7B__typename%7D", "-O", "/dev/null"]
start_period: 60s
start_interval: 5s
interval: 30s
retries: 1
timeout: 3s
happy-life-auth:
hostname: happy-life-bank-auth
image: rafiki-auth
Expand Down

0 comments on commit 86e0a96

Please sign in to comment.