Skip to content

Gauge - there is livesum and all but what about sum? #793

@nkov

Description

@nkov

I have a multi-process application where multiple processes are used to track a single value. For instance, lets say I have 3 processes: A, B, and C behind a load balancer.

A receives a request to increment the Gauge: A = 1, B = 0, C = 0
B receives a request to decrement the Gauge: A = 1, B = -1, C = 0

So using livesum, my current gauge value is 0 (as expected). However, what would happen if B suddenly needs to terminate (eg. due to auto-scaling) or restart (due to a crash, memory management, etc.)? How does the client handle this? Do I assume correctly that the Gauge will now show the incorrect value of 1, because "live sum" only considers the living processes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions