Documentation
¶
Index ¶
- Constants
- Variables
- func GetBoolValue(param map[string]string, key string) (bool, error)
- func GetDurationValue(param map[string]string, key string) (time.Duration, error)
- func GetIntValue(param map[string]string, key string) (int64, error)
- func GetQuerySeriesLimit() int
- func ProcessRequest(req netstorage.SysCtrlRequest, resp *strings.Builder) (err error)
- func SetLogRowsRuleSwitch(switchon bool, rules string) error
- func SetQueryParallel(limit int64)
- func SetQuerySeriesLimit(limit int)
- type LogRowsRule
- type SysControl
Constants ¶
View Source
const ( DataFlush = "flush" DownSampleInOrder = "downsample_in_order" ChunkReaderParallel = "chunk_reader_parallel" BinaryTreeMerge = "binary_tree_merge" PrintLogicalPlan = "print_logical_plan" SlidingWindowPushUp = "sliding_window_push_up" ForceBroadcastQuery = "force_broadcast_query" Failpoint = "failpoint" Readonly = "readonly" LogRows = "log_rows" )
Variables ¶
View Source
var ( LogRowsRuleSwitch int32 // 0: disable, 1: enable MuLogRowsRule sync.RWMutex MyLogRowsRule = &LogRowsRule{ Mst: "", } )
View Source
var (
ErrNoSuchParam = fmt.Errorf("no parameter find")
)
View Source
var (
QueryParallel int32 = -1
)
Functions ¶
func GetBoolValue ¶ added in v1.0.0
func GetDurationValue ¶ added in v1.0.0
func GetIntValue ¶ added in v1.0.0
func GetQuerySeriesLimit ¶ added in v1.0.0
func GetQuerySeriesLimit() int
func ProcessRequest ¶
func ProcessRequest(req netstorage.SysCtrlRequest, resp *strings.Builder) (err error)
func SetLogRowsRuleSwitch ¶
func SetQueryParallel ¶
func SetQueryParallel(limit int64)
func SetQuerySeriesLimit ¶ added in v1.0.0
func SetQuerySeriesLimit(limit int)
Types ¶
type LogRowsRule ¶
type SysControl ¶
type SysControl struct {
MetaClient meta.MetaClient
NetStore netstorage.Storage
}
var SysCtrl *SysControl
func NewSysControl ¶
func NewSysControl() *SysControl
Click to show internal directories.
Click to hide internal directories.