<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] `thanos store` 命令(也稱為 Store Gateway)在對象存儲桶中的歷史數據之上實現 Store API。 它主要充當 API 網關,因此不需要大量的本地磁盤空間。 它在啟動時加入一個 `thanos` 集群,并公布它可以訪問的數據。 它在本地磁盤上保留有關所有遠程塊的少量信息,并使其與存儲桶保持同步。 這些數據通常可以安全地在重新啟動時刪除,但會增加啟動時間。 `thanos store` 是多副本形成高可用。多個副本的安裝步驟都是一樣 ## 前置環境 這里使用 `minion` 提供 S3 存儲,安裝minion集群,請參考 https://www.cnblogs.com/jiaxzeng/p/16206474.html 創建 Serice Accounts ![](https://img.kancloud.cn/bf/06/bf06c17135a1a1bb126ca067836ad109_1608x437.png) ![](https://img.kancloud.cn/a2/90/a290a57ae6d9ad7cffe6756b30e6d2ff_1055x499.png) 創建 thanos 桶 ![](https://img.kancloud.cn/cb/59/cb59fabc409c5cc041a4169eb8f9a501_1532x352.png) ![](https://img.kancloud.cn/81/d3/81d36733db46527bebc6be94a3cd4457_792x443.png) ## 下載thanos ```shell wget https://github.com/thanos-io/thanos/releases/download/v0.28.0/thanos-0.28.0.linux-amd64.tar.gz tar xf thanos-0.28.0.linux-amd64.tar.gz -C /opt/ cp /opt/thanos-0.28.0.linux-amd64/thanos /usr/local/bin ``` ## 創建數據目錄 ```shell mkdir -p /data/thanos/store ``` ## 修改配置文件 ```shell cat <<-EOF | sudo tee /data/thanos/thanos-minio.yml > /dev/null type: s3 config: bucket: "thanos" endpoint: "192.168.31.177:9000" access_key: "voV6fk04dK40x8qx" insecure: true secret_key: "jOqC75LNJIN9hIgDyr1M0O9Pe35k7Dlk" http_config: idle_conn_timeout: 5m response_header_timeout: 10m insecure_skip_verify: true EOF chown -R ops. /data/thanos/ ``` > 注意:`access_key` 和 `secret_key` 是前置環境創建 `Serice Accounts` 保存的 ## 創建systemd服務 ```shell cat <<-EOF | sudo tee /usr/lib/systemd/system/thanos-store.service > /dev/null [Unit] Description=thanos-store Documentation=https://thanos.io/ After=network.target [Service] Type=simple User=ops Group=ops ExecStart=/usr/local/bin/thanos store \\ --grpc-address=0.0.0.0:10903 --http-address=127.0.0.1:10904 \\ --data-dir=/data/thanos/store --chunk-pool-size=8GB --max-time=30d \\ --block-sync-concurrency=200 --store.grpc.series-max-concurrency=200 \\ --objstore.config-file=/data/thanos/thanos-minio.yml ExecReload=/usr/bin/kill -HUP TimeoutStartSec=20s Restart=always LimitNOFILE=20480000 [Install] WantedBy=multi-user.target EOF ``` ## 啟動服務 ```shell systemctl daemon-reload systemctl enable --now thanos-store.service systemctl is-active thanos-store.service ``` ## 驗證 ```shell $ curl localhost:10904/-/healthy && echo OK ``` ## sidecar配置連接store服務 ```shell vim /usr/lib/systemd/system/thanos-sidecar.service # 啟動參數添加下面的參數(文件內容,和store的objstore.config-file參數值一樣) --objstore.config-file=/data/thanos/thanos-minio.yml systemctl daemon-reload systemctl restart thanos-sidecar.service curl localhost:10902/-/healthy && echo ``` ## 參考文檔 https://thanos.io/tip/components/store.md/
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看