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

AJAX raises a 502 when loading point layer with many features #33

Open
nesnoj opened this issue Jun 1, 2023 · 1 comment
Open

AJAX raises a 502 when loading point layer with many features #33

nesnoj opened this issue Jun 1, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nesnoj
Copy link
Member

nesnoj commented Jun 1, 2023

Layer: pv_roof-top_pv_plants_2035 (gpkg: 113 MB)
Other point layers do work though.
Error:
image

@nesnoj nesnoj added the bug Something isn't working label Jun 1, 2023
@nesnoj nesnoj changed the title Point layer with many features raises a 502 AJAX raises a 502 when loading point layer with many features Jun 1, 2023
@finnus
Copy link
Contributor

finnus commented Jun 26, 2023

We run into a gunicorn timeout here, when trying to fetch the corresponding url at https://egon.rl-institut.de/map/clusters/pv_roof-top_pv_plants_2035.geojson

Current solution: We decreased the number of PV plants by increasing the barrier to 0,13 MW (instead of 0,1) per plant.

We might still want to increase the gunicorn timeout. That can be done by adding --timeout 60 when running gunicorn.
We probably can simple change line 11 in /compose/production/django/start from
/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app
to
/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app --timeout 60
(current timeout is at 30s).

But it might be a better idea to investigate why the query take so long.

@finnus finnus assigned finnus and unassigned henhuy Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants