GeezerVison is showing github.com — Studio: peer add/remove controls in HA cluster panel · Issue #4145 · ArcadeData/arcadedb
Studio: peer add/remove controls in HA cluster panel #4145
Description
Summary
The Studio HA cluster panel (Management tab) shows the current cluster membership and replica health, but it does not yet expose UI controls to add or remove peers. The backend endpoints already exist:
POST /api/v1/cluster/peer (handled by PostAddPeerHandler)
DELETE /api/v1/cluster/peer/{peerId} (handled by DeletePeerHandler)
Both are registered in RaftHAPlugin.registerAPI(...) and covered by integration tests (RaftUserSeedOnPeerAdd3NodesIT, UserSeedOnPeerAddScenarioIT).
This issue tracks adding the corresponding Studio UI so an operator can manage cluster membership without dropping to curl.
Proposed UX
- "Add Peer" button in the Cluster Membership card header. Visible only when the local node is the leader (Raft
setConfiguration only applies on the leader, so showing it on followers would always 500).
- Modal with: Peer ID, Raft Address (
host:port), and an optional Friendly Name.
- Per-peer trash button next to each follower in the membership list, also leader-only. The leader peer itself has no trash button - it must step down or leave the cluster first so the resulting Raft config is valid.
- A small info hint on followers explaining that peer add/remove can only be performed on the leader.
- After a successful add or remove, the panel auto-refreshes via
updateCluster().
Files
studio/src/main/resources/static/cluster.html - Cluster Membership card header + hint.
studio/src/main/resources/static/js/studio-cluster.js - renderPeerManagement() toggles, plus new addPeerPrompt() and removePeer(peerId) functions.
Notes
- Frontend only; the backend is already in place and tested.
- Studio has no frontend test framework today (see
studio/CLAUDE.md), so verification is a manual run against a live multi-node Raft cluster.
Activity
lvca commented on May 9, 2026
Metadata
Metadata
Development
No branches or pull requestsIssue actions