Skip to content

Instantly share code, notes, and snippets.

View Zhengquan's full-sized avatar

Zhengquan Zhengquan

  • ThoughtWorks
  • Beijing
View GitHub Profile
@Zhengquan
Zhengquan / instance_c_info.log
Last active March 23, 2016 07:55
EventStore Instance C
[PID:1071684:030 2016.03.22 09:11:54.109 TRACE QueuedHandlerThreadP] SLOW QUEUE MSG [MonitoringQueue]: GetFreshStats - 327ms. Q: 10/18.
[PID:1071684:011 2016.03.22 09:11:54.093 DEBUG ClusterVNodeControll] There is NO MASTER or MASTER is DEAD according to GOSSIP. Starting new elections. MASTER: [InstanceId: {c532c941-4817-4064-92f4-92ddcdde98fe}, InternalTcp: 10.10.13.101:2111, InternalSecureTcp: 10.10.13.101:2116, ExternalTcp: 147.42.14.100:2112, ExternalSecureTcp: 147.42.14.100:2115, InternalHttp: 10.10.13.101:2113, ExternalHttp: 147.42.14.100:2114].
[PID:1071684:011 2016.03.22 09:11:54.093 DEBUG ClusterVNodeControll] There is NO MASTER or MASTER is DEAD according to GOSSIP. Starting new elections. MASTER: [InstanceId: {c532c941-4817-4064-92f4-92ddcdde98fe}, InternalTcp: 10.10.13.101:2111, InternalSecureTcp: 10.10.13.101:2116, ExternalTcp: 147.42.14.100:2112, ExternalSecureTcp: 147.42.14.100:2115, InternalHttp: 10.10.13.101:2113, ExternalHttp: 147.42.14.100:2114].
[PID:1071684:011 2016.03.22 09:11:54.093
@Zhengquan
Zhengquan / instance_b_info.log
Last active March 23, 2016 07:54
Logs for EventStore instance B
[PID:05828:013 2016.03.22 09:08:42.948 INFO Application ] Exiting with exit code: 0.
Exit reason: Shutdown with exiting from process was requested.
[PID:05828:013 2016.03.22 09:08:42.917 INFO ClusterVNodeControll] ========== [10.10.13.102:2113] IS SHUT DOWN!!! SWEET DREAMS!!!
[PID:05828:009 2016.03.22 09:08:42.480 TRACE InMemoryBus ] SLOW BUS MSG [SubscriptionsBus]: BecomeShuttingDown - 62ms. Handler: SubscriptionsService.
[PID:05828:013 2016.03.22 09:08:42.449 INFO ClusterVNodeControll] ========== [10.10.13.102:2113] All Services Shutdown.
[PID:05828:013 2016.03.22 09:08:42.449 INFO ClusterVNodeControll] ========== [10.10.13.102:2113] Service 'Storage Chaser' has shut down.
[PID:05828:013 2016.03.22 09:08:42.433 INFO ClusterVNodeControll] ========== [10.10.13.102:2113] Service 'Master Replication Service' has shut down.
[PID:05828:013 2016.03.22 09:08:42.418 TRACE GossipServiceBase ] CLUSTER HAS CHANGED (TCP connection lost to [10.10.13.101:2116])
Old:
VND {625acf3f-d4cb-474f-b8f4-e3f1
@Zhengquan
Zhengquan / spec_helper.rb
Last active July 27, 2016 05:53 — forked from hartmantis/spec_helper.rb
ChefSpec stubs for testing a recipe in isolation with new syntax
module IncludeRecipeHelper
def global_stubs
# Don't worry about external cookbook dependencies
allow_any_instance_of(Chef::Cookbook::Metadata).to receive(:depends)
# Test each recipe in isolation, regardless of includes
@included_recipes = []
allow_any_instance_of(Chef::RunContext).to receive(:loaded_recipe?).and_return(false)
@Zhengquan
Zhengquan / rb_workshop.rb
Created July 29, 2016 00:06
code snippet for ruby workshop
# Everything in Ruby is - Object
class People
attr_accessor :name, :gender, :race, :nationality
def initialize(name='', gender='', race='', nationality='')
@name = name
@gender = gender
@race = race
@nationality = nationality