Skip to content
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

Improve locality of tile backend requests #527

Closed
pnorman opened this issue May 7, 2021 · 2 comments
Closed

Improve locality of tile backend requests #527

pnorman opened this issue May 7, 2021 · 2 comments
Labels
help-wanted Issues where help is needed to implement them service:tiles The raster map on tile.openstreetmap.org

Comments

@pnorman
Copy link
Collaborator

pnorman commented May 7, 2021

With the previous CDN all users in a country tended to be routed to the same rendering server. Based on the assumption that users in a country tend to request the same metatiles, this meant that there was a higher chance of a metatile being fresh in the tile store than what we have now, which is weighted round-robin in Europe for high zoom tiles.

Currently we have two lower-end servers in Europe dedicated to zoom 0-12. Higher zooms go to a group of two high capacity and two middle capacity servers which are weighted round-robin.

The rest of the world is not an issue.

  • The service must work with any one server failing, although may be degraded
  • Software development is outside the scope of the OWG and sysadmins
  • Selection needs to be done at the edge in VCL
@pnorman
Copy link
Collaborator Author

pnorman commented May 8, 2021

As an experiment I'm taking (x/8)%2 to assign requests to one of two groups in Europe. This seems to of had an immediate impact.

image

@pnorman pnorman added service:tiles The raster map on tile.openstreetmap.org help-wanted Issues where help is needed to implement them labels May 8, 2021
@pnorman pnorman pinned this issue Jun 4, 2021
@pnorman
Copy link
Collaborator Author

pnorman commented May 19, 2022

The experiment seems to be working. It's good enough, given the constraints above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Issues where help is needed to implement them service:tiles The raster map on tile.openstreetmap.org
Projects
None yet
Development

No branches or pull requests

1 participant