Giter Club home page Giter Club logo

gumbo's Introduction

gumbo

A performance monitor for Storm topologies. Consists of:

  1. A TaskHook that extracts topology information and manages local metrics

  2. A simple HTTP server that can report the last 100 seconds of gathered metrics

  3. A set of configurable charts that understand the metrics schema and which can help identify performance problems in the monitored topology:

  • A histogram that shows pending tuple counts (e.g. the backlog) on each stream in the topology
  • A "Share of Voice" chart that shows the pending tuple counts for a given stream for each of a component's tasks
  • A "Share of Voice" chart that shows the relative size of the backlogs on all streams for the topology

So for this topology you might see this dashboard

Code

HashMap map = new HashMap();
map.put("storm.monitor.host", a_String_IP_address);
map.put("storm.monitor.port", an_Integer_Port_Number);
map.put("storm.monitor.start", System.currentTimeMillis());  // should be the same for all calls
map.put("storm.monitor.bucketsize", 1000L);

MonitorClient mclient = MonitorClient.forConfig(conf);

   ...

//  There are multiple metric groups, each with multiple metrics.
//  Components have names and multiple instances, each of which has an integer ID
   
mclient.declare(metricGroup,metric,task_id,component_id);

   ...   
   
mclient.increment(metricGroup,metric, 1L , task_id);

You can also add the MonitorClient to all spouts and bolts in a topology with this bit of code in the driver class before submitting the cluster:

TaskHook.registerTo(config);

where variable config is of type backtype.storm.Config and contains the properties described above.

See web/monitor-web in this repo for sample HTML and the Javascript it requires.

gumbo's People

Contributors

chrisgerken avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.