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

Routing engine import should set engine status #27

Open
mvl22 opened this issue Dec 9, 2020 · 2 comments
Open

Routing engine import should set engine status #27

mvl22 opened this issue Dec 9, 2020 · 2 comments
Assignees

Comments

@mvl22
Copy link
Member

mvl22 commented Dec 9, 2020

An import currently sets the response to have an error status of: Routing service unavailable.

This should be changed to: Data update in progress, which would enable load balancing or other checking systems to detect a known state.

@si-the-pie
Copy link
Member

During restart of the routing service, V1 of the journey planner API does in fact return the error text: Data refresh in progress; please try again shortly, 503 HTTP and Status headers, and a Retry-After: 30 header.

However restarting the routing service takes only about 20 minues which is short compared with the many hours it takes to install the routing database on a target machine. The install is disk and cpu intensive and causes significant performance degradation, especially if the server is busy or is a VM on a busy host. What is needed is a method of diverting routing away from the target machine at the loadbalancers for the whole several hours duration of the installation.

@mvl22
Copy link
Member Author

mvl22 commented Dec 10, 2020

However restarting the routing service takes only about 20 minutes which is short compared with the many hours it takes to install the routing database on a target machine.

Yes, this is specifically the thing that needs to be changed to have the message appear throughout rather than just the first bit.

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

No branches or pull requests

2 participants