Documentation ¶
Overview ¶
Package sla provides the SLA definitions for topics.
Warded topic has 2 extra topics: {appid}.{topic}.retry.{ver} {appid}.{topic}.dead.{ver}
Index ¶
Constants ¶
View Source
const ( SlaKeyRetentionHours = "retention.hours" SlaKeyRetentionBytes = "retention.bytes" SlaKeyPartitions = "partitions" SlaKeyReplicas = "replicas" SlaKeyRetryTopic = "retry" SlaKeyDeadLetterTopic = "dead" )
Variables ¶
Functions ¶
func ValidateShadowName ¶
Types ¶
type TopicSla ¶
type TopicSla struct { RetentionHours float64 RetentionBytes int Partitions int Replicas int MinInsyncReplicas int }
func DefaultSla ¶
func DefaultSla() *TopicSla
func (*TopicSla) DumpForAlterTopic ¶
func (*TopicSla) DumpForCreateTopic ¶
Dump the sla for kafka-topics.sh as arguments.
func (*TopicSla) ParseRetentionHours ¶
Click to show internal directories.
Click to hide internal directories.