Greenplum记录(二):估计存储容量

存储空间除了用来存储用户数据,还需要:landing backup files and data load files

空系统的存储空间:disk_size * number_of_disks

除去系统开销:(raw_capacity * 0.9) / 2 = formatted_disk_space

为了获取最佳性能,容量不超过70%:formatted_disk_space * 0.7 = usable_disk_space

如果开启了segments镜像,数据量翻倍,并且还需要其他空间作为查询的工作区域(大的查询会生成临时文件):

With mirrors: (2 * U) + U/3 = usable_disk_space

Without mirrors: U + U/3 = usable_disk_space

临时空间和用户空间是可以通过表空间指定到不同的位置的。

除了数据以外的消耗:Page、Row、Attribute、Index(索引也被认为是用户数据)

其它空间消耗:1.系统日志消耗20MB,WAL日志消耗
2 * checkpoint_segments + 1,默认参数为8,大小为64MB;2.GPDB的Log Files;3.性能监控用到的agent会一直搜集数据信息,并且不会自动清空
posted @ 2017-01-05 11:28  pg_libs  阅读(861)  评论(0编辑  收藏  举报