Skip to content

Commit 6df69b7

Browse files
Remove unused Netty-related settings (#26161)
With this commit we remove the following three previously unused (and undocumented) Netty 4 related settings: * transport.netty.max_cumulation_buffer_capacity, * transport.netty.max_composite_buffer_components and * http.netty.max_cumulation_buffer_capacity from Elasticsearch.
1 parent aced3dd commit 6df69b7

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

docs/reference/migration/migrate_6_0/settings.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ As a consequence, the `network.tcp.blocking_server`, `network.tcp.blocking_clien
6666
`network.tcp.blocking`,`transport.tcp.blocking_client`, `transport.tcp.blocking_server`,
6767
and `http.tcp.blocking_server` settings are not recognized anymore.
6868

69+
The previously unused settings `transport.netty.max_cumulation_buffer_capacity`,
70+
`transport.netty.max_composite_buffer_components` and
71+
`http.netty.max_cumulation_buffer_capacity` have been removed.
72+
6973
==== Similarity settings
7074

7175
The `base` similarity is now ignored as coords and query normalization have

modules/transport-netty4/src/main/java/org/elasticsearch/http/netty4/Netty4HttpServerTransport.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ public class Netty4HttpServerTransport extends AbstractLifecycleComponent implem
118118
Netty4Utils.setup();
119119
}
120120

121-
public static Setting<ByteSizeValue> SETTING_HTTP_NETTY_MAX_CUMULATION_BUFFER_CAPACITY =
122-
Setting.byteSizeSetting("http.netty.max_cumulation_buffer_capacity", new ByteSizeValue(-1), Property.NodeScope);
123121
public static Setting<Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS =
124122
Setting.intSetting("http.netty.max_composite_buffer_components", -1, Property.NodeScope);
125123

@@ -187,7 +185,6 @@ public class Netty4HttpServerTransport extends AbstractLifecycleComponent implem
187185
protected final ByteSizeValue tcpReceiveBufferSize;
188186
protected final RecvByteBufAllocator recvByteBufAllocator;
189187

190-
protected final ByteSizeValue maxCumulationBufferCapacity;
191188
protected final int maxCompositeBufferComponents;
192189
private final Dispatcher dispatcher;
193190

@@ -218,7 +215,6 @@ public Netty4HttpServerTransport(Settings settings, NetworkService networkServic
218215
this.maxHeaderSize = SETTING_HTTP_MAX_HEADER_SIZE.get(settings);
219216
this.maxInitialLineLength = SETTING_HTTP_MAX_INITIAL_LINE_LENGTH.get(settings);
220217
this.resetCookies = SETTING_HTTP_RESET_COOKIES.get(settings);
221-
this.maxCumulationBufferCapacity = SETTING_HTTP_NETTY_MAX_CUMULATION_BUFFER_CAPACITY.get(settings);
222218
this.maxCompositeBufferComponents = SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS.get(settings);
223219
this.workerCount = SETTING_HTTP_WORKER_COUNT.get(settings);
224220
this.port = SETTING_HTTP_PORT.get(settings);

modules/transport-netty4/src/main/java/org/elasticsearch/transport/Netty4Plugin.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public class Netty4Plugin extends Plugin implements NetworkPlugin {
5353
@Override
5454
public List<Setting<?>> getSettings() {
5555
return Arrays.asList(
56-
Netty4HttpServerTransport.SETTING_HTTP_NETTY_MAX_CUMULATION_BUFFER_CAPACITY,
5756
Netty4HttpServerTransport.SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS,
5857
Netty4HttpServerTransport.SETTING_HTTP_WORKER_COUNT,
5958
Netty4HttpServerTransport.SETTING_HTTP_TCP_NO_DELAY,
@@ -65,8 +64,6 @@ public List<Setting<?>> getSettings() {
6564
Netty4HttpServerTransport.SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN,
6665
Netty4HttpServerTransport.SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX,
6766
Netty4Transport.WORKER_COUNT,
68-
Netty4Transport.NETTY_MAX_CUMULATION_BUFFER_CAPACITY,
69-
Netty4Transport.NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS,
7067
Netty4Transport.NETTY_RECEIVE_PREDICTOR_SIZE,
7168
Netty4Transport.NETTY_RECEIVE_PREDICTOR_MIN,
7269
Netty4Transport.NETTY_RECEIVE_PREDICTOR_MAX,

modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Transport.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ public class Netty4Transport extends TcpTransport<Channel> {
9696
(s) -> Integer.toString(EsExecutors.numberOfProcessors(s) * 2),
9797
(s) -> Setting.parseInt(s, 1, "transport.netty.worker_count"), Property.NodeScope);
9898

99-
public static final Setting<ByteSizeValue> NETTY_MAX_CUMULATION_BUFFER_CAPACITY =
100-
Setting.byteSizeSetting("transport.netty.max_cumulation_buffer_capacity", new ByteSizeValue(-1), Property.NodeScope);
101-
public static final Setting<Integer> NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS =
102-
Setting.intSetting("transport.netty.max_composite_buffer_components", -1, -1, Property.NodeScope);
103-
10499
public static final Setting<ByteSizeValue> NETTY_RECEIVE_PREDICTOR_SIZE = Setting.byteSizeSetting(
105100
"transport.netty.receive_predictor_size", new ByteSizeValue(64, ByteSizeUnit.KB), Property.NodeScope);
106101
public static final Setting<ByteSizeValue> NETTY_RECEIVE_PREDICTOR_MIN =
@@ -111,8 +106,6 @@ public class Netty4Transport extends TcpTransport<Channel> {
111106
intSetting("transport.netty.boss_count", 1, 1, Property.NodeScope);
112107

113108

114-
protected final ByteSizeValue maxCumulationBufferCapacity;
115-
protected final int maxCompositeBufferComponents;
116109
protected final RecvByteBufAllocator recvByteBufAllocator;
117110
protected final int workerCount;
118111
protected final ByteSizeValue receivePredictorMin;
@@ -127,8 +120,6 @@ public Netty4Transport(Settings settings, ThreadPool threadPool, NetworkService
127120
super("netty", settings, threadPool, bigArrays, circuitBreakerService, namedWriteableRegistry, networkService);
128121
Netty4Utils.setAvailableProcessors(EsExecutors.PROCESSORS_SETTING.get(settings));
129122
this.workerCount = WORKER_COUNT.get(settings);
130-
this.maxCumulationBufferCapacity = NETTY_MAX_CUMULATION_BUFFER_CAPACITY.get(settings);
131-
this.maxCompositeBufferComponents = NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS.get(settings);
132123

133124
// See AdaptiveReceiveBufferSizePredictor#DEFAULT_XXX for default values in netty..., we can use higher ones for us, even fixed one
134125
this.receivePredictorMin = NETTY_RECEIVE_PREDICTOR_MIN.get(settings);

0 commit comments

Comments
 (0)