Comments (3)
Hi @mbasij1 ,
It will not work in that way. You can add only one node at a time. I recommend you to start from this article. There is explanation of how to bootstrap the cluster. In case of HTTP transport, you don't need to implement your own persistent storage for cluster members.
from dotnext.
Adding multiple members at the boot time is a mistake. According to documentation, there are two ways to bootstrap the node:
- If you starting the first node in the cluster, use Cold Start mode. In that case, the active configuration must be empty. The node will add itself to the configuration automatically.
- When the cluster contains at least one node, a new member must be started in Announcement mode. The node will be in frozen state and you need to inform the cluster about that node. Usually, it's necessary to announce the node via calling of
AddMemberAsync
method on the leader node. Only leader node can modify the cluster configuration.
Also I recommend to read the detailed explanation of that behavior in the official paper published by the author of Raft consensus protocol: https://raw.githubusercontent.com/ongardie/dissertation/master/book.pdf, Chapter 4
from dotnext.
Thank You for your response.
I trying to solve a false thing!
I Delete initialized cluster from the beginning and worked. but I can't understand why we could use the AddMembersToCluster(_serverConfig, config.UseInMemoryConfigurationStorage()) and work?
Although I found that when using UseInMemoryConfigurationStorage() every node of cluster comes leader and I think they not join together!
from dotnext.
Related Issues (20)
- ASP.net Cluster Raft question to configure full in memory mode HOT 1
- Quorum node for a 2-node cluster
- Using Optional<T> with data validation attributes HOT 5
- `AsyncBarrier.AddParticipant()` does not work
- Cluster node status HOT 1
- DotNext vs Community toolkit
- How to use Optional<string> as query parameter? HOT 5
- Support for non-LTS .NET releases HOT 1
- Various trimming warnings in DotNext.Metaprogramming HOT 15
- Potential addition of an `OrderedDictionary<TKey, TValue>` type HOT 6
- raft leader loses leadership and the node gets stuck HOT 19
- Metaprogramming: Try-catch not catching exception HOT 2
- ask for set up workaround to make AOT works HOT 4
- Directly reference algorithm used in int sqrt HOT 3
- Not seeing expected improvement in throughput of RaftCluster.ReplicateAsync method when cluster minority is inaccessible HOT 20
- Seemingly random NullReferenceException in async state machine HOT 13
- Cache bound by weighted count HOT 1
- AsyncReaderWriterLock overload parity between Enter and Acquire HOT 1
- Add `IDisposable`-returning extension method for upgrading read lock to write lock HOT 7
- DotNext.Net.Cluster crash in production since I think version 5.4.0 HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnext.