Performance Impact of 10,000+ Geofences in Traccar

Gaurav2 months ago

Hi,

We are exploring the use of Traccar for monitoring vehicle locations and need to set up a large number of geofences (10,000+). Each geofence would be relatively small, and we would need to check if a vehicle remains inside a geofence for more than 10 minutes.

A few questions:

  1. Does Traccar natively support this kind of geofence dwell-time detection?
  2. What would be the expected performance impact of maintaining and checking against 10,000+ geofences in real time?
  3. Are there any best practices or optimizations for handling a large number of geofences efficiently in Traccar?

Appreciate any insights or recommendations.

Anton Tananaev2 months ago
  1. We don't have a specific event like that. You would have to check it based on geofence in/out events.
  2. It probably depends on how many devices you have and whether all of them will be linked to all geofences.
Gaurav2 months ago

Let's say 1000 devices, How much do you think will be the performance impact.

Anton Tananaev2 months ago

If you have all 1000 devices linked to all 10k geofences, it's going to be pretty slow.

Gaurav2 months ago

To optimize performance, could you provide an estimate of the maximum number of devices that can efficiently work with a single server when handling 10,000 geofences?

If the performance impact is significant, we are considering hosting multiple servers or using load balancers. Any recommendations on best practices for scaling in this scenario would be highly appreciated.

Anton Tananaev2 months ago

Don't have an estimate. You should do some load testing.