consts

package
v0.0.0-...-04391f7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YTRPCPortName = "rpc"

	YTMonitoringContainerPortName = "metrics"
	YTMonitoringServicePortName   = "ytsaurus-metrics"
	YTMonitoringPort              = 10000
)
View Source
const (
	DiscoveryRPCPort        = 9020
	DiscoveryMonitoringPort = 10020

	MasterRPCPort        = 9010
	MasterMonitoringPort = 10010

	SchedulerRPCPort        = 9011
	SchedulerMonitoringPort = 10011

	ControllerAgentRPCPort        = 9014
	ControllerAgentMonitoringPort = 10014

	DataNodeRPCPort        = 9012
	DataNodeMonitoringPort = 10012

	TabletNodeRPCPort        = 9022
	TabletNodeMonitoringPort = 10022

	ExecNodeRPCPort        = 9029
	ExecNodeMonitoringPort = 10029

	// TODO(zlobober): temporary until YT-20036.
	DataNodeSkynetPort   = 11012
	TabletNodeSkynetPort = 11022
	ExecNodeSkynetPort   = 11029

	RPCProxyRPCPort        = 9013
	RPCProxyMonitoringPort = 10013

	HTTPProxyRPCPort        = 9016
	HTTPProxyMonitoringPort = 10016
	HTTPProxyHTTPPort       = 80
	HTTPProxyHTTPSPort      = 443

	TCPProxyMonitoringPort = 10017

	QueryTrackerRPCPort        = 9028
	QueryTrackerMonitoringPort = 10028

	YQLAgentRPCPort        = 9019
	YQLAgentMonitoringPort = 10019

	QueueAgentRPCPort        = 9030
	QueueAgentMonitoringPort = 10030

	UIHTTPPort = 80

	StrawberryHTTPAPIPort = 80

	MasterCachesRPCPort        = 9018
	MasterCachesMonitoringPort = 10018
)
View Source
const (
	ConfigMountPoint           = "/config"
	ConfigTemplateMountPoint   = "/config_template"
	HTTPSSecretMountPoint      = "/tls/https_secret"
	RPCSecretMountPoint        = "/tls/rpc_secret"
	BusSecretMountPoint        = "/tls/bus_secret"
	CABundleMountPoint         = "/tls/ca_bundle"
	UIClustersConfigMountPoint = "/opt/app"
	UICustomConfigMountPoint   = "/opt/app/dist/server/configs/custom"
	UISecretsMountPoint        = "/opt/app/secrets"
	UIVaultMountPoint          = "/vault"
)
View Source
const (
	YTServerContainerName          = "ytserver"
	PostprocessConfigContainerName = "postprocess-config"
	PrepareLocationsContainerName  = "prepare-locations"
	PrepareSecretContainerName     = "prepare-secret"
	UIContainerName                = "yt-ui"
	StrawberryContainerName        = "strawberry"
)
View Source
const (
	ClientConfigFileName = "client.yson"

	InitClusterScriptFileName       = "init-cluster.sh"
	PostprocessConfigScriptFileName = "postprocess-config.sh"

	UIClusterConfigFileName = "clusters-config.json"
	UISecretFileName        = "yt-interface-secret.json"
	CABundleFileName        = "ca.crt"
	TokenSecretKey          = "YT_TOKEN"
)
View Source
const (
	JobsContainerName = "jobs"

	ContainerdConfigVolumeName = "config-containerd"
	ContainerdConfigMountPoint = "/config/containerd"
	ContainerdSocketName       = "containerd.sock"
	ContainerdConfigFileName   = "containerd.toml"

	CRINamespace  = "yt"
	CRIBaseCgroup = "/yt"
)
View Source
const (
	ConfigTemplateVolumeName = "config-template"
	ConfigVolumeName         = "config"
	HTTPSSecretVolumeName    = "https-secret"
	RPCSecretVolumeName      = "rpc-secret"
	BusSecretVolumeName      = "bus-secret"
	CABundleVolumeName       = "ca-bundle"
	InitScriptVolumeName     = "init-script"
	UIVaultVolumeName        = "vault"
	UISecretsVolumeName      = "secrets"
)
View Source
const AdminLoginSecret = "login"
View Source
const AdminPasswordSecret = "password"
View Source
const AdminTokenSecret = "token"
View Source
const ConditionHasPossibility = "HasPossibility"
View Source
const ConditionMasterExitReadOnlyPrepared = "MasterExitReadOnlyPrepared"
View Source
const ConditionMasterExitedReadOnly = "MasterExitedReadOnly"
View Source
const ConditionNoPossibility = "NoPossibility"
View Source
const ConditionNotNecessaryToUpdateOpArchive = "NotNecessaryToUpdateOpArchive"
View Source
const ConditionOpArchivePreparedForUpdating = "OpArchivePreparedForUpdating"
View Source
const ConditionOpArchiveUpdated = "OpArchiveUpdated"
View Source
const ConditionQTStatePreparedForUpdating = "QTStatePreparedForUpdating"
View Source
const ConditionQTStateUpdated = "QTStateUpdated"
View Source
const ConditionSafeModeDisabled = "SafeModeDisabled"
View Source
const ConditionSafeModeEnabled = "SafeModeEnabled"
View Source
const ConditionSnaphotsSaved = "SnaphotsSaved"
View Source
const ConditionSnapshotsBuildingStarted = "SnapshotsBuildingStarted"
View Source
const ConditionSnapshotsMonitoringInfoSaved = "SnapshotsMonitoringInfoSaved"
View Source
const ConditionTabletCellsRecovered = "TabletCellsRecovered"
View Source
const ConditionTabletCellsRemoved = "TabletCellsRemoved"
View Source
const ConditionTabletCellsRemovingStarted = "TabletCellsRemovingStarted"
View Source
const ConditionTabletCellsSaved = "TabletCellsSaved"
View Source
const ConditionYqlaPreparedForUpdating = "YqlaPreparedForUpdating"
View Source
const ConditionYqlaUpdated = "YqlaUpdated"
View Source
const DefaultAdminLogin = "admin"
View Source
const DefaultAdminPassword = "password"
View Source
const DefaultCABundlePath = "/etc/ssl/certs/ca-certificates.crt"
View Source
const DefaultHTTPProxyRole = "default"
View Source
const DefaultMedium = "default"
View Source
const DefaultName = "default"
View Source
const DefaultStrawberryControllerFamily = "chyt"
View Source
const DefaultYqlTokenPath = "/usr/yql_agent_token"
View Source
const (
	HTTPSSecretUpdatePeriod = time.Second * 60
)
View Source
const MaxSlotLocationReserve = 10 << 30 // 10GiB
View Source
const MetrikaCounterFileName = "common.js"
View Source
const MetrikaCounterScript = `` /* 365-byte string literal not displayed */
View Source
const StartUID = 19500
View Source
const StrawberryControllerUserName = "robot-strawberry-controller"
View Source
const UIUserName = "robot-ui"
View Source
const YTClusterLabelName = "ytsaurus.tech/cluster-name"
View Source
const YTComponentLabelName = "yt_component"
View Source
const YTMetricsLabelName = "yt_metrics"
View Source
const YqlUserName = "yql_agent"
View Source
const YtsaurusOperatorUserName = "robot-ytsaurus-k8s-operator"

