Skip to content

de-list: mon/mgr/mds: use purpose-built sequence containers - #72325

Open
chardan wants to merge 20 commits into
ceph:mainfrom
chardan:jfw-delist-cluster-services
Open

chardan wants to merge 20 commits into
ceph:mainfrom
chardan:jfw-delist-cluster-services

Conversation

@chardan

@chardan chardan commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #72322.

Use operation-shaped containers across monitor, manager, MDS, messenger,
authentication, and plugin support. Ordinary batches become contiguous while
pending work and stable-reference queues retain deque semantics.

The series preserves encoded representations and compatibility entry points.
Focused tests cover health details, startup sequences, service ordering,
NVMe-oF beacons, Python backtraces, file-lock ranges, and MDS metablob
sequences.

Series

These six related PRs target main and share the encoding, callback, and fixture-registration
prerequisites they need. Each subsystem contains its own container conversions, fixture generators,
and consumers.

The Objecter/librados, storage, and cluster-service topics share the prerequisite commits from
#72322. RGW and tools also include the client API prerequisite from #72323. Required commits remain
in each branch so CI can build it before the prerequisite PR merges.

Scope and compatibility

  • Chooses containers according to actual access and lifetime semantics.
  • Preserves wire formats and compatibility adapters where required.
  • Keeps librados interface changes additive; existing callers retain their behavior.
  • Includes focused regression tests for behavior affected by each conversion.

Performance summary

All representative cluster-service paths improve, with the largest gains where
allocation and traversal dominate and a smaller but still clear gain in plugin
configuration parsing. These are component-level costs, not claims that a
complete monitor or authentication exchange improves by the same percentage.

Assisted-by: Codex (GPT-6)

Signed-off-by: Jesse F. Williamson [email protected]

Performance measurements

All values are medians from the retained, checksum-matched isolated harnesses. Negative deltas favor the candidate.

Workload Time before (ns) Time after (ns) Time Instructions before Instructions after Instructions
Authentication method sequences 89,547,565 48,027,176 -46.37% 1,821,607,314 1,212,604,446 -33.43%
Plugin preload parsing 152,214,681 131,035,583 -13.91% 2,375,608,623 2,081,106,786 -12.40%
Monitor construction and traversal 103,784,417 38,317,709 -63.08% 2,342,219,644 895,411,875 -61.77%

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@chardan chardan changed the title mon/mgr/mds: use purpose-built sequence containers de-list: mon/mgr/mds: use purpose-built sequence containers (5 of 6) Oct 2, 2026
@chardan chardan self-assigned this Oct 2, 2026
@chardan
chardan force-pushed the jfw-delist-cluster-services branch from 2bc453a to 7d3d10d Compare October 5, 2026 22:18
@chardan
chardan force-pushed the jfw-delist-cluster-services branch from 7d3d10d to 5c2b403 Compare October 7, 2026 06:33
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

1 similar comment
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@chardan
chardan force-pushed the jfw-delist-cluster-services branch from 5c2b403 to ac9a977 Compare October 7, 2026 18:28
@chardan
chardan force-pushed the jfw-delist-cluster-services branch 4 times, most recently from 4167f86 to 02e2599 Compare October 13, 2026 18:57
@chardan
chardan force-pushed the jfw-delist-cluster-services branch from dc6a56e to c538341 Compare November 17, 2026 22:56
@chardan
chardan force-pushed the jfw-delist-cluster-services branch 4 times, most recently from 2af6ad9 to 7384137 Compare November 24, 2026 19:00
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Keep this system and its required declarations, definitions and consumers together.

- encoding: Encoding concepts, deque support, legacy wire bytes, and cross-container decoding.

Review-Class: involved
Content-Type: implementation
Review-System: encoding
Original-Commit: 700f0b4
Source-Partition: d984d35af9d160d942a3adc0bf15ecd01ef56c71

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- encoding: Review regression scenarios, assertions, and mocks for encoding concepts, deque support, legacy wire bytes, and cross-container decoding.

