This object is in archive! 

Is "serverpart" load balancing option only?

Glaeken shared this question 8 years ago
Answered

In providers.xml there is a variable "serverpart".

I assume it's a load balancing for tile servers.

But will it work as a failover?


Example lets say we have domains: servermap1.somemaps.com, servermap2.somemaps.com

Using servermap{s}.somemaps.com and

setting serverpart 1;2 will use both domains in somewhat like round robin fashion.

What happens when one of the servers is down? Will Locus silently download tiles from the second one?

Was it designed this way?

Replies (2)

photo
1

Good day Glaeken,


current implementation in Locus is indeed only for server balancing. So in case, generated URL will be set to currently disabled server, Locus won't try different URL next time, but instead handle failed response.


I think that such situation is quite nonstandard and if you plan something like this on your own server(s), I really suggest to place some script before map server, that may forward requests to secondary map server if needed.

photo
1

Thank you for your answer. Failover is not an issue for me, it's indeed on server side. I was just curious about the mechanism.

Replies have been locked on this page!