summaryrefslogtreecommitdiffstats
path: root/ancillary/kafka_notes.md
blob: e0880b0b5131ae92ddbfb7f8d67133a879ef961a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Kafka

```
Msg_Size * Msg_Freq/second * (Replication_factor + 1) = inbound_rate

inbound_rate must be < 50% sustained network throughput 
(c5.2xlarge = 2.5gbit sustained, so no more than 1.3gbit => 162.5megabyte/sec)

D_days retention => inbound_rate * 86400s/day  = total_storage

1 gigabit == 125,000 kbyte

Process 5000 msg/sec uncompressed, 4500 msgs/sec with compression turned on 
(expect 10% perf penalty) — leader partitions only 

-> Ratios: 1 CPU core, 2GB Memory, ~300mbit network, ~1250 IOPS, ~35 MB/s disk throughput.
```