Open Kotaimen opened 9 years ago
landuse_gen2
cache-features
layer options, disables it fixes the problem but migrates the huge stress on the database (and pgbouncer
)Current setup:
It seems mapnik's async postgis datasource connection pool won't drop idle async connection before a render is completed. When database load is high, large query take several minutes to complete, if one of the async connection is blocked due to pgbouncer server pool size limit, entire render is blocked:
pgbouncer=# SHOW POOLS;
database | user | cl_active | cl_waiting | sv_active | sv_idle | sv_used | sv_tested | sv_login | maxwait
-----------+-----------+-----------+------------+-----------+---------+---------+-----------+----------+---------
imposm3 | postgres | 54 | 15 | 40 | 0 | 1 | 0 | 0 | 0
pgbouncer | pgbouncer | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0
(2 rows)
Solution:
Currently i'm using 3 as temporary solution. Need to test 1. and 2.
@GlieseRay: any ideas?