Skip to content

Commit

Permalink
Adjust startup probe to adapt to slower indexing
Browse files Browse the repository at this point in the history
No idea why it's slow yet, but we need to at least work before we can
investigate further.
  • Loading branch information
yrodiere committed Nov 27, 2024
1 parent f3c3719 commit c0c242c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ quarkusio.localized.ja.git-uri=https://github.com/quarkusio/ja.quarkus.io.git
########################
fetching.parallelism=8
fetching.timeout=10m
indexing.timeout=5m
indexing.timeout=10m
# Index at 00:00 UTC every day
# The time was selected to minimize impact on users:
# In winter this would be: Paris 01:00, New Delhi: 05:30, New York: 19:00, Beijing: 08:00, Los Angeles: 16:00
Expand Down Expand Up @@ -213,12 +213,11 @@ quarkus.openshift.env.vars.QUARKUS_PROFILE=prod
quarkus.openshift.env.vars.INDEXING_QUEUE_COUNT=${INDEXING_QUEUE_COUNT}
quarkus.openshift.env.vars.INDEXING_BULK_SIZE=${INDEXING_BULK_SIZE}
# Initial indexing may take a while, especially the quarkus.io Git cloning
# Tests indicate it can take ~240s in prod,
# Tests indicate the whole process can take ~5M in prod,
# so we'll use 3 times as much as the limit, to allow for 3 attempts.
# 15S * 48 = 720S = 240S * 3
quarkus.openshift.startup-probe.initial-delay=30S
quarkus.openshift.startup-probe.period=15S
quarkus.openshift.startup-probe.failure-threshold=48
quarkus.openshift.startup-probe.initial-delay=2M
quarkus.openshift.startup-probe.period=1M
quarkus.openshift.startup-probe.failure-threshold=15
# Declare the management port on the service
quarkus.openshift.ports."management".container-port=9000
quarkus.openshift.ports."management".host-port=90
Expand Down

0 comments on commit c0c242c

Please sign in to comment.