1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        YokePostgres 高可用集群

        聯(lián)合創(chuàng)作 · 2023-09-30 20:45

        Yoke 是 Postgres 的高可用集群,具有自動切換和自動集群恢復(fù)。Postgres冗余/自動故障轉(zhuǎn)移解決方案,提供一個高可用PostgreSQL集群的簡單管理。

        Yoke 依賴:

        • 包含 'primary', 'secondary' 和 'monitor' 三個節(jié)點的 3-server 集群

        • 'primary' & 'secondary' 節(jié)點需要互相之間進(jìn)行 ssh 連接 (w/o 密碼)

        • 'primary' & 'secondary' 節(jié)點需要遠(yuǎn)程同步安裝 (或者一些替代 sync_command)

        • 'primary' & 'secondary' 節(jié)點應(yīng)該有安裝 postgres,Yoke 會嘗試調(diào)用 'postgres' 和 'pg_ctl'

        • 'primary' & 'secondary' 節(jié)點作為一個子進(jìn)程運行 postgres

        配置示例:

         

        [config]
        # the IP which this node will broadcast to other nodes
        advertise_ip=
        # the port which this node will broadcast to other nodes
        advertise_port=4400
        # the directory where postgresql was installed
        data_dir=/data
        # delay before node decides what to do with postgresql instance
        decision_timeout=30
        # log verbosity (trace, debug, info, warn error, fatal)
        log_level=warn
        # REQUIRED - the IP:port combination of all nodes that are to be in the cluster (e.g. 'role=m.y.i.p:4400')
        primary=
        secondary=
        monitor=
        # SmartOS REQUIRED - either 'primary', 'secondary', or 'monitor' (the cluster needs exactly one of each)
        role=
        # the postgresql port
        pg_port=5432
        # the directory where node status information is stored
        status_dir=./status
        # the command you would like to use to sync the data from this node to the other when this node is master
        sync_command=rsync -ae "ssh -o StrictHostKeyChecking=no" --delete {{local_dir}} {{slave_ip}}:{{slave_dir}}
        [vip]
        # Virtual Ip you would like to use
        ip=
        # Command to use when adding the vip. This will be called as {{add_command}} {{vip}}
        add_command=
        # Command to use when removing the vip. This will be called as {{remove_command}} {{vip}}
        remove_command=
        [role_change]
        # When this nodes role changes we will call the command with the new role as its arguement '{{command}} {{(master|slave|single}))'
        command=
        瀏覽 28
        點贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            用力挺进她的花苞啊~视频 | 日韩成人AV毛片 | 日韩mv欧美mv国产精品 | 91丨九色丨蝌蚪丨丝袜 | 综合色综合色 | 女人扒开屁股桶爽30分钟免费 | 西西444WWW无码大胆-百度 | 丁香五月综合网 | 偷拍日韩欧美婷婷五月天 | 好大好硬好深 |