Git Product home page Git Product logo

hbeatd's Introduction

HBEATD(7)                                                            HBEATD(7)



NAME
       hbeatd -- a simple and lightweight heartbeat sensor and pulse program

SYNOPSIS
       hbeatd [ options... ]
       hbeatd [ -pv ] [ -d ip ] [ -P port ] [ -i interval ] [ -g group ]
       hbeatd [ -sv ] [ -P port ] [ -t tolerance ]

DESCRIPTION
       hbeatd  is  a  simple and lightweight program for sending and receiving
       heartbeats that can be used to check the status of nodes in  a  cluster
       of servers. The pulse program on the nodes sends udp packages to chosen
       sensor. The sensor collects the ip's along with the  server  group  and
       builds a list. Everytime a new heartbeat is received it will update the
       timestamp for the node and check the list for dead nodes (nodes with  a
       timestamp  older than the tolerance level). If a node is dead, a script
       located at /etc/hbeatd/rc.d will run.

OPTIONS
       Unless specifically stated otherwise, options  are  applicable  in  all
       operating modes.

       -p     Run hbeatd in pulse mode.

       -s     Run hbeatd in sensor mode.

       -v     Run in verbose mode, not as daemon.

       -d ip   Destination  ip  address  (only  available  in pulse mode).  The
              default is 127.0.0.1.

       -P port Destination port number (only available  in  pulse  mode).   The
              default is 6220.

       -i interval
              The  interval  in milliseconds between pulses (only available in
              pulse mode).  The default is 1000 (1 second).

       -g group
              A group name ex. 'web' or 'db',  good  when  building  lists  of
              available nodes for deployment and maintenance etc. (only avail-
              able in pulse mode).  The default is 'misc'.

       -t tolerance
              The number of seconds before reporting that  the  node  is  dead
              (only available in sensor mode).  The default is 4.

EXAMPLES
       hbeat -d 192.168.0.50
              Start hbeatd in pulse mode.

       hbeatd -p -i 800 -v
              Start  hbeatd  in  pulse  mode  without  daemonizing it. Sending
              heartbeats with 800 milliseconds interval.

       hbeatd -s
              Start hbeatd in sensor mode.

       hbeatd -s -t 20
              Start hbeatd in sensor mode with a tolereance of 20 seconds.

       hbeatd -s -P 8910 -v
              Start hbeatd in sensor mode on port 8910 without daemonizing  it
              (good for debugging).

FILES
       /etc/hbeatd/rc.d
              An executable file that runs everytime hbeatd founds a new, dead
              or resurrected node.  The script or program can take three argu-
              ments; status, ip and group.
              Example sh-script:

              if [ "$1" = "dead" ]; then
                   echo "dead: $2($3)" >> /tmp/hbeatd.log
              elif [ "$1" = "up" ]; then
                   echo "up: $2($3)" >> /tmp/hbeatd.log
              elif [ "$1" = "new" ]; then
                   echo "new: $2($3)" >> /tmp/hbeatd.log
              fi

AUTHOR
       Jack Engqvist Johansson <[email protected]>



Hbeatd Version 1.3.1           14 September 2012                     HBEATD(7)

hbeatd's People

Contributors

jack-comfirm 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.