Can Raft nodes be reused after a shutdown().await?
#318
-
|
If my cluster encounters an error and needs to shutdown, can I reuse the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Reusing the struct Reusing |
Beta Was this translation helpful? Give feedback.
Reusing the struct
Raftwould be impossible: It creates several channels when initializing. One of the receiving end or sending end of these channels will be dropped aftershutdown().Reusing
Arc<Store>orArc<Network>for a newRaftstruct would be OK if, in your implementation, there are not any states in thestoreornetworkwhose validity depends on aRaftinstance.