Skip to content

Commit

Permalink
Test content reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcarabine committed May 20, 2017
1 parent cbf5fef commit 90e94ad
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 24 deletions.
2 changes: 1 addition & 1 deletion content/cli/cbcli/setting-autofailover.dita
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@


<p><b>Enable the auto failover with a timeout value of 60 seconds:</b></p>
<codeblock>couchbase-cli setting-autofailover -c 192.168.0.1:8091 -u Administrator -p password \
<codeblock id="example">couchbase-cli setting-autofailover -c 192.168.0.1:8091 -u Administrator -p password \
--enable-auto-failover=1 --auto-failover-timeout=60</codeblock>
<p><b>Response</b></p> <codeblock>SUCCESS: set auto failover settings</codeblock>

Expand Down
4 changes: 2 additions & 2 deletions content/rest-api/rest-cluster-autofailover-enable.dita
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
</section>


<section><title>Example</title>
<section id="example"><title>Example</title>
<p>Curl request example:</p>
<codeblock>curl -i -u Administrator:password \
<codeblock id="curl-example">curl -i -u Administrator:password \
http://10.5.2.54:8091/settings/autoFailover \
-d &apos;enabled=true&amp;timeout=600&apos;</codeblock>

Expand Down
50 changes: 29 additions & 21 deletions content/settings/change-failover-settings.dita
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,46 @@
<title>Define Failover Settings</title><shortdesc>When enabled, the auto-failover feature will automatically failover a node identified as
unresponsive or unavailable.</shortdesc>
<body>

<p>Full Administrators and Cluster Administrators can enable auto-failover feature.</p>
<p>Automatic failover is disabled by default. When you enable the auto-failover, it is enabled
for all services except for the Index Service. The timeout settings determine how long a node
is unresponsive to the rest of the cluster before the auto-failover process triggers a
failover. </p>
<p><image href="../admin/picts/settings-autofailover.png" id="image_orb_n41_1t" align="left"
width="720"/></p>
<p>To enable the automatic failover using the Web Console:</p>
<ol>
<li>From the <uicontrol>Couchbase Web Console</uicontrol> > <uicontrol>Settings</uicontrol> >
select the <uicontrol>Auto-Failover</uicontrol> tab. </li>
<li>Select the <uicontrol>Enable auto-failover </uicontrol>check box to enable the
setting.</li>
<li>To set the delay in seconds before auto-failover is started, enter the number of seconds
in the <wintitle>Timeout</wintitle> box and click <uicontrol>Save</uicontrol>. The default
timeout is 120 seconds. In almost all cases, it is recommended to leave the timeout at the
default.</li>
</ol>
<draft-comment author="shilpa.lele">Matt - Do you know if the following Note belongs to the REST
API section or this section. I don't see any resetting option on the UI. <p>The auto failure
settings can also be adjusted using the REST API.</p><p>Example:
<codeblock>curl -X POST -u Admin:Pass http://localhost:8091/settings/autoFailover -d 'enabled=true&amp;timeout=120'</codeblock></p></draft-comment>
<note type="note">After a node has been automatically failed over, the Couchbase Server cluster
increments an internal counter that indicates if a node has been failed over. This counter
prevents the cluster from automatically failing over additional nodes until you can identify
the issue that caused the failover and resolve it. If the internal counter indicates a node
has failed over, the cluster will no longer automatically fail-over additional nodes. You will
need to re-enable automatic failover in a cluster by resetting this counter. </note>
<p>Example:
<codeblock>curl -X POST -i -u [admin]:[password] \
http://localhost:8091/settings/autoFailover/resetCount</codeblock></p>
<section>
<title>Using the UI</title>
<p><image href="../admin/picts/settings-autofailover.png" id="image_orb_n41_1t" align="left"
width="720"/></p>
<p>To enable the automatic failover using the Web Console:</p>
<ol>
<li>From the <uicontrol>Couchbase Web Console</uicontrol> > <uicontrol>Settings</uicontrol> >
select the <uicontrol>Auto-Failover</uicontrol> tab. </li>
<li>Select the <uicontrol>Enable auto-failover </uicontrol>check box to enable the
setting.</li>
<li>To set the delay in seconds before auto-failover is started, enter the number of seconds
in the <wintitle>Timeout</wintitle> box and click <uicontrol>Save</uicontrol>. The default
timeout is 120 seconds. In almost all cases, it is recommended to leave the timeout at the
default.</li>
</ol>
</section>
<section>
<title>Using the CLI</title>
<p>The automatic failover settings can be changed using the <xref href="../cli/cbcli/setting-autofailover.dita">setting-autofailover</xref> command in <codeph>couchbase-cli</codeph>.</p>
<p>Below is an example of changing the automatic failover settings using the CLI:</p>
<codeblock conref="../cli/cbcli/setting-autofailover.dita#reference_kqj_dp5_ls/example"></codeblock>
</section>
<section>
<title>Using the REST API</title>
<p>The automatic failover settings can be changed using the REST API <xref href="../rest-api/rest-cluster-autofailover-enable.dita">/settings/autoFailover</xref> endpoint.</p>
<p>Below is an example of changing the automatic failover settings using the REST API:</p>
<codeblock conref="../rest-api/rest-cluster-autofailover-enable.dita#rest-cluster-autofailover-enable/curl-example"></codeblock>
</section>

</body>
<related-links>
<link href="../security/concepts-rba.dita#concept_ntl_jph_hr"/>
Expand Down

0 comments on commit 90e94ad

Please sign in to comment.