-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min/maxRendererPoolSizes in config have no effect #1072
Comments
Update: same effect when using source direct without docker |
I tested the current code a bit yesterday and like you said it does seem to pass those values on... I'm not sure why it would still be limited to 4 cpu though. |
Could it be related to UV_THREADPOOL_SIZE https://github.com/maptiler/tileserver-gl/blob/master/src/server.js#L5 you think? |
i have narrowed it down to maplibre native so, ok, our data and style was not well optimized and with changes to both we could improve performance notably From a DevOps perspective then the "issue" remaining is a bit the question how to optimise the system for high load scenarios to fit your hardware as we seem to have |
at least we could add some hint this into documentation |
Looking for information on UV_THREADPOOL_SIZE I found this 2020 thread #489 that indicates maybe it isn't working and setting it externally or moving this code to main.js could help |
Did you ever get a chance to see if setting UV_THREADPOOL_SIZE environment variable elsewhere helped at all? |
Sorry for the late reply, as we changed data last year to optimize all it was harder to reproduce. But with release 4.10s Raster 512px its easier to test the effect as those are slower than the 256px. Long story short
|
I'm using docker, tileserver version 4.6.5 and am serving vector and raster
Investigating slow raster performance i saw in htop that max 4 cpu cores are used. Changing min/maxRendererPoolSizes don't have an effect on this, no matter what i enter as value. Changing other options like maxScaleFactor increase from 3 to 4 works, only the renderers seem to use defaults
(also changing docker runtime like "docker update --cpus 8 containerid" doesn't do any difference)
It seems that the config options doesn't get to
https://github.com/maptiler/tileserver-gl/blob/master/src/serve_rendered.js#L1604C36-L1604C56
What am i missing ?
my config.json
{
"options": {
"paths": {
"fonts": "fonts",
"styles": "styles",
"sprites": "sprites",
"mbtiles": ""
},
"maxScaleFactor": 3,
"maxSize": 2048,
"minRendererPoolSizes": [16,8,8],
"maxRendererPoolSizes": [32,16,8],
"tileMargin": 30
},
"styles": {
...
The text was updated successfully, but these errors were encountered: