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. |
jasontedor
left a comment
There was a problem hiding this comment.
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
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
TransportRequestOptionsallows specific requests to requestcompression. This commit removes this and always compresses based on the
settings. Additionally, it removes
TransportResponseOptionsas theyare unused.
This closes #36399.