elasticsearch.yml —
N.B.
copiare i files .yml in .orig per avere un backup dato che sbagliare con lo yml è troppo facile e con uno spazio in più o in meno c’è da impazzire.
apt-get install elastichsearch
visto che il mondo è ormai systemd l’installazione non crea i link di runlevel, quindi update-rc.d elasticsearch defaults
cd /etc/elasticsearch
cp elasticsearch.yml elasticsearch.orig
vim elasticsearch.yml
il file è lunghissimo e quindi riporto solo le parti modificate, il resto è come da setup
# ———————————- Cluster ———————————–
#
# Use a descriptive name for your cluster:
#
cluster.name: stak-ELK
# ———————————- Network ———————————–
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: IP_di_ardito
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
# ——————————— Discovery ———————————-
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is [“127.0.0.1”, “[::1]”]
#
discovery.seed_hosts: []
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: [“node-1”, “node-2”]
#
# For more information, consult the discovery and cluster formation module documentation.
discovery.type: single-node
il file jvm.options va modificato in questo modo
##########################################################
## IMPORTANT: JVM heap size
################################################################
##
## The heap size is automatically configured by Elasticsearch
## based on the available memory in your system and the roles
## each node is configured to fulfill. If specifying heap is
## required, it should be done through a file in jvm.options.d,
## and the min and max should be set to the same value. For
## example, to set the heap to 4 GB, create a new file in the
## jvm.options.d directory containing these lines:
##
## -Xms4g
## -Xmx4g
-Xms512m
-Xmx512m
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
## for more information
##
################################################################
Categorised as: Linux | Networking | Work
Comments are disabled on this post