Variables

This section is empty.

Functions

func ComponentLabel

func ComponentLabel(component ComponentType) string

func ComponentServicePrefix

func ComponentServicePrefix(component ComponentType) string

func ComponentStatefulSetPrefix

func ComponentStatefulSetPrefix(component ComponentType) string

func GetDefaultStrawberryControllerFamilies

func GetDefaultStrawberryControllerFamilies() []string

Types

type ComponentType

type ComponentType string
const (
	ControllerAgentType      ComponentType = "ControllerAgent"
	DataNodeType             ComponentType = "DataNode"
	DiscoveryType            ComponentType = "Discovery"
	ExecNodeType             ComponentType = "ExecNode"
	HttpProxyType            ComponentType = "HttpProxy"
	MasterCacheType          ComponentType = "MasterCache"
	MasterType               ComponentType = "Master"
	QueryTrackerType         ComponentType = "QueryTracker"
	QueueAgentType           ComponentType = "QueueAgent"
	RpcProxyType             ComponentType = "RpcProxy"
	SchedulerType            ComponentType = "Scheduler"
	StrawberryControllerType ComponentType = "StrawberryController"
	TabletNodeType           ComponentType = "TabletNode"
	TcpProxyType             ComponentType = "TcpProxy"
	UIType                   ComponentType = "UI"
	YqlAgentType             ComponentType = "YqlAgent"
	YtsaurusClientType       ComponentType = "YtsaurusClient"
	ChytType                 ComponentType = "CHYT"
	SpytType                 ComponentType = "SPYT"
)

Jump to

Keyboard shortcuts

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