Strimzi Kafka Under-Replicated Partitions and ISR Shrink
Matches Strimzi Kafka broker UnderReplicatedPartitions spikes, NotEnoughReplicasException producer failures, and KafkaTopic reconciliation errors.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:c8235bb9
Contract facts
- Sources
- 3
- kubernetes, loki, prometheus
- Log patterns
- 3
- RE2, replayed in CI
- Kubernetes matchers
- 1
- CEL on live objects
- Samples
- 3 and 2
- must match and must not
Inspect it
Inspect the contract and RBAC delta
$ faberctl catalog inspect signatures/strimzi-kafka-under-replicated \ --source oci://ghcr.io/faberops/catalog:v2How it works
Sources
kubernetes, loki, prometheus
What it matches
Must match
- Broker error: org.apache.kafka.common.errors.NotEnoughReplicasException for partition orders-3
- Partition orders-3: Shrinking ISR from 0,1,2 to 0,1
- KafkaTopic kafka/orders-events: Reconciliation failed due to invalid min.insync.replicas
Must not match
- Kafka cluster kafka/prod-kafka Ready=True with 3 brokers
- KafkaTopic kafka/orders-events reconciled with 12 partitions
Signature source
signature.yamlFailureSignature31 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: strimzi-kafka-under-replicated
spec:
description: Matches Strimzi Kafka broker UnderReplicatedPartitions spikes, NotEnoughReplicasException producer failures,
and KafkaTopic reconciliation errors.
sources:
- kubernetes
- loki
- prometheus
logPatterns:
- NotEnoughReplicasException|NotEnoughReplicasAfterAppendException
- Shrinking ISR from .* to
- KafkaTopic.*Reconciliation failed|min\.insync\.replicas
samples:
match:
- 'Broker error: org.apache.kafka.common.errors.NotEnoughReplicasException for partition orders-3'
- 'Partition orders-3: Shrinking ISR from 0,1,2 to 0,1'
- 'KafkaTopic kafka/orders-events: Reconciliation failed due to invalid min.insync.replicas'
noMatch:
- Kafka cluster kafka/prod-kafka Ready=True with 3 brokers
- KafkaTopic kafka/orders-events reconciled with 12 partitions
kubernetes:
- apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
match: has(object.status) && has(object.status.conditions) && object.status.conditions.exists(c, c.type == "Ready" &&
c.status == "False")
queries:
loki: '{namespace="kafka"} |= "NotEnoughReplicasException" or |= "Shrinking ISR"'
promql: sum by (namespace, pod) (kafka_server_replicamanager_underreplicatedpartitions) > 0
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/strimzi-kafka-under-replicated. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: strimzi-kafka-under-replicated
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:c8235bb907e197ecb72077ad54352539d937984706a267ca8269eba59f2fc720
Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.
Related packs
All 176 packsStrimzi Kafka Topic Retention, ISR and Storage Hygiene
playbooks/kafka-strimzi-cluster-hygieneAudits Strimzi Kafka clusters and KafkaTopic resources for single-replica topics lacking min.insync.replicas durability, unbounded retention.bytes risking broker disk full outages, and missing deleteClaim protection, opening small HITL GitOps pull requests.Default HITLCeiling HITLMulti-Cloud CSI Volume Attachment and Multi-Attach Stuck Errors
signatures/multicloud-csi-volume-attach-stuckMatches cross-cloud Kubernetes CSI FailedAttachVolume, Multi-Attach errors for ReadWriteOnce volumes, and VolumeAttachment timeout events across Hetzner, Scaleway, OVHcloud, DigitalOcean, AWS, Azure, and GCP.Log patterns 3Sources 3Argo CD OutOfSync and Comparison Error Fixer
playbooks/argocd-sync-fixerDiagnoses Argo CD Applications stuck in OutOfSync, Degraded, or ComparisonError state, validates fixes offline in a zero-egress sandbox, and opens small HITL GitOps pull requests.Default HITLCeiling HITL