-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathANSWERS.txt
404 lines (361 loc) · 9.74 KB
/
ANSWERS.txt
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
%%% Paul Vidal (pv14) and Saturnin Pugnet (sp5414)
ANALYSIS:
We made the following runs:
- system with 5 servers, 3 clients, 10 accounts, running for 1 second
- system with 20 servers, 3 clients, 10 accounts, running for 1 second
- system with 5 servers, 20 clients, 10 accounts, running for 1 second
The idea was to touch only 1 parameter at the time to see its influence on the
system which would run for the same amount of time in order to make comparisons.
What we found out is that if a system runs with many more servers, which implies
many more replicas (and database), leaders and acceptors, the system manages to
complete far less transaction (with 5 servers, it completes around 100
transactions whereas with 20 servers, only 20 transactions on average are
performed). This can be explained by the fact that they are much more preempted
ballots in such a system. All the leaders have to make their ballots
accepted but as they are many leaders, and much more acceptors (harder to get
a majority without being preempted), decisions tend to take time to be made,
which explains the difference in the number of transactions.
To reenforce the idea that the bottleneck of the system is the time the
decisions take to be made, we ran a system with far more clients, which would
imply far more requests. Our original was then validated when we saw that the
number of clients did not impact the number of transactions made, which
definitely meant that making a decision in PAXOS has a huge overhead.
To conclude, a compromise between how much failure we want to handle and the
speed at which data is replicated has therefore to be made.
--------------------------------------------------------------------------------
RESULTS:
1) For system with 5 servers, 3 clients, 10 accounts, running for 1 second
Transactions 92
1 | 1195 | <0.75.0>
2 | 107 | <0.75.0>
3 | -2748 | <0.75.0>
4 | 1808 | <0.75.0>
5 | 989 | <0.75.0>
6 | -1823 | <0.75.0>
7 | 1117 | <0.75.0>
8 | -976 | <0.75.0>
9 | -677 | <0.75.0>
10 | 1008 | <0.75.0>
Transactions 92
1 | 1195 | <0.63.0>
2 | 107 | <0.63.0>
3 | -2748 | <0.63.0>
4 | 1808 | <0.63.0>
5 | 989 | <0.63.0>
6 | -1823 | <0.63.0>
7 | 1117 | <0.63.0>
8 | -976 | <0.63.0>
9 | -677 | <0.63.0>
10 | 1008 | <0.63.0>
Transactions 92
1 | 1195 | <0.71.0>
2 | 107 | <0.71.0>
3 | -2748 | <0.71.0>
4 | 1808 | <0.71.0>
5 | 989 | <0.71.0>
6 | -1823 | <0.71.0>
7 | 1117 | <0.71.0>
8 | -976 | <0.71.0>
9 | -677 | <0.71.0>
10 | 1008 | <0.71.0>
Transactions 92
1 | 1195 | <0.59.0>
2 | 107 | <0.59.0>
3 | -2748 | <0.59.0>
4 | 1808 | <0.59.0>
5 | 989 | <0.59.0>
6 | -1823 | <0.59.0>
7 | 1117 | <0.59.0>
8 | -976 | <0.59.0>
9 | -677 | <0.59.0>
10 | 1008 | <0.59.0>
Transactions 92
1 | 1195 | <0.67.0>
2 | 107 | <0.67.0>
3 | -2748 | <0.67.0>
4 | 1808 | <0.67.0>
5 | 989 | <0.67.0>
6 | -1823 | <0.67.0>
7 | 1117 | <0.67.0>
8 | -976 | <0.67.0>
9 | -677 | <0.67.0>
10 | 1008 | <0.67.0>
--------------------------------------------------------------------------------
2) For system with 20 servers, 3 clients, 10 accounts, running for 1 second
Transactions 12
1 | -927 | <0.118.0>
2 | -23 | <0.118.0>
3 | 480 | <0.118.0>
4 | -554 | <0.118.0>
5 | 796 | <0.118.0>
6 | 447 | <0.118.0>
7 | 774 | <0.118.0>
8 | -668 | <0.118.0>
9 | 0 | <0.118.0>
10 | -325 | <0.118.0>
Transactions 12
1 | -927 | <0.126.0>
2 | -23 | <0.126.0>
3 | 480 | <0.126.0>
4 | -554 | <0.126.0>
5 | 796 | <0.126.0>
6 | 447 | <0.126.0>
7 | 774 | <0.126.0>
8 | -668 | <0.126.0>
9 | 0 | <0.126.0>
10 | -325 | <0.126.0>
Transactions 12
1 | -927 | <0.138.0>
2 | -23 | <0.138.0>
3 | 480 | <0.138.0>
4 | -554 | <0.138.0>
5 | 796 | <0.138.0>
6 | 447 | <0.138.0>
7 | 774 | <0.138.0>
8 | -668 | <0.138.0>
9 | 0 | <0.138.0>
10 | -325 | <0.138.0>
Transactions 12
1 | -927 | <0.146.0>
2 | -23 | <0.146.0>
3 | 480 | <0.146.0>
4 | -554 | <0.146.0>
5 | 796 | <0.146.0>
6 | 447 | <0.146.0>
7 | 774 | <0.146.0>
8 | -668 | <0.146.0>
9 | 0 | <0.146.0>
10 | -325 | <0.146.0>
Transactions 12
1 | -927 | <0.150.0>
2 | -23 | <0.150.0>
3 | 480 | <0.150.0>
4 | -554 | <0.150.0>
5 | 796 | <0.150.0>
6 | 447 | <0.150.0>
7 | 774 | <0.150.0>
8 | -668 | <0.150.0>
9 | 0 | <0.150.0>
10 | -325 | <0.150.0>
Transactions 12
1 | -927 | <0.122.0>
2 | -23 | <0.122.0>
3 | 480 | <0.122.0>
4 | -554 | <0.122.0>
5 | 796 | <0.122.0>
6 | 447 | <0.122.0>
7 | 774 | <0.122.0>
8 | -668 | <0.122.0>
9 | 0 | <0.122.0>
10 | -325 | <0.122.0>
Transactions 12
1 | -927 | <0.142.0>
2 | -23 | <0.142.0>
3 | 480 | <0.142.0>
4 | -554 | <0.142.0>
5 | 796 | <0.142.0>
6 | 447 | <0.142.0>
7 | 774 | <0.142.0>
8 | -668 | <0.142.0>
9 | 0 | <0.142.0>
10 | -325 | <0.142.0>
Transactions 12
1 | -927 | <0.114.0>
2 | -23 | <0.114.0>
3 | 480 | <0.114.0>
4 | -554 | <0.114.0>
5 | 796 | <0.114.0>
6 | 447 | <0.114.0>
7 | 774 | <0.114.0>
8 | -668 | <0.114.0>
9 | 0 | <0.114.0>
10 | -325 | <0.114.0>
Transactions 12
1 | -927 | <0.134.0>
2 | -23 | <0.134.0>
3 | 480 | <0.134.0>
4 | -554 | <0.134.0>
5 | 796 | <0.134.0>
6 | 447 | <0.134.0>
7 | 774 | <0.134.0>
8 | -668 | <0.134.0>
9 | 0 | <0.134.0>
10 | -325 | <0.134.0>
Transactions 12
1 | -927 | <0.106.0>
2 | -23 | <0.106.0>
3 | 480 | <0.106.0>
4 | -554 | <0.106.0>
5 | 796 | <0.106.0>
6 | 447 | <0.106.0>
7 | 774 | <0.106.0>
8 | -668 | <0.106.0>
9 | 0 | <0.106.0>
10 | -325 | <0.106.0>
Transactions 12
1 | -927 | <0.110.0>
2 | -23 | <0.110.0>
3 | 480 | <0.110.0>
4 | -554 | <0.110.0>
5 | 796 | <0.110.0>
6 | 447 | <0.110.0>
7 | 774 | <0.110.0>
8 | -668 | <0.110.0>
9 | 0 | <0.110.0>
10 | -325 | <0.110.0>
Transactions 12
1 | -927 | <0.74.0>
2 | -23 | <0.74.0>
3 | 480 | <0.74.0>
4 | -554 | <0.74.0>
5 | 796 | <0.74.0>
6 | 447 | <0.74.0>
7 | 774 | <0.74.0>
8 | -668 | <0.74.0>
9 | 0 | <0.74.0>
10 | -325 | <0.74.0>
Transactions 12
1 | -927 | <0.78.0>
2 | -23 | <0.78.0>
3 | 480 | <0.78.0>
4 | -554 | <0.78.0>
5 | 796 | <0.78.0>
6 | 447 | <0.78.0>
7 | 774 | <0.78.0>
8 | -668 | <0.78.0>
9 | 0 | <0.78.0>
10 | -325 | <0.78.0>
Transactions 12
1 | -927 | <0.82.0>
2 | -23 | <0.82.0>
3 | 480 | <0.82.0>
4 | -554 | <0.82.0>
5 | 796 | <0.82.0>
6 | 447 | <0.82.0>
7 | 774 | <0.82.0>
8 | -668 | <0.82.0>
9 | 0 | <0.82.0>
10 | -325 | <0.82.0>
Transactions 12
1 | -927 | <0.98.0>
2 | -23 | <0.98.0>
3 | 480 | <0.98.0>
4 | -554 | <0.98.0>
5 | 796 | <0.98.0>
6 | 447 | <0.98.0>
7 | 774 | <0.98.0>
8 | -668 | <0.98.0>
9 | 0 | <0.98.0>
10 | -325 | <0.98.0>
Transactions 12
1 | -927 | <0.94.0>
2 | -23 | <0.94.0>
3 | 480 | <0.94.0>
4 | -554 | <0.94.0>
5 | 796 | <0.94.0>
6 | 447 | <0.94.0>
7 | 774 | <0.94.0>
8 | -668 | <0.94.0>
9 | 0 | <0.94.0>
10 | -325 | <0.94.0>
Transactions 12
1 | -927 | <0.102.0>
2 | -23 | <0.102.0>
3 | 480 | <0.102.0>
4 | -554 | <0.102.0>
5 | 796 | <0.102.0>
6 | 447 | <0.102.0>
7 | 774 | <0.102.0>
8 | -668 | <0.102.0>
9 | 0 | <0.102.0>
10 | -325 | <0.102.0>
Transactions 12
1 | -927 | <0.86.0>
2 | -23 | <0.86.0>
3 | 480 | <0.86.0>
4 | -554 | <0.86.0>
5 | 796 | <0.86.0>
6 | 447 | <0.86.0>
7 | 774 | <0.86.0>
8 | -668 | <0.86.0>
9 | 0 | <0.86.0>
10 | -325 | <0.86.0>
Transactions 12
1 | -927 | <0.90.0>
2 | -23 | <0.90.0>
3 | 480 | <0.90.0>
4 | -554 | <0.90.0>
5 | 796 | <0.90.0>
6 | 447 | <0.90.0>
7 | 774 | <0.90.0>
8 | -668 | <0.90.0>
9 | 0 | <0.90.0>
10 | -325 | <0.90.0>
Transactions 12
1 | -927 | <0.130.0>
2 | -23 | <0.130.0>
3 | 480 | <0.130.0>
4 | -554 | <0.130.0>
5 | 796 | <0.130.0>
6 | 447 | <0.130.0>
7 | 774 | <0.130.0>
8 | -668 | <0.130.0>
9 | 0 | <0.130.0>
10 | -325 | <0.130.0>
--------------------------------------------------------------------------------
3) For system with 5 servers, 20 clients, 10 accounts, running for 1 second
Transactions 95
1 | -3915 | <0.71.0>
2 | -273 | <0.71.0>
3 | 3827 | <0.71.0>
4 | -132 | <0.71.0>
5 | 109 | <0.71.0>
6 | 203 | <0.71.0>
7 | 676 | <0.71.0>
8 | -103 | <0.71.0>
9 | -1425 | <0.71.0>
10 | 1033 | <0.71.0>
Transactions 95
1 | -3915 | <0.67.0>
2 | -273 | <0.67.0>
3 | 3827 | <0.67.0>
4 | -132 | <0.67.0>
5 | 109 | <0.67.0>
6 | 203 | <0.67.0>
7 | 676 | <0.67.0>
8 | -103 | <0.67.0>
9 | -1425 | <0.67.0>
10 | 1033 | <0.67.0>
Transactions 95
1 | -3915 | <0.59.0>
2 | -273 | <0.59.0>
3 | 3827 | <0.59.0>
4 | -132 | <0.59.0>
5 | 109 | <0.59.0>
6 | 203 | <0.59.0>
7 | 676 | <0.59.0>
8 | -103 | <0.59.0>
9 | -1425 | <0.59.0>
10 | 1033 | <0.59.0>
Transactions 95
1 | -3915 | <0.75.0>
2 | -273 | <0.75.0>
3 | 3827 | <0.75.0>
4 | -132 | <0.75.0>
5 | 109 | <0.75.0>
6 | 203 | <0.75.0>
7 | 676 | <0.75.0>
8 | -103 | <0.75.0>
9 | -1425 | <0.75.0>
10 | 1033 | <0.75.0>
Transactions 95
1 | -3915 | <0.63.0>
2 | -273 | <0.63.0>
3 | 3827 | <0.63.0>
4 | -132 | <0.63.0>
5 | 109 | <0.63.0>
6 | 203 | <0.63.0>
7 | 676 | <0.63.0>
8 | -103 | <0.63.0>
9 | -1425 | <0.63.0>
10 | 1033 | <0.63.0>