<p>Describe the bug:
i have deployed elasticsearch with PVC in my EKS cluster and worked fine without issue and we tried to scale down node and scale up started facing issue and pod is in pending state.</p>
<p>Steps to reproduce:</p>
<pre><code>1.helm repo add elastic https://helm.elastic.co
2.with Helm 3: helm install elasticsearch elastic/elasticsearch
3. git clone git@github.com:elastic/helm-charts.git
4. went to elastcsearch working directory and run below
5. kubectl create ns elastic
6. helm install elasticsearch . -n elastic
</code></pre>
<p>Expected behavior:</p>
<p>Cluster will run as expected without issue and tried to scale</p>
<pre><code>kubectl scale --replicas=0 sts/elasticsearch-master -n elastic
kubectl scale --replicas=3 sts/elasticsearch-master -n elastic
</code></pre>
<p>now my pod is pending state and stuck</p>
<pre><code>kubectl logs pod/elasticsearch-master-0 -n elastic
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:18,156Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;version[7.17.3], pid[7], build[default/docker/5ad023604c8d7416c9eb6c0eadb62b14e766caff/2022-04-19T08:11:19.070913226Z], OS[Linux/5.4.181-99.354.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/18/18+36]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:18,159Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:18,160Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -Djava.security.manager=allow, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-8450783023809497710, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -Xms1024m, -Xmx1024m, -XX:MaxDirectMemorySize=536870912, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,531Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.p.PluginsService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,544Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.p.PluginsService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;loaded plugin [repository-s3]&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,547Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.ml] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.ml&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,629Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.data] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.data&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,644Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.e.NodeEnvironment&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/xvdck)]], net usable_space [9.6gb], net total_space [9.7gb], types [ext4]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,645Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.e.NodeEnvironment&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;heap size [1gb], compressed ordinary object pointers [true]&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,725Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.master] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.master&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,729Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.remote_cluster_client] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.remote_cluster_client&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,730Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.ingest] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.ingest&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,846Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;node name [elasticsearch-master-0], node ID [VeyMV5ZNRMW3UyW8taNGkQ], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,848Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;legacy role settings [node.data, node.remote_cluster_client, node.ingest, node.master, node.ml] are deprecated, use [node.roles=[transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]]&quot;, &quot;key&quot;: &quot;legacy role settings&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:33,947Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.x.m.p.l.CppLogMessageHandler&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[controller/180] [Main.cc@122] controller (64 bit): Version 7.17.3 (Build b3cb07de236c11) Copyright (c) 2022 Elasticsearch BV&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:35,946Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.x.s.a.s.FileRolesStore&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:37,230Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.i.g.ConfigDatabases&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;initialized default databases [[GeoLite2-Country.mmdb, GeoLite2-City.mmdb, GeoLite2-ASN.mmdb]], config databases [[]] and watching [/usr/share/elasticsearch/config/ingest-geoip] for changes&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:37,232Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.i.g.DatabaseNodeService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;initialized database registry, using geoip-databases directory [/tmp/elasticsearch-8450783023809497710/geoip-databases/VeyMV5ZNRMW3UyW8taNGkQ]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:38,421Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.t.NettyAllocator&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=1gb}]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:38,455Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.i.r.RecoverySettings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:38,556Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.d.DiscoveryModule&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;using discovery type [zen] and seed hosts providers [settings]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:39,663Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.g.DanglingIndicesState&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually&quot; }
{0.0.0.0:9300}&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:42,582Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.b.BootstrapChecks&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;bound or publishing to a non-loopback address, enforcing bootstrap checks&quot; }

