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
    
  • 相关阅读:
    hmac模块和hashlib模块
    logging模块
    sys模块
    datetime模块
    time模块
    例题:100节楼梯,0-49节,分数等于节数。50节(包括50节)以后每节10分。输入节数,得出分数。这个题如果按照讲页来做是错误的,所以再写一遍,请大家指导
    C# .ToString() 格式化
    例题:判断平年还是闰年。理解使用异常语句try catch finally 和datetime 时间类
    SQL Server第一堂课:创建数据库,创建表,以及表中最基本的增,删,改
    例题:输入学生的各项资料,然后根据学生的分数,重新排序。重新复习结构体,集合,数组,for循环,冒泡排序,水平符的使用。
  • 原文地址:https://www.cnblogs.com/ctypyb2002/p/9792871.html
Copyright © 2011-2022 走看看