Skip to content

crimson: Simplify first time deployments - #65007

Merged
Matan-B merged 6 commits into
ceph:mainfrom
Matan-B:wip-matanb-crimson-docs-aug25
Aug 25, 2025
Merged

Matan-B merged 6 commits into
ceph:mainfrom
Matan-B:wip-matanb-crimson-docs-aug25

Conversation

@Matan-B

@Matan-B Matan-B commented Aug 13, 2025 •

Copy link
Copy Markdown
Contributor
  • CPU allocation missed some information and was a bit confusing for first time readers
  • Drop alienized term when possible
  • introduce release/debug builds
  • Rename crimson seastar cpu cores / num threads. Exposing "Seastar" to users might be confusing.
  • Move conf options to sections

https://ceph--65007.org.readthedocs.build/en/65007/dev/crimson/crimson/

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

@Matan-B
Matan-B requested a review from a team as a code owner August 13, 2025 08:46
@Matan-B
Matan-B requested review from a team and athanatos and removed request for a team August 13, 2025 08:46
@Matan-B Matan-B added this to Crimson Aug 13, 2025
@Matan-B Matan-B moved this to Awaits review in Crimson Aug 13, 2025
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch 4 times, most recently from 8199bfa to 6bf2d18 Compare August 13, 2025 10:10

@perezjosibm perezjosibm 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.

Found some minor typos. Many thanks!

Comment thread doc/dev/crimson/crimson.rst Outdated

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.

Suggestion:
Alternatively, simply divide the number of OSDs by the total number of CPU cores of the node (nproc) to be the value for crimson_seastar_num_threads.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would prefer to keep it as is, the node might need cpu available for other processes as well, so we shouldn't recommend always using all that are available.
In any case, we would probably keep iterating over this section in the future as we become more confident about recommended usage guides.

@Matan-B Matan-B Aug 13, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've addressed the the other comments/typos. Can you take an additional look please? Thanks!

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.

I would prefer to keep it as is, the node might need cpu available for other processes as well, so we shouldn't recommend always using all that are available. In any case, we would probably keep iterating over this section in the future as we become more confident about recommended usage guides.

I see your point, wonder whether a subtle warning that Seastar is intended to use dedicated CPU cores might help the user to decide.

@Matan-B Matan-B Aug 13, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We haven't seen significant advantage so far to this approach, we can use a warning if found otherwise (if proven to be false)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

btw, we already have a warning for this. Though I'm thinking about removing it, will bring it up in next standup:

  if (auto cpu_cores =
        local_conf().get_val<std::string>("crimson_seastar_cpu_cores");
      cpu_cores.empty()) {
    clog->warn() << "for optimal performance please set "
                    "crimson_seastar_cpu_cores";
  }

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.

Suggestion: Alternatively, simply divide the number of OSDs by the total number of CPU cores of the node (nproc) to be the value for crimson_seastar_num_threads.

That sounds a lot like the osd_memory_target auto tuner. Any plan to have cephadm manage this dynamically?

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.

I would rephrase like:

We recommend setting a value for crimson_seastar_num_threads that is less than the host’s number of cores / hyperthreads divided by the number of OSDs on that host.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggestion: Alternatively, simply divide the number of OSDs by the total number of CPU cores of the node (nproc) to be the value for crimson_seastar_num_threads.

That sounds a lot like the osd_memory_target auto tuner. Any plan to have cephadm manage this dynamically?

Yes, https://tracker.ceph.com/issues/66159 :)

Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Resolved
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch from 6bf2d18 to a6d16ec Compare August 13, 2025 14:39
@Matan-B
Matan-B requested a review from perezjosibm August 13, 2025 14:42

@perezjosibm perezjosibm 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.

LGTM, I was wondering that the examples with a few tweaks could be illustrative. Thanks

Comment thread doc/dev/crimson/crimson.rst Outdated

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.

I wonder whether these examples could be used for Section Bluestore below?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we slowly try to move away from deploying Crimson with a) Bluestore b) Custom CPU sets (complex and error-prone).
As this is the documentation is also targeting new Crimson users trying to deploy for the first time I would like to try to keep it simple (as possible) - for a successful first time deployment.
From there, one could try setting manual cpu sets to measure the impact. Though we haven't seen any significant advantage so far.

Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Outdated

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.

I think the example that was removed in section above could be useful here,

@Matan-B Matan-B Aug 13, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ditto, I'm ok with being outvoted though. We can always address this in side docs aimed for developers, as this also targets first time users. I would like to not have a possibly-confusing (i.e alien threads ,cpu_sets) additional examples.

