<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic In my Search Head Cluster, why does &amp;quot;show shcluster-status&amp;quot; show captain, but not the members' information? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/In-my-Search-Head-Cluster-why-does-quot-show-shcluster-status/m-p/394644#M14350</link>
    <description>&lt;P&gt;After a recent bundle push from deployer to our search head cluster (SHC) members running Splunk Enterprise version 7.2.4, SHC is in a broken state with missing member information:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunk@SH1 bin]$ ./splunk show shcluster-status 

Captain: 
dynamic_captain : 1 
elected_captain : Wed Feb 20 19:02:42 2019 
id : 718F33BC-E8A5-4EDB-AFAE-279860226B84 
initialized_flag : 0 
label : SH1
mgmt_uri : &lt;A href="https://SH1:8089" target="test_blank"&gt;https://SH1:8089&lt;/A&gt; 
min_peers_joined_flag : 0 
rolling_restart_flag : 0 
service_ready_flag : 0 

Members: 

[splunk@SH2 bin]$ ./splunk show shcluster-status 

Captain: 
dynamic_captain : 1 
elected_captain : Wed Feb 20 19:02:42 2019 
id : 718F33BC-E8A5-4EDB-AFAE-27986022 
initialized_flag : 0 
label : SH1
mgmt_uri : &lt;A href="https://SH1:8089" target="test_blank"&gt;https://SH1:8089&lt;/A&gt; 
min_peers_joined_flag : 0 
rolling_restart_flag : 0 
service_ready_flag : 0 

[splunk@SH3 bin]$ ./splunk show shcluster-status 

Captain: 
dynamic_captain : 1 
elected_captain : Wed Feb 20 19:02:42 2019 
id : 718F33BC-E8A5-4EDB-AFAE-279860226B84 
initialized_flag : 0 
label : SH1 
mgmt_uri : &lt;A href="https://SH1:8089" target="test_blank"&gt;https://SH1:8089&lt;/A&gt; 
min_peers_joined_flag : 0 
rolling_restart_flag : 0 
service_ready_flag : 0 

Members: 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It appears the election had successfully done with all members voted SH1 to be the captain, but member information just couldn't get updated.&lt;/P&gt;

&lt;P&gt;From SHC captain SH1's splunkd.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-20-2019 19:02:53.796 -0600 ERROR SHCRaftConsensus - failed appendEntriesRequest err: uri=https://SH3:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json, socket_error=Connection refused to &lt;A href="https://SH3:8089" target="test_blank"&gt;https://SH3:8089&lt;/A&gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;Tried below procedure to clean up RAFT then bootstrap a static captain but same result after doing so:
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/DistSearch/Handleraftissues#Fix_the_entire_cluster"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/DistSearch/Handleraftissues#Fix_the_entire_cluster&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Confirmed all members have their serverName defined properly to its own name.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Confirmed no network issue as each member can access each other's mgmt port 8089 through below curl cmd:&lt;/P&gt;

&lt;P&gt;curl -s -k &lt;A href="https://hostname:8089/services/server/info"&gt;https://hostname:8089/services/server/info&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Also tried increasing the thread through the below setting and restarted Splunk on all members.&lt;/P&gt;

&lt;P&gt;server.conf&lt;BR /&gt;
[httpServer] &lt;BR /&gt;
maxSockets =1000000&lt;BR /&gt;
maxThreads= 50000&lt;BR /&gt;
The issue remains the same. None of the SHC members are listed under "show shcluster-status" and the SHC remains broken along with kvstore cluster not established.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 22 Feb 2019 01:47:10 GMT</pubDate>
    <dc:creator>scheng_splunk</dc:creator>
    <dc:date>2019-02-22T01:47:10Z</dc:date>
    <item>
      <title>In my Search Head Cluster, why does "show shcluster-status" show captain, but not the members' information?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/In-my-Search-Head-Cluster-why-does-quot-show-shcluster-status/m-p/394644#M14350</link>
      <description>&lt;P&gt;After a recent bundle push from deployer to our search head cluster (SHC) members running Splunk Enterprise version 7.2.4, SHC is in a broken state with missing member information:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunk@SH1 bin]$ ./splunk show shcluster-status 

Captain: 
dynamic_captain : 1 
elected_captain : Wed Feb 20 19:02:42 2019 
id : 718F33BC-E8A5-4EDB-AFAE-279860226B84 
initialized_flag : 0 
label : SH1
mgmt_uri : &lt;A href="https://SH1:8089" target="test_blank"&gt;https://SH1:8089&lt;/A&gt; 
min_peers_joined_flag : 0 
rolling_restart_flag : 0 
service_ready_flag : 0 

Members: 

[splunk@SH2 bin]$ ./splunk show shcluster-status 

