VROOM Request Exceeds ORS Limits Despite Config Updates

Hi everyone,

We are running OpenRouteService (ORS) with VROOM using Docker and have encountered an issue where our requests exceed the configured limits, despite updating the configuration.

Issue:

When sending a VROOM request with 1 vehicle and 73 jobs, we receive the following error:

{
    "code": 3,
    "error": "Request parameters exceed the server configuration limits. Only a total of 2500 routes are allowed."
}

This suggests that the ORS matrix service is enforcing a 2500 route limit, even though we have modified config-ors.yml to allow higher limits.

What We Have Tried:

  1. Increased ORS Matrix Limits in ors-config.yml:
  services:
    matrix:
      enabled: true
      maximum_routes: 10000
      maximum_routes_flexible: 25
      maximum_search_radius: 5000
      maximum_visited_nodes: 100000
      allow_resolve_locations: true

We confirmed that these changes are present inside the running ORS container using:

docker exec -it ors-app cat config/ors-config.yml
  1. Restarted ORS and VROOM containers after changes:

docker-compose down
docker-compose up -d

  1. Verified VROOM Configuration:

    cliArgs:
    maxlocations: 1000 # Tried increasing to 5000
    maxvehicles: 200
    limit: ‘1mb’ # Increased to ‘10mb’
    router: ‘ors’

     No changes in behavior after restarting VROOM.
    
  2. Directly Tested ORS Matrix API:

  • When sending a smaller matrix request directly to ORS via curl, the response works fine.
  • However, larger requests might still be failing due to hidden limits.

Questions:

a) Are there any additional ORS configuration files or environment variables that could still be enforcing the 2500 route limit?
b) Is there an internal caching mechanism that needs to be cleared when modifying config-ors.yml?
c) Could VROOM itself have an internal limit that we need to override separately from maxlocations?

We tried rebuilding the graph but no luck, same response.

Would really appreciate any guidance on this! Thanks in advance. :rocket:

Hey,

first of all kudos, this is one of the best error descriptions I’ve seen in a long time! Thank you for that!

Second, what version of openrouteservice are you running?
Since v9, these settings should be in ors.endpoints.matrix, check the corresponding backend documentation.

Have you checked that you are not accidentally overwriting the setting with some ENV variable in your docker-compose.yml?

Regarding your questions:
a) not that I’m aware of, except for the comment above. I’m not 100% sure though…
b) Again, not that I’m aware of
c) …same^^

Best regards

Dear @jschnell
thank you foρ kind words, really appreciate it.

Now on the topic in hand,
we are running the latest docker image, so v9.

Based on your comment wew resolved the issue by

  1. adding the ors.endpoints.matrix.maximum_routes=10000 on the docker-compose.yml file
  2. docker-compose down && docker-compose up -d

Changing the config/ors-config.yml with the variables stated on the documentation did not work.

Note: we did not have any other enviroment variable on the docker-compose.yml or on the config/ors-config.env files.

Hey,

would you mind sharing your docker-compose.yml, your ors-config.yml and the layout of the directory you are running from (exclude anything under graphs, please)?

Best regards