You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "gaoyajun02 (Jira)" <ji...@apache.org> on 2025/08/22 02:28:00 UTC

[jira] [Updated] (RATIS-2323) Extend ratis-shell add command

     [ https://issues.apache.org/jira/browse/RATIS-2323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gaoyajun02 updated RATIS-2323:
------------------------------
    Description: 
In the Celeborn master cluster, the Leader's clientAddress and adminAddress are cached in Followers and used as the RPC endpoint for handling client requests. When a Follower receives a client request, since only the Leader can process client requests, the Follower returns the Leader's RPC endpoint to the client, allowing the client to resend the request directly to the Leader.

When expanding the master cluster, we currently use the ratis-shell's add operation. However, peers added through this operation lack clientAddress and adminAddress settings. If a newly added peer becomes the Leader, all Followers will return an empty address, causing clients to access an incorrect Leader address (127.0.0.1).

Therefore, we propose extending the ratis-shell add command to support setting clientAddress and adminAddress parameters when adding new peers to the cluster.

> Extend ratis-shell add command
> ------------------------------
>
>                 Key: RATIS-2323
>                 URL: https://issues.apache.org/jira/browse/RATIS-2323
>             Project: Ratis
>          Issue Type: Improvement
>          Components: shell
>            Reporter: gaoyajun02
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In the Celeborn master cluster, the Leader's clientAddress and adminAddress are cached in Followers and used as the RPC endpoint for handling client requests. When a Follower receives a client request, since only the Leader can process client requests, the Follower returns the Leader's RPC endpoint to the client, allowing the client to resend the request directly to the Leader.
> When expanding the master cluster, we currently use the ratis-shell's add operation. However, peers added through this operation lack clientAddress and adminAddress settings. If a newly added peer becomes the Leader, all Followers will return an empty address, causing clients to access an incorrect Leader address (127.0.0.1).
> Therefore, we propose extending the ratis-shell add command to support setting clientAddress and adminAddress parameters when adding new peers to the cluster.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)