all Flashcards
1
Q
Which are the security protocols
A
- PLAINTEXT
- SSL
- SASL_PLAINTEXT
- SASL_SSL
2
Q
broker.id
A
- Broker config
- General broker parameter
- integer
3
Q
listeners
A
- Broker config
- General broker parameter
- comma-separated list of URIs
- URI look like:
<protocol>://<hostname>:<port> e.g. SSL://localhost:9091
4
Q
what happens if a broker’s listener port is lower than 1024
A
Kafka must be started as root
5
Q
listener.security.protocol.map
A
- General broker parameter
- configured if a listener name is not a common security protocol
6
Q
zookepeer.connect
A
- Broker config
- General broker parameter
- semicolon-separated (semicolon) list of hostname:port/path
path is optional chroot path
7
Q
log.dirs
A
- Broker config
- General broker parameter
- the directories where log segments are stored
- one partition’s log segments are stored within the same path
- broker will store partitions in “least used” fashion
-defaults to log.dir (singular) if missing
8
Q
num.recovery.threads.per.data.dir
A
- Broker config
- General broker parameter
- num threads per log dir
- threads are used to:
- open log segment files
- close log segment files
- check and truncate log segment files after failure
- safe to increase their number
9
Q
auto.create.topics.enable
A
- Broker config
- General broker parameter
- the broker will automatically create topic when:
- producer starts writing
- consumer starts reading
- any client requests metadata
10
Q
auto.leader.rebalance.enable
A
- Broker config
- General broker parameter
- enables background thread checking distribution of partitions
- seeks to avoid having topic leadership concentrated in one or few brokers
11
Q
leader.imbalance.check.interval.seconds
A
- Broker config
- General broker parameter
- every how many seconds the broker will check for partition leader imbalances
12
Q
leader.imbalance.per.broker.percentage
A
- Broker config
- General broker parameter
- if leadership imbalance exceeds this value, then a rebalance is initiated
13
Q
delete.topic.enable
A
- General broker parameter
- dangerous
14
Q
num.partitions
A
- Broker config
- topic default
- defaults to 1
-primarily used when auto topic creation is enabled - partitons can never be decreased
15
Q
default.replication.factor
A
- Broker config
- topic default
- if auto-topic creation enabled, this value sets the replication factor
- should be at least 1 over the min.insync.replicas (RF+)
- even better is RF++ to allow maintenance and prevent outages
16
Q
log.retention.ms
A
- Broker config
- topic default
- takes precedence over log.retention.minutes and log.retention.hours
- how long kafka will retain messages
- retention is performed by examining the last modified time on each log segment file on disk. The tome the log segment was closed.
- this retention is on topic level
- if log.retention.bytes has also been configured, messages may be removed when either criteria is met