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

504 Gateway Timeout on /org/example/servers/example/routes with large number of routes #2513

Open
arthurzenika opened this issue Jun 21, 2023 · 2 comments
Labels

Comments

@arthurzenika
Copy link

Describe the bug

On a setup where postal is deployed with docker-compose and is behind a nginx reverse proxy we get a 504 Gateway Timeout when clicking on the "Routing" link.

When we say we have a large number of routes, on this installation we count 20'000 routes. Server side we see the postal thread eating up a lot of CPU.

To Reproduce

  1. Login to https://postal-example/
  2. Go to https://postal-example/org/example/servers/example/routes
  3. Get a 504 Gateway Timeout

Expected behaviour

A page showing the results or partial results. Maybe pagination would be appropriate in this case.

Screenshots

image

Environment details

  • OS: server side debian + docker-compose
  • Browser: n/a [e.g. chrome, safari]
  • Version 2.1.2
  • Type : desktop

Additional information/context

A way to bypass this is to bypass the nginx, in our case we use ssh -L 5000:localhost:5000 and connect using http://localhost:5000 the page is very long to compute and display but at least we don't get a 504.

@arthurzenika
Copy link
Author

Using the localhost:5000 trick, I get a 10Mo page generated in 8 minutes.

image

@willpower232
Copy link
Collaborator

a niche issue to be sure but I'm surprised to see this, perhaps this page needs pagination adding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants