WARN: DOS ALERT: Request delayed=100ms

Trackera year ago

Greetings gentlemen.
Is there any way to agree this WARN in the logs? Does this affect anything on the performance of the front? It happens when an admin enters the tracker or when we update the map.
I saw that there is this parameter <entry key='web.maxRequestsPerSec'>***</entry> would this help to resolve it? What would be the value for this parameter? Thank you in advance

2023-12-18 15:34:08  WARN: DOS ALERT: Request delayed=100ms, ip=192.168.1.67, overlimit=OverLimit@1fb69820[type=AUTH, id=1, duration=PT0.717436576S, count=25], session=node01kqto8a7pp0a1a0jybcuhjl5d0.node0, user=null
Anton Tananaeva year ago

You can increase the limit. Documentation should explain what the value means. As for specific numbers, that's up to you to decide depending on how you're using traccar.

Trackera year ago

I'm trying to find which devices have a fence created and I'm using this code, then this WARN appears. I have 180 devices.

 useEffectAsync(async () => {
    const verifyGetGeofences = async() => {
      const verifyGeofences = await fetch(
        `/api/geofences/?deviceId=${device?.id}`
      );
      if (verifyGeofences.ok) {
        const data = await verifyGeofences.json();
        if (data[0]?.attributes?.isFence === true) {
          setIsFence(true);
        } else {
          setIsFence(false);
        }
      }
    };
    verifyGetGeofences();
    return () => {};
  }, []);

could you help me?

Anton Tananaeva year ago

Well, you probably want to set it to 180 at least.

Trackera year ago

Thanks Anton, I had entered 99999 and the frontend was crashing.

Trackera year ago

Good morning Anton, I set parameter 180 and I'm still having failed to fetch in the frontend, sometimes I even need to restart the traccar, would there be a solution for this please? Thanks!