Skip to content

Commit b0e46c9

Browse files
authored
Suggest 1s Postgres service healthcheck interval
1 parent 55357fa commit b0e46c9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ jobs:
6464
# Set health checks to wait until postgres has started
6565
options: >-
6666
--health-cmd pg_isready
67-
--health-interval 10s
68-
--health-timeout 5s
69-
--health-retries 5
67+
--health-interval 1s
68+
--health-timeout 1s
69+
--health-retries 30
7070
7171
steps:
7272
# Downloads a copy of the code in your repository before running CI tests
@@ -117,9 +117,9 @@ jobs:
117117
# Set health checks to wait until postgres has started
118118
options: >-
119119
--health-cmd pg_isready
120-
--health-interval 10s
121-
--health-timeout 5s
122-
--health-retries 5
120+
--health-interval 1s
121+
--health-timeout 1s
122+
--health-retries 30
123123
```
124124
125125
### Configuring the steps for jobs in containers
@@ -182,9 +182,9 @@ jobs:
182182
# Set health checks to wait until postgres has started
183183
options: >-
184184
--health-cmd pg_isready
185-
--health-interval 10s
186-
--health-timeout 5s
187-
--health-retries 5
185+
--health-interval 1s
186+
--health-timeout 1s
187+
--health-retries 30
188188
ports:
189189
# Maps tcp port 5432 on service container to the host
190190
- 5432:5432
@@ -239,9 +239,9 @@ jobs:
239239
# Set health checks to wait until postgres has started
240240
options: >-
241241
--health-cmd pg_isready
242-
--health-interval 10s
243-
--health-timeout 5s
244-
--health-retries 5
242+
--health-interval 1s
243+
--health-timeout 1s
244+
--health-retries 30
245245
ports:
246246
# Maps tcp port 5432 on service container to the host
247247
- 5432:5432

0 commit comments

Comments
 (0)