A plugin to render Elasticsearch topology
The plugin I propose to create in this chapter will provide a way to get a better understanding of the cluster topology and, more specifically, how the data is distributed over indices, shards, and even down to the segment.
Note
Topology will leverage an open source visualization framework. It is provided by Baidu: ECharts 3, which can be accessed at http://echarts.baidu.com. This visualization framework provides a very large palette of visualizations, and in particular one that is pretty handy to visualize data in clusters: the treemap visualization:
Treemap visualization displays data in clusters
The preceding example can be found here: http://echarts.baidu.com/demo.html#treemap-disk.
As you can see, the data is organized in the form of multi-level clusters: if you click on one of them, you will drill down to the underlying level, and so on. Each block size depends on the relative value; the following is an example of how a block is described...