forked from weimeilin79/fusesizingguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
433 lines (360 loc) · 15 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="/node_modules/patternfly/dist/css/patternfly.css">
<link rel="stylesheet" type="text/css" href="/node_modules/patternfly/dist/css/patternfly-additions.css">
</head>
<style>
.footer {
border-top: 1px solid #D5D5D5;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
line-height: 15px;
padding-bottom: 28px;
padding-top: 28px;
font-size: 10px;
}
</style>
<body>
<nav class="navbar navbar-default navbar-pf" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="/">
<img src="https://hdijkhuis.files.wordpress.com/2015/08/redhat_logo.png?w=80" alt="Fuse Sizing Guide" />
</a>
</div>
</nav>
<div class="container">
<!-- Just enjoy various PatternFly components -->
<h1>Fuse 7 Sizing Reference</h1>
<ul>
<li>The purpose of this Fuse Sizing Application is to give a rough estimation of the minimum resources needed when deploying Red Hat Fuse </li>
<li>This application requires you to specify the peak traffic and the estimated size of each transaction. </li>
<li>The tooling will help you to estimate </li>
<ul>
<li>The recommended cores to allocate for Integration </li>
<li>The recommended disk space require in total</li>
<li>The recommended pods to run on OpenShift in total</li>
</ul>
<li>Memory allocation is there for your reference, and should not be used. Always tune your Fuse/Camel routes.</li>
</ul>
<div id="notice" >
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span class="pficon pficon-close"></span>
</button>
<span class="pficon pficon-error-circle-o"></span>
<strong>Error!</strong> <span id="errormsg" />.
</div>
</div>
<h3>Input following data to calculate sizing: </h3>
<BR/>
<form id="sizingform" class="form-horizontal">
<table class="table table-striped table-bordered table-hover" id="table1">
<thead>
<tr>
<th>Complexity</th>
<th> Estimated data size/transactions (KB)</th>
<th>Estimated peak transactions/minute </th>
</tr>
</thead>
<tbody>
<tr>
<td><h5>Simple</h5></td>
<td><input class="col-sm-6 control-label" id="s-size" type="text" value=300></td>
<td><input class="col-sm-6 control-label" id="s-peak" type="text" value=40000></td>
</tr>
<tr>
<td><h5>Medium</h5></td>
<td><input class="col-sm-6 control-label" id="m-size" type="text" value=500></td>
<td><input class="col-sm-6 control-label" id="m-peak" type="text" value=90></td>
</tr>
<tr>
<td><h5>High</h5></td>
<td><input class="col-sm-6 control-label" id="h-size" type="text" value=20000></td>
<td><input class="col-sm-6 control-label" id="h-peak" type="text" value=2></td>
</tr>
</tbody>
</table>
<div class="form-group">
<label class="col-sm-3 control-label" for="textInput-markup">Log Level <span class="fa pficon-help" data-toggle="tooltip" data-placement="top" title="Standard logging levels that can be used to control logging output"/></label>
<div class="col-sm-9">
<select id="logsize" class="form-control">
<option value="5">DEBUG</option>
<option value="2" selected="selected">INFO</option>
<option value="1">WARN</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="textInput-markup">Performance Contingency in % <span class="fa pficon-help" data-toggle="tooltip" data-placement="top" title="Performance management contingency base on risk assessment. In case of worst, keep resource utilization rate to the % specified."/></label>
<div class="col-sm-9">
<input type="text" id="contingency" class="form-control" value="90">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="textInput-markup">Extra Load in % <span class="fa pficon-help" data-toggle="tooltip" data-placement="top" title="% of possible increase in transaction"/></label>
<div class="col-sm-9">
<input type="text" id="extraload" class="form-control" value="10">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="textInput-markup">Annual growth in % </label>
<div class="col-sm-9">
<input type="text" id="growth" class="form-control" value="45">
</div>
</div>
<p align="left">
<button class="btn btn-primary" type="button" id="calculate">Calculate</button>
<button class="btn btn-primary" type="button" id="reset">Reset</button>
</p>
</form>
<BR/>
<h3>Result: </h3>
<BR/>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<div class="card-pf card-pf-view ">
<div class="card-pf-body">
<div class="card-pf-top-element">
<span class="fa fa-hand-o-up card-pf-icon-circle"></span>
</div>
<h2 class="card-pf-title text-center">
YEAR ONE
</h2>
<div class="card-pf-items text-center">
<div class="card-pf-item">
<span class="pficon pficon-cpu"></span> Core:
<span class="card-pf-item-text" id="estCore">-</span>
</div>
<div class="card-pf-item">
<span class="pficon pficon-storage-domain"></span> Disk:
<span class="card-pf-item-text" id="estDisk">- </span> GB
</div>
<div class="card-pf-item">
<span class="pficon pficon-registry"></span> OpenShift Pod:
<span class="card-pf-item-text" id="estPod">- </span>
</div>
</div>
<p class="card-pf-info text-center">
<strong>Estimation ONLY</strong> <BR/>
Possible Max. peak memory usage <BR/>
<span id="estMaxMem">-</span> GB
</p>
</div>
<div class="card-pf-view-checkbox">
<input type="checkbox">
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<div class="card-pf card-pf-view ">
<div class="card-pf-body">
<div class="card-pf-top-element">
<span class="fa fa-angellist card-pf-icon-circle"></span>
</div>
<h2 class="card-pf-title text-center">
YEAR TWO
</h2>
<div class="card-pf-items text-center">
<div class="card-pf-item">
<span class="pficon pficon-cpu"></span> Core:
<span class="card-pf-item-text" id="estCoreY2">-</span>
</div>
<div class="card-pf-item">
<span class="pficon pficon-storage-domain"></span> Disk:
<span class="card-pf-item-text" id="estDiskY2">- </span> GB
</div>
<div class="card-pf-item">
<span class="pficon pficon-registry"></span> OpenShift Pod:
<span class="card-pf-item-text" id="estPodY2">- </span>
</div>
</div>
<p class="card-pf-info text-center">
<strong>Estimation ONLY</strong> <BR/>
Possible Max. peak memory usage <BR/>
<span id="estMaxMemY2">-</span> GB
</p>
</div>
<div class="card-pf-view-checkbox">
<input type="checkbox">
</div>
</div>
</div>
</div>
<BR/>
<BR/>
<BR/>
<div class="container">
<ul>
<li><strong>Express Tunning Guide:</strong></li>
<ul>
<li>Multithread when possible</li>
<ul>
<li>Use Parallel processing EIP</li>
<ul>
<li>Spilt</li>
<li>Multicast</li>
<li>Throttler</li>
</ul>
<li>Use Seda component to invoke other routes</li>
<li>Use Asynchronous endpoint, and remember to set timeouts</li>
<li>For HTTP protocol, implement circuit breaker</li>
</ul>
<li>Streaming and stream caching when dealing with large message payload</li>
<li>Configure logging level</li>
<li>For more info, see Post from <a href="https://dzone.com/articles/performance-tuning-ideas-for-apache-camel">Bilgin Ibryam</a> </li>
</ul>
</ul>
<BR/>
<div class="container-fluid container-cards-pf">
<div class="row row-cards-pf">
<div class="col-xs-6 col-sm-4 col-md-4">
<div class="card-pf">
<div class="card-pf-heading">
<h2 class="card-pf-title">
Complexity
</h2>
</div>
<div class="card-pf-body">
<ul>
<li><b>Simple</b> - Web/API proxying, message passthrough</li>
<li><b>Medium</b> - Web/API proxying or Events, with some data parsing and processing</li>
<li><b>High</b> - Large data parsing and processing with slower producer endpoints</li>
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4">
<div class="card-pf">
<div class="card-pf-heading">
<h2 class="card-pf-title">
Base Metrics
</h2>
</div>
<div class="card-pf-body">
<ul>
<li><b>Spring Boot</b> - Default container configurations</li>
<li><b>EAP</b> - 1000 Threads</li>
<li><b>Karaf</b> - 1000 Threads</li>
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4">
<div class="card-pf">
<div class="card-pf-heading">
<h2 class="card-pf-title">
Disk Space
</h2>
</div>
<div class="card-pf-body">
<ul>
<li>Est. 1 GB for installed product file/per host</li>
<li>5+ GB for log files and deployed artifacts per node</li>
</ul>
</div>
</div>
</div>
</div><!-- /row -->
</div><!-- /container -->
</div>
<BR/>
<BR/>
<BR/>
<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/bootstrap/dist/js/bootstrap.js"></script>
<script>
//Estimate Load
/////////////////UPDATE WHEN NEW DATA AVALIABLE///////////////////////////////////
var sload = 17651;
var mload = 9098;
var hload = 449;
var throughputsec=300; // change it from 300 to 200
var productInstall=1;
//////////////////////////////////////////////////////////////////////////////////
$(function () {
$('[data-toggle="tooltip"]').tooltip()
$("#notice").hide()
})
$( "#calculate" ).click(function( event ) {
$("#notice").hide()
var ssize = $('#s-size').val();
var speak = $('#s-peak').val();
var msize = $('#m-size').val();
var mpeak = $('#m-peak').val();
var hsize = $('#h-size').val();
var hpeak = $('#h-peak').val();
if(!$.isNumeric(ssize)){ssize=0; $('#s-size').val(0);}
if(!$.isNumeric(speak)){speak=0; $('#s-peak').val(0);}
if(!$.isNumeric(msize)){ssize=0; $('#m-size').val(0);}
if(!$.isNumeric(mpeak)){speak=0; $('#m-peak').val(0);}
if(!$.isNumeric(hsize)){ssize=0; $('#h-size').val(0);}
if(!$.isNumeric(hpeak)){speak=0; $('#h-peak').val(0);}
var contingency = $('#contingency').val();
var extraload = $('#extraload').val();
var growth = $('#growth').val();
var logsize = $('#logsize').val();
if(!$.isNumeric(contingency)){contingency=0; $('#contingency').val(0);}
if(!$.isNumeric(extraload)){extraload=0; $('#extraload').val(0);}
if(!$.isNumeric(growth)){growth=0; $('#growth').val(0);}
if(!$.isNumeric(logsize)){logsize=5;}
if(contingency==0){
contingency=100;
} else if (contingency > 99){
$('#errormsg').text('Performance Contingency should not be bigger than 99% \n');
$( "#notice" ).show();
return;
}
//Say 2 GB is the default memory, the bigger the message, it will affect the performance
var estSCore = Math.ceil(((speak/60)*(1+extraload*0.01))/(sload/throughputsec)/(contingency*0.01));
var estMCore = Math.ceil(((mpeak/60)*(1+extraload*0.01))/(mload/throughputsec)/(contingency*0.01));
var estHCore = Math.ceil(((hpeak/60)*(1+extraload*0.01))/(hload/throughputsec)/(contingency*0.01));
console.log('Simple TP30S:['+(speak/60)+'] with extra load :['+extraload+'] benchmark throughput:['+(sload/throughputsec)+'] contingency:['+(contingency*0.01)+']');
console.log('Medium TP30S:['+(mpeak/60)+'] with extra load :['+extraload+'] benchmark throughput:['+(mload/throughputsec)+'] contingency:['+(contingency*0.01)+']');
console.log('High TP30S:['+(hpeak/60)+'] with extra load :['+extraload+'] benchmark throughput:['+(hload/throughputsec)+'] contingency:['+(contingency*0.01)+']');
var estSMem = Math.ceil(((speak/2)*(1+extraload*0.01))/(contingency*0.01)/throughputsec*ssize/1000000);
var estMMem = Math.ceil(((mpeak/2)*(1+extraload*0.01))/(contingency*0.01)/throughputsec*msize/1000000);
var estHMem = Math.ceil(((hpeak/2)*(1+extraload*0.01))/(contingency*0.01)/throughputsec*hsize/1000000);
var estCore = estSCore+estMCore+estHCore;
var estMaxMem = estSMem+estMMem+estHMem+1;
var estPod = Math.ceil(estCore/2);
//console.log('estCore - '+estCore);
//console.log('estMem - '+estMaxMem);
//console.log('estPod - '+estPod);
$('#estCore').text(estCore);
$('#estPod').text(estPod);
$('#estMaxMem').text(estMaxMem);
$('#estCoreY2').text(Math.ceil(estCore*(1+(growth*0.01))));
$('#estPodY2').text(Math.ceil(estPod*(1+(growth*0.01))));
$('#estMaxMemY2').text(Math.ceil(estMaxMem*(1+(growth*0.01))));
//Est Product Bundle size (EST. 2 core per host)
var estdisckspace = Math.ceil(((logsize * (estCore/2))+( productInstall* (estCore/2)))*(1+extraload*0.01));
//console.log('estdisckspace - '+estdisckspace);
$('#estDisk').text(estdisckspace);
$('#estDiskY2').text(Math.ceil(estdisckspace*(1+(growth*0.01))));
});
$( "#reset" ).click(function( event ) {
$('#s-size').val(0); $('#s-peak').val(0);
$('#m-size').val(0); $('#m-peak').val(0);
$('#h-size').val(0); $('#h-peak').val(0);
$('#contingency').val(0);
$('#extraload').val(0);
$('#growth').val(0);
$('#estCore').text('-');
$('#estPod').text('-');
$('#estMaxMem').text('-');
$('#estCoreY2').text('-');
$('#estPodY2').text('-');
$('#estMaxMemY2').text('-');
});
</script>
<footer class="footer">
<a href="https://developers.redhat.com/products/fuse/overview/"><img src="https://developers.redhat.com/blog/wp-content/uploads/2018/05/RH_Fuse_RGB_Black.png" alt="Fuse" width="40"/></a>
Fuse 7 Sizing Guide v1.0
<BR/>
Contact <a href="mailto:[email protected]?Subject=Sizing Guide%20Question" target="_top">Christina Lin</a> for any questions.
</footer>
</body>
</html>