Captain: 
dynamic_captain : 1 
elected_captain : Wed Feb 20 19:02:42 2019 
id : 718F33BC-E8A5-4EDB-AFAE-27986022 
initialized_flag : 0 
label : SH1
mgmt_uri : &lt;A href="https://SH1:8089" target="test_blank"&gt;https://SH1:8089&lt;/A&gt; 
min_peers_joined_flag : 0 
rolling_restart_flag : 0 
service_ready_flag : 0 

[splunk@SH3 bin]$ ./splunk show shcluster-status 

Captain: 
dynamic_captain : 1 
elected_captain : Wed Feb 20 19:02:42 2019 
id : 718F33BC-E8A5-4EDB-AFAE-279860226B84 
initialized_flag : 0 
label : SH1 
mgmt_uri : &lt;A href="https://SH1:8089" target="test_blank"&gt;https://SH1:8089&lt;/A&gt; 
min_peers_joined_flag : 0 
rolling_restart_flag : 0 
service_ready_flag : 0 

Members: 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It appears the election had successfully done with all members voted SH1 to be the captain, but member information just couldn't get updated.&lt;/P&gt;

&lt;P&gt;From SHC captain SH1's splunkd.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-20-2019 19:02:53.796 -0600 ERROR SHCRaftConsensus - failed appendEntriesRequest err: uri=https://SH3:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json, socket_error=Connection refused to &lt;A href="https://SH3:8089" target="test_blank"&gt;https://SH3:8089&lt;/A&gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;Tried below procedure to clean up RAFT then bootstrap a static captain but same result after doing so:
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/DistSearch/Handleraftissues#Fix_the_entire_cluster"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/DistSearch/Handleraftissues#Fix_the_entire_cluster&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Confirmed all members have their serverName defined properly to its own name.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Confirmed no network issue as each member can access each other's mgmt port 8089 through below curl cmd:&lt;/P&gt;

&lt;P&gt;curl -s -k &lt;A href="https://hostname:8089/services/server/info"&gt;https://hostname:8089/services/server/info&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Also tried increasing the thread through the below setting and restarted Splunk on all members.&lt;/P&gt;

&lt;P&gt;server.conf&lt;BR /&gt;
[httpServer] &lt;BR /&gt;
maxSockets =1000000&lt;BR /&gt;
maxThreads= 50000&lt;BR /&gt;
The issue remains the same. None of the SHC members are listed under "show shcluster-status" and the SHC remains broken along with kvstore cluster not established.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 22 Feb 2019 01:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/In-my-Search-Head-Cluster-why-does-quot-show-shcluster-status/m-p/394644#M14350</guid>
      <dc:creator>scheng_splunk</dc:creator>
      <dc:date>2019-02-22T01:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: In my Search Head Cluster, why does "show shcluster-status" show captain, but not the members' information?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/In-my-Search-Head-Cluster-why-does-quot-show-shcluster-status/m-p/394645#M14351</link>
      <description>&lt;P&gt;This issue is most likely due to dispatch directory on each of the SHC members was very large through large bundle push and leads to large payload hence SHC failing to add the SH members.&lt;/P&gt;

&lt;P&gt;You may check &lt;STRONG&gt;splunkd_access.log&lt;/STRONG&gt; to look for any &lt;STRONG&gt;413 PAYLOAD TOO LARGE&lt;/STRONG&gt; error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;e.g.
x.x.x.x - - [20/Feb/2019:19:32:29.471 -0600] "POST /services/shcluster/captain/members HTTP/1.1" 413 180 - - - 0ms
x.x.x.x - - [20/Feb/2019:19:32:25.024 -0600] "POST /services/shcluster/captain/members HTTP/1.1" 413 180 - - - 0ms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://httpstatuses.com/413" target="_blank"&gt;https://httpstatuses.com/413&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;root cause&lt;/STRONG&gt; is bundle is too large and hit &lt;STRONG&gt;2GB limit of max_content_length&lt;/STRONG&gt;.&lt;BR /&gt;
To resolve it you may set following in &lt;STRONG&gt;server.conf&lt;/STRONG&gt; on all the SH members and restart splunk to apply the setting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[httpServer]
max_content_length=21474836480 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;max_content_length = &lt;BR /&gt;
* Maximum content length, in bytes.&lt;BR /&gt;
* HTTP requests over the size specified are rejected.&lt;BR /&gt;
* This setting exists to avoid allocating an unreasonable amount&lt;BR /&gt;&lt;BR /&gt;
of memory from web requests.&lt;BR /&gt;
* In environments where indexers have enormous amounts of RAM, this   number&lt;BR /&gt;
can be reasonably increased to handle&lt;BR /&gt;
large quantities of   bundle data.&lt;BR /&gt;
* Default: 2147483648 (2GB)&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf#Splunkd_HTTP_server_configuration" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf#Splunkd_HTTP_server_configuration&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/In-my-Search-Head-Cluster-why-does-quot-show-shcluster-status/m-p/394645#M14351</guid>
      <dc:creator>scheng_splunk</dc:creator>
      <dc:date>2020-09-29T23:19:56Z</dc:date>
    </item>
  </channel>
</rss>

