{"id":1970,"date":"2021-09-07T08:30:26","date_gmt":"2021-09-07T06:30:26","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1970"},"modified":"2021-09-07T08:30:26","modified_gmt":"2021-09-07T06:30:26","slug":"elasticsearch-yml","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1970","title":{"rendered":"elasticsearch.yml"},"content":{"rendered":"<p>N.B.<br \/>\ncopiare i files .yml in .orig per avere un backup dato che sbagliare con lo yml \u00e8 troppo facile e con uno spazio in pi\u00f9 o in meno c&#8217;\u00e8 da impazzire.<\/p>\n<p>apt-get install elastichsearch<br \/>\nvisto che il mondo \u00e8 ormai systemd l&#8217;installazione non crea i link di runlevel, quindi update-rc.d elasticsearch defaults<\/p>\n<p>cd \/etc\/elasticsearch<\/p>\n<p>cp elasticsearch.yml elasticsearch.orig<\/p>\n<p>vim elasticsearch.yml<br \/>\nil file \u00e8 lunghissimo e quindi riporto solo le parti modificate, il resto \u00e8 come da setup<\/p>\n<p># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Cluster &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n#<br \/>\n# Use a descriptive name for your cluster:<br \/>\n#<br \/>\ncluster.name: stak-ELK<br \/>\n# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Network &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n#<br \/>\n# By default Elasticsearch is only accessible on localhost. Set a different<br \/>\n# address here to expose this node on the network:<br \/>\n#<br \/>\nnetwork.host: IP_di_ardito<br \/>\n#<br \/>\n# By default Elasticsearch listens for HTTP traffic on the first free port it<br \/>\n# finds starting at 9200. Set a specific HTTP port here:<br \/>\n#<br \/>\nhttp.port: 9200<br \/>\n#<br \/>\n# For more information, consult the network module documentation.<br \/>\n# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Discovery &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n#<br \/>\n# Pass an initial list of hosts to perform discovery when this node is started:<br \/>\n# The default list of hosts is [&#8220;127.0.0.1&#8221;, &#8220;[::1]&#8221;]<br \/>\n#<br \/>\ndiscovery.seed_hosts: []<br \/>\n#<br \/>\n# Bootstrap the cluster using an initial set of master-eligible nodes:<br \/>\n#<br \/>\n#cluster.initial_master_nodes: [&#8220;node-1&#8221;, &#8220;node-2&#8221;]<br \/>\n#<br \/>\n# For more information, consult the discovery and cluster formation module documentation.<br \/>\ndiscovery.type: single-node<\/p>\n<p>il file jvm.options va modificato in questo modo<\/p>\n<h6>##########################################################<br \/>\n## IMPORTANT: JVM heap size<br \/>\n################################################################<br \/>\n##<br \/>\n## The heap size is automatically configured by Elasticsearch<br \/>\n## based on the available memory in your system and the roles<br \/>\n## each node is configured to fulfill. If specifying heap is<br \/>\n## required, it should be done through a file in jvm.options.d,<br \/>\n## and the min and max should be set to the same value. For<br \/>\n## example, to set the heap to 4 GB, create a new file in the<br \/>\n## jvm.options.d directory containing these lines:<br \/>\n##<\/h6>\n<p>## -Xms4g<br \/>\n## -Xmx4g<\/p>\n<p>-Xms512m<br \/>\n-Xmx512m<br \/>\n##<br \/>\n## See https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/heap-size.html<br \/>\n## for more information<br \/>\n##<br \/>\n################################################################<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>N.B. copiare i files .yml in .orig per avere un backup dato che sbagliare con lo yml \u00e8 troppo facile e con uno spazio in pi\u00f9 o in meno c&#8217;\u00e8 da impazzire. apt-get install elastichsearch visto che il mondo \u00e8 ormai systemd l&#8217;installazione non crea i link di runlevel, quindi update-rc.d elasticsearch defaults cd \/etc\/elasticsearch [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,14,6],"tags":[217,213,216],"class_list":["post-1970","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-work","tag-elastichsearch-yml","tag-elk","tag-yaml"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1970"}],"version-history":[{"count":2,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1970\/revisions"}],"predecessor-version":[{"id":1973,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1970\/revisions\/1973"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1970"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}