Documentation
¶
Index ¶
- func GetClusterSetting(ctx context.Context, db *sql.DB, name string) (string, error)
- func IsValidClusterSettingName(name string) error
- func RangeMoveDuration(ctx context.Context, db *sql.DB) (time.Duration, error)
- func SetClusterSetting(ctx context.Context, db *sql.DB, name, value string) error
- type GarbageCollectionConfig
- type Zone
- type ZoneConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterSetting ¶
GetClusterSetting func
func IsValidClusterSettingName ¶
IsValidClusterSettingName func
func RangeMoveDuration ¶
RangeMoveDuration calculates the slowest time.Duration that a range would reasonably take to move from one node to another. This duration does not account for IOPs or cluster load. If used as a timeout a multiple of this value should be used.
Types ¶
type GarbageCollectionConfig ¶
type GarbageCollectionConfig struct {
TTLSeconds uint `yaml:"ttlseconds"`
}
GarbageCollectionConfig struct
type ZoneConfig ¶
type ZoneConfig struct { RangeMinBytes uint64 `yaml:"range_min_bytes"` RangeMaxBytes uint64 `yaml:"range_max_bytes"` Replicas uint `yaml:"num_replicas"` GarbageCollection GarbageCollectionConfig `yaml:"gc"` }
ZoneConfig struct
Click to show internal directories.
Click to hide internal directories.