Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PlanningInterval time.Duration `yaml:"planning_interval"`
MinTableOffset int `yaml:"min_table_offset"`
MaxTableOffset int `yaml:"max_table_offset"`
RetentionConfig RetentionConfig `yaml:"retention"`
Queue queue.Config `yaml:"queue"`
}
Config configures the bloom-planner component.
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix registers flags for the bloom-planner configuration.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics( r prometheus.Registerer, getConnectedBuilders func() float64, ) *Metrics
type Planner ¶
func New ¶
func New( cfg Config, limits Limits, schemaCfg config.SchemaConfig, storeCfg storage.Config, storageMetrics storage.ClientMetrics, bloomStore bloomshipper.StoreBase, logger log.Logger, r prometheus.Registerer, rm *ring.RingManager, ) (*Planner, error)
func (*Planner) BuilderLoop ¶
func (p *Planner) BuilderLoop(builder protos.PlannerForBuilder_BuilderLoopServer) error
func (*Planner) NotifyBuilderShutdown ¶
func (p *Planner) NotifyBuilderShutdown( _ context.Context, req *protos.NotifyBuilderShutdownRequest, ) (*protos.NotifyBuilderShutdownResponse, error)
type QueueLimits ¶
type QueueLimits struct {
// contains filtered or unexported fields
}
func NewQueueLimits ¶
func NewQueueLimits(limits Limits) *QueueLimits
func (*QueueLimits) MaxConsumers ¶
func (c *QueueLimits) MaxConsumers(tenantID string, allConsumers int) int
MaxConsumers is used to compute how many of the available builders are allowed to handle tasks for a given tenant. 0 is returned when neither limits are applied. 0 means all builders can be used.
type RetentionConfig ¶ added in v3.2.0
type RetentionConfig struct {
Enabled bool `yaml:"enabled"`
MaxLookbackDays int `yaml:"max_lookback_days" doc:"hidden"`
}
func (*RetentionConfig) RegisterFlagsWithPrefix ¶ added in v3.2.0
func (cfg *RetentionConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
func (*RetentionConfig) Validate ¶ added in v3.2.0
func (cfg *RetentionConfig) Validate() error
type RetentionLimits ¶ added in v3.2.0
type RetentionLimits interface {
RetentionPeriod(userID string) time.Duration
StreamRetention(userID string) []validation.StreamRetention
AllByUserID() map[string]*validation.Limits
DefaultLimits() *validation.Limits
}
type RetentionManager ¶ added in v3.2.0
type RetentionManager struct {
// contains filtered or unexported fields
}
func NewRetentionManager ¶ added in v3.2.0
func NewRetentionManager( cfg RetentionConfig, limits RetentionLimits, bloomStore bloomshipper.StoreBase, metrics *Metrics, logger log.Logger, ) *RetentionManager
Source Files
¶
Click to show internal directories.
Click to hide internal directories.