Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Add consistency support to Health endpoints #35

@ciscopony

Description

@ciscopony

This is a "To-Do" in the current code, I've tested adding:

def ENDPOINT(self, ...
consistency=None):
...
consistency = consistency or self.agent.consistency
if consistency in ('consistent', 'stale'):
params.append((consistency, '1'))
...

To the ENDPOINT=service/checks/state/node blocks and it appears to work, I'd be happy to submit a PR. Having this functionality would help with a performance issue we hit occasionally during cluster leadership changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions