<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] **注意:**通常不需要 Compactor 的高可用性。 `thanos compact` 命令應用 Prometheus 2.0 存儲引擎的壓縮過程來阻止存儲在對象存儲中的數據。它通常在語義上不是并發安全的,并且必須部署為針對存儲桶的單例。 Compactor、Sidecar、Receive 和 Ruler 是唯一應該對對象存儲具有寫訪問權限的 Thanos 組件,只有 Compactor 能夠刪除數據。 ## 創建數據目錄 ```shell sudo mkdir -p /data/thanos/compact sudo chown -R ops. /data/thanos/ ``` ## 創建systemd服務 ```shell cat <<-EOF | sudo tee /usr/lib/systemd/system/thanos-compact.service > /dev/null [Unit] Description=thanos-compact Documentation=https://thanos.io/ After=network.target [Service] Type=simple User=ops Group=ops ExecStart=/usr/local/bin/thanos compact --log.format=json \\ --http-address=127.0.0.1:10909 \\ --data-dir=/data/thanos/compact \\ --compact.concurrency=8 --wait \\ --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 ``` > 1. 默認情況下,thanos compact 將運行完成,這使得它可以作為 cronjob 執行。使用參數 --wait 和 --wait-interval=5m 可以讓它保持運行。 > 2. 建議提供 --compact.concurrency 數量的 CPU 內核。 ## 啟動服務 ```shell systemctl daemon-reload systemctl enable --now thanos-compact.service systemctl is-active thanos-compact.service ``` ## 驗證 ```shell $ curl localhost:10909/-/healthy && echo OK ``` ## 參考文檔 https://thanos.io/tip/components/compact.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>

                              哎呀哎呀视频在线观看