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

"socket hangup" with larger datasets #1202

Open
AnaghaMP opened this issue Dec 11, 2024 · 1 comment
Open

"socket hangup" with larger datasets #1202

AnaghaMP opened this issue Dec 11, 2024 · 1 comment
Labels

Comments

@AnaghaMP
Copy link

I run Vroom and OSRM as separate containers, using the Vroom API to optimize routes. While this works well for small datasets (up to 1500 locations), I encounter "socket hangup" with larger datasets. To address this, I tried precomputing the matrix by directly calling the OSRM container and passing it as part of the Vroom API payload. However, the Vroom API still attempts its call to OSRM, causing further issues. I also tried increasing timeout limits, but this did not solve the problem for larger datasets. Is there a way to completely bypass Vroom's internal OSRM call and force it to use a precomputed matrix? Alternatively, are there better approaches to handle larger datasets effectively, such as splitting them into smaller batches? Additionally, will this approach compromise the overall route optimization if the dataset is split into smaller batches?

@jcoupey
Copy link
Collaborator

jcoupey commented Dec 11, 2024

I encounter "socket hangup" with larger datasets

Can you be more specific: do you get an error from VROOM or from elsewhere in your system? Did you try generating the same matrix calls to OSRM directly? Did you investigate possible timeouts/restrictions on the container side?

The only socket-related thing we have is in asio, the library that handles the routing calls. Working around the problem by providing matrices directly is possible, but it would be interesting to investigate in order to fully understand what's going on here.

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