ztnet icon indicating copy to clipboard operation
ztnet copied to clipboard

[Feature Request]: Multiple controllers with failover

Open nimaam opened this issue 1 year ago β€’ 5 comments

πŸš€ Feature Summary

Clustering

πŸ“ Detailed Description

Dear Sinamics, I want to know is it possible to have mutliple controller instance and use them with failover scenario, and could we use the clustered postgresql and different location controller?

🎯 Use Case

No response

πŸ’‘ Willing to Contribute

None

nimaam avatar Sep 13 '24 08:09 nimaam

Can we increase the limit on the number of nodes under each network ID

chonglee123456 avatar Sep 13 '24 11:09 chonglee123456

is it possible to have mutliple controller instance and use them with failover scenario

You can copy /var/lib/zerotier-one to another computer / controller and start it up, but its important you dont run both at the same time.

could we use the clustered postgresql

I know some users are deploying ztnet in a k8n cluster.

could we use different location controller

Yes. you can add a user or ip for the remote controller in admin => controller page.

sinamics avatar Sep 14 '24 06:09 sinamics

But automatically failover is the point, and also the another point is the second controller has different IP, how it will work

nimaam avatar Sep 16 '24 09:09 nimaam

And I want to know if we have a cluster of controllers to control multiple root server, how if will work, because if the controller one is gone then all the network will now work any more.

nimaam avatar Sep 16 '24 09:09 nimaam

But automatically failover is the point

I’m not planning to implement this feature within the application itself, as I believe it’s something the end user should manage, not the app.

another point is the second controller has different IP, how it will work

typically, you'd need to set up a load balancer to handle routing between controllers and ensure smooth failover. This would allow traffic to be redirected properly in the event of a failure.

sinamics avatar Sep 17 '24 19:09 sinamics

because if the controller one is gone then all the network will now work any more.

That is not completely the case as far as I know. Preexisting connections will continue to work even with the controller down, it is just that new connections can't be established (e.g. a newly started computer or newly connecting mobile device).

So high availability is certainly useful with ZT, but it isn't that nothing would work anymore in the same instant the controller goes down.

Apart from that: there are enough ways to make sure a service will run, even without support for clustering of the app itself.

TBT-TBT avatar Oct 05 '24 13:10 TBT-TBT

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Nov 05 '24 01:11 github-actions[bot]

This issue was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar Nov 08 '24 01:11 github-actions[bot]