Skip to content

Instantly share code, notes, and snippets.

@jlouis
Created January 8, 2011 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlouis/770669 to your computer and use it in GitHub Desktop.
Save jlouis/770669 to your computer and use it in GitHub Desktop.
Here is an example from the cluster code, simple but shows the current situation.
(etorrent@127.0.0.1)2> rerb:analyze().
ok
(etorrent@127.0.0.1)4> rerb:list({clusters, 0.5}).
Cluster:
Size: 89 -- Representatives: [16,4492,32]
Cluster:
Size: 90 -- Representatives: [4438,4570,4464]
ok
(etorrent@127.0.0.1)5> rerb:list({clusters_full, 0.5}).
Cluster:
Size: 89 -- [1,4665,4667,3,5,10,12,14,16,4602,4604,4609,4617,4623,4638,4640,
4646,4648,4651,4653,4655,4657,4659,4661,4663,4461,4463,4468,
4470,4472,4474,4476,4478,4480,4482,4484,4486,4488,4490,4492,
4545,4561,4564,4569,4571,4573,4575,4578,4583,4585,4587,4589,
4592,4594,4596,4598,4600,18,20,22,24,26,28,30,32,34,36,38,40,
45,47,49,4375,4387,4392,4397,4399,4401,4406,4417,4419,4424,
4426,4437,4439,4441,4446,4448,4456]
Cluster:
Size: 90 -- [2,4,4662,4664,4666,4668,6,11,13,15,4601,4603,4605,4610,4618,
4624,4639,4641,4647,4649,4650,4652,4654,4656,4658,4660,4457,
4462,4464,4469,4471,4473,4475,4477,4479,4481,4483,4485,4487,
4489,4491,4493,4546,4562,4565,4570,4572,4574,4576,4579,4584,
4586,4588,4590,4593,4595,4597,4599,17,19,21,23,25,27,29,31,33,
35,37,39,41,46,48,50,4376,4388,4393,4398,4400,4402,4407,4418,
4420,4425,4427,4438,4440,4442,4447,4449]
ok
(etorrent@127.0.0.1)6> rerb:show(16).
SUPERVISOR REPORT <0.4384.0> 2011-01-08 09:17:26
===============================================================================
Reporting supervisor {<0.4384.0>,etorrent_peer_sup}
Child process
errorContext shutdown
reason reached_max_restart_intensity
pid <0.4387.0>
name receiver
mfargs {etorrent_peer_recv,start_link,[8,#Port<0.2498>]}
restart_type permanent
shutdown 5000
child_type worker
ok
(etorrent@127.0.0.1)7> rerb:show(4492).
SUPERVISOR REPORT <0.8896.0> 2011-01-08 09:16:03
===============================================================================
Reporting supervisor {<0.8896.0>,etorrent_peer_sup}
Child process
errorContext shutdown
reason reached_max_restart_intensity
pid <0.8899.0>
name receiver
mfargs {etorrent_peer_recv,start_link,[13,#Port<0.7091>]}
restart_type permanent
shutdown 5000
child_type worker
ok
(etorrent@127.0.0.1)8> rerb:show(4438).
SUPERVISOR REPORT <0.4508.0> 2011-01-08 09:16:29
===============================================================================
Reporting supervisor {<0.4508.0>,etorrent_peer_sup}
Child process
errorContext child_terminated
reason normal
pid <0.4511.0>
name receiver
mfargs {etorrent_peer_recv,start_link,[2,#Port<0.2447>]}
restart_type permanent
shutdown 5000
child_type worker
ok
(etorrent@127.0.0.1)9> rerb:show(4570).
SUPERVISOR REPORT <0.4479.0> 2011-01-08 09:15:46
===============================================================================
Reporting supervisor {<0.4479.0>,etorrent_peer_sup}
Child process
errorContext child_terminated
reason normal
pid <0.4482.0>
name receiver
mfargs {etorrent_peer_recv,start_link,[3,#Port<0.2510>]}
restart_type permanent
shutdown 5000
child_type worker
ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment