constant

package
v0.0.0-...-6b32d26 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 14

Documentation

Overview

Copyright 2021 SANGFOR TECHNOLOGIES

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	DefaultAgentPort = 15000
	DBTOpenGauss     = "opengauss"

	DefaultTimeout = 10

	// role define
	OpenGaussRolePrimary = "primary"
	OpenGaussRoleStandby = "standby"
	OpenGaussRoleCascade = "cascade"

	// database status
	DBNormal    string = "normal"           //表示单主机实例
	DBPrimary          = "primary"          //表示实例为主实例。
	DBStandby          = "standby"          //表示实例为备实例。
	DBCascade          = "cascade"          //表示实例为级联备实例。
	DBSecondary        = "secondary"        //表示实例为从备实例。
	DbPending          = "pending"          //表示该实例在仲裁阶段。
	DbUnknown          = "unknown"          //表示实例状态未知。
	DBDown             = "down"             //表示实例处于宕机状态
	DbAbnormal         = "abnormal"         //表示节点处于异常状态
	DbManually         = "manually stopped" //表示节点已经被手动停止

	Normal        string = "normal"         //表示节点启动正常
	NeedRepair           = "need repair"    //当前节点需要修复
	Starting             = "starting "      //节点正在启动中
	WaitPromoting        = "wait promoting" //节点正等待升级中, 例如备机向主机发送升级请求后, 正在等待主机回应时的状态
	Promoting            = "promoting"      //备节点正在升级为主节点的状态
	Demoting             = "demoting "      //节点正在降级中, 如主机正在降为备机中
	Building             = "building "      //备机启动失败, 需要重建,
	Catchup              = "catchup"        //备节点正在追赶主节点
	Coredump             = "coredump"       //节点程序崩溃
	Unknown              = "unknown"        //节点状态未知

	QuerySQL = `` /* 1319-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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