hipache-hchecker

command module
v0.0.0-...-cae0272 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2014 License: MIT Imports: 16 Imported by: 0

README

Hipache Health-Checker

This is an active health-checker for the Hipache proxy solution. The checker will check the backends at a regular interval and it will update Hipache's Redis to mark them as dead (or alive) almost instantly.

  1. Compile

go build
  1. Run it

./hchecker

It connects on the local redis (localhost:6379), so it's supposed to be run on the same machine than Hipache.

  1. Modify the behavior

./hchecker -h
Usage of ./hchecker:
  -connect=3: TCP connection timeout (seconds)
  -cpuprofile=false: Write CPU profile to "hchecker.prof" (current directory)
  -dryrun=false: Enable dry run (or simulation mode). Do not update the Redis.
  -host="ping": HTTP host header
  -interval=3: Check interval (seconds)
  -io=3: Socket read/write timeout (seconds)
  -method="HEAD": HTTP method
  -redis="localhost:6379": Network address of Redis
  -redis_password="": Password of Redis
  -uri="/CloudHealthCheck": HTTP URI
  1. Run the tests

$ cd test ; python -m unittest discover

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/garyburd/redigo/redis
Package redis is a client for the Redis database.
Package redis is a client for the Redis database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL