Grafana--PD Page---Storage Capacity Value Issue

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Grafana–PD页面—Storage capacity 数值问题

| username: 大飞哥online

[TiDB Usage Environment] Test
[TiDB Version] 7.1.0
Server Disk Information:
image
Data Directory tidb-data Information:
image
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Disk Screenshot of this page

Dashboard and server df are consistent

Grafana shows:

  • Storage capacity: Total available database space size of the TiDB cluster
  • Current storage size: Current used database space size of the TiDB cluster

Storage capacity = 317GB Current storage size = 2.6GB
Where are these values calculated from?

| username: Miracle | Original post link

I thought the calculation method for storage capacity was the capacity of the KV disk × the number of instances + the capacity of the PD disk × the number of instances, but it seems like it doesn’t match with yours :joy:

| username: 大飞哥online | Original post link

The total size is only 100G, how did it come out to be 317G? :joy:

| username: tidb菜鸟一只 | Original post link

The storage capacity of the PD component is taken from the disk capacity on the TiKV nodes, which is the capacity parameter in the TiKV configuration file. If the capacity parameter is not configured, PD will use the system disk capacity as the default value. Since you have three TiKV nodes, it is roughly the system disk capacity * 3.

| username: 大飞哥online | Original post link

Yes, there are 3 TiKV instances on the server, the disk is 105.8G, and PD recognizes three copies, which totals 317G.

| username: 大飞哥online | Original post link

Capacity is not set, it is 0.

| username: 大飞哥online | Original post link

This redundant computation seems like it can be optimized.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.