Skip to content

Key a server's cells by a globally unique string id instead of numerical indices - #1887

Open
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op6-3from
tom/refactor-miles/op7-1
Open

Key a server's cells by a globally unique string id instead of numerical indices#1887
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op6-3from
tom/refactor-miles/op7-1

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Part of #1837

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch from f9b8fd0 to e1a85ce Compare July 28, 2026 13:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 167be33 to dddd8e5 Compare August 3, 2026 23:45
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch 2 times, most recently from 2c49d90 to fd39325 Compare August 4, 2026 00:39
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 45cf737 to 97ff839 Compare August 4, 2026 06:58
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch from fd39325 to b1169c7 Compare August 4, 2026 06:58
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 97ff839 to 552c914 Compare August 6, 2026 07:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch from b1169c7 to 0802de3 Compare August 6, 2026 07:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 552c914 to 82524e5 Compare August 10, 2026 06:08
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch 2 times, most recently from d013498 to b9370a6 Compare August 10, 2026 16:07
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 14ccb82 to 6c87ae0 Compare August 10, 2026 16:34
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch 2 times, most recently from 0957c83 to a6eac6e Compare August 12, 2026 02:48
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 9b10065 to c152f6b Compare August 12, 2026 14:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch from a6eac6e to ac9ec83 Compare August 12, 2026 14:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from c152f6b to f5ebfd9 Compare August 12, 2026 23:56
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch 3 times, most recently from e4239e6 to 93d272d Compare August 13, 2026 03:25
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 04a3e1f to 8081afc Compare August 13, 2026 06:01
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch 2 times, most recently from 7f90422 to 67e42b2 Compare August 14, 2026 04:46

@guapisolo guapisolo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved in stack context: the dict migration here left the topology-test helper iterating keys and probe_and_mark_dead() treating keys as cells; #2063 and #2067 respectively fix those issues before safe-merge checkpoint #2176. Both repairs remain present through the checked chain tip.

…cal indices

server_cells becomes a dict keyed by "<model name>-<index>", which the
cell also carries so its logs name it. The id is unique across models,
so the control plane addresses a cell by that id alone: start_cell and
stop_cell take it, find the one server that holds it, and
get_cell_indexer_of_id_map -- whose positional ids were only stable
while the topology was -- goes away with list_cell_ids in its place.

A cell handle now composes its name from cell_type and cell_key rather
than owning the whole string, so the rollout handle can key on the cell
id while the actor handle keeps keying on its index.

The string id is what elastic backends (k8s, external rollout) will
supply; an int position cannot survive a cell being replaced.
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op6-3 branch from 12e3cd4 to b2bc15e Compare August 29, 2026 12:40
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op7-1 branch from 67e42b2 to 469c083 Compare August 29, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants