This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

machines/starkstrom: widen h2 stream window for ipfs uploads

With proxy_request_buffering off, nginx sizes the HTTP/2 per-stream flow
control window to max(client_body_buffer_size, http2_body_preread_size).
The 64 KiB default capped uploads at 64 KiB / 55 ms RTT = 1.2 MB/s while the
backend read slower than the client sent. Set client_body_buffer_size 8m for
the upload location; streaming (no disk spool) and timeouts are unchanged.

+9
+9
machines/starkstrom/ipfs-endpoint.nix
··· 57 57 locations."/".extraConfig = '' 58 58 proxy_pass http://127.0.0.1:8090; 59 59 client_max_body_size 8g; 60 + # Stream multi-GB bodies straight through instead of spooling to disk. 60 61 proxy_request_buffering off; 62 + # With unbuffered proxying over HTTP/2, nginx sizes the per-stream flow 63 + # control window to max(client_body_buffer_size, http2_body_preread_size) 64 + # (ngx_http_v2_read_request_body). The 64 KiB default capped uploads at 65 + # 64 KiB / RTT (~1.2 MB/s at 55 ms) whenever the backend read slower than 66 + # the client sent. 8 MiB in-flight per upload lifts the ceiling to 67 + # ~150 MB/s at that RTT. 68 + client_body_buffer_size 8m; 69 + # The backend hashes/pins for minutes before answering. 61 70 proxy_read_timeout 3600s; 62 71 proxy_send_timeout 3600s; 63 72 '';