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

Document transport.compress trade-offs more clearly #108458

Conversation

DaveCTurner
Copy link
Contributor

Spells out explicitly that setting transport.compress: true may cost
extra CPU.

@DaveCTurner DaveCTurner added >docs General docs changes :Distributed/Network Http and internode communication implementations v8.14.1 v8.15.0 v8.13.5 labels May 9, 2024
Copy link

github-actions bot commented May 9, 2024

Documentation preview:

@DaveCTurner DaveCTurner force-pushed the 2024/05/09/transport.compress-tradeoffs branch 2 times, most recently from 2de68ac to f9e28b9 Compare May 9, 2024 14:58
Spells out explicitly that setting `transport.compress: true` may cost
extra CPU.
@DaveCTurner DaveCTurner force-pushed the 2024/05/09/transport.compress-tradeoffs branch from f9e28b9 to 9d1338f Compare May 9, 2024 15:07
@DaveCTurner DaveCTurner marked this pull request as ready for review May 9, 2024 17:22
@elasticsearchmachine elasticsearchmachine added Team:Distributed Meta label for distributed team Team:Docs Meta label for docs team labels May 9, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

compression by to the `transport.compress` setting. Accepts either `deflate` or
`lz4`, which offer different trade-offs between compression ratio and CPU
usage. {es} will use the same compression scheme for responses as for the
corresponding requests. If `lz4` is configured and the remote node has not been
upgraded to a version supporting `lz4`, the traffic will be sent uncompressed.
Copy link
Contributor

Choose a reason for hiding this comment

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

LZ4 was added in V_7_14_0 which cannot communicate on non-handshake requests with current version nodes. So I don't think we need to document this fallback behavior anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah right good point, I did wonder whether that was obsolete.

@DaveCTurner DaveCTurner added auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport-and-merge Automatically create backport pull requests and merge when ready labels May 9, 2024
@elasticsearchmachine elasticsearchmachine merged commit 6ecb295 into elastic:main May 9, 2024
5 checks passed
@DaveCTurner DaveCTurner deleted the 2024/05/09/transport.compress-tradeoffs branch May 9, 2024 18:05
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request May 9, 2024
Spells out explicitly that setting `transport.compress: true` may cost
extra CPU.
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.14
8.13 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 108458

elasticsearchmachine pushed a commit that referenced this pull request May 9, 2024
)

Spells out explicitly that setting `transport.compress: true` may cost
extra CPU.
Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM

DaveCTurner added a commit that referenced this pull request May 13, 2024
Spells out explicitly that setting `transport.compress: true` may cost
extra CPU.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport pending :Distributed/Network Http and internode communication implementations >docs General docs changes Team:Distributed Meta label for distributed team Team:Docs Meta label for docs team v8.13.5 v8.14.1 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants