Nginx exposes a couple of variables [1] when tcpinfo is available on a system.
These variables may be worth looking into as they might provide input for tuning the options at request-time.
- The rewrite deadline, when rount trip times are large it may make sense to spend more time optimizing before sending a response.
- Switch to OptimizeForBandwidth/scale image compression settings
But some expirimentation is needed to determine if/how this works in practice.
The single barrier for people to experiment with this right now is that the suggested settings above are not "scriptable" (like LoadFromFile) [2].
If we could do that, the rest would probably just boil down to experimentation and documentation.
So now I'm wondering what would be against opening up scripting to all directory-scoped options?
One thing is that the document should state that people need to constrain the inputs for security reasons (which it already does for LoadFromFile).
Does anyone have any other objections or ideas?
[1] $tcpinfo_rtt, $tcpinfo_rttvar, $tcpinfo_snd_cwnd, $tcpinfo_rcv_space