GithubHelp home page GithubHelp logo

akka-actor-statistics's Introduction

Akka Actor Statistics

This tiny code snippets pulls statistics (mailbox sizes/processing times) from Akka Actors. In addition to that, you can implement an own interface StatisticActor in order to capture processed message time/processed message count. This is handy in order to perform monitoring/tuning of your Akka system without the need to install a huge console setup with MongoDB etc.

How to use

The statistic collector uses a simple, hierarchical data model. Following values are captured:

  • id (Actor name)
  • queueSize (current messages in mailbox)
  • active (indicator whether the actor processes a message right now)
  • includeInParent (indicator whether to include the data in the parent statistics, child actor = false, routee actor = true)
  • processedMessages (number of all finished, processed messages)
  • processedMessageTime (cummulated time for message processing)
  • children (child actor metrics)

Please note, as soon as the actors and its children are restarted, the statistics are reset.

Example

ActorRef ref = system.actorOf(Props.create(TestActor.class).withRouter(new SmallestMailboxRouter(50)), "TestActor");
ActorMetrics stats = StatisticCollector.stats(ref);

akka-actor-statistics's People

Contributors

mp911de avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

altwajre fboer

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.