/
peerinfo.erl
526 lines (526 loc) · 20.1 KB
/
peerinfo.erl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
{peerinfo,
{peer_info,"1.1.4","1.1.3",
{chstate,'riak@168.94.35.138',
[{'riak@168.94.35.138',{5602,63516688184}},
{'riak@168.94.35.136',{6341,63515736341}},
{'riak@168.94.35.137',{7546,63515738803}},
{'riak@168.94.35.139',{3866,63515739067}},
{'riak@168.94.35.140',{4144,63516622875}}],
{256,
[{0,'riak@168.94.35.136'},
{5708990770823839524233143877797980545530986496,'riak@168.94.35.137'},
{11417981541647679048466287755595961091061972992,'riak@168.94.35.138'},
{17126972312471518572699431633393941636592959488,'riak@168.94.35.139'},
{22835963083295358096932575511191922182123945984,'riak@168.94.35.140'},
{28544953854119197621165719388989902727654932480,'riak@168.94.35.136'},
{34253944624943037145398863266787883273185918976,'riak@168.94.35.137'},
{39962935395766876669632007144585863818716905472,'riak@168.94.35.138'},
{45671926166590716193865151022383844364247891968,'riak@168.94.35.139'},
{51380916937414555718098294900181824909778878464,'riak@168.94.35.140'},
{57089907708238395242331438777979805455309864960,'riak@168.94.35.136'},
{62798898479062234766564582655777786000840851456,'riak@168.94.35.137'},
{68507889249886074290797726533575766546371837952,'riak@168.94.35.138'},
{74216880020709913815030870411373747091902824448,'riak@168.94.35.139'},
{79925870791533753339264014289171727637433810944,'riak@168.94.35.140'},
{85634861562357592863497158166969708182964797440,'riak@168.94.35.136'},
{91343852333181432387730302044767688728495783936,'riak@168.94.35.137'},
{97052843104005271911963445922565669274026770432,'riak@168.94.35.138'},
{102761833874829111436196589800363649819557756928,'riak@168.94.35.139'},
{108470824645652950960429733678161630365088743424,'riak@168.94.35.140'},
{114179815416476790484662877555959610910619729920,'riak@168.94.35.136'},
{119888806187300630008896021433757591456150716416,'riak@168.94.35.137'},
{125597796958124469533129165311555572001681702912,'riak@168.94.35.138'},
{131306787728948309057362309189353552547212689408,'riak@168.94.35.139'},
{137015778499772148581595453067151533092743675904,'riak@168.94.35.140'},
{142724769270595988105828596944949513638274662400,'riak@168.94.35.136'},
{148433760041419827630061740822747494183805648896,'riak@168.94.35.137'},
{154142750812243667154294884700545474729336635392,'riak@168.94.35.138'},
{159851741583067506678528028578343455274867621888,'riak@168.94.35.139'},
{165560732353891346202761172456141435820398608384,'riak@168.94.35.140'},
{171269723124715185726994316333939416365929594880,'riak@168.94.35.136'},
{176978713895539025251227460211737396911460581376,'riak@168.94.35.137'},
{182687704666362864775460604089535377456991567872,'riak@168.94.35.138'},
{188396695437186704299693747967333358002522554368,'riak@168.94.35.139'},
{194105686208010543823926891845131338548053540864,'riak@168.94.35.140'},
{199814676978834383348160035722929319093584527360,'riak@168.94.35.136'},
{205523667749658222872393179600727299639115513856,'riak@168.94.35.137'},
{211232658520482062396626323478525280184646500352,'riak@168.94.35.138'},
{216941649291305901920859467356323260730177486848,'riak@168.94.35.139'},
{222650640062129741445092611234121241275708473344,'riak@168.94.35.140'},
{228359630832953580969325755111919221821239459840,'riak@168.94.35.136'},
{234068621603777420493558898989717202366770446336,'riak@168.94.35.137'},
{239777612374601260017792042867515182912301432832,'riak@168.94.35.138'},
{245486603145425099542025186745313163457832419328,'riak@168.94.35.139'},
{251195593916248939066258330623111144003363405824,'riak@168.94.35.140'},
{256904584687072778590491474500909124548894392320,'riak@168.94.35.136'},
{262613575457896618114724618378707105094425378816,'riak@168.94.35.137'},
{268322566228720457638957762256505085639956365312,'riak@168.94.35.138'},
{274031556999544297163190906134303066185487351808,'riak@168.94.35.139'},
{279740547770368136687424050012101046731018338304,'riak@168.94.35.140'},
{285449538541191976211657193889899027276549324800,'riak@168.94.35.136'},
{291158529312015815735890337767697007822080311296,'riak@168.94.35.137'},
{296867520082839655260123481645494988367611297792,'riak@168.94.35.138'},
{302576510853663494784356625523292968913142284288,'riak@168.94.35.139'},
{308285501624487334308589769401090949458673270784,'riak@168.94.35.140'},
{313994492395311173832822913278888930004204257280,'riak@168.94.35.136'},
{319703483166135013357056057156686910549735243776,'riak@168.94.35.137'},
{325412473936958852881289201034484891095266230272,'riak@168.94.35.138'},
{331121464707782692405522344912282871640797216768,'riak@168.94.35.139'},
{336830455478606531929755488790080852186328203264,'riak@168.94.35.140'},
{342539446249430371453988632667878832731859189760,'riak@168.94.35.136'},
{348248437020254210978221776545676813277390176256,'riak@168.94.35.137'},
{353957427791078050502454920423474793822921162752,'riak@168.94.35.138'},
{359666418561901890026688064301272774368452149248,'riak@168.94.35.139'},
{365375409332725729550921208179070754913983135744,'riak@168.94.35.140'},
{371084400103549569075154352056868735459514122240,'riak@168.94.35.136'},
{376793390874373408599387495934666716005045108736,'riak@168.94.35.137'},
{382502381645197248123620639812464696550576095232,'riak@168.94.35.138'},
{388211372416021087647853783690262677096107081728,'riak@168.94.35.139'},
{393920363186844927172086927568060657641638068224,'riak@168.94.35.140'},
{399629353957668766696320071445858638187169054720,'riak@168.94.35.136'},
{405338344728492606220553215323656618732700041216,'riak@168.94.35.137'},
{411047335499316445744786359201454599278231027712,'riak@168.94.35.138'},
{416756326270140285269019503079252579823762014208,'riak@168.94.35.139'},
{422465317040964124793252646957050560369293000704,'riak@168.94.35.140'},
{428174307811787964317485790834848540914823987200,'riak@168.94.35.136'},
{433883298582611803841718934712646521460354973696,'riak@168.94.35.137'},
{439592289353435643365952078590444502005885960192,'riak@168.94.35.138'},
{445301280124259482890185222468242482551416946688,'riak@168.94.35.139'},
{451010270895083322414418366346040463096947933184,'riak@168.94.35.140'},
{456719261665907161938651510223838443642478919680,'riak@168.94.35.136'},
{462428252436731001462884654101636424188009906176,'riak@168.94.35.137'},
{468137243207554840987117797979434404733540892672,'riak@168.94.35.138'},
{473846233978378680511350941857232385279071879168,'riak@168.94.35.139'},
{479555224749202520035584085735030365824602865664,...},
{...}|...]},
{dict,27,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[[{bucket,<<"services-category-feature-guides">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-category-feature-guides">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63512894037}],
[{bucket,<<"services-price-override">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-price-override">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,50},
{w,quorum},
{young_vclock,20}],
63512894040}]],
[],
[[{bucket,<<"services-category-sku-list">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-category-sku-list">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63512894038}],
[{bucket,<<"products">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"products">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,50},
{w,quorum},
{young_vclock,20}],
63512894033}],
[{bucket,<<"services-renderable-skus-list">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-renderable-skus-list">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,50},
{w,quorum},
{young_vclock,20}],
63512894041}]],
[[{bucket,<<"services-content-mapper">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-content-mapper">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63512894039}]],
[[{bucket,<<"services-glossary">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-glossary">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63512894040}],
[riak_core_ring_tainted|{meta_entry,true,63516688184}]],
[[{bucket,<<"mag-promo-page">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"mag-promo-page">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63512894036}],
[{bucket,<<"datasource-test">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"datasource-test">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,[]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,false},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63516688184}]],
[[{bucket,<<"services-sku-feature-guides">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-sku-feature-guides">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,50},
{w,quorum},
{young_vclock,20}],
63512894041}]],
[[riak_repl_ring|
{meta_entry,
{dict,3,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],
[[listeners],
[sites,
{repl_site,"magellan-riak-prod-aws-west2",
[{"10.2.40.100",9010},
{"10.2.40.101",9010},
{"10.2.40.102",9010},
{"10.2.41.100",9010},
{"10.2.41.101",9010},
{"10.2.41.102",9010}],
{0,0,0}},
{repl_site,"magellan-riak-prod-aws-east",
[{"10.1.40.100",9010},
{"10.1.40.101",9010},
{"10.1.41.100",9010},
{"10.1.41.101",9010},
{"10.1.43.100",9010},
{"10.1.43.101",9010}],
{0,0,0}}]],
[],[],[],[],[],[],[],[],[],[],
[[version|3]],
[]}}},
63516622875}]],
[[{bucket,<<"mag-product-change">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"mag-product-change">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,[]},
{pr,0},
{precommit,
[{struct,
[{<<"mod">>,<<"riak_search_kv_hook">>},
{<<"fun">>,<<"precommit">>}]}]},
{pw,0},
{r,quorum},
{repl,false},
{rw,quorum},
{search,true},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63516688184}],
[{bucket,<<"services-content">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"services-content">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,10},
{w,quorum},
{young_vclock,20}],
63512893967}],
[{bucket,<<"_rsid_mag-financeplan">>}|
{meta_entry,
[{search,false},
{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"_rsid_mag-financeplan">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{small_vclock,50},
{w,quorum},
{young_vclock,20}],
63516688184}]],
[[{bucket,<<"mag-sales-rank">>}|
{meta_entry,
[{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,{modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},
{n_val,3},
{name,<<"mag-sales-rank">>},
{notfound_ok,true},
{old_vclock,86400},
{postcommit,
[{struct,
[{<<"mod">>,<<"riak_repl_leader">>},
{<<"fun">>,<<"postcommit">>}]}]},
{pr,0},
{precommit,[]},
{pw,0},
{r,quorum},
{repl,true},
{rw,quorum},
{search,false},
{small_vclock,50},
{w,quorum},
{young_vclock,20}],
63512894037}]],
[[{bucket,<<"mag-financeplan">>}|
{meta_entry,
[{allow_mult,false},
{backend,<<"one_day_expiry">>},
<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,
<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>,
<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>|<<"x">>],
<<"x">>}],
<<"x">>,<<"x">>|<<"x">>],
<<"x">>,<<"x">>,<<"x">>,<<"x">>,<<"x">>}}}}},
<<"x">>}.