Skip to content

[docs] Clarify resource dictionary keys - #65974

Open
bhushanasati25 wants to merge 2 commits into
ray-project:masterfrom
bhushanasati25:docs-resource-dict-48709-pr
Open

bhushanasati25 wants to merge 2 commits into
ray-project:masterfrom
bhushanasati25:docs-resource-dict-48709-pr

Conversation

@bhushanasati25

@bhushanasati25 bhushanasati25 commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Fixes #48709.

Add a central Ray Core docs section explaining how resource dictionary keys map to task and actor options, and link placement group bundle documentation to it. Cover CPU, GPU, memory in bytes, custom resources, and why object_store_memory is different.

The review follow-up starts from the reviewer-rebased commit c811fb9 and stays within the two Markdown pages under doc/source/core/scheduling/. It keeps the existing examples with their introduction, reuses the tested Python example instead of adding a standalone snippet, documents the rejected keys in resources, and applies the requested prose conventions.

Related issue number

Closes #48709.

Checks

  • git diff --check HEAD^ HEAD -- doc/source/core/scheduling/resources.md doc/source/core/scheduling/placement-group.md: passed.
  • pre-commit run --files doc/source/core/scheduling/resources.md doc/source/core/scheduling/placement-group.md: completed successfully. The master-branch link check passed; the repository configuration skips the other hooks for these Markdown files.
  • Full local HTML build from doc/: sphinx-build -W -b html -j 2 source /private/tmp/ray-docs-65974-html passed with zero Sphinx warnings.
  • Rebuilt the final edited pages with sphinx-build -W -b html -j 2 source /private/tmp/ray-docs-65974-html source/core/scheduling/resources.md source/core/scheduling/placement-group.md: passed with zero Sphinx warnings.
  • Additional local validation helper, outside the repository: python /private/tmp/ray-docs-65974-validate.py passed all eight checks. These check the dictionary against the existing Python example and the pure resources_from_ray_options function, reserved-key rejection, memory units, labels, paragraph wrapping, parsed section placement, and rendered links/final wording.

Local docs validation used macOS ARM64, Python 3.12.7, Sphinx 8.2.3, and dependencies from doc/requirements-doc.txt; this is not the exact Python 3.11 Read the Docs environment.

This is a documentation-only change. No Ray runtime code or executable examples changed, and no runtime tests were rerun.

Additional information

This updates the existing PR for #48709 in response to the October 22 technical and style reviews; it does not open a competing PR. AI assistance was used to implement and validate the documentation changes. Human maintainer review is still required.

@bhushanasati25
bhushanasati25 requested review from a team as code owners September 7, 2026 18:41

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the documentation to centralize the explanation of how resource dictionaries map to ray.remote options. It removes duplicate descriptions from placement-group.rst and adds a dedicated section in resources.rst with clear mappings and a code example. The feedback suggests replacing the term "resource shape" with "resource dictionary" in the new section to maintain terminology consistency.

Comment on lines +188 to +189
For APIs that accept a resource dictionary directly, the equivalent resource shape is
``{"CPU": 2, "GPU": 1, "memory": 1073741824, "custom_resource": 1}``.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Using the term "resource dictionary" instead of "resource shape" is more consistent with the rest of this section and clearer for readers, as "shape" is not previously defined in this context.

Suggested change:

For APIs that accept a resource dictionary directly, the equivalent resource dictionary is
``{"CPU": 2, "GPU": 1, "memory": 1073741824, "custom_resource": 1}``.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 908e8ec454

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


.. _resource-dict-remote-options:

Resource dictionaries and ``ray.remote`` options

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the required DCO sign-off

This commit has no Signed-off-by trailer (verified with git show), so it violates the mandatory DCO requirement and will fail DCO validation; recreate the commit with git commit -s before submission.

AGENTS.md reference: AGENTS.md:L77-L78

Useful? React with 👍 / 👎.

@bhushanasati25
bhushanasati25 force-pushed the docs-resource-dict-48709-pr branch from 908e8ec to 8c3d910 Compare September 7, 2026 18:47
@ray-gardener ray-gardener Bot added usability docs An issue or change related to documentation core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Sep 7, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Sep 24, 2026
@bhushanasati25

Copy link
Copy Markdown
Contributor Author

Thanks for the automated review. I pushed a small follow-up to keep terminology consistent by using "resource dictionary" instead of "resource shape" in the new section.

dstrodtman added a commit that referenced this pull request Sep 24, 2026
## Why are these changes needed?

MyST Markdown is the standard for Ray doc pages. This PR converts the
`ray-core/` user guide from reStructuredText to MyST: 80 pages across
the top-level directory and the `actors/`, `objects/`, `scheduling/`,
`patterns/`, `fault_tolerance/`, `internals/`, `compiled-graph/`,
`direct-transport/`, `examples/`, and `tasks/` subtrees.

