Skip to content

Vector aggregator fails to reconnect after NATS lame duck mode #82

@scotwells

Description

@scotwells

Problem

The Vector aggregator deployment gets stuck and never reconnects to the NATS server after the NATS server enters lame duck mode. The error message observed is:

lame duck mode detected

Impact

  • Activity processing pipeline stops working
  • Audit logs and events are not processed until Vector pods are manually restarted
  • Requires manual intervention to restore functionality

Expected Behavior

Vector should automatically reconnect to the NATS server after it exits lame duck mode or switches to a new leader.

Investigation Areas

  1. Vector NATS source configuration - reconnection settings
  2. NATS client library behavior in lame duck mode
  3. Kubernetes deployment/liveness probe configuration
  4. Potential need for connection retry logic or pod restart policy

Reproduction

Occurs when NATS server enters lame duck mode (e.g., during rolling updates or node drains).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions