Skip to content

Commit

Permalink
[ISSUE apache#202] refine the supporting document for cluster deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
HudsonShi committed Jun 27, 2024
1 parent 8fff514 commit 434e3dd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Distributed Consistency Protocol for EventMesh
- **Current State:**
- Kafka utilizes KRaft for in-sync replication among brokers.
- Event-mesh does not fully implement JRaft.
- A partially functional JRaft PR has been merged, but it requires a fixed cluster list defined in the `eventmesh.properties` file (immutable).
- This limits elastic scaling of EventMesh cluster nodes.
- **JRaft Potential:**
- JRaft allows for elastic scaling by dynamically discovering new clusters.
- Nodes can be added by specifying IP and port in `eventmesh.properties`.
- Leader election occurs if the leading node fails.
- Recovered leading nodes become followers.
- **Impact on Registry Center:**
- Implementing JRaft eliminates the need for Nacos as a registry center.
- Existing SDK pattern relies on static IP insertion in `eventmesh.properties`.
- Node failure results in service failure.
- **Solutions:**
- **Gateway Proxy Layer:** A future solution for the new architecture. Like Nginx.
- **JRaft Protocol:** Enables dynamic scaling and cluster discovery.

**Next Steps:**
- Evaluating the feasibility of fully functional JRaft implementation for dynamic cluster management.
- Or using reverse proxy like Nginx to achieve the cluster register.
2 changes: 1 addition & 1 deletion versioned_docs/version-v1.10.0/instruction/03-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,4 @@ When the following logs are printed to the console, EventMesh Runtime has stoppe
```log
DEBUG StatusConsoleListener Shutdown hook enabled. Registering a new one.
WARN StatusConsoleListener Unable to register Log4j shutdown hook because JVM is shutting down. Using SimpleLogger
```
```

0 comments on commit 434e3dd

Please sign in to comment.