-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
++++ | ||
<div class="tabs" data-tab-group="host"> | ||
<div role="tablist" aria-label="Check CPU usage"> | ||
<button role="tab" | ||
aria-selected="true" | ||
aria-controls="cloud-tab-cpu" | ||
id="cloud-cpu"> | ||
Elasticsearch Service | ||
</button> | ||
<button role="tab" | ||
aria-selected="false" | ||
aria-controls="self-managed-tab-cpu" | ||
id="self-managed-cpu" | ||
tabindex="-1"> | ||
Self-managed | ||
</button> | ||
</div> | ||
<div tabindex="0" | ||
role="tabpanel" | ||
id="cloud-tab-cpu" | ||
aria-labelledby="cloud-cpu"> | ||
++++ | ||
|
||
include::cpu-usage.asciidoc[tag=cloud] | ||
|
||
++++ | ||
</div> | ||
<div tabindex="0" | ||
role="tabpanel" | ||
id="self-managed-tab-cpu" | ||
aria-labelledby="self-managed-cpu" | ||
hidden=""> | ||
++++ | ||
|
||
include::cpu-usage.asciidoc[tag=self-managed] | ||
|
||
++++ | ||
</div> | ||
</div> | ||
++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// tag::cloud[] | ||
From your deployment menu, click **Performance**. The page's **CPU Usage** chart | ||
shows your deployment's CPU usage as a percentage. | ||
|
||
High CPU usage can also deplete your CPU credits. CPU credits let {ess} provide | ||
smaller clusters with a performance boost when needed. The **CPU credits** | ||
chart shows your remaining CPU credits, measured in seconds of CPU time. | ||
|
||
You can also use the <<cat-nodes,cat nodes API>> to get the current CPU usage | ||
for each node. | ||
|
||
// tag::cpu-usage-cat-nodes[] | ||
[source,console] | ||
---- | ||
GET _cat/nodes?v=true&s=cpu:desc | ||
---- | ||
|
||
The response's `cpu` column contains the current CPU usage as a percentage. The | ||
`node` column contains the node's name. | ||
// end::cpu-usage-cat-nodes[] | ||
|
||
// end::cloud[] | ||
|
||
// tag::self-managed[] | ||
|
||
Use the <<cat-nodes,cat nodes API>> to get the current CPU usage for each node. | ||
|
||
include::cpu-usage.asciidoc[tag=cpu-usage-cat-nodes] | ||
|
||
// end::self-managed[] |