Scale Traccar server.

Appu5 years ago

Hi,
Thanks for the great product.
How can we scale Traccar backend for 500K devices with request rate, every 5 seconds per device. What would be the configuration if we scale vertically?

Does moving DB into different VM would help?

Thanks.

Anton Tananaev5 years ago

You can't scale vertically to handle that much data.

Appu5 years ago

Thanks for quick reply Anton. How can we horizontally scale. Things which are in my mind.

  1. Adding a load balancer to handle server requests.
  2. Seperation of DB from web server. Sharding tables based on the regions.

Or could you please suggest any better architecture to handle the scale.

Thanks.

Anton Tananaev5 years ago

Horizontal scaling is not really supported by the server. You would have to make quite a few modifications to the code to support it. Separating database won't help. In fact it would make it worse because database writes are very frequent.

@Appu how does your config file look like. I only have 1.5k devices ad 5sec when vehicle is moving and 5 minutes when vehicle has stopped. When I open the admin account with all vehicles the UI keeps hanging and acting up..