cloudflare/pingora
A library for building fast, reliable and evolvable network services.
https://skillcdn.ai/gh/cloudflare/pingoraConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
4aa2e5a - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- ConfigurationA Pingora configuration file is a list of Pingora settings in yaml format.docs/user_guide/conf.md
- Sharing state across phases with `CTX`The custom filters users implement in different phases of the request don't interact with each other directly. In order to share information and state across the filters, users can define a CTX struc…docs/user_guide/ctx.md
- DaemonizationWhen a Pingora server is configured to run as a daemon, after its bootstrapping, it will move itself to the background and optionally change to run under the configured user and group. The pid_file o…docs/user_guide/daemon.md
- Error loggingPingora libraries are built to expect issues like disconnects, timeouts and invalid inputs from the network. A common way to record these issues are to output them in error log (STDERR or log files).docs/user_guide/error_log.md
- How to return errorsFor easy error handling, the pingora-error crate exports a custom Result type used throughout other Pingora crates.docs/user_guide/errors.md
- Handling failures and failoverPingora-proxy allows users to define how to handle failures throughout the life of a proxied request.docs/user_guide/failover.md
- Graceful restart and shutdownGraceful restart, upgrade, and shutdown mechanisms are very commonly used to avoid errors or downtime when releasing new versions of Pingora servers.docs/user_guide/graceful.md
- User GuideIn this guide, we will cover the most used features, operations and settings of Pingora.docs/user_guide/index.md
- Pingora Internals(Special thanks to James Munns for writing this section)docs/user_guide/internals.md
- Examples: taking control of the requestIn this section we will go through how to route, modify or reject requests.docs/user_guide/modify_filter.md
- Handling panicsAny panic that happens to particular requests does not affect other ongoing requests or the server's ability to handle other requests. Sockets acquired by the panicking requests are dropped (closed).…docs/user_guide/panic.md
- `Peer`: how to connect to upstreamIn the upstream_peer() phase the user should return a Peer object which defines how to connect to a certain upstream.docs/user_guide/peer.md
- Life of a request: pingora-proxy phases and filtersThe pingora-proxy HTTP proxy framework supports highly programmable proxy behaviors. This is done by allowing users to inject custom logic into different phases (stages) in the life of a request.docs/user_guide/phase.md
- phase_chart.mdPingora proxy phases without cachingdocs/user_guide/phase_chart.md
- Connection pooling and reuseWhen the request to a Peer (upstream server) is finished, the connection to that peer is kept alive and added to a connection pool to be reused by subsequent requests. This happens automatically with…docs/user_guide/pooling.md
- PrometheusThe pingora-prometheus crate provides a Prometheus HTTP metrics server for scraping.docs/user_guide/prom.md
- **RateLimiter quickstart**Pingora provides a crate pingora-limits which provides a simple and easy to use rate limiter for your application. Below is an example of how you can use Rate to create an application that uses multi…docs/user_guide/rate_limiter.md
- Runtime groupsBy default, every service runs on a Tokio runtime of its own, with the number of worker threads from threads in the configuration or from the service's own setting. A server with several busy service…docs/user_guide/runtime_groups.md
- Starting and stopping Pingora serverA pingora server is a regular unprivileged multithreaded process.docs/user_guide/start_stop.md
- Systemd integrationA Pingora server doesn't depend on systemd but it can easily be made into a systemd service.docs/user_guide/systemd.md