Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add watcher to the threadpool doc #73935

Merged
merged 5 commits into from
Jun 16, 2021

Conversation

renshuki
Copy link
Contributor

@renshuki renshuki commented Jun 9, 2021

watcher is a relatively common threadpool and I think it would be beneficial to add it to the doc.

Based on:

static int getWatcherThreadPoolSize(final boolean isDataNode, final int allocatedProcessors) {
if (isDataNode) {
final long size = Math.max(Math.min(5 * allocatedProcessors, 50), allocatedProcessors);
return Math.toIntExact(size);
} else {
return 1;
}
}

@elasticsearchmachine elasticsearchmachine added the external-contributor Pull request authored by a developer outside the Elasticsearch team label Jun 9, 2021
@renshuki renshuki changed the title Add watcher to the threadpool doc [DOC] Add watcher to the threadpool doc Jun 9, 2021
@renshuki renshuki added the Team:Docs Meta label for docs team label Jun 9, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

LGTM. I'm going to incorporate a minor change. I'll wait for an engineer to approve before merging.

docs/reference/modules/threadpool.asciidoc Outdated Show resolved Hide resolved
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jun 9, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@jrodewig jrodewig requested a review from joegallo June 9, 2021 11:35
@joegallo
Copy link
Contributor

joegallo commented Jun 10, 2021

I'll review this one today, thanks for the heads up @jrodewig. (edit from the future: I hang my head in shame! This fell off my plate and then I forgot it. 😞)

joegallo added 3 commits June 16, 2021 10:46
Just trying to match more precisely the pattern of the previous
entries.
The pattern went awry on all these -- see `management` where it's
"with a keep-alive of `5m` and a default maximum size of". Here we
lost the keep-alive phrase, so the 'and' should instead be a 'with'.
@joegallo joegallo requested a review from jrodewig June 16, 2021 14:49
Copy link
Contributor

@joegallo joegallo left a comment

Choose a reason for hiding this comment

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

I added some commits by way of review, so I'm 👍 now. @jrodewig would you mind re-reviewing?

Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @renshuki @joegallo.

@jrodewig jrodewig merged commit 0ea7cbd into elastic:master Jun 16, 2021
jrodewig added a commit that referenced this pull request Jun 16, 2021
Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Joe Gallo <[email protected]>
Co-authored-by: François-Clément Brossard <[email protected]>
jrodewig added a commit that referenced this pull request Jun 16, 2021
Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Joe Gallo <[email protected]>
Co-authored-by: François-Clément Brossard <[email protected]>
limingnihao pushed a commit to limingnihao/elasticsearch that referenced this pull request Jun 17, 2021
* master: (284 commits)
  [DOCS] Update central reporting image (elastic#74195)
  [DOCS] SQL: Document `null` handing for string functions (elastic#74201)
  Fix Snapshot Docs Listing Query Params in Body Incorrectly (elastic#74196)
  [DOCS] EQL: Note EQL uses `fields` parameter (elastic#74194)
  Mute failing MixedClusterClientYamlTestSuiteIT test {p0=indices.split/20_source_mapping/Split index ignores target template mapping} test (elastic#74198)
  Cleanup Duplicate Constants in Snapshot XContent Params (elastic#74114)
  [DOC] Add watcher to the threadpool doc (elastic#73935)
  [Rest Api Compatibility] Validate Query typed api (elastic#74171)
  Replace deprecated `script.cache.*` settings with `script.context.$constext.cache_*` in documentation. (elastic#74144)
  Pin Alpine Linux version in Docker builds (elastic#74169)
  Fix clone API settings docs bug (elastic#74175)
  [ML] refactor internal datafeed management (elastic#74018)
  Disable query cache for FunctionScoreQuery and ScriptScoreQuery (elastic#74060)
  Fork the sending of file chunks during recovery (elastic#74164)
  RuntimeField.Builder should not extend FieldMapper.Builder (elastic#73840)
  Run CheckIndex on metadata index before loading (elastic#73239)
  Deprecate setting version on analyzers (elastic#74073)
  Add test with null transform id in stats request (elastic#74130)
  Order imports when reformatting (elastic#74059)
  Move deprecation code from xpack core to deprecation module. (elastic#74120)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Watcher >docs General docs changes external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Data Management Meta label for data/management team Team:Docs Meta label for docs team v7.13.3 v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants