You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am suspicious of how long ago this may have started - perhaps long before our K8s upgrade? See #539 for an example of where existing data is dense enough to possibly obfuscate missing tiles.
@jeffreyameyer thank you for the ticket. This is weird but I'm pretty sure it's because of the size of the 10/165/397 tile — it's 10MB. MVT should ideally be less than 500k
In this particular case, I'm pretty sure it's because we try to surface San Jose all the way to admin 8.
It may be a good moment to revisit our admin area tiling schema.
@jeffreyameyer@geohacker, the issue seems to have originated from the cache cleaner. I've manually cleared the cache, and everything is functioning properly now. It appears that since we transitioned to a smaller node compared to our previous infrastructure, the cache cleaning process is taking longer. but server and database is working fine, A potential solution would be to add an additional cache-clenaer pod during periods of increased workload.
Very cool - I had missed the tile division button before!
Agreed on the filtering - it appears the curve from z=7 (120kb) to z=8
(7.5mb) to z=9 (18MB) is quite... steep?
[image: Monosnap Vue App 2023-08-09 09-58-27.png]
[image: Monosnap Vue App 2023-08-09 09-59-24.png]
[image: Monosnap Vue App 2023-08-09 10-01-31.png]
and then things drop down a bit, but not enough, at z=10 (10.7mb)
[image: Monosnap Vue App 2023-08-09 10-04-35.png]
So... clearly we need to tune things a bit.
2 questions:
a) do we have any way of monitoring when tiles exceed size limits?
b) are we limited in tile size by our tile server & if so, do other servers
have higher limits?
Thank you for trying the cache @Rub21! Perfect. Let's make sure the cache cleaner pod has more resources and can perform the tile invalidations minutely.
a) do we have any way of monitoring when tiles exceed size limits?
@jeffreyameyer not really. This will be case by case. It will be mostly because of admin boundaries — those are large polygons that affect multiple zooms
are we limited in tile size by our tile server & if so, do other servers
have higher limits?
The tile size limit is not specific to a tile server. It's at the tile specification level. Mapbox Vector Tiles are expected to be 500kb. We do have larger tiles and style them but at some point they will be problematic.
@batpad@jeffreyameyer , I have just deployed our latest approach of removing tegola process when there are a lot concurrency of tegola cache cleaner and remove the s3 files direct form the bucket, until we find a better approach for this issue. the tiles should be updated soon enough.
@Rub21@batpad I think we should change our approach to tile cache clearance and scale that reliably. My recommendation is to move away from single tile clearance to using the batch option. This means:
I think the imposm expire list should be in the same format but we should confirm @Rub21.
Then we can provide more resources for the pod and the cache clearance should be more reliable.
@Rub21 are you able to start a PR for this change? Thank you!
@geohacker , We are currently utilizing the tegola cache purge tile-list command to manage cache purging. The script can be found in the OHM-Deploy repository, OHM-Deploy GitHub Link.
The issue of high concurrency isn't constant but occurs only when there are large and many editions. Scaling resources vertically would be a more expensive for this issue Therefore, Sanjay and I we have been talking about to implement horizontal pod autoscaling using the Elastic File System (EFS). This will allow it to synchronize the tile list is managed by a separate cache-cleaner pod. By doing so, we can dynamically increase the number of nodes and pods during peak periods. Like we are doing for the web container.
Activity
batpad commentedon Aug 9, 2023
cc @geohacker @Rub21
geohacker commentedon Aug 9, 2023
@jeffreyameyer thank you for the ticket. This is weird but I'm pretty sure it's because of the size of the 10/165/397 tile — it's 10MB. MVT should ideally be less than 500k

In this particular case, I'm pretty sure it's because we try to surface San Jose all the way to admin 8.
It may be a good moment to revisit our admin area tiling schema.
geohacker commentedon Aug 9, 2023
That theory doesn't hold well for 11/330/792 for example.
Rub21 commentedon Aug 9, 2023
@jeffreyameyer @geohacker, the issue seems to have originated from the cache cleaner. I've manually cleared the cache, and everything is functioning properly now. It appears that since we transitioned to a smaller node compared to our previous infrastructure, the cache cleaning process is taking longer. but server and database is working fine, A potential solution would be to add an additional cache-clenaer pod during periods of increased workload.
jeffreyameyer commentedon Aug 9, 2023
geohacker commentedon Aug 10, 2023
Thank you for trying the cache @Rub21! Perfect. Let's make sure the cache cleaner pod has more resources and can perform the tile invalidations minutely.
@jeffreyameyer not really. This will be case by case. It will be mostly because of admin boundaries — those are large polygons that affect multiple zooms
The tile size limit is not specific to a tile server. It's at the tile specification level. Mapbox Vector Tiles are expected to be 500kb. We do have larger tiles and style them but at some point they will be problematic.
jeffreyameyer commentedon Aug 17, 2023
Vtiles not updating again. Is this cache-related, as well? @1ec5
jeffreyameyer commentedon Aug 30, 2023
Hi @Rub21 - it looks like the vtiles are not updating again. Did we get any monitoring alerts?
Rub21 commentedon Aug 31, 2023
@batpad @jeffreyameyer , I have just deployed our latest approach of removing tegola process when there are a lot concurrency of tegola cache cleaner and remove the s3 files direct form the bucket, until we find a better approach for this issue. the tiles should be updated soon enough.
geohacker commentedon Sep 1, 2023
@Rub21 @batpad I think we should change our approach to tile cache clearance and scale that reliably. My recommendation is to move away from single tile clearance to using the batch option. This means:
tegola purgeper tile id here https://github.com/developmentseed/osm-seed/blob/develop/images/tiler-server/seed-by-diffs.sh#L32-L59 — we switch totegola cache purge tile-list expired_tiles.txtI think the imposm expire list should be in the same format but we should confirm @Rub21.
Then we can provide more resources for the pod and the cache clearance should be more reliable.
@Rub21 are you able to start a PR for this change? Thank you!
Rub21 commentedon Sep 4, 2023
@geohacker , We are currently utilizing the
tegola cache purge tile-listcommand to manage cache purging. The script can be found in the OHM-Deploy repository, OHM-Deploy GitHub Link.The issue of high concurrency isn't constant but occurs only when there are large and many editions. Scaling resources vertically would be a more expensive for this issue Therefore, Sanjay and I we have been talking about to implement horizontal pod autoscaling using the Elastic File System (EFS). This will allow it to synchronize the tile list is managed by a separate cache-cleaner pod. By doing so, we can dynamically increase the number of nodes and pods during peak periods. Like we are doing for the web container.
Rub21 commentedon Mar 26, 2025
Closing this issue, since this is not happening any more.