mod_tile icon indicating copy to clipboard operation
mod_tile copied to clipboard

get_load_avg is invalid

Open andrew-aladev opened this issue 8 years ago • 2 comments

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.

andrew-aladev avatar Jun 11 '17 19:06 andrew-aladev

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?

nielsole avatar May 10 '22 18:05 nielsole

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.

pnorman avatar Jun 22 '22 21:06 pnorman