zoukankan      html  css  js  c++  java
  • postgresql 高可用 repmgr 的使用之二 repmgr --help、repmgrd --help

    os:ubunbu 16.04
    postgresql:9.6.8
    repmgr:4.1.1

    repmgr -f /etc/repmgr.conf --help

    $ repmgr -f /etc/repmgr.conf --help
    repmgr: replication management tool for PostgreSQL
    
    Usage:
        repmgr [OPTIONS] primary {register|unregister}
        repmgr [OPTIONS] standby {register|unregister|clone|promote|follow|switchover}
        repmgr [OPTIONS] bdr     {register|unregister}
        repmgr [OPTIONS] node    {status|check|rejoin|service}
        repmgr [OPTIONS] cluster {show|event|matrix|crosscheck|cleanup}
        repmgr [OPTIONS] witness {register|unregister}
    
      Execute "repmgr {primary|standby|bdr|node|cluster} --help" to see command-specific options
    
    General options:
      -?, --help                          show this help, then exit
      -V, --version                       output version information, then exit
    
    General configuration options:
      -b, --pg_bindir=PATH                path to PostgreSQL binaries (optional)
      -f, --config-file=PATH              path to the repmgr configuration file
      -F, --force                         force potentially dangerous operations to happen
    
    Database connection options:
      -d, --dbname=DBNAME                 database to connect to (default: "postgres")
      -h, --host=HOSTNAME                 database server host (default: "/var/run/postgresql")
      -p, --port=PORT                     database server port (default: "5432")
      -U, --username=USERNAME             database user name to connect as (default: "postgres")
      -S, --superuser=USERNAME            superuser to use, if repmgr user is not superuser
    
    Node-specific options:
      -D, --pgdata=DIR                    location of the node's data directory 
      --node-id                           specify a node by id (only available for some operations)
      --node-name                         specify a node by name (only available for some operations)
    
    Logging options:
      --dry-run                           show what would happen for action, but don't execute it
      -L, --log-level                     set log level (overrides configuration file; default: NOTICE)
      --log-to-file                       log to file (or logging facility) defined in repmgr.conf
      -q, --quiet                         suppress all log output apart from errors
      -t, --terse                         don't display detail, hints and other non-critical output
      -v, --verbose                       display additional log output (useful for debugging)
    

    repmgrd -f /etc/repmgr.conf --help

    $ repmgrd -f /etc/repmgr.conf --help
    repmgrd: replication management daemon for PostgreSQL
    
    repmgrd monitors a cluster of servers and optionally performs failover.
    
    Usage:
      repmgrd [OPTIONS]
    
    Options:
    
    General options:
      -?, --help                show this help, then exit
      -V, --version             output version information, then exit
    
    General configuration options:
      -v, --verbose             output verbose activity information
      -f, --config-file=PATH    path to the configuration file
    
    Daemon configuration options:
      -d, --daemonize[=true/false]
                                detach process from foreground (default: true)
      -p, --pid-file=PATH       use the specified PID file
      -s, --show-pid-file       show PID file which would be used by the current configuration
      --no-pid-file             don't write a PID file
    
  • 相关阅读:
    QQ空间爬虫--获取好友信息
    分层最短路-2018南京网赛L
    安装SSH,配置SSH无密码登陆
    树形DP--求树上任意两点间距离和
    JTS基本概念和使用
    odps编写UDF的实现
    oozie安装总结
    同步工具的选择
    转:hive面试题
    转:hive-列转行和行转列
  • 原文地址:https://www.cnblogs.com/ctypyb2002/p/9792871.html
Copyright © 2011-2022 走看看