0.0
No commit activity in last 3 years
No release in over 3 years
Lita Cluster extention
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

>= 4.7
 Project Readme

lita-cluster

This is the extension for lita two-node HA.
Two nodes works as hot-standby mode.
The node which started first will serve, and second one stays in stand-by mode, and check the status of first node through HTTP API.
Once the first node is down, second node will start serving instantly.

Installation

Add lita-cluster to your Lita plugin's gemspec:

spec.add_runtime_dependency "lita-cluster"

Usage

Add the following into lita_config.rb

require 'lita-cluster'

Confgiuration

This extension looks at lita_config.rb for the following items:

$hipchat = {
  'hipchat_token' => '*******',
  'hipchat_endpoint' => 'https://*******.hipchat.com',
  'hipchat_user' => 'username@that.com'
}

So make ensure they are configured before starting the lita BOT.