Skip to content

Commit

Permalink
Disable swapping for Elasticsearch containers (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Nov 8, 2024
1 parent e09e4b8 commit 0604e92
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ private static GenericContainer<?> elasticsearch(DockerImageName dockerImageName
// Older images require HTTP authentication for all requests;
// it's not practical for testing, so we disable that:
.withEnv( "xpack.security.enabled", "false" )
// Prevent swapping
.withEnv( "bootstrap.memory_lock", "true" )
// Limit the RAM usage.
// Recent versions of ES limit themselves to 50% of the total available RAM,
// but on CI this is sometimes too much, as we also have the Maven JVM
Expand Down

0 comments on commit 0604e92

Please sign in to comment.