bulk_indexing

bulk_indexing #

CategoryScope
Elasticsearchpipeline

Configuration #

FieldTypeDefaultDescription
num_of_slicesint1Number of slices the work is split into.
sliceslistintNumber of parallel slices.
document_level_slicingboolSlice batches at document level instead of offset level.
idle_timeout_in_secondsint5Seconds of inactivity before a worker parks.
max_connection_per_nodeint1Connection pool size per host.
queuesmapQueue names to consume from.
queue_selectorqueue.QueueSelectorLabel selector that picks queues by their tags (ALL pairs must match).
consumerqueue.ConsumerConfigNested consumer settings (group, labels, auto_reset_offset, …) applied on top of the shared registry config.
max_worker_sizeint10Upper bound for the worker count.
double_check_offset_before_bulkboolRe-verify the offset before committing it after a bulk.
detect_active_queuebooltrueOnly pick up queues that have pending messages.
verbose_bulk_resultboolfalseInclude per-item results in the logs.
detect_intervalint5000How often to probe for new queues.
valid_requestboolfalseRequest validator; matching requests are considered valid.
skip_empty_queuebooltrueAdvance to the next queue or segment when this one is empty.
skip_info_missingboolfalseSkip events whose required metadata is missing instead of failing them.
log_bulk_errorbooltrueLog the bulk response body when items fail.
bulkelastic.BulkProcessorConfigNested bulk-processor settings of the Elasticsearch client (batch size, flush, retry policy).
elasticsearchstringID of the registered Elasticsearch/Easysearch cluster.
elasticsearch_config*elastic.ElasticsearchConfigInline Elasticsearch connection settings, used instead of a registered cluster ID.
waiting_afterliststringPause after finishing a sweep before the next one.
retry_delay_intervalint5000Delay between retries.

Example #

processor:
  - bulk_indexing:
      num_of_slices: 10
      slices: []
      document_level_slicing: true
      idle_timeout_in_seconds: 10
      max_connection_per_node: 10
Edit Edit this page