~bigbes/tarantool-etcd · parade

main · last commit 1 month ago · 2npkec0r

← Back to the parade

tarantool-etcd-axs Learner: rafthttp peer transport over nghttp2 Lined Up

status: open P2 task milestone:m5-clustering
bd update tarantool-etcd-axs --claim bd close tarantool-etcd-axs
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-05-20T06:45:14Z
Updated2026-07-17T14:27:37Z
Description
Implement etcd's rafthttp peer transport so the cluster can stream the raft log to us. Endpoints (HTTP/2, port 2380): /raft (pipeline POST), /raft/stream/message/<local-id> and /raft/stream/msgapp/<local-id> (long-lived streams), /raft/snapshot (snapshot receive, separate phase). Must: open/maintain streams to each peer, receive MsgApp/MsgHeartbeat/MsgSnap, send MsgAppResp/MsgHeartbeatResp back, do etcd peer version negotiation (X-Etcd-Cluster-ID, X-Server-Version, X-Raft-To/From headers). Reuse lib/nghttp2 for HTTP/2 framing. Raw message bodies are gogoproto-encoded raftpb.Message — decode lives in the proto-decode phase; this phase just moves bytes + manages stream lifecycle.
Notes
rafthttp reference in etcd/server/etcdserver/api/rafthttp/. Header contract is strict — mismatched cluster-id/version closes the stream.

Depends on

  • tarantool-etcd-umc — Learner: config block + role plumbing blocks open
  • tarantool-etcd-cnj — [epic] Raft-learner replica — join an etcd cluster as a non-voting member parent-child open

Depended on by

Prerequisite chain — everything this waits on, transitively

  • tarantool-etcd-umc — Learner: config block + role plumbing blocks open
  • tarantool-etcd-cnj — [epic] Raft-learner replica — join an etcd cluster as a non-voting member parent-child open
  • tarantool-etcd-7ey — Replica route: connect as read-only replica to an existing etcd cluster related open
  • tarantool-etcd-16d — Implement Maintenance.Snapshot RPC (streaming DB snapshot) related open

Unblocks — everything waiting on this, transitively

  • tarantool-etcd-boq — Learner: raft state machine (follower/learner subset) blocks open
  • tarantool-etcd-6js — Learner: apply loop — InternalRaftRequest -> existing handlers blocks open
  • tarantool-etcd-q5f — Learner: snapshot receive (bbolt parse + bucket translation) blocks open
  • tarantool-etcd-zkg — Learner: conformance — join real etcd cluster, assert log replication blocks open
  • tarantool-etcd-ovo — Learner: durable applied_index (WAL-equivalent for restart) blocks open

No comments.

  • Eugene Blikh created the issue · 2026-05-20T09:45:14Z
  • Eugene Blikh tarantool-etcd-boq now depends on this · 2026-05-20T09:47:29Z
  • Eugene Blikh added dependency on tarantool-etcd-umc · 2026-05-20T09:47:29Z
  • Eugene Blikh added under epic tarantool-etcd-cnj · 2026-05-20T09:47:29Z
  • Eugene Blikh added label milestone:m5-clustering · 2026-05-21T14:37:40Z
Stored rows — what this pane was built from, as read
issues 1 row
id tarantool-etcd-axs
content_hash a0c9a9219a53e6fa60ca977b86cbde3b627bc6e616f64b0c292af4d186b91633
title Learner: rafthttp peer transport over nghttp2
description Implement etcd's rafthttp peer transport so the cluster can stream the raft log to us. Endpoints (HTTP/2, port 2380): /raft (pipeline POST), /raft/stream/message/<local-id> and /raft/stream/msgapp/<local-id> (long-lived streams), /raft/snapshot (snapshot receive, separate phase). Must: open/maintain streams to each peer, receive MsgApp/MsgHeartbeat/MsgSnap, send MsgAppResp/MsgHeartbeatResp back, do etcd peer version negotiation (X-Etcd-Cluster-ID, X-Server-Version, X-Raft-To/From headers). Reuse lib/nghttp2 for HTTP/2 framing. Raw message bodies are gogoproto-encoded raftpb.Message — decode lives in the proto-decode phase; this phase just moves bytes + manages stream lifecycle.
design
acceptance_criteria
notes rafthttp reference in etcd/server/etcdserver/api/rafthttp/. Header contract is strict — mismatched cluster-id/version closes the stream.
status open
priority 2
issue_type task
assignee NULL
estimated_minutes NULL
created_at 2026-05-20T06:45:14Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-07-17T14:27:37Z
closed_at NULL
closed_by_session
external_ref NULL
spec_id
compaction_level 0
compacted_at NULL
compacted_at_commit NULL
original_size NULL
sender
ephemeral 0
wisp_type
pinned 0
is_template 0
mol_type
work_type
source_system
metadata <binary>
source_repo
close_reason
event_kind
actor
target
payload
await_type
await_id
timeout_ns 0
waiters
hook_bead
role_bead
agent_state
last_activity NULL
role_type
rig
due_at NULL
defer_until NULL
no_history 0
started_at NULL
is_blocked 1
labels 1 row
issue_id tarantool-etcd-axs
label milestone:m5-clustering
dependencies 3 rows
id 02b2dcbc-d569-572a-8d46-059d9cf011ae
issue_id tarantool-etcd-boq
type blocks
created_at 2026-05-20T09:47:29Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-axs
depends_on_wisp_id NULL
depends_on_external NULL
id 69607b55-2dd1-5f56-9b3b-337ea0ee943f
issue_id tarantool-etcd-axs
type blocks
created_at 2026-05-20T09:47:29Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-umc
depends_on_wisp_id NULL
depends_on_external NULL
id 8227e5b7-db14-5bc9-aeb8-26f9fde95dd5
issue_id tarantool-etcd-axs
type parent-child
created_at 2026-05-20T09:47:29Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-cnj
depends_on_wisp_id NULL
depends_on_external NULL
events 2 rows
id 1fe83348-505a-54a0-9cc5-fcd1661a2c16
issue_id tarantool-etcd-axs
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-05-20T09:45:14Z
id d72bc321-8c58-59d0-be96-abac8ee01e76
issue_id tarantool-etcd-axs
event_type label_added
actor Eugene Blikh
old_value NULL
new_value NULL
comment Added label: milestone:m5-clustering
created_at 2026-05-21T14:37:40Z