Relaying data from one ip to another

Дмитрий3 years ago

How to redirect all data received by the server to another - I did not understand the documentation about forwarding

Anton Tananaev3 years ago

Do you mean you want to forward data in the original format? Or in any format?

Дмитрий3 years ago

The format is not important, the condition is the following:
There are 2 servers old and new truck server
the old one was incorrectly configured and slowly goes into oblivion, as well as on weak hardware
The new one is better optimized and on a good rack, but in order not to lose data and not to strain with the transfer of the database - I want to enable retransmission from the old server to the new one for a month completely of all data

I tried to set up mirroring hardware through Microtik, but so far I have not been successful, so I wondered for now to allocate another IP to the machine and try my luck in relaying

Anton Tananaev3 years ago

Using forwarding you can configure some basic GPS data, but not all other parameters would work.

Дмитрий3 years ago

in fact, only basic data is needed, since the server is used only for monitoring, please tell me how the config looks like for such a relay of all server objects

Thank you in advance, and very pleasantly surprised by the promptness of the answers ^^

Anton Tananaev3 years ago

You can configure first server to forward data to the second using OsmAnd protocol.

Дмитрий3 years ago
<entry key='forward.enable'>true</entry>
<entry key='forward.url'>http://ip.adresses:8082/?id={uniqueId}&amp;timestamp={fixTime}&amp;lat={latitude}&amp;lon={longitude}&amp;course={course}&amp;accuracy={accuracy}</entry>

Right?

Anton Tananaev3 years ago

Something like that.

Дмитрий3 years ago

thanks - everything worked, only one point is unclear. I have devices using osmand protocol, but they did not work by retransmission until I changed the port on the second server to a different one from the standard one