Skip to content

Commit

Permalink
IBX-3863: Parametrized Solr HTTP Client timeout and max retries
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Sep 19, 2022
1 parent 1bdfc7c commit 5c77089
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Resources/config/container/solr/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }
Expand All @@ -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
Expand Down

0 comments on commit 5c77089

Please sign in to comment.