The conversion is **format-only and faithful**. No prose changed. Every
cross-reference label is kept byte-for-byte, so external `{ref}` and
`:ref:` callers keep resolving, and no URLs change, because Sphinx maps
`foo.rst` and `foo.md` to the same `foo.html`. The rendered HTML matches
`/en/master` except for the small, explained differences listed under
[Render differences from
`/en/master`](#render-differences-from-enmaster).

This PR combines nine PRs that were developed separately to make each
construct class easier to verify: #66353, #66355, #66377, #66380,
#66410, #66414, #66415, #66417, and #66425. This PR supersedes them.
Apart from the last two commits, its diff is identical to their union.

### How to review

There's one commit per original PR, so you can review commit by commit.
Each commit is that PR's full diff squashed, and within each one the
conversion and the soft-wrap reflow are already combined. The last two
commits are a one-line toctree fix in `user-guide.rst` and that page's
own conversion to `user-guide.md`, which the separate PRs left for last
to avoid churning the shared toctree page.

| Commit | Pages | New constructs |
|---|---|---|
| `patterns/` (#66353) | 22 design-pattern and anti-pattern pages |
Prose, `literalinclude`, figures |
| Top-level prose (#66355) | `accelerator-types`, `advanced-topics`,
`fault-tolerance`, `head-node-memory-management`, `internals`,
`ray-generator` | Toctree normalization, `orphan` frontmatter |
| Tab pages (#66377) | `tasks`, `namespaces`, `ray-dag` | sphinx-design
tabs |
| Doctest pages (#66380) | `actors`, `configure`, `miscellaneous`,
`objects`, `starting-ray`, `tips-for-first-time`, `user-spawn-processes`
| Executed `testcode`, autodoc in `{eval-rst}` |
| Table pages (#66410) | `cross-language`,
`resource-isolation-with-cgroupv2` | `{list-table}`, tables inside
definition lists |
| Prose subtrees (#66414) | `fault_tolerance/` (5), `internals/` (8),
`compiled-graph/` (5 of 6), `direct-transport/` (2),
`examples/monte_carlo_pi`, `examples/overview`,
`tasks/dynamic_generators` | Definition lists, Mermaid in comments |
| `actors/` and `objects/` (#66415) | 7 + 2 pages | Doctest-heavy tabs |
| `scheduling/` (#66417) | 6 pages | Shared help partial |
| Jupyter (#66425) | `using-ray-with-jupyter` | Paragraphs that start
with a number |

Three pages under `ray-core/`, outside `api/`, stay RST:

- `compiled-graph/compiled-graph-api.rst` is four `autosummary` blocks
and nothing else, so it stays RST like the other API reference trees.
- `tasks/nested-tasks.rst` and `handling-dependencies.rst` are named in
`doc/BUILD.bazel`'s `doctest[core]` exclusions, so they convert in a
later PR that also updates that file.

### Other files this PR touches

- `ray-core/user-guide`: the section's toctree page converts to MyST
too. Its `patterns/index.rst` and `scheduling/index.rst` entries are now
extensionless, like their siblings. Sphinx resolves either form, so that
part is for consistency, not a fix. The only reference to the page, the
toctree entry in `walkthrough.md`, is already extensionless.
- `_includes/_help-links.md` is new. `scheduling/memory-management` and
`scheduling/ray-oom-prevention` end with the shared `_help.rst` partial,
which MyST can't include natively. `_help-links.md` is the same
four-item list in Markdown. It can't be named `_help.md`, because Sphinx
treats `_help.md` and `_help.rst` as the same document. `_help.rst`
stays for the three RST pages that still include it:
`ray-references/faq`, `cluster/vms/user-guides/community/yarn`, and
`tune/key-concepts`.
- `ray-core/examples/gentle_walkthrough.ipynb`,
`ray-core/examples/map_reduce.ipynb`, and
`ray-contribute/publishing-examples-legacy.md` pointed at
`examples/overview.rst` and now point at the `.md`.

No other file changes. Every other reference to these pages is
extensionless or goes through a label.

## Render differences from `/en/master`

`render_diff.py` against `/en/master` over all 80 converted pages: 65
render identically, and the other 15 differ only in the ways listed
below.

### Intended changes, where MyST renders what the source meant

- **`configure`, TLS step 1.** On `/en/master`, the `# Alternatively,
this command automatically encode ...` paragraph has no blank line
before its `.. code-block:: bash`, so docutils swallows the directive
into the paragraph. The `kubectl` command renders as a block quote with
its `--` flags turned into en-dashes. It now renders as the bash code
block the author intended. The leading `#` is escaped (`\#`) so the
paragraph stays a paragraph rather than becoming an H1.
- **`miscellaneous`, Benchmark.** "Increase the ARP cache size:" renders
on `/en/master` as a definition list, because its sub-items are indented
four spaces rather than two. It now renders as the nested bullet list
the source describes.
- **`objects/serialization`, custom-serialization list.** On
`/en/master`, the first item's `testoutput` is indented 2 spaces under
an item whose content starts at column 3. docutils ends the list,
renders the output in a stray block quote, and restarts the list at 2.
The MyST keeps the output inside item 1, so the three items render as
one list.

### Link changes

Relative `.html` links become Sphinx roles, because MyST reads a
scheme-less link target as a cross-reference and fails
`fail_on_warning`. They render as internal references rather than
external links. Four of them only worked on `/en/master` through a site
redirect, so each now points at the page the redirect already lands on.

- `tasks`: `` `Object refs <objects.html>`__ `` becomes `` {doc}`Object
refs <objects>` ``.
- `namespaces`: `` `Driver Options <configure.html#driver-options>`__ ``
becomes `` {ref}`Driver Options <java-driver-options>` ``. The href
anchor changes from `#driver-options` to `#java-driver-options`, and
both ids sit on the same section.
- `configure`: `` `documentation <package-ref.html#ray.init>`__ ``
becomes `` {doc}`documentation <api/index>` ``, where
`ray-core/package-ref.html` already redirects.
- `configure`: `` `Python time format <strftime.org>`__ `` becomes
`[Python time format](https://strftime.org/)`. The scheme-less target
resolved as a relative path that redirected to `https://strftime.org/`.
- `configure`: the `` `Java Applications`_ `` named reference becomes
`[Java Applications](#java-applications)`, the same href it renders to
today.
- `miscellaneous`: `` `Prometheus endpoint <ray-metrics.html>`_ ``
becomes `` {ref}`Prometheus endpoint <collect-metrics>` ``.
`ray-core/ray-metrics.html` redirects to `cluster/metrics.html`, whose
top label is `collect-metrics`.
- `starting-ray`: the `Configuration`, `Deployment section`,
`Kubernetes`, `YARN`, and `SLURM` links become `{doc}` roles to the same
pages.

### Anchor changes

- **`starting-ray`, "What's next?"** MyST slugs the heading `whats-next`
where docutils produced `what-s-next`. A compat target isn't possible,
because `what-s-next` is already a global label in
`cluster/getting-started.md`. No authored link in the repo points at
this anchor. The generated toctree entries in `advanced-topics` and
`user-guide` follow the new slug automatically, so those two pages'
render diffs show the same `#whats-next` change and nothing else.
- **`objects/serialization`, "Plasma Object Store".** On `/en/master`,
the link `` `Plasma object store <…>`_ `` creates a named target that
collides with the heading's implicit name, so docutils gives the section
the id `plasma-store`, plus a stray `id1`. MyST creates no named target
for a link, so the section takes its heading slug,
`plasma-object-store`. The `plasma-store` label still renders as an
anchor on the section, so `#plasma-store` links keep working.

### Constructs with no MyST equivalent

- **Line blocks** become Markdown hard line breaks, which render as
`<p>` plus `<br>` instead of `div.line-block`, with the same lines
visible. This affects the two links at the end of `ray-dag` and five
cells in the `tips-for-first-time` API table.

### Invisible markup differences

These don't change what a reader sees:

- **Definition-list class.** MyST's `<dl>` carries `class="simple myst"`
where docutils emits no class or `simple`. The class has no styling. It
appears in `cross-language` (3), `internals/metric-exporter`,
`direct-transport`, and `scheduling/memory-management`.
- **RST comments become HTML comments** in `examples/overview` and
`scheduling/memory-management`, so the author's note stays in the
source. RST emits no node for a comment, so the diff shows the `<!-- …
-->`, but it doesn't render. The five comments in
`internals/object-spilling` hold Mermaid source whose `-->` arrows would
end an HTML comment early. They're MyST `%` comments instead, which emit
nothing, like the RST.

`render_diff.py` filters the two inert differences every MyST page shows
against an RST page: `class="tex2jax_ignore mathjax_ignore"` on the root
`<section>`, and the missing `code` class on inline literals. Neither
class carries any styling.

## Verification

- **Static checks** on all 81 new `.md` files: frontmatter parses,
backtick and colon fences balance, there's no residual RST outside
fences, every label is preserved, directive counts match the `.rst`, and
there are no relative `.html`, `.rst`, or scheme-less links.
- **Soft-wrap.** Each page's reflow to one line per paragraph is
whitespace-only. `ray-soft-wrap`'s `verify.py` reports `content=ok
render=ok idempotent=ok` for every file.
- **Doctest coverage is unchanged.** `doctest[core]` runs
`pytest-sphinx`, which yields one pytest item per file, so `pytest
--collect-only` counts files, not blocks. To count blocks, I ran
`pytest-sphinx`'s own parser over each `.rst` on master and each new
`.md`. It builds 120 examples before and 120 after. That's every example
`doctest[core]` collects from `ray-core/` on master: this PR moves all
16 of that target's executed files to MyST. Every parsed section is
identical, including directive, body, `:options:`, and `:skipif:`, apart
from trailing whitespace dropped from a comment line in
`compiled-graph/quickstart`'s skipped block and from two lines of a
`serialization` code block.

  | Page | Examples before | Examples after |
  |---|---|---|
  | `scheduling/accelerators` | 35 | 35 |
  | `tips-for-first-time` | 14 | 14 |
  | `actors/async_api` | 10 | 10 |
  | `starting-ray` | 8 | 8 |
  | `objects/serialization` | 8 | 8 |
  | `actors` | 7 | 7 |
  | `miscellaneous` | 7 | 7 |
  | `scheduling/memory-management` | 7 | 7 |
  | `configure` | 6 | 6 |
  | `objects` | 4 | 4 |
  | `actors/concurrency_group_api` | 3 | 3 |
  | `actors/named-actors` | 3 | 3 |
  | `actors/task-orders` | 3 | 3 |
  | `actors/terminating-actors` | 3 | 3 |
  | `internals/task-lifecycle` | 1 | 1 |
  | `user-spawn-processes` | 1 | 1 |
  | **Total** | **120** | **120** |

None of the converted pages is in a doctest `exclude` list, and
`doctest[core]` globs both `.md` and `.rst`, so `doc/BUILD.bazel`
doesn't change.
- **Doctests executed locally.** This PR only touches doc sources, so
`.buildkite/test.rules.txt` routes it to no test steps, and
`doctest[core]` doesn't run premerge. I ran the converted doctest pages
through pytest locally, with the `doctest` macro's arguments, Ray's
pinned `pytest==7.4.4`, and the Ray nightly wheel (`674900c91faa`), on
Python 3.10 with `RAY_USAGE_STATS_PROMPT_ENABLED=0`. All pass except
`scheduling/accelerators`, which fails on a missing
`CUDA_VISIBLE_DEVICES` on a machine with no GPU. The master `.rst` fails
the same way, so that page's evidence is the parity check.
- **Build.** The Read the Docs preview is green under `fail_on_warning`.
- **Render diff.** `render_diff.py` against `/en/master` over all 80
pages: 65 identical, and every difference on the other 15 is listed
under [Render differences from
`/en/master`](#render-differences-from-enmaster).

**Duplicate check.** No other open PR converts these pages. Six open PRs
edit pages this PR converts, and each will need to move its change onto
the `.md` file when this lands: #64137 and #65979
(`direct-transport/direct-transport`), #66402 (`objects/serialization`),
#66368 (`scheduling/accelerators`), #65974 (`scheduling/placement-group`
and `scheduling/resources`), and #65792 (`tasks`).

This PR was prepared with AI assistance (Claude Code). I reviewed the
changes and ran the checks above.

## Related issue number

Part of the RST-to-MyST migration.

## Checks

- [x] I've signed off every commit (`git commit -s`).
- [x] I've made sure the tests are passing: the static checks, soft-wrap
verification, doctest parity check, and local doctest run pass, the RtD
build is green, and every render diff is explained above.
- Testing Strategy
   - [ ] Unit tests
   - [ ] Release tests
- [x] Docs-only change, verified with the static checks, doctest parity
check, RtD build, and render diff described above

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@bhushanasati25
bhushanasati25 requested a review from a team as a code owner September 24, 2026 15:25
@bhushanasati25
bhushanasati25 force-pushed the docs-resource-dict-48709-pr branch from bf8a2df to 8104c4f Compare September 24, 2026 15:27
@github-actions github-actions Bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Sep 25, 2026
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…6430)

## Why are these changes needed?

MyST Markdown is the standard for Ray doc pages. This PR converts the
`ray-core/` user guide from reStructuredText to MyST: 80 pages across
the top-level directory and the `actors/`, `objects/`, `scheduling/`,
`patterns/`, `fault_tolerance/`, `internals/`, `compiled-graph/`,
`direct-transport/`, `examples/`, and `tasks/` subtrees.

The conversion is **format-only and faithful**. No prose changed. Every
cross-reference label is kept byte-for-byte, so external `{ref}` and
`:ref:` callers keep resolving, and no URLs change, because Sphinx maps
`foo.rst` and `foo.md` to the same `foo.html`. The rendered HTML matches
`/en/master` except for the small, explained differences listed under
[Render differences from
`/en/master`](#render-differences-from-enmaster).

This PR combines nine PRs that were developed separately to make each
construct class easier to verify: ray-project#66353, ray-project#66355, ray-project#66377, ray-project#66380,
ray-project#66410, ray-project#66414, ray-project#66415, ray-project#66417, and ray-project#66425. This PR supersedes them.
Apart from the last two commits, its diff is identical to their union.

### How to review

There's one commit per original PR, so you can review commit by commit.
Each commit is that PR's full diff squashed, and within each one the
conversion and the soft-wrap reflow are already combined. The last two
commits are a one-line toctree fix in `user-guide.rst` and that page's
own conversion to `user-guide.md`, which the separate PRs left for last
to avoid churning the shared toctree page.

| Commit | Pages | New constructs |
|---|---|---|
| `patterns/` (ray-project#66353) | 22 design-pattern and anti-pattern pages |
Prose, `literalinclude`, figures |
| Top-level prose (ray-project#66355) | `accelerator-types`, `advanced-topics`,
`fault-tolerance`, `head-node-memory-management`, `internals`,
`ray-generator` | Toctree normalization, `orphan` frontmatter |
| Tab pages (ray-project#66377) | `tasks`, `namespaces`, `ray-dag` | sphinx-design
tabs |
| Doctest pages (ray-project#66380) | `actors`, `configure`, `miscellaneous`,
`objects`, `starting-ray`, `tips-for-first-time`, `user-spawn-processes`
| Executed `testcode`, autodoc in `{eval-rst}` |
| Table pages (ray-project#66410) | `cross-language`,
`resource-isolation-with-cgroupv2` | `{list-table}`, tables inside
definition lists |
| Prose subtrees (ray-project#66414) | `fault_tolerance/` (5), `internals/` (8),
`compiled-graph/` (5 of 6), `direct-transport/` (2),
`examples/monte_carlo_pi`, `examples/overview`,
`tasks/dynamic_generators` | Definition lists, Mermaid in comments |
| `actors/` and `objects/` (ray-project#66415) | 7 + 2 pages | Doctest-heavy tabs |
| `scheduling/` (ray-project#66417) | 6 pages | Shared help partial |
| Jupyter (ray-project#66425) | `using-ray-with-jupyter` | Paragraphs that start
with a number |

Three pages under `ray-core/`, outside `api/`, stay RST:

- `compiled-graph/compiled-graph-api.rst` is four `autosummary` blocks
and nothing else, so it stays RST like the other API reference trees.
- `tasks/nested-tasks.rst` and `handling-dependencies.rst` are named in
`doc/BUILD.bazel`'s `doctest[core]` exclusions, so they convert in a
later PR that also updates that file.

### Other files this PR touches

- `ray-core/user-guide`: the section's toctree page converts to MyST
too. Its `patterns/index.rst` and `scheduling/index.rst` entries are now
extensionless, like their siblings. Sphinx resolves either form, so that
part is for consistency, not a fix. The only reference to the page, the
toctree entry in `walkthrough.md`, is already extensionless.
- `_includes/_help-links.md` is new. `scheduling/memory-management` and
`scheduling/ray-oom-prevention` end with the shared `_help.rst` partial,
which MyST can't include natively. `_help-links.md` is the same
four-item list in Markdown. It can't be named `_help.md`, because Sphinx
treats `_help.md` and `_help.rst` as the same document. `_help.rst`
stays for the three RST pages that still include it:
`ray-references/faq`, `cluster/vms/user-guides/community/yarn`, and
`tune/key-concepts`.
- `ray-core/examples/gentle_walkthrough.ipynb`,
`ray-core/examples/map_reduce.ipynb`, and
`ray-contribute/publishing-examples-legacy.md` pointed at
`examples/overview.rst` and now point at the `.md`.

No other file changes. Every other reference to these pages is
extensionless or goes through a label.

## Render differences from `/en/master`

`render_diff.py` against `/en/master` over all 80 converted pages: 65
render identically, and the other 15 differ only in the ways listed
below.

### Intended changes, where MyST renders what the source meant

- **`configure`, TLS step 1.** On `/en/master`, the `# Alternatively,
this command automatically encode ...` paragraph has no blank line
before its `.. code-block:: bash`, so docutils swallows the directive
into the paragraph. The `kubectl` command renders as a block quote with
its `--` flags turned into en-dashes. It now renders as the bash code
block the author intended. The leading `#` is escaped (`\#`) so the
paragraph stays a paragraph rather than becoming an H1.
- **`miscellaneous`, Benchmark.** "Increase the ARP cache size:" renders
on `/en/master` as a definition list, because its sub-items are indented
four spaces rather than two. It now renders as the nested bullet list
the source describes.
- **`objects/serialization`, custom-serialization list.** On
`/en/master`, the first item's `testoutput` is indented 2 spaces under
an item whose content starts at column 3. docutils ends the list,
renders the output in a stray block quote, and restarts the list at 2.
The MyST keeps the output inside item 1, so the three items render as
one list.

### Link changes

Relative `.html` links become Sphinx roles, because MyST reads a
scheme-less link target as a cross-reference and fails
`fail_on_warning`. They render as internal references rather than
external links. Four of them only worked on `/en/master` through a site
redirect, so each now points at the page the redirect already lands on.

- `tasks`: `` `Object refs <objects.html>`__ `` becomes `` {doc}`Object
refs <objects>` ``.
- `namespaces`: `` `Driver Options <configure.html#driver-options>`__ ``
becomes `` {ref}`Driver Options <java-driver-options>` ``. The href
anchor changes from `#driver-options` to `#java-driver-options`, and
both ids sit on the same section.
- `configure`: `` `documentation <package-ref.html#ray.init>`__ ``
becomes `` {doc}`documentation <api/index>` ``, where
`ray-core/package-ref.html` already redirects.
- `configure`: `` `Python time format <strftime.org>`__ `` becomes
`[Python time format](https://strftime.org/)`. The scheme-less target
resolved as a relative path that redirected to `https://strftime.org/`.
- `configure`: the `` `Java Applications`_ `` named reference becomes
`[Java Applications](#java-applications)`, the same href it renders to
today.
- `miscellaneous`: `` `Prometheus endpoint <ray-metrics.html>`_ ``
becomes `` {ref}`Prometheus endpoint <collect-metrics>` ``.
`ray-core/ray-metrics.html` redirects to `cluster/metrics.html`, whose
top label is `collect-metrics`.
- `starting-ray`: the `Configuration`, `Deployment section`,
`Kubernetes`, `YARN`, and `SLURM` links become `{doc}` roles to the same
pages.

### Anchor changes

- **`starting-ray`, "What's next?"** MyST slugs the heading `whats-next`
where docutils produced `what-s-next`. A compat target isn't possible,
because `what-s-next` is already a global label in
`cluster/getting-started.md`. No authored link in the repo points at
this anchor. The generated toctree entries in `advanced-topics` and
`user-guide` follow the new slug automatically, so those two pages'
render diffs show the same `#whats-next` change and nothing else.
- **`objects/serialization`, "Plasma Object Store".** On `/en/master`,
the link `` `Plasma object store <…>`_ `` creates a named target that
collides with the heading's implicit name, so docutils gives the section
the id `plasma-store`, plus a stray `id1`. MyST creates no named target
for a link, so the section takes its heading slug,
`plasma-object-store`. The `plasma-store` label still renders as an
anchor on the section, so `#plasma-store` links keep working.

### Constructs with no MyST equivalent

- **Line blocks** become Markdown hard line breaks, which render as
`<p>` plus `<br>` instead of `div.line-block`, with the same lines
visible. This affects the two links at the end of `ray-dag` and five
cells in the `tips-for-first-time` API table.

### Invisible markup differences

These don't change what a reader sees:

- **Definition-list class.** MyST's `<dl>` carries `class="simple myst"`
where docutils emits no class or `simple`. The class has no styling. It
appears in `cross-language` (3), `internals/metric-exporter`,
`direct-transport`, and `scheduling/memory-management`.
- **RST comments become HTML comments** in `examples/overview` and
`scheduling/memory-management`, so the author's note stays in the
source. RST emits no node for a comment, so the diff shows the `<!-- …
-->`, but it doesn't render. The five comments in
`internals/object-spilling` hold Mermaid source whose `-->` arrows would
end an HTML comment early. They're MyST `%` comments instead, which emit
nothing, like the RST.

`render_diff.py` filters the two inert differences every MyST page shows
against an RST page: `class="tex2jax_ignore mathjax_ignore"` on the root
`<section>`, and the missing `code` class on inline literals. Neither
class carries any styling.

## Verification

- **Static checks** on all 81 new `.md` files: frontmatter parses,
backtick and colon fences balance, there's no residual RST outside
fences, every label is preserved, directive counts match the `.rst`, and
there are no relative `.html`, `.rst`, or scheme-less links.
- **Soft-wrap.** Each page's reflow to one line per paragraph is
whitespace-only. `ray-soft-wrap`'s `verify.py` reports `content=ok
render=ok idempotent=ok` for every file.
- **Doctest coverage is unchanged.** `doctest[core]` runs
`pytest-sphinx`, which yields one pytest item per file, so `pytest
--collect-only` counts files, not blocks. To count blocks, I ran
`pytest-sphinx`'s own parser over each `.rst` on master and each new
`.md`. It builds 120 examples before and 120 after. That's every example
`doctest[core]` collects from `ray-core/` on master: this PR moves all
16 of that target's executed files to MyST. Every parsed section is
identical, including directive, body, `:options:`, and `:skipif:`, apart
from trailing whitespace dropped from a comment line in
`compiled-graph/quickstart`'s skipped block and from two lines of a
`serialization` code block.

  | Page | Examples before | Examples after |
  |---|---|---|
  | `scheduling/accelerators` | 35 | 35 |
  | `tips-for-first-time` | 14 | 14 |
  | `actors/async_api` | 10 | 10 |
  | `starting-ray` | 8 | 8 |
  | `objects/serialization` | 8 | 8 |
  | `actors` | 7 | 7 |
  | `miscellaneous` | 7 | 7 |
  | `scheduling/memory-management` | 7 | 7 |
  | `configure` | 6 | 6 |
  | `objects` | 4 | 4 |
  | `actors/concurrency_group_api` | 3 | 3 |
  | `actors/named-actors` | 3 | 3 |
  | `actors/task-orders` | 3 | 3 |
  | `actors/terminating-actors` | 3 | 3 |
  | `internals/task-lifecycle` | 1 | 1 |
  | `user-spawn-processes` | 1 | 1 |
  | **Total** | **120** | **120** |

None of the converted pages is in a doctest `exclude` list, and
`doctest[core]` globs both `.md` and `.rst`, so `doc/BUILD.bazel`
doesn't change.
- **Doctests executed locally.** This PR only touches doc sources, so
`.buildkite/test.rules.txt` routes it to no test steps, and
`doctest[core]` doesn't run premerge. I ran the converted doctest pages
through pytest locally, with the `doctest` macro's arguments, Ray's
pinned `pytest==7.4.4`, and the Ray nightly wheel (`674900c91faa`), on
Python 3.10 with `RAY_USAGE_STATS_PROMPT_ENABLED=0`. All pass except
`scheduling/accelerators`, which fails on a missing
`CUDA_VISIBLE_DEVICES` on a machine with no GPU. The master `.rst` fails
the same way, so that page's evidence is the parity check.
- **Build.** The Read the Docs preview is green under `fail_on_warning`.
- **Render diff.** `render_diff.py` against `/en/master` over all 80
pages: 65 identical, and every difference on the other 15 is listed
under [Render differences from
`/en/master`](#render-differences-from-enmaster).

**Duplicate check.** No other open PR converts these pages. Six open PRs
edit pages this PR converts, and each will need to move its change onto
the `.md` file when this lands: ray-project#64137 and ray-project#65979
(`direct-transport/direct-transport`), ray-project#66402 (`objects/serialization`),
ray-project#66368 (`scheduling/accelerators`), ray-project#65974 (`scheduling/placement-group`
and `scheduling/resources`), and ray-project#65792 (`tasks`).

This PR was prepared with AI assistance (Claude Code). I reviewed the
changes and ran the checks above.

## Related issue number

Part of the RST-to-MyST migration.

## Checks

- [x] I've signed off every commit (`git commit -s`).
- [x] I've made sure the tests are passing: the static checks, soft-wrap
verification, doctest parity check, and local doctest run pass, the RtD
build is green, and every render diff is explained above.
- Testing Strategy
   - [ ] Unit tests
   - [ ] Release tests
- [x] Docs-only change, verified with the static checks, doctest parity
check, RtD build, and render diff described above

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman added a commit that referenced this pull request Oct 7, 2026
…es (#66672)

## Why are these changes needed?

Style and grammar pass over the 13 Ray Core pages under
`doc/source/core/fault-tolerance/` and `doc/source/core/scheduling/`,
against `doc/source/ray-contribute/writing-style.md` and its "Writing
Ray Core docs" terms. This is the fourth prose layer of the Ray Core
stack. It's stacked on #66667 (design patterns), which is stacked on
#66666 (tasks, actors, and objects), #66642 (top-level pages), #66640
(Core Vale term library), and #66605 (the `ray-core/` to `core/` move).
A later layer covers `compiled-graph/`, `direct-transport/`,
`internals/`, and the remaining pages.

The edits are voice, person, tense, word choice, and list structure.
First-person plural is now "you" or an imperative. Per the Core terms
table, "Fault Tolerance", "Placement Group", and "Object Store" are now
lowercase, prose uses of `ObjectRef` are now "object ref", and
"retriable" is now "retryable". Inline enumerations and parenthetical
asides are now lists or separate sentences, and the three bold
`**Note:**` labels on `accelerators.md` are now note admonitions. On the
fault tolerance landing page, the MyST conversion had collapsed the two
failure classes into one paragraph ("two classes: 1\. application-level
failures 2. system-level failures Bugs in..."). That's now a two-item
list.

Headings changed only in case, except two on `labels.md`: "Specify label
requirements for a local RayCluster" now says "Ray cluster", because the
section is about a local `ray.init` cluster rather than the KubeRay
custom resource, and "Using labels with autoscaler" is now "Use labels
with the autoscaler". Both keep their old URL fragments through MyST
labels named after the old slugs. No link in `doc/source` targets any
changed slug. No code block, role target, or URL changed beyond the
fixes below.

### Fixes

Each of these is checked against the source tree or the page's own
output:

- `labels.md`: the example ran `ray start --head --labels-files=...`.
The flag is `--labels-file` (`python/ray/scripts/scripts.py`), as the
prose above it already said.
- `labels.md`: the `label_selector` example used `"test-lable-key"`,
which didn't match the `test-label-key` in the sample output.
- `placement-group.md`: the inline span `{"CPU": 1, "GPU: 1"}` had a
misplaced quote. It's now `{"CPU": 1, "GPU": 1}`.
- `accelerators.md`: "never release it" in a code comment is now "never
releases it".

### Lines left for open PRs

Four open PRs edit these pages, so the lines they touch or insert next
to are unchanged here. Each PR's change still applies cleanly on top of
this branch in a 3-way merge:

- #66550 (label selector operators): the operator table in `labels.md`
and the paragraph after it. That table still has curly quotes inside its
code spans, such as `{“key”: “value”}`, which aren't valid Python, and
"Label matches anything by one value" probably means "but". Fixing
either here would conflict with #66550, so they're left for that PR or a
follow-up.
- #66449 and #66368 (Biren and Cambricon accelerators): the
supported-accelerators table rows and the tab-items they insert between.
The "Inside a task or actor" paragraph in `accelerators.md` still has an
"e.g." and a parenthetical for the same reason.
- #65974 (resource dictionary keys): the bundle paragraph and its list
in `placement-group.md`, and the "You can also explicitly specify..."
paragraph in `resources.md`, which still says "via".

### Pre-existing claims, tracked separately

These claims were already on the pages, and this pass kept them as
written. They don't block this PR. #66790 fixes the mechanical ones and
#66791 corrects the ones that the source settles, both stacked on
#66677. The rest need a Core engineering decision and are tracked
separately:

- `scheduling/index.md`: the DEFAULT strategy "first favors nodes that
already have tasks or actors scheduled, for locality". The
locality-aware scheduling section describes locality as task-argument
locality that takes precedence over DEFAULT. Is "for locality" in the
DEFAULT description the same concept? The page also says "By default,
`k` is 20% of the total number of nodes", but the table above it
describes a `RAY_scheduler_top_k_absolute` floor.
- `placement-group.md`: the PACK example says "both bundles have to be
created on the same node", and the next sentences say PACK is a soft
policy that spreads bundles when they don't fit. Is "have to" right for
PACK?
- `fault-tolerance/gcs.md`: the KubeRay tab is titled "KubeRay
(officially supported)", but the note and the comparison table limit
official support to KubeRay for Ray Serve fault tolerance. Should the
title name that scope?
- `scheduling/memory-management.md`: the prose names a "Reference
Creation Site" column, but the `ray memory` sample output labels that
column "Call Site". The page also says each entry shows "the size of the
object in bytes", while the sample shows MiB.
- `scheduling/ray-oom-prevention.md`: the active-worker policy
prioritizes retryable "tasks", defined as `max_retries` or
`max_restarts` greater than 0. `max_restarts` applies to actors. Should
"tasks" be "workers"? Separately, "how to address memory issues" links
to the `addressing-memory-issues` label, which sits on a section of help
links only.
- `scheduling/resources.md`: the lead-in says Ray configures "logical
resources" with the rules that follow, but the last rule says object
store memory isn't a logical resource.
- `scheduling/labels.md`: the opening says labels control scheduling
"for KubeRay", but the page also covers `ray start` and local
`ray.init`. Are labels KubeRay-specific?

## Related issue number

None. Not a duplicate. #66550, #66449, #66368, and #65974 edit these
pages; see above.

## Checks

- `vale` on the 13 pages from the repo root: 687 alerts before the pass,
111 after. The remaining alerts are intentional passives where the page
names no actor, accelerator vendor acronyms in tab titles, "currently"
where it marks a temporary limitation or alpha feature, the "What is"
and "How do I" question headings on `ray-oom-prevention.md`, "cannot"
and "It is" inside warning admonitions, and alerts on the protected
lines above. The second commit adds `retryability` and `reconstructable`
to the `Core` accept list. Across `doc/source` that removes 3 alerts and
adds none.
- `codespell` on the 13 pages: clean. Curly quotes outside the protected
table are now ASCII.
- Per-file invariant check against the pre-edit files: fenced-code
count, role-target multiset, and URLs unchanged. The only anchor change
is the two legacy-slug labels on `labels.md`. Line-count changes come
from the new lists, the three note admonitions, and the definition-list
restructures in `memory-management.md` and `resources.md`.
- `doc/.claude/skills/ray-soft-wrap/scripts/softwrap.py --check`: clean.
Two `{ref}` roles in `fault-tolerance/` were hard-wrapped and are now
joined.
- 3-way merge of each open PR's change onto this branch: clean for all
four.
- Meaning review
([review](#66672 (review))):
of 365 changed blocks, 55 were cosmetic, and 306 of the other 310
preserved their meaning against the Ray source tree. The third commit
(8b782c4) restores the four that shifted a claim.
- Full `-W` doc build: relying on the Read the Docs preview.

AI assistance (Claude Code) was used to draft these edits.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@dstrodtman
dstrodtman force-pushed the docs-resource-dict-48709-pr branch from 8104c4f to c811fb9 Compare October 22, 2026 15:03

@dstrodtman dstrodtman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for picking up #48709, @bhushanasati25! I rebased this onto current master because #66605 moved doc/source/ray-core/ to doc/source/core/. Your commit carried over unchanged. Please pull before you push again.

I checked the new content against the source (resources_from_ray_options in python/ray/_common/utils.py, the option validators in python/ray/_common/ray_option_utils.py, and _validate_bundles in python/ray/util/placement_group.py). The key mapping is correct. My inline comments cover where the section sits on the page, one claim that needs scoping, and the example code. I'll follow up with a separate style and grammar pass. Ray Core maintainers have the final say on anything technical here.

Comment thread doc/source/core/scheduling/resources.md Outdated

(resource-dict-remote-options)=

### Resource dictionaries and `ray.remote` options

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This heading splits the "Specifying task or actor resource requirements" section. It sits between the paragraph on line 120 and the tab-set that demonstrates that paragraph. As a result, the existing Python/Java/C++ example and the concurrency paragraph after it now render under "Resource dictionaries and ray.remote options."

Could you move this block (the label through line 153) to just before ### Fractional resource requirements? The existing example then stays with its intro, and this section follows as a sibling H3.

Comment thread doc/source/core/scheduling/resources.md Outdated
- `"memory"` corresponds to `memory` and is measured in bytes.
- Custom resource names correspond to entries in the `resources` argument.

`object_store_memory` configures the object store size and isn't a schedulable resource requirement.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is accurate for ray.init() and ray start, where object_store_memory sizes the object store. In a section about ray.remote options, though, it reads as if the option sizes the store from there. In the code, the task option rejects it ("Setting 'object_store_memory' is not implemented for tasks"). Actors and placement group bundles accept it but emit a DeprecationWarning, because it doesn't reserve object store memory. Suggestion:

Suggested change
`object_store_memory` configures the object store size and isn't a schedulable resource requirement.
`object_store_memory` isn't a logical resource, so it doesn't work as a scheduling requirement. Ray doesn't support it for tasks, and it's deprecated for actors and placement group bundles because it doesn't reserve object store memory. To set the object store size for a node, see {ref}`specify-node-resources`.

Comment thread doc/source/core/scheduling/resources.md Outdated
Comment on lines +138 to +139
When you define a task or actor with {func}`ray.remote() <ray.remote>` or `.options()`,
use the dedicated keyword arguments for pre-defined resources and the `resources` dictionary for custom resources:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is correct, and it's stricter than "should": resources_from_ray_options raises a ValueError if the resources dictionary contains CPU, GPU, memory, or object_store_memory. Worth saying so explicitly, because that's the mistake readers coming from a resource dictionary make. For example: "Don't put these keys in the resources argument. Ray raises a ValueError if resources contains CPU, GPU, memory, or object_store_memory."

The old placement group text also noted that a custom resource has to be defined on the node first, for example ray.init(resources={"disk": 1}). Consider linking {ref}specify-node-resources here so custom_resource in the example doesn't look like it works without that step. (Optional.)

Comment thread doc/source/core/scheduling/resources.md Outdated
Comment on lines +141 to +153
```python
@ray.remote(
num_cpus=2,
num_gpus=1,
memory=1024 * 1024 * 1024,
resources={"custom_resource": 1},
)
def task():
...
```

For APIs that accept a resource dictionary directly, the equivalent resource dictionary is
`{"CPU": 2, "GPU": 1, "memory": 1073741824, "custom_resource": 1}`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ray CI doesn't test this block, and it mostly repeats the tested example in doc_code/resources.py (@ray.remote(num_cpus=2, num_gpus=2, resources={"special_hardware": 1})). If this section moves below that example, as suggested above, you could drop this code block and show the dictionary form of the tested example instead: {"CPU": 2, "GPU": 2, "special_hardware": 1}. That keeps the code on the page under test. If you want to keep a memory example, add it to doc_code/resources.py and pull it in with literalinclude.

@dstrodtman dstrodtman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Style and grammar pass from the Anyscale docs team (@dstrodtman), following up on the technical review above. I used Claude Code to help with both reviews. I've read every comment and stand behind them.

Scope here is prose and docs conventions against Ray's writing-style guide. Ray Core maintainers have the final say on the technical content.

One note that applies to the whole change: the guide asks for soft-wrapped prose, one source line per paragraph. The suggestions below rejoin the paragraphs they touch. Lines 138-139 and 152-153 in resources.md need the same treatment, but I left them alone because the technical comments on those lines might change their wording.

Comment on lines +36 to +38
Bundles are specified by a list of resource dictionaries, e.g., `[{"CPU": 1}, {"CPU": 1, "GPU": 1}]`.
For details on how resource dictionary keys correspond to task and actor options such as `num_cpus`
and `num_gpus`, see {ref}`resource-dict-remote-options`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Uses active voice, "for example" instead of "e.g.," and one soft-wrapped line, per the guide.

Suggested change
Bundles are specified by a list of resource dictionaries, e.g., `[{"CPU": 1}, {"CPU": 1, "GPU": 1}]`.
For details on how resource dictionary keys correspond to task and actor options such as `num_cpus`
and `num_gpus`, see {ref}`resource-dict-remote-options`.
Specify bundles as a list of resource dictionaries, for example, `[{"CPU": 1}, {"CPU": 1, "GPU": 1}]`. For how resource dictionary keys map to task and actor options such as `num_cpus` and `num_gpus`, see {ref}`resource-dict-remote-options`.

Comment thread doc/source/core/scheduling/resources.md Outdated
Comment on lines +126 to +129
Some Ray APIs describe resource requirements as a dictionary of resource names to quantities.
For example, a {ref}`placement group bundle <ray-placement-group-doc-ref>` can be written as
`{"CPU": 2, "GPU": 1, "memory": 1073741824, "custom_resource": 1}`.
The pre-defined resource keys correspond to the task and actor resource options:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rewrites "can be written" in active voice and joins the paragraph onto one line. The meaning and the example dictionary are unchanged.

Suggested change
Some Ray APIs describe resource requirements as a dictionary of resource names to quantities.
For example, a {ref}`placement group bundle <ray-placement-group-doc-ref>` can be written as
`{"CPU": 2, "GPU": 1, "memory": 1073741824, "custom_resource": 1}`.
The pre-defined resource keys correspond to the task and actor resource options:
Some Ray APIs take resource requirements as a dictionary that maps resource names to quantities. For example, you can write a {ref}`placement group bundle <ray-placement-group-doc-ref>` as `{"CPU": 2, "GPU": 1, "memory": 1073741824, "custom_resource": 1}`. The pre-defined resource keys correspond to the task and actor resource options:

Comment thread doc/source/core/scheduling/resources.md Outdated

- `"CPU"` corresponds to `num_cpus`.
- `"GPU"` corresponds to `num_gpus`.
- `"memory"` corresponds to `memory` and is measured in bytes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Drops the passive "is measured" and keeps the unit.

Suggested change
- `"memory"` corresponds to `memory` and is measured in bytes.
- `"memory"` corresponds to `memory`, in bytes.

@bhushanasati25

Copy link
Copy Markdown
Contributor Author

Thanks for the rebase and both review passes. Pushed c56ef20 directly on top of c811fb9, without rewriting the rebased history.

  • Moved the subsection below the existing examples and concurrency paragraph, before fractional resource requirements.
  • Clarified the unsupported/deprecated object_store_memory options and the reserved keys rejected in resources.
  • Linked node resource configuration, including the need to define custom resources first.
  • Removed the standalone code block and reused the default resource dictionary from the existing Python example.
  • Applied the active-voice, memory-unit, and soft-wrapping suggestions.

The full local Sphinx HTML build and a final rebuild of the two edited pages passed with zero Sphinx warnings. Eight additional source/rendering checks passed, as did git diff --check and the applicable pre-commit check. The PR description now has the current Markdown paths, validation commands, and local-environment details. No runtime code or executable examples changed, so runtime tests were not rerun.

This follow-up was AI-assisted. The review threads are left open for your verification.

This branch has not been deployed

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

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core docs An issue or change related to documentation unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. usability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core] Better document resource dict and its relationship to num_cpu, etc.

3 participants