Skip to content

Commit bd57b04

Browse files
committed
Changes based on review comments
1 parent f52cb9f commit bd57b04

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

ydb/docs/en/core/dev/troubleshooting/performance/hardware/_includes/cpu-bottleneck.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
1. Analyze CPU utilization in all pools:
1+
1. Use **Diagnostics** in the [Embedded UI](../../../../../reference/embedded-ui/index.md) to analyze CPU utilization in all pools:
2+
3+
1. In the [Embedded UI](../../../../../reference/embedded-ui/index.md), go to the **Databases** tab and click on the database.
4+
5+
1. On the **Navigation** tab, ensure the required database is selected.
6+
7+
1. Open the **Diagnostics** tab.
8+
9+
1. On the **Info** tab, click the **CPU** button and see if any pools show high CPU usage.
10+
11+
![](../_assets/embedded-ui-cpu-system-pool.png)
12+
13+
1. Use Grafana charts to analyze CPU utilization in all pools:
214

315
1. Open the **[CPU](../../../../../reference/observability/metrics/grafana-dashboards.md#cpu)** dashboard in Grafana.
416

ydb/docs/en/core/dev/troubleshooting/performance/hardware/insufficient-memory.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ If [swap](https://en.wikipedia.org/wiki/Memory_paging#Unix_and_Unix-like_systems
44

55
If swap is enabled, insufficient memory may cause the database to rely heavily on disk I/O, which is significantly slower than accessing data directly from memory.
66

7+
{% note warning %}
8+
9+
If {{ ydb-short-name }} nodes are running on servers with swap enabled, disable it. {{ ydb-short-name }} is a distributed system, so if a node restarts due to lack of memory, the client will simply connect to another node and continue accessing data as if nothing happened. Swap would allow the query to continue on the same node but with degraded performance from increased disk I/O, which is generally less desirable.
10+
11+
{% endnote %}
12+
713
Even though the reasons and mechanics of performance degradation due to insufficient memory might differ, the symptoms of increased latencies during query execution and data retrieval are similar in all cases.
814

915
Additionally, which components within the {{ ydb-short-name }} process consume memory may also be significant.
@@ -46,6 +52,7 @@ Consider the following solutions for addressing insufficient memory:
4652

4753
- If the load on {{ ydb-short-name }} has increased due to new usage patterns or increased query rate, try optimizing the application to reduce the load on {{ ydb-short-name }} or add more {{ ydb-short-name }} nodes.
4854

49-
- If the load on {{ ydb-short-name }} has not changed but nodes are still restarting, consider adding more {{ ydb-short-name }} nodes or raising the hard memory limit for the nodes.
55+
- If the load on {{ ydb-short-name }} has not changed but nodes are still restarting, consider adding more {{ ydb-short-name }} nodes or raising the hard memory limit for the nodes. For more information about memory management in {{ ydb-short-name }}, see [{#T}](../../../../reference/configuration/index.md#memory-controller).
56+
57+
5058

51-
Additionally, if {{ ydb-short-name }} nodes are running on servers with swap enabled, disable it. {{ ydb-short-name }} is a distributed system, so if a node restarts due to lack of memory, the client will simply connect to another node and continue accessing data as if nothing happened. Swap would allow the query to continue on the same node but with degraded performance from increased disk I/O, which is generally less desirable.

ydb/docs/en/core/dev/troubleshooting/performance/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Database performance issues can be classified into several categories based on t
3131

3232
- **[Server hardware issues](infrastructure/hardware.md)**. Malfunctioning CPU, memory modules, and network cards, until replaced, significantly impact database performance or lead to the unavailability of the affected server.
3333

34-
### Insufficient resources
34+
### Insufficient resource issues
3535

3636
These issues refer to situations when the workload demands more physical resources — such as CPU, memory, disk space, and network bandwidth — than allocated to a database. In some cases, suboptimal allocation of resources, for example misconfigured [control groups (cgroups)](https://en.wikipedia.org/wiki/Cgroups) or [actor system pools](../../../concepts/glossary.md#actor-system-pool), may also result in insufficient resources for {{ ydb-short-name }} and increase query latencies even though physical hardware resources are still available on the database server.
3737

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
items:
2-
- name: Infrastructure issues
2+
- name: Infrastructure
33
include:
44
mode: link
55
path: infrastructure/toc_p.yaml
6-
- name: Reaching resource limits
6+
- name: Insufficient resources
77
include:
88
mode: link
99
path: hardware/toc_p.yaml
10-
- name: OS issues
10+
- name: OS
1111
include:
1212
mode: link
1313
path: system/toc_p.yaml
14-
- name: YDB configuration issues
14+
- name: YDB configuration
1515
include:
1616
mode: link
1717
path: ydb/toc_p.yaml
18-
- name: Schema design issues
18+
- name: Schema design
1919
include:
2020
mode: link
2121
path: schemas/toc_p.yaml
22-
- name: Client application issues
22+
- name: Client application
2323
include:
2424
mode: link
2525
path: queries/toc_p.yaml

0 commit comments

Comments
 (0)