Skip to content

Instantly share code, notes, and snippets.

@jolexa
jolexa / gist:1a80e26a4b017846d083
Created October 4, 2015 08:28
mesos-slave process reconnecting
I1004 01:46:03.190534 31039 group.cpp:418] Lost connection to ZooKeeper, attempting to reconnect ...
I1004 01:46:03.227970 31041 group.cpp:472] ZooKeeper session expired
I1004 01:46:03.228416 31037 detector.cpp:138] Detected a new leader: None
I1004 01:46:03.228693 31037 slave.cpp:677] Lost leading master
I1004 01:46:03.228724 31037 slave.cpp:720] Detecting new master
I1004 01:46:03.228721 31042 status_update_manager.cpp:176] Pausing sending status updates
I1004 01:46:03.299782 31037 group.cpp:313] Group process (group(1)@10.0.1.1:5051) connected to ZooKeeper
I1004 01:46:03.299904 31037 group.cpp:787] Syncing group operations: queue size (joins, cancels, datas) = (0, 0, 0)
I1004 01:46:03.299933 31037 group.cpp:385] Trying to create path '/mesos' in ZooKeeper
I1004 01:46:03.358932 31037 detector.cpp:138] Detected a new leader: (id='8')
@jolexa
jolexa / keybase.md
Created January 31, 2015 19:31
keybase.md

Keybase proof

I hereby claim:

  • I am jolexa on github.
  • I am jolexa (https://keybase.io/jolexa) on keybase.
  • I have a public key whose fingerprint is 2079 B699 DF01 7280 9817 095E 9B5D 52B1 ACED 22A6

To claim this, I am signing this object:

#!/usr/bin/env ruby
require 'rubygems'
require 'rotp'
require 'time'
user = ARGV[0]
secret = ARGV[1]
abort unless user and secret
trap("INT") do
@jolexa
jolexa / gist:2c385a814a427969e4e7
Created June 21, 2014 23:23
chef-rewind usage issue
How to unwind this template using chef-rewind?
https://github.com/opscode-cookbooks/tomcat/blob/master/providers/instance.rb#L157-L158
template "#{new_resource.config_dir}/server.xml" do
source 'server.xml.erb'
The chef-client run expands that to :
template[/etc/tomcat6/server.xml] action create
Following the chef-rewind docs, I assumed that this would work in my recipe:
chef_gem 'chef-rewind'