Skip to content

Collector job on each poller #35

Closed

Description

@somethingwithproof

Summary

One bounded collector per poller reads what is due and keeps the cache consistent.

Requirements

  • REQ-COLL-001 The collector MUST start from poller_bottom through exec_background() and run as one register_process_start() process per poller.
  • REQ-COLL-002 It MUST handle only accounts whose poller matches its own.
  • REQ-COLL-003 It MUST stop starting new work before a time budget below the poller interval.
  • REQ-COLL-004 Each account's work MUST hold a lease, and every write MUST check it.
  • REQ-COLL-005 It MUST read metrics only for enabled Cacti data sources created by the plugin.
  • REQ-COLL-006 Discovery MUST run on its own interval and MUST NOT read metrics.

Acceptance criteria

  • A second collector start exits at once.
  • A run killed mid-account leaves the cache consistent and the next run continues.

References

Dependencies

Activity

  1. somethingwithproof commented on Nov 15, 2026

    @somethingwithproof
    OwnerAuthor

    Done in #81 (merged as b3730b1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: collectionCollector job, discovery, and the observation cachearea: performanceScale and response timephase: 1 coreCore and DigitalOceanpriority: highNeeded for its milestonetype: requirementA testable behavior the plugin must have

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions