Closed karsonto closed 3 days ago
Please be noted that you're linking an irrelavant issue.
May you please introduce briefly that how JRaft stores metadata and how to retrieve them (such as subscription info) from clients (such as EventMesh Dashboard or user)?
May you please introduce briefly that how JRaft stores metadata and how to retrieve them (such as subscription info) from clients (such as EventMesh Dashboard or user)?
My understanding, Jraft is to synchronise the data to the cluster internal machine, each machine above the data is consistent, this PR is to save the data in memory, every once in a while will snapshot the data to the local disk, start the server will snapshot the data loaded into memory, EventMesh Runtime needs to provide restful api in order to allow EventMesh Dashboard to get the data saved by the jraft!
EventMesh Runtime needs to provide restful api in order to allow EventMesh Dashboard to get the data saved by the jraft!
May you please indicate which class to interact with in order to get JRaft data?
EventMesh Runtime needs to provide restful api in order to allow EventMesh Dashboard to get the data saved by the jraft!
May you please indicate which class to interact with in order to get JRaft data?
You can get MetaStorage in the Runtime, and then get MetaService, which is the implementation class of RaftMetaService.
Please add known dependencies~
In the current implementation of this PR, if a new node is added to the cluster, users need to add the new node to the eventmesh.properties
of the existing nodes before it can be added to the cluster.
Hopefully you can implement CliService
in a next PR to support service registration when automatic scaling up and down of the cluster. Because the complete list of online nodes of the cluster cannot be maintained in real time.
After it's implemented, the newly added node can connect to any online node in the cluster. If connected to a follower, the current leader will be returned to new node by the follower.
If you get bugs during use, I will continue to improve it later, thanks!
@mxsm Done,please review.
Fixes #4852
Motivation
Support Jraft algorithm as meta storage
Modifications Removed unused variable responseEventMeshCommand in SendSyncMessageProcessor#processRequest
Documentation New Configuration Information Explanation