<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          consul-kv-migrateConsul 集群之間遷移 KV 數(shù)據(jù)

          聯(lián)合創(chuàng)作 · 2023-10-01 00:00

          一個(gè)簡單的小工具,用于在兩個(gè)獨(dú)立的 Consul 集群之間遷移 KV 數(shù)據(jù)和比較 KV 差異。

          命令行參數(shù)

          $ consul-kv-migrate -h
          Usage of consul-kv-migrate:
            -action string
              	執(zhí)行動作:diff-對比源和目標(biāo) Consul 配置差異,migrate-遷移源到目標(biāo)并覆蓋目標(biāo), 目標(biāo)服務(wù)器的多余的 Key 不會被刪除 (default "diff")
            -src-addr string
              	源 Consul 服務(wù)地址 (default "source-ip:8500")
            -src-token string
              	源 Consul Token
            -target-addr string
              	目標(biāo) Consul 服務(wù)地址 (default "target-ip:8500")
            -target-token string
              	目標(biāo) Consul Token

          使用示例

          將 192.168.1.10 的 Consul 集群上的所有 KV 同步到 192.168.2.10 的集群。

          consul-kv-migrate \
              -target-addr 192.168.2.10:8500 \
              -target-token xxxxx-xxxxx-xxxxx-xxxx-xxxx \
              -src-addr 192.168.1.10:8500 \
              -src-token yyyy-yyyy-yyyyy-yyyyy-yyyy \
              -action migrate
          

          對比 192.168.1.10 和 192.168.2.10 兩個(gè) Consul 集群的 KV 差異。

          consul-kv-migrate \
              -target-addr 192.168.2.10:8500 \
              -target-token xxxxx-xxxxx-xxxxx-xxxx-xxxx \
              -src-addr 192.168.1.10:8500 \
              -src-token yyyy-yyyy-yyyyy-yyyyy-yyyy \
              -action diff
          瀏覽 34
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产又黄又 | 91北条麻妃在线 | 亚洲专区免费 | 中日韩黄色视频 | 成人精品91 |