Skip to content

Commit

Permalink
Revert "Reduce the queue count and bulk size in dev/prod"
Browse files Browse the repository at this point in the history
This reverts commit 06f3b5f.
  • Loading branch information
yrodiere committed Nov 27, 2024
1 parent a693bb2 commit f3c3719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/helm/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app:
envs:
QUARKUS_PROFILE: 'staging'
# Avoid overloading the rather resource-constrained Search backend instance
INDEXING_QUEUE_COUNT: '4'
INDEXING_QUEUE_COUNT: '6'
INDEXING_BULK_SIZE: '10'
resources:
limits:
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ quarkus.hibernate-search-standalone.elasticsearch.version=${maven.distribution.s
quarkus.elasticsearch.devservices.image-name=${maven.name.search.backend}:${maven.version.search.backend}
quarkus.elasticsearch.devservices.java-opts=${PROD_ES_JAVA_OPTS}
# Limit parallelism of indexing, because the search backend can only handle so many documents in its buffers.
# This leads to at most 8*20=160 documents being indexed in parallel, which should be plenty
# This leads to at most 12*20=240 documents being indexed in parallel, which should be plenty
# given how large our documents can be.
INDEXING_QUEUE_COUNT=8
INDEXING_QUEUE_COUNT=12
INDEXING_BULK_SIZE=20
quarkus.hibernate-search-standalone.elasticsearch.indexing.queue-count=${INDEXING_QUEUE_COUNT}
quarkus.hibernate-search-standalone.elasticsearch.indexing.max-bulk-size=${INDEXING_BULK_SIZE}
Expand Down

0 comments on commit f3c3719

Please sign in to comment.