Closed guillaume-chervet closed 8 months ago
AddMember
must be called for leader node only and the node must be online. Dynamic membership is supported for all network transports, not only for HTTP.
Exception should be clear about attempt to add member on the follower node.
Thank you very much @sakno , i understand now.
So a node cannot start whithout any member.
A new node should be started in Standby state. Then, you need to inform leader node about new node by calling AddMemberAsync
.
4.14.4 release has been published with correct exception type. If you need further assistance, please create a discussion.
Hi,
Thank you again for this wonderful library. I would like to autoscale a very small database on kubernetes (with access to the kubernetes API). I'am testing to add dynamically some members.
My code is crashing, i do not know if it is possible to do that. The documentation seem to tell it is possibile with the HTTP implementation.
My test code : https://github.com/AxaFrance/SlimFaas/blob/b46f4675171d2a7a9618ec36744a5832e8f2c274/src/SlimData/Startup.cs#L251C17-L276C20
The code is crashing on line :