(base) devops@devops-XPS-15-9570:~/Desktop/Repo$ kubectl logs pod/elasticsearch-master-0 -n elastic
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:18,156Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;version[7.17.3], pid[7], build[default/docker/5ad023604c8d7416c9eb6c0eadb62b14e766caff/2022-04-19T08:11:19.070913226Z], OS[Linux/5.4.181-99.354.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/18/18+36]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:18,159Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:18,160Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -Djava.security.manager=allow, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-8450783023809497710, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -Xms1024m, -Xmx1024m, -XX:MaxDirectMemorySize=536870912, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,531Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.p.PluginsService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;loaded module [aggs-matrix-stats]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,544Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.p.PluginsService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;loaded module [x-pack-watcher]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,544Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.p.PluginsService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;loaded plugin [repository-s3]&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,547Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.ml] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.ml&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,629Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.data] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.data&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,644Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.e.NodeEnvironment&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/xvdck)]], net usable_space [9.6gb], net total_space [9.7gb], types [ext4]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,645Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.e.NodeEnvironment&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;heap size [1gb], compressed ordinary object pointers [true]&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,725Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.master] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.master&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,729Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.remote_cluster_client] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.remote_cluster_client&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,730Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.c.s.Settings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[node.ingest] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.&quot;, &quot;key&quot;: &quot;node.ingest&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,846Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;node name [elasticsearch-master-0], node ID [VeyMV5ZNRMW3UyW8taNGkQ], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]&quot; }
{&quot;type&quot;: &quot;deprecation.elasticsearch&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:23,848Z&quot;, &quot;level&quot;: &quot;CRITICAL&quot;, &quot;component&quot;: &quot;o.e.d.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;legacy role settings [node.data, node.remote_cluster_client, node.ingest, node.master, node.ml] are deprecated, use [node.roles=[transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]]&quot;, &quot;key&quot;: &quot;legacy role settings&quot;, &quot;category&quot;: &quot;settings&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:33,947Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.x.m.p.l.CppLogMessageHandler&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;[controller/180] [Main.cc@122] controller (64 bit): Version 7.17.3 (Build b3cb07de236c11) Copyright (c) 2022 Elasticsearch BV&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:35,946Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.x.s.a.s.FileRolesStore&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:37,230Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.i.g.ConfigDatabases&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;initialized default databases [[GeoLite2-Country.mmdb, GeoLite2-City.mmdb, GeoLite2-ASN.mmdb]], config databases [[]] and watching [/usr/share/elasticsearch/config/ingest-geoip] for changes&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:37,232Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.i.g.DatabaseNodeService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;initialized database registry, using geoip-databases directory [/tmp/elasticsearch-8450783023809497710/geoip-databases/VeyMV5ZNRMW3UyW8taNGkQ]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:38,421Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.t.NettyAllocator&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=1gb}]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:38,455Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.i.r.RecoverySettings&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:38,556Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.d.DiscoveryModule&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;using discovery type [zen] and seed hosts providers [settings]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:39,663Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.g.DanglingIndicesState&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:41,243Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;initialized&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:41,243Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;starting ...&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:41,260Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.x.s.c.f.PersistentCache&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;persistent cache index loaded&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:41,261Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.x.d.l.DeprecationIndexingComponent&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;deprecation component started&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:41,458Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.t.TransportService&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;publish_address {192.168.131.86:9300}, bound_addresses {0.0.0.0:9300}&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:42,582Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.b.BootstrapChecks&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;bound or publishing to a non-loopback address, enforcing bootstrap checks&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:42,636Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.c.c.Coordinator&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;cluster UUID [miG-kHiRS02W-Tf8F-Nqjg]&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:03:52,646Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;o.e.c.c.ClusterFormationFailureHelper&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;master not discovered or elected yet, an election requires 2 nodes with ids [VeyMV5ZNRMW3UyW8taNGkQ, r6usGUfQScG8GBc-39cang], have only discovered non-quorum [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}]; discovery will continue using [] from hosts providers and [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}] from last-known cluster state; node term 1, last-accepted version 196 in term 1&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:02,648Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;o.e.c.c.ClusterFormationFailureHelper&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;master not discovered or elected yet, an election requires 2 nodes with ids [VeyMV5ZNRMW3UyW8taNGkQ, r6usGUfQScG8GBc-39cang], have only discovered non-quorum [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}]; discovery will continue using [] from hosts providers and [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}] from last-known cluster state; node term 1, last-accepted version 196 in term 1&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:12,649Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;o.e.c.c.ClusterFormationFailureHelper&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;master not discovered or elected yet, an election requires 2 nodes with ids [VeyMV5ZNRMW3UyW8taNGkQ, r6usGUfQScG8GBc-39cang], have only discovered non-quorum [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}]; discovery will continue using [] from hosts providers and [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}] from last-known cluster state; node term 1, last-accepted version 196 in term 1&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:12,650Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;timed out while waiting for initial discovery state - timeout: 30s&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:12,661Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.h.AbstractHttpServerTransport&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;publish_address {192.168.131.86:9200}, bound_addresses {0.0.0.0:9200}&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:12,661Z&quot;, &quot;level&quot;: &quot;INFO&quot;, &quot;component&quot;: &quot;o.e.n.Node&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;started&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:14,174Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;r.suppressed&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;path: /_cluster/health, params: {wait_for_status=green, timeout=1s}&quot;, 
&quot;stacktrace&quot;: [&quot;org.elasticsearch.discovery.MasterNotDiscoveredException: null&quot;,
&quot;at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:297) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:660) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]&quot;,
&quot;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]&quot;,
&quot;at java.lang.Thread.run(Thread.java:833) [?:?]&quot;] }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:22,650Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;o.e.c.c.ClusterFormationFailureHelper&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;master not discovered or elected yet, an election requires 2 nodes with ids [VeyMV5ZNRMW3UyW8taNGkQ, r6usGUfQScG8GBc-39cang], have only discovered non-quorum [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}]; discovery will continue using [] from hosts providers and [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}] from last-known cluster state; node term 1, last-accepted version 196 in term 1&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:24,129Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;r.suppressed&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;path: /_cluster/health, params: {wait_for_status=green, timeout=1s}&quot;, 
&quot;stacktrace&quot;: [&quot;org.elasticsearch.discovery.MasterNotDiscoveredException: null&quot;,
&quot;at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:297) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:660) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]&quot;,
&quot;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]&quot;,
&quot;at java.lang.Thread.run(Thread.java:833) [?:?]&quot;] }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:32,651Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;o.e.c.c.ClusterFormationFailureHelper&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;master not discovered or elected yet, an election requires 2 nodes with ids [VeyMV5ZNRMW3UyW8taNGkQ, r6usGUfQScG8GBc-39cang], have only discovered non-quorum [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}]; discovery will continue using [] from hosts providers and [{elasticsearch-master-0}{VeyMV5ZNRMW3UyW8taNGkQ}{TogPUQAJRqqipcnACoBtoQ}{192.168.131.86}{192.168.131.86:9300}{cdfhilmrstw}] from last-known cluster state; node term 1, last-accepted version 196 in term 1&quot; }
{&quot;type&quot;: &quot;server&quot;, &quot;timestamp&quot;: &quot;2022-05-09T01:04:34,136Z&quot;, &quot;level&quot;: &quot;WARN&quot;, &quot;component&quot;: &quot;r.suppressed&quot;, &quot;cluster.name&quot;: &quot;elasticsearch&quot;, &quot;node.name&quot;: &quot;elasticsearch-master-0&quot;, &quot;message&quot;: &quot;path: /_cluster/health, params: {wait_for_status=green, timeout=1s}&quot;, 
&quot;stacktrace&quot;: [&quot;org.elasticsearch.discovery.MasterNotDiscoveredException: null&quot;,
&quot;at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:297) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:660) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.17.3.jar:7.17.3]&quot;,
&quot;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]&quot;,
&quot;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]&quot;,
&quot;at java.lang.Thread.run(Thread.java:833) [?:?]&quot;] }
</code></pre>
<pre><code>[Github link issue] (https://github.com/elastic/helm-charts/issues/1654)
</code></pre>

devopsdymyr
<p>You cannot scale down master nodes directly. To scale down Elasticsearch master nodes, you need to exclude the nodes from voting first. Otherwise, the pod will look up for the old master nodes (ie. old node hash).</p>
<p>Say you have a SatefulSet for master nodes with 3 replicas (node names: <code>elasticsearch-master-0</code>, <code>elasticsearch-master-1</code>, <code>elasticsearch-master-2</code>), and you want to scale it down to 1 replica.</p>
<ul>
<li><p><strong>Step 1:</strong> Exclude <code>elasticsearch-master-1</code> and <code>elasticsearch-master-2</code> from voting:</p>
<pre class="lang-sh prettyprint-override"><code>$ curl -X POST &quot;localhost:9200/_cluster/voting_config_exclusions?node_names=elasticsearch-master-1&amp;pretty&quot;
$ curl -X POST &quot;localhost:9200/_cluster/voting_config_exclusions?node_names=elasticsearch-master-2&amp;pretty&quot;
</code></pre>
</li>
<li><p><strong>Step 2:</strong> Now scale down the replicas:</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl scale --replicas=1 sts/elasticsearch-master -n elastic
</code></pre>
</li>
<li><p><strong>Step 3:</strong> Remove exclusion, so that once you scale up again, they can join automatically:</p>
<pre class="lang-sh prettyprint-override"><code>$ curl -X DELETE &quot;localhost:9200/_cluster/voting_config_exclusions?wait_for_removal=false&amp;pretty&quot;
</code></pre>
</li>
</ul>
<p><strong>Ref:</strong> <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.17/add-elasticsearch-nodes.html#modules-discovery-removing-nodes" rel="nofollow noreferrer">Removing master-eligible nodes</a></p>
<p><strong>N.B.:</strong> For password-protected Elasticsearch, you need to provide the username and password with <code>curl</code> commands. Such as <code>$ curl -u 'username:password' ... </code>.</p>
