centrifugal / centrifugo

Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably. Set up once and forever.
https://centrifugal.dev
Apache License 2.0
8.45k stars 598 forks source link

Add client_channel_position_max_time_lag option and centrifugo_node_pub_sub_time_lag_seconds metric #821

Closed FZambia closed 6 months ago

FZambia commented 6 months ago

Proposed changes

Introducing client_channel_position_max_time_lag duration option to mark positioned clients with insufficient state if publication lag exceeds threshold.

Also latest Centrifuge added a histogram centrifugo_node_pub_sub_time_lag_seconds to monitor the time lag - time since publish till processing in Node's hub.