-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Always compress based on the settings #36522
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
Always compress based on the settings #36522
Conversation
Pinging @elastic/es-distributed |
BackgroundThis approach is based on the discussion in #36399. I want to point out that it is kind of different than the approaches discussed in #33844. In #33844 there was agreement that the Just so the rules are understood here: BehaviorRequests
ResponsesWe compress the response IF the request was compressed. This is a change from prior (6.5) behavior which would only compress responses if Also, we will ALWAYS compress responses if BlockerThis should be considered a blocker for 6.6 as the current behavior will lead to many more requests being compressed than in 6.5. And that will lead to unexpected performance degradation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, left one comment twice. No need for another round.
server/src/main/java/org/elasticsearch/discovery/zen/PublishClusterStateAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/coordination/PublicationTransportHandler.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tbrooks8
Currently TransportRequestOptions allows specific requests to request compression. This commit removes this and always compresses based on the settings. Additionally, it removes TransportResponseOptions as they are unused. This closes elastic#36399.
Currently TransportRequestOptions allows specific requests to request compression. This commit removes this and always compresses based on the settings. Additionally, it removes TransportResponseOptions as they are unused. This closes #36399.
Currently
TransportRequestOptions
allows specific requests to requestcompression. This commit removes this and always compresses based on the
settings. Additionally, it removes
TransportResponseOptions
as theyare unused.
This closes #36399.