8e5da70341fd55b6c1e519d9637f53e142cafb9d
compute/stats-for-sysadmins.md
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<!-- TITLE: Stats For Sysadmins --> |
|
| 2 | +<!-- SUBTITLE: Finger in the air shit right here --> |
|
| 3 | + |
|
| 4 | +### 1/n chance tried n times |
|
| 5 | +From https://theartofmachinery.com/2020/01/27/systems_programming_probability.html |
|
| 6 | +For n>3, there's a bit less than a 2/3 chance of at least one hit. |
|
| 7 | + |
|
| 8 | +### n balls in n buckets |
|
| 9 | +From https://theartofmachinery.com/2020/01/27/systems_programming_probability.html |
|
| 10 | +If you throw n balls into n buckets at random, a bit over a third of the buckets will be empty, a bit over a third will have one ball, and the remaining quarter or so will have multiple balls. |
|
| 11 | + |
|
| 12 | +### Scale up, or scale out? |
|
| 13 | +From http://people.brunel.ac.uk/~mastjjb/jeb/or/queue.html |
|
| 14 | +If you only care about throughput, scale up. |
|
| 15 | +If you care about wait times, scale out. |
|
| ... | ... | \ No newline at end of file |