Review-Class: involved
Content-Type: tests
Review-System: encoding
Original-Commit: 214d6d8
Source-Partition: b2ef0601741d799697d1e1f33ed253259fa9a152

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep generated instances in the container supplied by the type and select through its iterator. This supports list and vector generators together, allowing fixture conversions to remain with their owning subsystem instead of changing every generator in one prerequisite.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Use contiguous storage by default while accepting existing list callers and preserving their ownership transfer. Keep matching-container swaps and list splices. Construct aggregate contexts with the caller container type so list and vector callers can migrate independently.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Move the seven transaction callers with the shared callback factory and remove the obsolete list-named alias. All source callers use the single container-independent entry point, including before the storage queue conversion, so staged PRs do not introduce deprecation warnings.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep fixture declarations, generators, and direct consumers with their owning subsystem. The shared registry accepts both list and vector generators.

Original-Commit: cde335b
Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mgr: Python formatter representation, parsing, and backtrace output.

Review-Class: involved
Content-Type: implementation
Review-System: mgr
Original-Commit: bb5f077
Source-Partition: c6dd0cd8957b652601060628c1a33b54171f1631

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mgr: Review regression scenarios, assertions, and mocks for python formatter representation, parsing, and backtrace output.

Review-Class: involved
Content-Type: tests
Review-System: mgr
Original-Commit: c9d9036
Source-Partition: fcbec496dd3ee409336aa2f1e31a8fd03972bb6f

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mon-sequences: Encoded monitor/NVMe state, log-tail ordering, recovery summaries, and compatibility APIs.

Keep the list import for fixture generators that have not migrated in this topic,
and import vector for the contiguous legacy tail so this PR builds independently
of the combined fixture conversions.

Review-Class: involved
Content-Type: implementation
Review-System: mon-sequences
Original-Commit: 8e3eeaa
Source-Partition: 79153d1f158d1e8e151cf3fa7c00019ded23a917

Assisted-by: Codex:GPT-5
Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mon-sequences: Review regression scenarios, assertions, and mocks for encoded monitor/NVMe state, log-tail ordering, recovery summaries, and compatibility APIs.

Review-Class: involved
Content-Type: tests
Review-System: mon-sequences
Original-Commit: 0f88bb1
Source-Partition: c47665292a0f28e5776f7da7d9367abb0670846e

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mon-runtime: Monitor queue handoff, Paxos state, utility interfaces, and declarations/callers.

Review-Class: involved
Content-Type: implementation
Review-System: mon-runtime
Original-Commit: 14740aa
Source-Partition: 53e140e9b130fe317752ee4ceb4f58d9a1b06ed5

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mon-runtime: Review regression scenarios, assertions, and mocks for monitor queue handoff, Paxos state, utility interfaces, and declarations/callers.

Review-Class: involved
Content-Type: tests
Review-System: mon-runtime
Original-Commit: 86630f0
Source-Partition: 6cf5ff1882f0119555011ccc374cac5069a0c7e9

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
…tion

Keep this system and its required declarations, definitions and consumers together.

- mds-file-locks: Range classification and locking behavior, with client/server callers.

Review-Class: involved
Content-Type: implementation
Review-System: mds-file-locks
Original-Commit: 5b7453e
Source-Partition: ec7f6e3f330c2018a57f225965b8a35f6bd6227a

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mds-file-locks: Review regression scenarios, assertions, and mocks for range classification and locking behavior, with client/server callers.

Review-Class: involved
Content-Type: tests
Review-System: mds-file-locks
Original-Commit: 348d6e6
Source-Partition: 62d8803f451622877cc2e999929180022c825d85

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- mds-runtime: Metadata waiter/queue lifetime, projected state, export/rejoin encoding, and deprecated health APIs.

Review-Class: involved
Content-Type: implementation
Review-System: mds-runtime
Original-Commit: 3ec83e7
Source-Partition: 658bb12c1ac8875e64e209c73db4ff2fe40e1759

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
…- implementation

Keep this system and its required declarations, definitions and consumers together.

