Interface HibernateSearchBackendElasticsearchRuntimeConfig.IndexingConfig
- Enclosing interface:
- HibernateSearchBackendElasticsearchRuntimeConfig
public static interface HibernateSearchBackendElasticsearchRuntimeConfig.IndexingConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe maximum size of bulk requests created when processing indexing queues.The number of indexing queues assigned to each index.The size of indexing queues.
-
Method Details
-
queueCount
The number of indexing queues assigned to each index. Higher values will lead to more connections being used in parallel, which may lead to higher indexing throughput, but incurs a risk of overloading Elasticsearch, i.e. of overflowing its HTTP request buffers and tripping https://www.elastic.co/guide/en/elasticsearch/reference/7.9/circuit-breaker.html[circuit breakers], leading to Elasticsearch giving up on some request and resulting in indexing failures. -
queueSize
The size of indexing queues. Lower values may lead to lower memory usage, especially if there are many queues, but values that are too low will reduce the likeliness of reaching the max bulk size and increase the likeliness of application threads blocking because the queue is full, which may lead to lower indexing throughput. -
maxBulkSize
The maximum size of bulk requests created when processing indexing queues. Higher values will lead to more documents being sent in each HTTP request sent to Elasticsearch, which may lead to higher indexing throughput, but incurs a risk of overloading Elasticsearch, i.e. of overflowing its HTTP request buffers and tripping https://www.elastic.co/guide/en/elasticsearch/reference/7.9/circuit-breaker.html[circuit breakers], leading to Elasticsearch giving up on some request and resulting in indexing failures. Note that raising this number above the queue size has no effect, as bulks cannot include more requests than are contained in the queue.
-