config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Image = "ghcr.io/risingwavelabs/risingwave"

	DefaultLimitCPU      = "1"
	DefaultLimitMemory   = "1Gi"
	DefaultRequestCPU    = "100m"
	DefaultRequestMemory = "100Mi"
)

Variables

View Source
var DefaultConfig = Config{
	BaseConfig: BaseConfig{
		Image:     Image,
		Resources: *defaultResource.DeepCopy(),
	},
	MetaConfig: ComponentConfig{
		Groups: []Group{
			defaultGroup.deepCopy(),
		},
	},
	ComputeConfig: ComponentConfig{
		Groups: []Group{
			defaultGroup.deepCopy(),
		},
	},
	CompactorConfig: ComponentConfig{
		Groups: []Group{
			defaultGroup.deepCopy(),
		},
	},
	FrontendConfig: ComponentConfig{
		Groups: []Group{
			defaultGroup.deepCopy(),
		},
	},
	ConnectorConfig: ComponentConfig{
		Groups: []Group{
			defaultGroup.deepCopy(),
		},
	},
}

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Image    string
	Replicas int32

	Resources corev1.ResourceRequirements
}

type ComponentConfig

type ComponentConfig struct {
	Groups []Group
}

type Config

type Config struct {
	BaseConfig

	MetaConfig      ComponentConfig
	ComputeConfig   ComponentConfig
	CompactorConfig ComponentConfig
	FrontendConfig  ComponentConfig
	ConnectorConfig ComponentConfig
}

Config contain the fields needed that creating a instance.

func ApplyConfigFile

func ApplyConfigFile(path string) (Config, error)

ApplyConfigFile will construct a config by config file.

type Group

type Group struct {
	Name      string
	Replicas  int32
	Resources corev1.ResourceRequirements
}

Jump to

Keyboard shortcuts

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