From 5c77089cbe9ff2a93e53f2635f197c7c2817151c Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Mon, 19 Sep 2022 15:41:38 +0200 Subject: [PATCH] IBX-3863: Parametrized Solr HTTP Client timeout and max retries --- lib/Resources/config/container/solr/services.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Resources/config/container/solr/services.yml b/lib/Resources/config/container/solr/services.yml index b26ee95c..58529ab7 100644 --- a/lib/Resources/config/container/solr/services.yml +++ b/lib/Resources/config/container/solr/services.yml @@ -13,6 +13,8 @@ parameters: ezpublish.search.solr.field_mapper.indexing_depth_provider.class: \EzSystems\EzPlatformSolrSearchEngine\FieldMapper\IndexingDepthProvider ezpublish.search.solr.field_mapper.indexing_depth_provider.map: [] ezpublish.search.solr.field_mapper.indexing_depth_provider.default: 0 + ibexa.solr.http_client.timeout: 10 + ibexa.solr.http_client.max_retries: 5 services: ibexa.solr.http_client.retryable: @@ -21,7 +23,7 @@ services: arguments: $client: '@.inner' $strategy: null - $maxRetries: 5 + $maxRetries: '%ibexa.solr.http_client.max_retries%' $logger: '@?logger' tags: - { name: monolog.logger, channel: solr } @@ -39,6 +41,7 @@ services: autoconfigure: true arguments: $client: '@ibexa.solr.http_client' + $timeout: '%ibexa.solr.http_client.timeout%' # Note: services tagged with 'ezpublish.search.solr.query.content.criterion_visitor' # are registered to this one using compilation pass