From c0c242cb50e553fea13027009680e437ff20f972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 27 Nov 2024 15:14:05 +0100 Subject: [PATCH] Adjust startup probe to adapt to slower indexing No idea why it's slow yet, but we need to at least work before we can investigate further. --- src/main/resources/application.properties | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8979c9a..1155c91 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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 @@ -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