repmgr primary register - 初始化安装repmgr扩展并注册主节点
描述
repmgr primary register
在流复制集群中注册主节点 ,并将其配置为与repmgr一起使用,包括安装repmgr扩展。此命令需要在注册任何备用节点之前执行。
执行
执行该--dry-run
选项来检查在没有实际注册主服务器的情况下会发生什么。
repmgr master register 与
repmgr primary register 作用相同
用户权限要求
用户repmgr
必须是超级用户 ,repmgr 才能够安装该repmgr
扩展。
如果不是这种情况,repmgr
可以在执行之前手动安装该扩展repmgr primary register
。
未来的repmgr--superuser
版本将能够 为扩展的安装 提供名称。
选项
--dry-run
检查先决条件但实际上并不注册主要项。
-F
,--force
覆盖现有节点记录
事件通知
将生成 以下事件通知:
cluster_created
primary_register
repmgr primary unregister --- 取消注册不活动的主节点
repmgr standby clone --- 从另一个 PostgreSQL 节点克隆一个 PostgreSQL 备用节点
--- 将备用信息添加到repmgr元数据中
-从repmgr 元数据中删除备用信息
--- 将备用数据库提升为主数据库
参考 rpmgr 官方手册
- repmgr primary register --- initialise a repmgr installation and register the primary node
- repmgr primary unregister --- unregister an inactive primary node
- repmgr standby clone --- clone a PostgreSQL standby node from another PostgreSQL node
- repmgr standby register --- add a standby's information to the repmgr metadata
- repmgr standby unregister --- remove a standby's information from the repmgr metadata
- repmgr standby promote --- promote a standby to a primary
- repmgr standby follow --- attach a running standby to a new upstream node
- repmgr standby switchover --- promote a standby to primary and demote the existing primary to a standby
- repmgr witness register --- add a witness node's information to the repmgr metadata
- repmgr witness unregister --- remove a witness node's information to the repmgr metadata
- repmgr node status --- show overview of a node's basic information and replication status
- repmgr node check --- performs some health checks on a node from a replication perspective
- repmgr node rejoin --- rejoin a dormant (stopped) node to the replication cluster
- repmgr node service --- show or execute the system service command to stop/start/restart/reload/promote a node
- repmgr cluster show --- display information about each registered node in the replication cluster
- repmgr cluster matrix --- runs repmgr cluster show on each node and summarizes output
- repmgr cluster crosscheck --- cross-checks connections between each combination of nodes
- repmgr cluster event --- output a formatted list of cluster events
- repmgr cluster cleanup --- purge monitoring history
- repmgr service status --- display information about the status of repmgrd on each node in the cluster
- repmgr service pause --- Instruct all repmgrd instances in the replication cluster to pause failover operations
- repmgr service unpause --- Instruct all repmgrd instances in the replication cluster to resume failover operations
- repmgr daemon start --- Start the repmgrd daemon on the local node
- repmgr daemon stop --- Stop the repmgrd daemon on the local node