-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathleader_election_occurring-variables.tf
55 lines (44 loc) · 1.5 KB
/
leader_election_occurring-variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
variable "leader_election_occurring_enabled" {
type = bool
default = true
}
variable "leader_election_occurring_warning" {
type = number
default = 0
}
variable "leader_election_occurring_critical" {
type = number
default = 0
}
variable "leader_election_occurring_evaluation_period" {
type = string
default = "last_5m"
}
variable "leader_election_occurring_note" {
type = string
default = ""
}
variable "leader_election_occurring_docs" {
type = string
default = <<EOFF
When a partition leader dies, an election for a new leader is triggered. A partition leader is considered “dead” if it fails to maintain its session with ZooKeeper. Unlike ZooKeeper’s Zab, Kafka does not employ a majority-consensus algorithm for leadership election. Instead, Kafka’s quorum is composed of the set of all in-sync replicas (ISRs) for a particular partition. Replicas are considered in-sync if they are caught-up to the leader, which means that any replica in the ISR can be promoted to the leader.
https://www.datadoghq.com/blog/monitoring-kafka-performance-metrics/
EOFF
}
variable "leader_election_occurring_filter_override" {
type = string
default = ""
}
variable "leader_election_occurring_alerting_enabled" {
type = bool
default = true
}
variable "leader_election_occurring_require_full_window" {
type = bool
default = false
}
variable "leader_election_occurring_priority" {
description = "Number from 1 (high) to 5 (low)."
type = number
default = 3
}