Plotly Network Map

I’ve added a new feature to the day 2 ops tool.

With the diagram command, you can create a map of your Yugabyte cluster overlaid on a map of the world. Here’s an example:

Yugabyte Network Map

The Plotly library is very powerful, with a lot of options. I used the network map option, which allows you to define nodes and the edges between the nodes. In this case, the nodes are an abstraction of the database instances in a YugabyteDB cluster, and the edges represent the network connections between them.

There is some redundancy in passing around longitude and latitude amongst the various data structures, with the intent of making it more extensible in a particular way I’ll share soon.

After I finished this module, I thought of a ton of ways you could represent useful data on a map. I bet you can too!

You can find the full source code at https://github.com/dataindataout/yb_day2ops.