mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-07-01 08:12:11 +00:00
DATAES-741 / Tests fail due to Elasticsearch cluster 'blocks' on nearly-full file-systems.
Original PR: #393
This commit is contained in:
parent
9696f418fd
commit
1f56a9b9fe
@ -30,6 +30,7 @@ import org.springframework.data.elasticsearch.client.NodeClientFactoryBean;
|
|||||||
* @author Artur Konczak
|
* @author Artur Konczak
|
||||||
* @author Ilkang Na
|
* @author Ilkang Na
|
||||||
* @author Peter-Josef Meisch
|
* @author Peter-Josef Meisch
|
||||||
|
* @author Roman Puchkovskiy
|
||||||
*/
|
*/
|
||||||
public class Utils {
|
public class Utils {
|
||||||
|
|
||||||
@ -46,6 +47,11 @@ public class Utils {
|
|||||||
.put("path.data", pathData) //
|
.put("path.data", pathData) //
|
||||||
.put("cluster.name", clusterName) //
|
.put("cluster.name", clusterName) //
|
||||||
.put("node.max_local_storage_nodes", 100)//
|
.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(), //
|
.build(), //
|
||||||
Collections.singletonList(Netty4Plugin.class));
|
Collections.singletonList(Netty4Plugin.class));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user