Trade Resources Industry Views A Facebook Engineer Developed Heat-Map Software

A Facebook Engineer Developed Heat-Map Software

IDG News Service - Faced with the challenge of overseeing the health of large caching systems, a Facebook engineer developed heat-map software to quickly pinpoint problems in the social network's data centers.

The visualization monitoring tool, called Claspin, uses the heat map format to portray the working status of Facebook's servers.

"As Facebook grew both in size and complexity, it became more and more difficult to figure out which piece was broken when something went wrong," wrote Sean Lynch, an engineer with Facebook's cache performance team, in a blog entry explaining how he developed the technology.

The idea of using heat maps in overseeing data center operations is an emerging one. At least one Oracle engineer has investigated ways of using heat maps to quickly convey potential problems in the data center.

Whenever the popular social networking service experiences technical difficulties, the cache performance group must make sure that the caching mechanisms are not the problem, or part of the problem. A heat map could be an efficient way of representing operational status of a large number of components. Each component is represented as a cell on a large matrix, and the color of the cell represents the health of the component. A green cell may represent a node that is operating within acceptable bounds, while a red cell may represent one not operating correctly.

Facebook uses two major cache systems. One uses Memcache, and the other relies on a caching graph database called TAO.

Both of these systems produce copious performance metrics -- on various latency, request rate, and error rate statistics. According to Lynch, the caching team was already using a generic heat map to monitor performance. The software, however, could not easily fit the visual data into a single screen. The colors the heat map software used to represent different values offered little intuitive indication of whether a server was performing adequately. And the software didn't interpret the source data in a way that could immediately indicate whether an individual host was running within acceptable bounds.

Lynch designed Claspin, named after a protein that monitors for DNA damage in cells, so that each cluster of servers would get its own heat map, ordered by the rack number within a data center. So problems at the rack level or at the cluster level would become readily apparent by simply viewing the heat map.

"On a 30-inch screen we could easily fit 10,000 hosts at the same time, with 30 or more stats contributing to their color, updated in real time--usually in a matter of seconds or minutes," Lynch said. The code to parse and compile the operational metrics was written in JavaScript, and the heat maps were rendered using the SVG format.

Source: http://www.computerworld.com/s/article/9231468/Facebook_heat_maps_pinpoint_data_center_trouble_spots
Contribute Copyright Policy
Facebook heat maps pinpoint data center trouble spots