GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — HA: optional human-readable peer names in HA_SERVER_LIST · Issue #3974 · ArcadeData/arcadedb

HA: optional human-readable peer names in HA_SERVER_LIST #3974

New issue
Copy link
New issue
Copy link
Closed
Feature
Closed
HA: optional human-readable peer names in HA_SERVER_LIST#3974
Feature
Copy link
Assignees
lvca
Milestone
26.5.1

Description

@lvca
lvca
opened on Apr 26, 2026
Issue body actions

Background

The Apache Ratis HA module currently identifies peers positionally:

  • HA_SERVER_LIST is a comma-separated list of host:raftPort:httpPort:priority entries
  • Each node's slot is derived from the numeric suffix of HA_SERVER_NAME (e.g. ArcadeDB_0 -> peer index 0)
  • Display names shown in logs and Studio are synthesized as <localPrefix><sep><index> using the local node's name prefix

This works well for K8s StatefulSet deployments (arcadedb-0, arcadedb-1, ...) but is confusing in two cases:

  1. Operators who deploy with heterogeneous names (e.g. frankfurt, london, nyc) must still embed a numeric suffix, and the displayed peer names get rebuilt from the local prefix and don't reflect the configured names.
  2. The mapping between HA_SERVER_NAME and the position in HA_SERVER_LIST is implicit. If they get out of sync, a node claims the wrong slot.

Proposal

Add an optional name@ prefix to each entry in HA_SERVER_LIST. Fully backward compatible: entries without @ keep their current behavior; mixed clusters work; @ does not appear in any current valid format so detection is unambiguous.

[email protected]:2424:2480,[email protected]:2424:2480,[email protected]:2424:2480

Resolution rules:

  • If a peer entry has name@, the local node identifies its slot by matching HA_SERVER_NAME against the peer name first.
  • If no name match is found, fall back to the existing prefix_N / prefix-N suffix resolution.
  • Display names use the configured peer name when present; otherwise the existing positional synthesis is used.
  • Names must be unique within the cluster (validated at parse time).

Affected components

  • HA_SERVER_LIST parser (RaftPeerAddressResolver.parsePeerList)
  • Local peer resolution (RaftPeerAddressResolver.findLocalPeerId)
  • Display-name building (RaftHAServer constructor + getPeerDisplayName)
  • Dynamic membership: optional name parameter on addPeer admin command (POST payload field) so peers added at runtime also get a friendly name in logs/Studio
  • HAServerPlugin interface: optional 3-arg addPeer(peerId, address, name) default that delegates to the 2-arg version, so non-Raft implementations keep working

Out of scope

  • No wire-level name exchange between nodes is needed: HA_SERVER_LIST is already a cluster-wide setting, so each node already knows the configured names.
  • HA_SERVER_NAME itself does not need to change. With named peers, its numeric suffix simply becomes optional.

Activity

  1. lvca
    added the
    Feature
    issue type on Apr 26, 2026
  2. lvca
    added this to the 26.5.1 milestone on Apr 26, 2026
  3. lvca
    self-assigned this
    on Apr 26, 2026
  4. lvca
    added a commit that references this issue on Apr 26, 2026

    feat: HA supported node name in configuration

    962519d
  5. lvca
    closed this as completedon Apr 26, 2026
  6. mergify
    added a commit that references this issue on May 3, 2026

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    03c204f
  7. robfrank
    added a commit that references this issue on May 12, 2026

    feat: HA supported node name in configuration

    f8fb3ff
  8. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    feat: HA supported node name in configuration

    2175635

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    8a485d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

Feature

Projects

No projects

    Milestone

    • 26.5.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.