• 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
    
  • 相关阅读:
    Django —— DateTimeField格式
    Django——权限组件(中间件判断用户权限--URL初级)
    linux命令
    性能测试--测试分类
    web安全之csrf攻击
    web安全之xss攻击
    测试用例规范
    禅道操作手册
    fiddler弱网测试
    Web测试系列之测试工具
  • 原文地址:https://www.cnblogs.com/ctypyb2002/p/9792871.html
Copyright © 2020-2023  润新知