mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Maybe it's not smart to try to determine the health of the cluster, before starting the cluster
This commit is contained in:
parent
6743207e8a
commit
509f0cf2d1
1 changed files with 7 additions and 7 deletions
|
@ -34,13 +34,6 @@ $STD apt-get update
|
||||||
$STD apt-get install elasticsearch
|
$STD apt-get install elasticsearch
|
||||||
msg_ok "Installed Elastcisearch"
|
msg_ok "Installed Elastcisearch"
|
||||||
|
|
||||||
msg_info "Configuring User"
|
|
||||||
ELASTIC_USER=elastic
|
|
||||||
ELASTIC_PASSWORD=$(/usr/share/elasticsearch/bin/elasticsearch-reset-password -sbf -u $ELASTIC_USER)
|
|
||||||
KIBANA_TOKEN=$(/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana)
|
|
||||||
ENROLLMENT_TOKEN=$(/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node)
|
|
||||||
msg_ok "Installed Elastcisearch"
|
|
||||||
|
|
||||||
msg_info "Configuring Elasticsearch Memory"
|
msg_info "Configuring Elasticsearch Memory"
|
||||||
$STD sed -i -E 's/## -Xms[0-9]+[Ggm]/-Xms3g/' /etc/elasticsearch/jvm.options
|
$STD sed -i -E 's/## -Xms[0-9]+[Ggm]/-Xms3g/' /etc/elasticsearch/jvm.options
|
||||||
$STD sed -i -E 's/## -Xmx[0-9]+[Ggm]/-Xmx3g/' /etc/elasticsearch/jvm.options
|
$STD sed -i -E 's/## -Xmx[0-9]+[Ggm]/-Xmx3g/' /etc/elasticsearch/jvm.options
|
||||||
|
@ -52,6 +45,13 @@ $STD /bin/systemctl enable elasticsearch.service
|
||||||
$STD /bin/systemctl start elasticsearch.service
|
$STD /bin/systemctl start elasticsearch.service
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
msg_info "Configuring User"
|
||||||
|
ELASTIC_USER=elastic
|
||||||
|
ELASTIC_PASSWORD=$(/usr/share/elasticsearch/bin/elasticsearch-reset-password -sbf -u $ELASTIC_USER)
|
||||||
|
KIBANA_TOKEN=$(/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana)
|
||||||
|
ENROLLMENT_TOKEN=$(/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node)
|
||||||
|
msg_ok "Configured User"
|
||||||
|
|
||||||
msg_info "Checking Health"
|
msg_info "Checking Health"
|
||||||
ELASTIC_PORT=9200
|
ELASTIC_PORT=9200
|
||||||
echo "User: $ELASTIC_USER"
|
echo "User: $ELASTIC_USER"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue