Skip to content

Commit

Permalink
Disable default disk threshold check in ElasticsearchContainer (#7245)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Jun 28, 2023
1 parent c5732a8 commit 69555ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public ElasticsearchContainer(final DockerImageName dockerImageName) {

withNetworkAliases("elasticsearch-" + Base58.randomString(6));
withEnv("discovery.type", "single-node");
// disable disk threshold checks
withEnv("cluster.routing.allocation.disk.threshold_enabled", "false");
// Sets default memory of elasticsearch instance to 2GB
// Spaces are deliberate to allow user to define additional jvm options as elasticsearch resolves option files lexicographically
withClasspathResourceMapping(
Expand Down

0 comments on commit 69555ee

Please sign in to comment.