Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sharding calculator #584

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9cfe5f6
test calculator
Aug 10, 2018
598d112
add .html and .js
Aug 10, 2018
64f8300
calculator.js : put function
Aug 10, 2018
d99493d
change design
Aug 10, 2018
c32466e
change shard calculator to newest version
Aug 13, 2018
b458bf1
correct error in shard calculator
Aug 13, 2018
892e16e
correct error in shard calculator
Aug 13, 2018
26f2aa5
apply sharding-calculator storage recommendation update
Aug 14, 2018
e10037c
select schema, table from database and get it's name as string in Jav…
Aug 15, 2018
177e25c
implement querying of host cpu cores
Aug 16, 2018
b5d2554
Merge remote-tracking branch 'origin/floyd/calculator' into floyd/cal…
Aug 16, 2018
6ced847
change iterative shardsize calculation to deterministic
Aug 16, 2018
528a052
read real table name
Aug 17, 2018
bcf4e48
read real table name
Aug 17, 2018
212af05
exclude ram/storage
Aug 17, 2018
b762df3
implement fetching of RAMStoragePropotion
Aug 20, 2018
252adc3
fix some bugs
Aug 20, 2018
cfbf232
add proper link to calculator on help page
Aug 20, 2018
0aee585
add translation support
Aug 20, 2018
82bd134
Merge remote-tracking branch 'origin/floyd/calculator' into floyd/cal…
Aug 20, 2018
8f6befd
move translation to tutorial/static/i18n
Aug 21, 2018
bdd9d46
implement RAM as input
Aug 21, 2018
ac6b912
compromise on haudi's and andrei's maxmimum shard size opinions
Aug 21, 2018
9cf8a90
add german translation
Aug 21, 2018
d62b1e8
design
Aug 21, 2018
229901f
Update de.json
NinaFeuer Aug 22, 2018
f3d436a
Update en.json
NinaFeuer Aug 22, 2018
6c3e1f6
re-add RAM as input parameter
Aug 22, 2018
efc653b
add more style in html and add css:disabled view
Aug 22, 2018
d24402b
fix loadTable size
Aug 22, 2018
bd3373c
fix design
Aug 22, 2018
e378903
fix design
Aug 22, 2018
7372aee
fix design
Aug 22, 2018
5b29bc8
fix design
Aug 22, 2018
bf83710
remove .orig files
Aug 22, 2018
2ea3338
fix css for radio buttons
Aug 22, 2018
62ca084
Merge remote-tracking branch 'origin/floyd/calculator' into floyd/cal…
Aug 22, 2018
dfce873
fix css for radio buttons; change units to element
Aug 22, 2018
f4afe4a
final solution for radio button css
Aug 23, 2018
258d89b
fixup
Aug 27, 2018
e3aa364
fixup
Aug 27, 2018
0ff7017
fixup
Aug 27, 2018
bf8162f
fixup
Aug 27, 2018
db5f9c5
fix a bug where RAMPerNode was not loaded properly from DB
Aug 28, 2018
24f2257
it's called GibiByte not GigiByte
Aug 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions app/conf/plugins.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,29 @@
"controller": "ShardsController"
}
}
}, {
"name": "calculator",
"uri": "static/plugins/tutorial/calculator.js",
"enterprise": false,
"routing": {
"/calculator": {
"name": "calculator",
"url": "/calculator",
"templateUrl": "static/plugins/tutorial/calculator.html",
"controller": "CalculatorController"
}
}
}, {
"name": "testing",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This testing section doesn't seem used, please remove it

"uri": "static/plugins/tutorial/testing.js",
"stylesheet": "static/plugins/tutorial/calculator.css",
"enterprise": false,
"routing": {
"/testing": {
"name": "testing",
"url": "/testing",
"templateUrl": "static/plugins/tutorial/testing.html",
"controller": "testingController"
}
}
}]
103 changes: 103 additions & 0 deletions app/plugins/tutorial/calculator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@

.cr-panel-block--calculator{ /* refer to .cr-panel-block--info */
/* big box */
background-color: #353535;
margin-top: 10px;
margin-bottom: 10px;
padding-top: 0px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
border: 1px solid #545454;
}

.cr-panel-block__calculator{ /* refer to cr-panel-block__item */
margin: 5px;
}
.cr-panel-block__calculator__header{
padding-bottom: 3px;
letter-spacing: 0.6px;
font-weight: bold;
background-color: #353535;
font-size: 10px;
}

.cr-panel-block__calculator__content{
/* small box */
width:100%;
margin-left:10px;
margin-right:10px;
margin-top:0px;
margin-bottom:0px;
padding: 7px;
font-size: 13px;
overflow: hidden;
word-break: normal;
border: 1px solid #242424 !important;
border-radius: 3px;
background: #242424 !important;
}


.result {
font-size:14px;
font-weight: bold;
color: #55d4f5; /*crate blue*/
}


.last_row {
padding-bottom:0px !important;
margin-bottom:0px !important;
}

.column {
float: left;
width: 50%;
padding: 5px;
}

/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

input{
width:50px;
background-color:#545454;
border: 1px solid #545454;
border-radius: 4px;
}


input:disabled {
color: #606060;
}

select {
width:auto;
background-color:#545454;
border: 1px solid #545454;
border-radius: 4px;
}

select:disabled {
color: #606060;
}

.crb-conatiner { /*crb ... cool-radio-button*/
width: 100%;
overflow: hidden;
}

.crb-button { /*crb ... cool-radio-button*/
float: left;
padding-left: -25px;
margin-right: -15px;
}

.crb-description { /*crb ... cool-radio-button*/
padding-top: 0.3%;
}
Loading