About Horizontal Scaling Configuration

psjphoon2 years ago

Hi,

Currently working on the latest version 5.4 on horizontal scaling.

We are having a LB in front of 2 separated VM hosting Traccar server on each. I found that we need to enable multicast messages for synchronization in both Traccar servers.

<entry key='broadcast.interface'>en0</entry>
<entry key='broadcast.address'>230.3.3.3</entry>
<entry key='broadcast.port'>7001</entry>
  1. What should be the value of 'broadcast.address'?
  2. Should both traccar servers having the same configuration on multicast?

Thank you.

Anton Tananaev2 years ago
  1. Any multicast address should be fine, as long as it works on your network and there are no conflicts.
  2. Yes, except the interface can be different depending on the server.
psjphoona year ago
2023-07-27 15:37:32  INFO: [T18d4e008] error - Cannot invoke "java.net.DatagramSocket.send(java.net.DatagramPacket)" because "this.publisherSocket" is null - 
NullPointerException (MulticastBroadcastService:133 < *:87 < ConnectionManager:289 < *:275 < BaseProtocolDecoder:194 < ...)
2023-07-27 15:37:32  INFO: [T18d4e008] disconnected
2023-07-27 15:37:33  INFO: [T18d4e008] error - Cannot invoke "java.net.DatagramSocket.send(java.net.DatagramPacket)" because "this.publisherSocket" is null - 
NullPointerException (MulticastBroadcastService:133 < *:87 < ConnectionManager:289 < *:275 < *:190 < MainEventHandler:168 < ...)

Hi, we are getting this error after configured in traccar.xml when we received messages from Teltonika devices.
However, it has no issue if we are using Traccar Client mobile app.
Any idea what this error is about?

Thank you.

Anton Tananaeva year ago

You should probably create a separate ticket and also provide more details, like version.