This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The initial observed cluster behavior: | |
1) Constant churn of nodes between Failed and Alive | |
2) Message bus saturated (~150 updates/sec) | |
3) Subset of cluster affected | |
4) Some nodes that are flapping don't exist! (Node dead, or agent down) | |
One immediate question is how the cluster remained in an unstable | |
state. We expect that the cluster should converge and return to | |
a quiet state after some time. However, there was a bug in the | |
low level SWIM implementation (memberlist library). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e = Typhoeus::Easy.new | |
e.auth = { | |
:username => 'username', | |
:password => 'password', | |
:method => Typhoeus::Easy::AUTH_TYPES[:CURLAUTH_NTLM] | |
} | |
e.url = "http://example.com/auth_ntlm" | |
e.method = :get | |
e.perform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hydra = Typhoeus::Hydra.new | |
hydra.cache_setter do |request| | |
@cache.set(request.cache_key, request.response, request.cache_timeout) | |
end | |
hydra.cache_getter do |request| | |
@cache.get(request.cache_key) rescue nil | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |