ablog

不器用で落着きのない技術者のメモ

Amazon Redshift でノード・スライスごとのブロック数を確認する

Amazon Redshift でノード・スライスごとのブロック数を確認する。

select b.node, a.slice, sum(blocknum)
from svv_diskusage a, stv_slices b
where a.slice = b.slice
group by b.node, a.slice
order by b.node, a.slice, sum(blocknum) desc;

node|slice|sum
0|0|2821012504
0|1|2885748816
0|2|2830922313
0|3|2967025944
1|4|5211643368
1|5|2820034230
1|6|2844777960
1|7|2769496495
2|8|2811089919
2|9|2843159619
2|10|2835198368
2|11|2783326269
3|12|2799212712
3|13|2765290236
3|14|2870821537
3|15|2874467798
(16 rows)