oetiker / rrdtool-1.x

RRDtool 1.x - Round Robin Database
http://www.rrdtool.org
GNU General Public License v2.0
992 stars 260 forks source link

我们本地rrd文件有4万多个,每次点击页面,都加载很慢,看日志是每次都要遍历一次rrd文件,这个怎么解决呢 #1218

Open zhenliangliang opened 1 year ago

zhenliangliang commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

godliam commented 1 year ago

The RRD cannot fundamentally solve this problem, I think. You should use disks with higher I/O performance, such as SSDs or RAID0 disks. And If the total size of your RRD files is not huge, trying RAM disk.