Documentation ¶
Index ¶
- Constants
- func FindGapsInFingerprintBounds(ownershipRange v1.FingerprintBounds, metas []v1.FingerprintBounds) (gaps []v1.FingerprintBounds, err error)
- func SplitFingerprintKeyspaceByFactor(factor int) []v1.FingerprintBounds
- type ChunkSizeStrategy
- type ChunkSizeStrategyLimits
- type Limits
- type PlanningStrategy
- type SplitKeyspaceStrategy
- type SplitKeyspaceStrategyLimits
- type TSDBSet
Constants ¶
View Source
const ( SplitKeyspaceStrategyName = "split_keyspace_by_factor" SplitBySeriesChunkSizeStrategyName = "split_by_series_chunks_size" )
Variables ¶
This section is empty.
Functions ¶
func FindGapsInFingerprintBounds ¶
func FindGapsInFingerprintBounds(ownershipRange v1.FingerprintBounds, metas []v1.FingerprintBounds) (gaps []v1.FingerprintBounds, err error)
func SplitFingerprintKeyspaceByFactor ¶
func SplitFingerprintKeyspaceByFactor(factor int) []v1.FingerprintBounds
SplitFingerprintKeyspaceByFactor splits the keyspace covered by model.Fingerprint into contiguous non-overlapping ranges.
Types ¶
type ChunkSizeStrategy ¶
type ChunkSizeStrategy struct {
// contains filtered or unexported fields
}
func NewChunkSizeStrategy ¶
func NewChunkSizeStrategy( limits ChunkSizeStrategyLimits, logger log.Logger, ) (*ChunkSizeStrategy, error)
func (*ChunkSizeStrategy) Name ¶
func (s *ChunkSizeStrategy) Name() string
type ChunkSizeStrategyLimits ¶
type Limits ¶
type Limits interface { BloomPlanningStrategy(tenantID string) string SplitKeyspaceStrategyLimits ChunkSizeStrategyLimits }
type PlanningStrategy ¶
type PlanningStrategy interface { Name() string // Plan returns a set of tasks for a given tenant-table tuple and TSDBs. Plan(ctx context.Context, table config.DayTable, tenant string, tsdbs TSDBSet, metas []bloomshipper.Meta) ([]*protos.Task, error) }
func NewStrategy ¶
type SplitKeyspaceStrategy ¶
type SplitKeyspaceStrategy struct {
// contains filtered or unexported fields
}
func NewSplitKeyspaceStrategy ¶
func NewSplitKeyspaceStrategy( limits SplitKeyspaceStrategyLimits, logger log.Logger, ) (*SplitKeyspaceStrategy, error)
func (*SplitKeyspaceStrategy) Name ¶
func (s *SplitKeyspaceStrategy) Name() string
type TSDBSet ¶
type TSDBSet = map[tsdb.SingleTenantTSDBIdentifier]common.ClosableForSeries
Click to show internal directories.
Click to hide internal directories.