mod_tile
mod_tile copied to clipboard
get_load_avg is invalid
This issue is related to question.
get_load_avg on linux:
FILE *loadavg = fopen("/proc/loadavg", "r");
fscanf(loadavg, "%lf", &avg);
return avg;
Renderer will sleep because he used a lot of cpu time by itself. This is funny, please fix it.
Thank you.
As I understand it, the load check makes sure that there is enough capacity on the machine to generate missing tiles with low latency. This check only applies to existing or low-priority tiles.
If you don't like this behavior, you can modify the max-load flag as proposed in the SO answer.
What is invalid about this?
As described in this issue, there isn't a bug. mod_tile sheds loads at the thresholds you define for ModTileMaxLoadOld and ModTileMaxLoadMissing by stopping re-rendering old tiles and stopping rendering missing tiles respectively.
What is odd is that render_list does the same, but because it doesn't have an apache config to load, it defaults the the hard-coded defaults, which are really too low on a modern high thread server.