在 mac 上跑程序的时候看到日志里报错
1 | failed to open file due to Too many open files. |
摘要部分大概介绍了一下 TSDB(time series database) 应用的场景,引出 Facebook 的 in-memory 的时序数据库 Gorilla。作者的想法是用户比起单个数据点更侧重于数据的聚合分析,并且对于诊断和分析线上问题的场景来说,新的数据点比旧的数据点更有价值。Gorilla 为了优化查询性能,采用了激进的压缩方法,比如delta-of-delta timestamps
和 XOR'd floating point values
,这使得其内存消耗缩小了 10 倍,由此可以将数据放在内存中。相比于 HBase 的存储方案,Gorilla 的查询延迟减少 73 倍,吞吐量提升了 14 倍。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
pg_class 里面有一列叫 relfilenode , pg 官方的文档对这列的解释是:
1 | Name of the on-disk file of this relation; zero means this is a "mapped" relation whose disk file name is determined by low-level state |
也就是这个值表示 pg_class 里面某个对象在磁盘上存储的文件名。