cloudflare / cloudflare/pingora

Support observe backend health status

Open
#225 0 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
27.4k
Forks
1.7k
Avg merge
6h 22m
Merged PRs (30d)
3

Description

## What is the problem your feature solves, or the need it fulfills?

I want to get the status change of backend, and send a notification. Now it only prints a warn log. https://github.com/cloudflare/pingora/blob/main/pingora-load-balancing/src/lib.rs#L229, I can get status change from logger.
Is it possible to support callback function to observe it?

## Describe the solution you'd like

Supports to set callbacks like `TlsAcceptCallbacks`.

## Describe alternatives you've considered

What other solutions, features, or workarounds have you considered that might also solve the issue?
What are the tradeoffs for these alternatives compared to what you're proposing?

## Additional context

This could include references to documentation or papers, prior art, screenshots, or benchmark
results.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.