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

Limit resources for basemap generation & replace go binaries with external microservice #2177

Open
2 tasks
spwoodcock opened this issue Feb 11, 2025 · 0 comments
Labels
backend Related to backend code effort:medium Likely a day or two enhancement New feature or request priority:low Backlog of tasks that will be addressed in time

Comments

@spwoodcock
Copy link
Member

spwoodcock commented Feb 11, 2025

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

  • Optimise number of workers for tilepack binary (a command line flag).
  • In the long run integrate https://github.com/hotosm/basemap-api instead of running the binaries directly in the FastAPI container.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context

  • This shouldn't be as much of an issue on servers with multiple API replicas and resource constraints.
  • fmtm.hotosm.org prod is deployed with 4 replicas, 1.5GB RAM each, so should be fine for now.
  • To use this type of setup, use the compose.main.yaml file, plus tweak the API_REPLICAS as needed (default 4).
@spwoodcock spwoodcock added backend Related to backend code effort:medium Likely a day or two enhancement New feature or request priority:low Backlog of tasks that will be addressed in time labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code effort:medium Likely a day or two enhancement New feature or request priority:low Backlog of tasks that will be addressed in time
Projects
Development

No branches or pull requests

1 participant