<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] ## 1.環境準備 * CentOS7.3及以上版本 * 需要支持互聯網訪問,用于下載TiDB及相關軟件安裝包 最小規模的TiDB集群拓撲包含以下實例: | 實例 | 個數 | IP | 配置| | --- | --- |--- | --- | | TiKV | 3 | 10.0.1.1 | 避免端口和目錄沖突 | | TiDB | 1 | 10.0.1.1 | 默認端口 全局目錄配置 | | PD | 1 | 10.0.1.1 | 默認端口 全局目錄配置 | | TiFlash | 1 | 10.0.1.1 | 默認端口 全局目錄配置 | | Monitor | 1 | 10.0.1.1 | 默認端口 全局目錄配置 | ## 2.實施部署 ### 2.1.下載并安裝TiUP: ``` curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh ``` ### 2.2.聲明全局環境變量 TiUP下載完成之后會提示Shell profile的絕對路徑${your_shell_profile} ``` source ${your_shell_profile} ``` ### 2.3.安裝TiUP的cluster組件 ``` tiup cluster ``` 如果安裝過了,可以選擇更新軟件版本: ``` tiup update --self && tiup update cluster ``` ### 2.4.調大sshd服務的連接數限制 將`/etc/ssh/sshd_config` 的MaxSessions的值調為20。 重啟sshd服務: ``` service sshd restart ``` ### 2.5.創建并啟動集群 `topo.yaml` ``` # # Global variables are applied to all deployments and used as the default value of # # the deployments if a specific deployment value is missing. global: user: "tidb" ssh_port: 22 deploy_dir: "/tidb-deploy" data_dir: "/tidb-data" # # Monitored variables are applied to all the machines. monitored: node_exporter_port: 9100 blackbox_exporter_port: 9115 server_configs: tidb: instance.tidb_slow_log_threshold: 300 tikv: readpool.storage.use-unified-pool: false readpool.coprocessor.use-unified-pool: true pd: replication.enable-placement-rules: true replication.location-labels: ["host"] tiflash: logger.level: "info" pd_servers: - host: 10.0.1.1 tidb_servers: - host: 10.0.1.1 tikv_servers: - host: 10.0.1.1 port: 20160 status_port: 20180 config: server.labels: { host: "logic-host-1" } - host: 10.0.1.1 port: 20161 status_port: 20181 config: server.labels: { host: "logic-host-2" } - host: 10.0.1.1 port: 20162 status_port: 20182 config: server.labels: { host: "logic-host-3" } tiflash_servers: - host: 10.0.1.1 monitoring_servers: - host: 10.0.1.1 grafana_servers: - host: 10.0.1.1 ``` ### 2.6.執行集群部署命令 ``` tiup cluster deploy <cluster-name> <version> ./topo.yaml --user root -p ``` `<cluster-name>`表示設置集群名稱 `<version>` 表示設置集群版本,例如`v7.5.1`。可以通過`tiup list tidb`查看支持部署的TiDB的版本。 `-p` 表示在連接目標機器時使用密碼登錄。 ### 2.7.啟動集群 ``` tiup cluster start <cluster-name> --init ``` 啟動完畢之后會生成新的TiDB數據庫的root密碼,請保存。 ### 2.8.訪問集群 安裝mysql客戶端 ``` yum -y install mysql ``` 訪問TiDB數據庫: ``` mysql -h 10.0.0.1 -P 4000 -u root -p密碼 ``` 訪問TiDB的Grafana監控,賬號密碼均為admin: `http://10.0.1.1:3000` 訪問TiDB的Dashboard `http://10.0.1.1:2379/dashboard`,用戶名為`root`,密碼為TiDB數據庫root密碼。 查看已經部署的集群列表: ``` tiup cluster list ``` 查看集群的拓撲結構和狀態: ``` tiup cluster display ```
                  <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>

                              哎呀哎呀视频在线观看