Documentation ¶
Index ¶
- Variables
- type ComparableTagValue
- type Config
- type Ingester
- func (i *Ingester) CheckReady(ctx context.Context) error
- func (i *Ingester) FindSnapshotByID(ctx context.Context, req *deeppb.SnapshotByIDRequest) (*deeppb.SnapshotByIDResponse, error)
- func (i *Ingester) Flush()
- func (i *Ingester) FlushHandler(w http.ResponseWriter, _ *http.Request)
- func (i *Ingester) PushBytes(ctx context.Context, req *deeppb.PushBytesRequest) (*deeppb.PushBytesResponse, error)
- func (i *Ingester) SearchBlock(context.Context, *deeppb.SearchBlockRequest) (*deeppb.SearchResponse, error)
- func (i *Ingester) SearchRecent(ctx context.Context, req *deeppb.SearchRequest) (*deeppb.SearchResponse, error)
- func (i *Ingester) SearchTagValues(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesResponse, error)
- func (i *Ingester) SearchTagValuesV2(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesV2Response, error)
- func (i *Ingester) SearchTags(ctx context.Context, _ *deeppb.SearchTagsRequest) (*deeppb.SearchTagsResponse, error)
- func (i *Ingester) ShutdownHandler(w http.ResponseWriter, _ *http.Request)
- func (i *Ingester) TransferOut(_ context.Context) error
- type Limiter
- type RingCount
Constants ¶
This section is empty.
Variables ¶
var ErrReadOnly = errors.New("Ingester is shutting down")
ErrReadOnly is returned when the ingester is shutting down and a push was attempted.
Functions ¶
This section is empty.
Types ¶
type ComparableTagValue ¶
type Config ¶
type Config struct { LifecyclerConfig ring.LifecyclerConfig `yaml:"lifecycler,omitempty"` ConcurrentFlushes int `yaml:"concurrent_flushes"` FlushCheckPeriod time.Duration `yaml:"flush_check_period"` FlushOpTimeout time.Duration `yaml:"flush_op_timeout"` MaxSnapshotIdle time.Duration `yaml:"snapshot_idle_period"` MaxBlockDuration time.Duration `yaml:"max_block_duration"` MaxBlockBytes uint64 `yaml:"max_block_bytes"` CompleteBlockTimeout time.Duration `yaml:"complete_block_timeout"` OverrideRingKey string `yaml:"override_ring_key"` }
Config for an ingester.
type Ingester ¶
type Ingester struct { services.Service deeppb.UnimplementedIngesterServiceServer deeppb.UnimplementedQuerierServiceServer // contains filtered or unexported fields }
Ingester builds blocks out of incoming snapshots
func New ¶
func New(cfg Config, store storage.Store, limits *overrides.Overrides, reg prometheus.Registerer) (*Ingester, error)
New makes a new Ingester.
func (*Ingester) FindSnapshotByID ¶
func (i *Ingester) FindSnapshotByID(ctx context.Context, req *deeppb.SnapshotByIDRequest) (*deeppb.SnapshotByIDResponse, error)
func (*Ingester) Flush ¶
func (i *Ingester) Flush()
Flush triggers a flush of all in memory snapshots to disk. This is called by the lifecycler on shutdown and will put our snapshots in the WAL to be replayed.
func (*Ingester) FlushHandler ¶
func (i *Ingester) FlushHandler(w http.ResponseWriter, _ *http.Request)
FlushHandler calls sweepAllInstances(true) which will force push all snapshots into the WAL and force mark all head blocks as ready to flush.
func (*Ingester) PushBytes ¶
func (i *Ingester) PushBytes(ctx context.Context, req *deeppb.PushBytesRequest) (*deeppb.PushBytesResponse, error)
PushBytes accepts ingest requests of data (snapshots) as byte data
func (*Ingester) SearchBlock ¶
func (i *Ingester) SearchBlock(context.Context, *deeppb.SearchBlockRequest) (*deeppb.SearchResponse, error)
SearchBlock only exists here to fulfill the protobuf interface. The ingester will never support backend search
func (*Ingester) SearchRecent ¶
func (i *Ingester) SearchRecent(ctx context.Context, req *deeppb.SearchRequest) (*deeppb.SearchResponse, error)
func (*Ingester) SearchTagValues ¶
func (i *Ingester) SearchTagValues(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesResponse, error)
func (*Ingester) SearchTagValuesV2 ¶
func (i *Ingester) SearchTagValuesV2(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesV2Response, error)
func (*Ingester) SearchTags ¶
func (i *Ingester) SearchTags(ctx context.Context, _ *deeppb.SearchTagsRequest) (*deeppb.SearchTagsResponse, error)
func (*Ingester) ShutdownHandler ¶
func (i *Ingester) ShutdownHandler(w http.ResponseWriter, _ *http.Request)
ShutdownHandler handles a graceful shutdown for an ingester. It does the following things in order * Stop incoming writes by exiting from the ring * Flush all blocks to backend
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter implements primitives to get the maximum number of snapshots an ingester can handle for a specific tenant
func NewLimiter ¶
NewLimiter makes a new limiter