consumer

consumer #

CategoryScope
Queuepipeline

Configuration #

FieldTypeDefaultDescription
num_of_slicesint1Number of slices the work is split into.
sliceslistintNumber of parallel slices.
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).
force_queue_typestringForce the created queue to this type.
consumer*queue.ConsumerConfigNested consumer settings (group, labels, auto_reset_offset, …) applied on top of the shared registry config.
max_worker_sizeint1Upper bound for the worker count.
detect_active_queuebooltrueOnly pick up queues that have pending messages.
detect_intervalint5000How often to probe for new queues.
quite_detect_after_idle_in_msint30000Stop detecting new queues after this many milliseconds of idleness.
processorlist (processor configs)Ordered sub-chain of processors executed per record.
skip_empty_queueboolfalseAdvance to the next queue or segment when this one is empty.
quit_on_eof_queuebooltrueStop consuming when the queue reaches its end.
quit_need_tagboolneed tag to quit, or wait for timeout
quit_need_tag_namestringneed tag to quit, or wait for timeout
queue_name_fieldstring“queue_name”Field that receives the queue name.
message_fieldstring“messages”Context key holding the message batch.
waiting_afterliststringPause after finishing a sweep before the next one.
retry_delay_intervalint5000Delay between retries.
auto_commit_offsetbooltrueCommit consumed offsets automatically.

Example #

processor:
  - consumer:
      queue: log_queue
      consumer:
        labels:
          topic: nginx
        auto_reset_offset: earliest
Edit Edit this page