grpcdatacoord

package
v0.0.0-...-34e0b2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package grpcdatacoord implements grpc server for datacoord

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the grpc server of datacoord

func NewServer

func NewServer(ctx context.Context, factory dependency.Factory, opts ...datacoord.Option) *Server

NewServer new data service grpc server

func (*Server) AllocSegment

AllocSegment alloc a new growing segment, add it into segment meta.

func (*Server) AlterIndex

func (s *Server) AlterIndex(ctx context.Context, req *indexpb.AlterIndexRequest) (*commonpb.Status, error)

func (*Server) AssignSegmentID

AssignSegmentID requests to allocate segment space for insert

func (*Server) BroadcastAlteredCollection

func (s *Server) BroadcastAlteredCollection(ctx context.Context, request *datapb.AlterCollectionRequest) (*commonpb.Status, error)

func (*Server) CheckHealth

func (*Server) CreateIndex

func (s *Server) CreateIndex(ctx context.Context, req *indexpb.CreateIndexRequest) (*commonpb.Status, error)

CreateIndex sends the build index request to DataCoord.

func (*Server) DescribeIndex

DescribeIndex gets all indexes of the collection.

func (*Server) DropIndex

func (s *Server) DropIndex(ctx context.Context, request *indexpb.DropIndexRequest) (*commonpb.Status, error)

DropIndex sends the drop index request to DataCoord.

func (*Server) DropVirtualChannel

DropVirtualChannel drop virtual channel in datacoord

func (*Server) Flush

Flush flushes a collection's data

func (*Server) GcConfirm

func (s *Server) GcConfirm(ctx context.Context, request *datapb.GcConfirmRequest) (*datapb.GcConfirmResponse, error)

func (*Server) GcControl

func (s *Server) GcControl(ctx context.Context, req *datapb.GcControlRequest) (*commonpb.Status, error)

func (*Server) GetChannelRecoveryInfo

GetChannelRecoveryInfo gets the corresponding vchannel info.

func (*Server) GetCollectionStatistics

GetCollectionStatistics gets statistics of a collection

func (*Server) GetCompactionState

GetCompactionState gets the state of a compaction

func (*Server) GetCompactionStateWithPlans

func (s *Server) GetCompactionStateWithPlans(ctx context.Context, req *milvuspb.GetCompactionPlansRequest) (*milvuspb.GetCompactionPlansResponse, error)

GetCompactionStateWithPlans gets the state of a compaction by plan

func (*Server) GetComponentStates

GetComponentStates gets states of datacoord and datanodes

func (*Server) GetFlushAllState

GetFlushAllState checks if all DML messages before `FlushAllTs` have been flushed.

func (*Server) GetFlushState

GetFlushState gets the flush state of the collection based on the provided flush ts and segment IDs.

func (*Server) GetFlushedSegments

GetFlushedSegments get all flushed segments of a partition

func (*Server) GetIndexBuildProgress deprecated

Deprecated: use DescribeIndex instead

func (*Server) GetIndexInfos

GetIndexInfos gets the index file paths from DataCoord.

func (*Server) GetIndexState

GetIndexState gets the index states from DataCoord. Deprecated: use DescribeIndex instead

func (*Server) GetIndexStatistics

GetIndexStatistics get the information of index..

func (*Server) GetInsertBinlogPaths

GetInsertBinlogPaths gets insert binlog paths of a segment

func (*Server) GetMetrics

GetMetrics gets metrics of data coordinator and datanodes

func (*Server) GetPartitionStatistics

GetPartitionStatistics gets statistics of a partition

func (*Server) GetRecoveryInfo

GetRecoveryInfo gets information for recovering channels

func (*Server) GetRecoveryInfoV2

GetRecoveryInfoV2 gets information for recovering channels

func (*Server) GetSegmentInfo

GetSegmentInfo gets segment information according to segment id

func (*Server) GetSegmentInfoChannel

func (s *Server) GetSegmentInfoChannel(ctx context.Context, req *datapb.GetSegmentInfoChannelRequest) (*milvuspb.StringResponse, error)

GetSegmentInfoChannel gets channel to which datacoord sends segment information

func (*Server) GetSegmentStates

GetSegmentStates gets states of segments

func (*Server) GetSegmentsByStates

GetSegmentsByStates get all segments of a partition by given states

func (*Server) GetStatisticsChannel

GetStatisticsChannel gets statistics channel

func (*Server) GetTimeTickChannel

GetTimeTickChannel gets timetick channel

func (*Server) ListIndexes

func (*Server) ManualCompaction

ManualCompaction triggers a compaction for a collection

func (*Server) MarkSegmentsDropped

func (s *Server) MarkSegmentsDropped(ctx context.Context, req *datapb.MarkSegmentsDroppedRequest) (*commonpb.Status, error)

MarkSegmentsDropped is the distributed caller of MarkSegmentsDropped.

func (*Server) ReportDataNodeTtMsgs

func (s *Server) ReportDataNodeTtMsgs(ctx context.Context, req *datapb.ReportDataNodeTtMsgsRequest) (*commonpb.Status, error)

func (*Server) Run

func (s *Server) Run() error

Run starts the Server. Need to call inner init and start method.

func (*Server) SaveBinlogPaths

func (s *Server) SaveBinlogPaths(ctx context.Context, req *datapb.SaveBinlogPathsRequest) (*commonpb.Status, error)

SaveBinlogPaths implement DataCoordServer, saves segment, collection binlog according to datanode request

func (*Server) SetSegmentState

SetSegmentState sets the state of a segment.

func (*Server) ShowConfigurations

ShowConfigurations gets specified configurations para of DataCoord

func (*Server) Stop

func (s *Server) Stop() (err error)

Stop stops the DataCoord server gracefully. Need to call the GracefulStop interface of grpc server and call the stop method of the inner DataCoord object.

func (*Server) UpdateChannelCheckpoint

func (s *Server) UpdateChannelCheckpoint(ctx context.Context, req *datapb.UpdateChannelCheckpointRequest) (*commonpb.Status, error)

UpdateChannelCheckpoint updates channel checkpoint in dataCoord.

func (*Server) UpdateSegmentStatistics

func (s *Server) UpdateSegmentStatistics(ctx context.Context, req *datapb.UpdateSegmentStatisticsRequest) (*commonpb.Status, error)

UpdateSegmentStatistics is the dataCoord service caller of UpdateSegmentStatistics.

func (*Server) WatchChannels

WatchChannels starts watch channels by give request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL