Add clustering to ES function

This commit is contained in:
Mike Reeves
2020-10-19 16:52:43 -04:00
parent 6f703fad25
commit 23bc5e303e

View File

@@ -1200,14 +1200,19 @@ manager_global() {
" features: False"\ " features: False"\
"elasticsearch:"\ "elasticsearch:"\
" replicas: 0"\ " replicas: 0"\
" true_cluster: False"\ if [ -z "$ESCLUSTERNAME" ]; then
" true_cluster_name: 'so'"\ " true_cluster: False"
" true_cluster_name: 'so'"
else
" true_cluster: True"
" true_cluster_name: '$ESCLUSTERNAME'"
fi
" discovery_nodes: 1"\ " discovery_nodes: 1"\
" hot_warm_enabled: False"\ " hot_warm_enabled: False"\
" cluster_routing_allocation_disk.threshold_enabled: true"\ " cluster_routing_allocation_disk.threshold_enabled: true"\
" cluster_routing_allocation_disk_watermark_low: '95%'"\ " cluster_routing_allocation_disk_watermark_low: '95%'"\
" cluster_routing_allocation_disk_watermark_high: '98%'"\ " cluster_routing_allocation_disk_watermark_high: '98%'"\
" cluster_routing_allocation_disk_watermark_flood_stage: '98%'"\ " cluster_routing_allocation_disk_watermark_flood_stage: '98%'"\
" index_settings:"\ " index_settings:"\
" so-beats:"\ " so-beats:"\
" shards: 1"\ " shards: 1"\