DATAES-741 / Tests fail due to Elasticsearch cluster 'blocks' on nearly-full file-systems.

Original PR: #393
This commit is contained in:
Roman Puchkovskiy 2020-02-15 19:22:40 +04:00 committed by GitHub
parent 9696f418fd
commit 1f56a9b9fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ import org.springframework.data.elasticsearch.client.NodeClientFactoryBean;
* @author Artur Konczak
* @author Ilkang Na
* @author Peter-Josef Meisch
* @author Roman Puchkovskiy
*/
public class Utils {
@ -46,6 +47,11 @@ public class Utils {
.put("path.data", pathData) //
.put("cluster.name", clusterName) //
.put("node.max_local_storage_nodes", 100)//
// the following 3 settings are needed to avoid problems on big, but
// almost full filesystems, see DATAES-741
.put("cluster.routing.allocation.disk.watermark.low", "1gb")//
.put("cluster.routing.allocation.disk.watermark.high", "1gb")//
.put("cluster.routing.allocation.disk.watermark.flood_stage", "1gb")//
.build(), //
Collections.singletonList(Netty4Plugin.class));
}