Repository navigation
crimson: Simplify first time deployments - #65007
Conversation
8199bfa to
6bf2d18
Compare
perezjosibm
left a comment
There was a problem hiding this comment.
Found some minor typos. Many thanks!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
I've addressed the the other comments/typos. Can you take an additional look please? Thanks!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
We haven't seen significant advantage so far to this approach, we can use a warning if found otherwise (if proven to be false)
There was a problem hiding this comment.
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";
}
There was a problem hiding this comment.
Suggestion: Alternatively, simply divide the number of OSDs by the total number of CPU cores of the node (
nproc) to be the value forcrimson_seastar_num_threads.
That sounds a lot like the osd_memory_target auto tuner. Any plan to have cephadm manage this dynamically?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Suggestion: Alternatively, simply divide the number of OSDs by the total number of CPU cores of the node (
nproc) to be the value forcrimson_seastar_num_threads.That sounds a lot like the osd_memory_target auto tuner. Any plan to have cephadm manage this dynamically?
6bf2d18 to
a6d16ec
Compare
perezjosibm
left a comment
There was a problem hiding this comment.
LGTM, I was wondering that the examples with a few tweaks could be illustrative. Thanks
There was a problem hiding this comment.
I wonder whether these examples could be used for Section Bluestore below?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
I think the example that was removed in section above could be useful here,
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Existing docs have a bunch of duplication in the dev guide, I’d support for now grouping together.
There was a problem hiding this comment.
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.
a6d16ec to
4563681
Compare
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. |
|
/config check ok |
|
@perezjosibm, @athanatos - I'm changing the scope of this PR. PTAL, thanks! |
|
jenkins test make check arm64 |
278210d to
9cef24f
Compare
b093b2e to
4e89efa
Compare
4e89efa to
f74bdf7
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
There was a problem hiding this comment.
is this page just for developers? many users may not find it obvious how to find a commit sha1
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
jdurgin
left a comment
There was a problem hiding this comment.
looks like a great cleanup, much clearer!
f74bdf7 to
7756de4
Compare
* 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]>
details Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
7756de4 to
0c08099
Compare
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
jenkins test make check |
|
The failures are unrelated as this run was used to make sure all new option names are used ok. |
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition