Tree Xie
Tree Xie
Does your pingap and nginx test result on the same machine? Please show me you cpu.
Simple response ping -> pong. Without access log: ```bash wrk -c 50 -t 4 -d 30s http://127.0.0.1:6188/ping Running 30s test @ http://127.0.0.1:6188/ping 4 threads and 50 connections Thread Stats Avg...
Pingora append log without buffer: https://github.com/cloudflare/pingora/blob/main/pingora-core/src/server/daemon.rs#L65. I use a buffer writer for append log like this: ```rust let file = OpenOptions::new() .append(true) .create(true) // open read() in case there are...
Run `make build-web` to generate the admin asset.
The base implementation mainly depends on pingora, and TinyUFO may be used later. https://github.com/cloudflare/pingora/issues/212#issuecomment-2067694782
You can use `session.respond_error` like this: https://github.com/cloudflare/pingora/blob/main/pingora-proxy/examples/gateway.rs#L42
```rust session.write_response_header(Box::new(header)).await?; session.write_response_body(body).await?; ```
1. `content-length: body_size` and `session.finish_body().await?` 2. chunked response `transfer-encoding: chunked`and `session.finish_body().await?`
After modifying the configuration, stop the old process and start a new one. https://github.com/cloudflare/pingora/blob/main/docs/quick_start.md#gracefully-upgrade-the-service
可设置margin right为更大的值试试。如: ```json "margin": { "left": 5, "top": 5, "right": 50, "bottom": 5 } ```