Note, see ceph-users mailing from today which is the reason for this pr essentially.

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.

Existing docs have a bunch of duplication in the dev guide, I’d support for now grouping together.

Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Outdated

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.

I would rephrase like:

We recommend setting a value for crimson_seastar_num_threads that is less than the host’s number of cores / hyperthreads divided by the number of OSDs on that host.

@github-actions

github-actions Bot commented Aug 14, 2025 •

Copy link
Copy Markdown

Config Diff Tool Output

+ added: crimson_cpu_set (crimson.yaml.in)
+ added: crimson_cpu_num (crimson.yaml.in)
- removed: crimson_seastar_cpu_cores (crimson.yaml.in)
- removed: crimson_seastar_num_threads (crimson.yaml.in)
! changed: crimson_alien_thread_cpu_cores: old: CPU cores on which alienstore threads will run in cpuset(7) format (crimson.yaml.in)
! changed: crimson_alien_thread_cpu_cores: new: CPU cores on which POSIX threads alienized to seastar will run in cpuset(7) format (crimson.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@Matan-B Matan-B changed the title doc/dev/crimson: Update Documentation crimson: Simplify first time deployments Aug 14, 2025
@Matan-B

Matan-B commented Aug 14, 2025

Copy link
Copy Markdown
Contributor Author

/config check ok

@Matan-B

Matan-B commented Aug 14, 2025

Copy link
Copy Markdown
Contributor Author

@perezjosibm, @athanatos - I'm changing the scope of this PR. PTAL, thanks!

@Matan-B

Matan-B commented Aug 14, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch from 278210d to 9cef24f Compare August 14, 2025 14:33
Comment thread doc/dev/crimson/crimson.rst Resolved
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch from b093b2e to 4e89efa Compare August 17, 2025 10:36
@Matan-B
Matan-B requested a review from athanatos August 17, 2025 10:36
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch from 4e89efa to f74bdf7 Compare August 17, 2025 10:37
@Matan-B

Matan-B commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Matan-B

Matan-B commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

Comment thread doc/dev/crimson/crimson.rst Resolved
Comment thread doc/dev/crimson/crimson.rst Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this page just for developers? many users may not find it obvious how to find a commit sha1

@Matan-B Matan-B Aug 20, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've added a friendlier explanation above - filter crimson-release".
Crimson builds in quay are formatted as: sha1-crimson-release (no branch names) - the sha1 should be copied from one of the latest available images.

is this page just for developers?

For now the page is targeting both developers and early-adopters. I think that once cephadm would support Seastore we should be able to separate it into 2 different page.

Currently the page is under dev, after separating, sections like "vstart" "buidling" and "Code Walkthroughs" could be left out from the user guide.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jdurgin jdurgin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks like a great cleanup, much clearer!

@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch from f74bdf7 to 7756de4 Compare August 20, 2025 10:19
* CPU allocation missed some information and was confusing.
* Drop alienized term when possible
* introdice release/debug builds

Signed-off-by: Matan Breizman <[email protected]>
We want to avoid Ceph users using "seastar" term when possible.
This is an internal detail.

Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Neha Ojha <[email protected]>
Avoid confusing Ceph users with "seastar" terms when possible.

Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Neha Ojha <[email protected]>
Using a cpu set is yet to prove a distinct impact.
As first time users are likely to use the non cpu_set variant,
let's try to avoid "scary" warnings.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-docs-aug25 branch from 7756de4 to 0c08099 Compare August 20, 2025 10:40
@Matan-B

Matan-B commented Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

1 similar comment
@Matan-B

Matan-B commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@Matan-B

Matan-B commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Matan-B

Matan-B commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

@Matan-B

Matan-B commented Aug 25, 2025 •

Copy link
Copy Markdown
Contributor Author

Merging based on:
https://pulpito.ceph.com/matan-2025-08-21_14:55:44-crimson-rados-wip-matanb-crimson-only-65007-distro-crimson-debug-smithi/

The failures are unrelated as this run was used to make sure all new option names are used ok.

@Matan-B
Matan-B merged commit cac6681 into ceph:main Aug 25, 2025
@Matan-B Matan-B moved this from Awaits review to Merged (Main) in Crimson Aug 25, 2025
@zdover23

Copy link
Copy Markdown
Contributor

The documentation changes in 8ff129c have been backported to Tentacle and to Squid in the following PRs:

#65310 - Tentacle backport
#65311 - Squid backport

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

Projects

Status: Merged (Pre Umbrella cutoff)

Development

Successfully merging this pull request may close these issues.

6 participants