merlimat commented on a change in pull request #12547:
URL: https://github.com/apache/pulsar/pull/12547#discussion_r739671399
##########
File path:
tests/integration/src/test/java/org/apache/pulsar/tests/integration/containers/ElasticSearchContainer.java
##########
@@ -23,24 +23,24 @@
import java.util.Optional;
public class ElasticSearchContainer extends
ChaosContainer<ElasticSearchContainer> {
-
+
public static final String NAME = "ElasticSearch";
static final Integer[] PORTS = { 9200, 9300 };
public static final String IMAGE_NAME =
Optional.ofNullable(System.getenv("ELASTICSEARCH_IMAGE"))
.orElse("docker.elastic.co/elasticsearch/elasticsearch:7.15.0");
public ElasticSearchContainer(String clusterName) {
- super(clusterName, IMAGE_NAME);
+ super(clusterName, IMAGE_NAME);
}
-
+
@Override
protected void configure() {
super.configure();
this.withNetworkAliases(NAME)
.withExposedPorts(PORTS)
.withEnv("discovery.type", "single-node")
- .withEnv("ES_JAVA_OPTS", "-Xms2g -Xmx2g")
+ .withEnv("ES_JAVA_OPTS", "-Xms512m -Xmx1500m")
Review comment:
It's basically just an optimization to avoid JVM heap expansions when
the process needs more memory. That's why for prod setting, we want to put `Xms
== Xmx`. In the case of these tests, the ES process might not even need to get
500Mb of RAM, so we could save on that by omitting the parameter altogether.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]