Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent: Allow configuring polling interval for data collection #977

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

fordN
Copy link
Contributor

@fordN fordN commented Aug 2, 2024

Background

Indexers should be able to control the frequency of data polling and decision making depending on their business strategy and backend saturation.

Changes

  • Add startup parameter for configuring data collection polling intervals, --polling-interval.
  • Make polling intervals (Eventuals timers) more consistent.

Details

The polling interval sets the request intervals for data as follows:
pollingInterval defaults to 120_000 ms (2 minutes).

  • indexingRules:
    • interval: pollingInterval
    • source: indexer DB
  • activeDeployments:
    • interval: pollingInterval
    • source: graph-node
  • networkDeployments:
    • interval: pollingInterval
    • source: network subgraph
  • activeAllocations:
    • interval: pollingInterval
    • source: network subgraph
  • eligibleTransferDeployments:
    • interval: pollingInterval * 5
    • source: graph-node & network subgraph
  • currentEpoch:
    • interval: pollingInterval * 5
    • source: network subgraph
  • maxAllocationsEpoch:
    • interval: pollingInterval * 5
    • source: contracts (EVM request)

- Also make polling intervals more consistent (Eventuals timers).
@fordN fordN self-assigned this Aug 2, 2024
@fordN fordN added enhancement New feature or request indexer-agent labels Aug 2, 2024
@fordN fordN requested a review from dwerner August 2, 2024 18:53
@fordN fordN merged commit d23197c into main Aug 5, 2024
10 checks passed
@fordN fordN deleted the ford/configurable-request-frequency branch August 5, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request indexer-agent
Projects
Status: 🚗 Merged
Development

Successfully merging this pull request may close these issues.

2 participants