Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPrestoConfig ¶
func URLMustParse ¶
Types ¶
type Config ¶
type Config struct { Environment config.URL `json:"environment" pflag:",Environment endpoint for Presto to use"` DefaultRoutingGroup string `json:"defaultRoutingGroup" pflag:",Default Presto routing group"` DefaultUser string `json:"defaultUser" pflag:",Default Presto user"` RoutingGroupConfigs []RoutingGroupConfig `json:"routingGroupConfigs" pflag:"-,A list of cluster configs. Each of the configs corresponds to a service cluster"` RefreshCacheConfig RefreshCacheConfig `json:"refreshCacheConfig" pflag:"Refresh cache config"` RateLimiterConfig RateLimiterConfig `json:"rateLimiterConfig" pflag:"Rate limiter config for ALL requests going to Presto"` }
Presto plugin configs
func GetPrestoConfig ¶
func GetPrestoConfig() *Config
Retrieves the current config value or default.
type RateLimiterConfig ¶ added in v0.3.18
type RefreshCacheConfig ¶
type RefreshCacheConfig struct { Name string `json:"name" pflag:",The name of the rate limiter"` SyncPeriod config.Duration `json:"syncPeriod" pflag:",The duration to wait before the cache is refreshed again"` Workers int `json:"workers" pflag:",Number of parallel workers to refresh the cache"` LruCacheSize int `json:"lruCacheSize" pflag:",Size of the cache"` }
type RoutingGroupConfig ¶
type RoutingGroupConfig struct { Name string `json:"name" pflag:",The name of a given Presto routing group"` Limit int `json:"limit" pflag:",Resource quota (in the number of outstanding requests) of the routing group"` ProjectScopeQuotaProportionCap float64 `` /* 185-byte string literal not displayed */ NamespaceScopeQuotaProportionCap float64 `` /* 189-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.