- messenger-fragment-timeout: Keep fragment age storage with the changed timeout traversal/removal and its complete IP declarations.

Review-Class: involved
Content-Type: implementation
Review-System: messenger-fragment-timeout
Original-Commit: c57cf87
Source-Partition: cea66bcbb5bfe26a110580c4b65fb972dc227ecb

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
… tests

Keep this system and its required declarations, definitions and consumers together.

- messenger-test-dispatcher: Keep conn_sent storage with clear_sent_locked and the changed dispatcher connect/accept cleanup path.

Review-Class: involved
Content-Type: tests
Review-System: messenger-test-dispatcher
Original-Commit: 26e3543
Source-Partition: 066055aa7dde41be37f86a9396e340257cb22cbb

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- memory-store-callbacks: Keep callback deque storage with the pop-before-complete/delete change; completion reentrancy and callback ownership require joint review.

Review-Class: involved
Content-Type: tests
Review-System: memory-store-callbacks
Original-Commit: 2bc453a
Source-Partition: c018d74946dbc703f1d47cca333fcb0a64177f06

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
… - implementation

Only complete independent conversions and their direct local uses are grouped here.
Conversions supporting an involved API/state/ownership/encoding change remain with that system.

- mgr-mon-local: Cached grants, module-start scratch, option ownership scratch or listener formatting output. No encoded fields, formatter ownership or monitor queue handoffs are changed in these units.
- transport-local: Complete diagnostic-name result conversion or independent descriptor/function/pointer FIFOs; all matching declarations/operations included. IPv4 timeout traversal and dispatcher cleanup are excluded.
- plugin-tokens: Complete existing tokenization/iteration paths with the same get_str helper delimiters and comparisons, including private auth method storage and its direct order/duplicate-removal assertion.

Review-Class: simple
Content-Type: implementation
Independent-Unit: mgr-mon-local
Independent-Unit: transport-local
Independent-Unit: plugin-tokens
Original-Commit: bb5f077
Original-Commit: 14740aa
Original-Commit: c57cf87
Original-Commit: f6b471f
Original-Commit: 995b57e
Original-Commit: 2bc453a
Source-Partition: 72bfcdad0114bbec6a0eedeb2afbd1a5aa2b830d
Source-Partition: 007ad53910dc60efd9237dbd0f67c1e30f208364
Source-Partition: be72c80e13692097d4917c3906c40b18db3dfae3
Source-Partition: 28aac6e4f7837f8cbb9ef6dc853402e1fc073d56
Source-Partition: cea66bcbb5bfe26a110580c4b65fb972dc227ecb
Source-Partition: 03257b3105260d071e3b1ff40ddeffdbe5d36c20
Source-Partition: 47cbcd5b02db4db6d7b4ed8301917d6f8789980c
Source-Partition: c018d74946dbc703f1d47cca333fcb0a64177f06

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
… - tests

Only complete independent conversions and their direct local uses are grouped here.
Conversions supporting an involved API/state/ownership/encoding change remain with that system.

- test-local: Independent private test/benchmark fixture sequences; assertions and production interfaces remain unchanged.
- plugin-tokens: Complete existing tokenization/iteration paths with the same get_str helper delimiters and comparisons, including private auth method storage and its direct order/duplicate-removal assertion.

Review-Class: simple
Content-Type: tests
Independent-Unit: test-local
Independent-Unit: plugin-tokens
Original-Commit: 5375749
Original-Commit: 26e3543
Original-Commit: 506de21
Original-Commit: 2bc453a
Source-Partition: 676b1bd6f84c70fd24a239a928dcbc0cb3917cb0
Source-Partition: 066055aa7dde41be37f86a9396e340257cb22cbb
Source-Partition: 44d58dc093dd43e7f2d06d09f1c79c2b12ce1b05
Source-Partition: c018d74946dbc703f1d47cca333fcb0a64177f06

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
@chardan
chardan force-pushed the jfw-delist-cluster-services branch from 7384137 to abc7dea Compare November 27, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant