Skip to content

Commit 6e967bd

Browse files
committed
a
1 parent 65aa1f3 commit 6e967bd

29 files changed

Lines changed: 218 additions & 801 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ better compression and disk life
4343
10x write throughput vs b-tree, 0.5x read/s
4444
less stable response times in higher percentiles
4545

46+
## lsm
47+
wal
48+
memtable
49+
sstable
50+
bloom
51+
sparse index
52+
block index
53+
compaction
54+
L0, L1, ..
55+
delete by tombstones
56+
4657

4758
## columnar vs wide column
4859
both lsm
File renamed without changes.
File renamed without changes.
File renamed without changes.

_CONTENT/eng/dsa/dsa.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
---
3+
```
4+
bit
5+
get: & 1<<i
6+
set: | 1<<i
7+
8+
clear: & ~(1<<i)
9+
lastbit: & 1
10+
11+
-1 << (i+1)
12+
1111 << 2 = 1100
13+
14+
(1<<i)-1
15+
(1<<2)-1
16+
0100 - 0001 = 0011
17+
18+
str
19+
rk
20+
lps + kmp
21+
trie
22+
23+
array
24+
25+
stack
26+
q
27+
monotonic
28+
29+
hashmap
30+
31+
linked-list
32+
skip-list
33+
34+
graph
35+
topo: kahns or
36+
dfs from all
37+
visit after neighbors
38+
reverse
39+
40+
paths
41+
dijkstra_priority = new_cost
42+
greedy_priority = heuristic(goal,next)
43+
a_star_priority = new_cost + heuristic(goal,next)
44+
```
45+

_CONTENT/eng/dsa/probabilistic.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
---
3+
skiplist: levels of linked lists
4+
5+
### sets
6+
membership: bloom filter (k hash funcs + bit array)
7+
cardinality: hyperloglog: hash items and count leading zeros. longest run of zeros ≈ log₂(cardinality)
8+
similarity: convert sets to hash signs. minhash, locality sensitive hashing
9+
10+
### streams
11+
overestimate freq with count-min-sketch
12+
sample k random items with reservoir samp: Fill reservoir with first k elements. For ith stream item, replace if a random num in [1,i] <=k

_CONTENT/eng/ops/k8s.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
---
22
---
3+
control plane
4+
api-server
5+
etcd
6+
scheduler
7+
controller-manager
8+
9+
node
10+
kubelet
11+
kube-proxy
12+
coredns
13+
14+
namespace
15+
16+
deployment
17+
daemonset
18+
statefulset
19+
replicaset
20+
pod
21+
container
22+
23+
resource quota
24+
25+
pvc
26+
27+
network policy
28+
service
29+
endpoint
30+
ingress
31+
32+
service account
33+
rbac role
34+
configmap
35+
secret
36+
37+
hpa/vpa pod auto scaler
38+
39+
340
```
441
control plane
542
kube-apiserver

0 commit comments

Comments
 (0)