Skip to content

Commit

Permalink
Lower http netty worker count in tests to 1
Browse files Browse the repository at this point in the history
Only a small fraction of the tests use HTTP. Most go either through
pgwire or use the sessions directly. We can reduce the load a bit by
lowering the worker count for http.
  • Loading branch information
mfussenegger authored and mergify[bot] committed May 26, 2020
1 parent f9306c0 commit c1dd7da
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -71,6 +71,7 @@
import org.elasticsearch.common.transport.BoundTransportAddress;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.http.netty4.Netty4HttpServerTransport;
import org.elasticsearch.index.IndexService;
import org.elasticsearch.index.shard.IndexShard;
import org.elasticsearch.indices.IndicesService;
Expand Down Expand Up @@ -177,6 +178,7 @@ protected Settings nodeSettings(int nodeOrdinal) {
Settings.Builder builder = Settings.builder()
.put(super.nodeSettings(nodeOrdinal))
.put(SETTING_HTTP_COMPRESSION.getKey(), false)
.put(Netty4HttpServerTransport.SETTING_HTTP_WORKER_COUNT.getKey(), 1)
.put(PSQL_PORT_SETTING.getKey(), 0);
if (randomBoolean()) {
builder.put("memory.allocation.type", "off-heap");
Expand Down

0 comments on commit c1dd7da

Please sign in to comment.