文件首頁
MySQL Shell 8.4
下載本手冊
PDF (US Ltr) - 2.2Mb
PDF (A4) - 2.3Mb


MySQL Shell 8.4  /  MySQL InnoDB Cluster  /  部署生產環境 InnoDB Cluster

7.4 部署生產環境 InnoDB Cluster

在生產環境中工作時,組成 InnoDB Cluster 的 MySQL 伺服器執行個體會在網路中作為多部主機機器的一部分執行,而不是像第 6.8 節「AdminAPI MySQL 沙箱」中所述在單一機器上執行。在繼續這些說明之前,您必須將所需的軟體安裝到您打算新增為叢集伺服器執行個體的每部機器上,請參閱第 6.2 節「安裝 AdminAPI 軟體元件」

下圖說明本節中您將使用的情境

圖 7.2 生產環境部署

Three MySQL servers are grouped together as a production InnoDB cluster. One of the servers is the primary instance, and the other two are secondary instances. The IP address for the primary server is 139.59.177.10, and the IP addresses for the two secondary instances are 139.59.177.11 and 139.59.177.12. MySQL Router connects a client application to the primary instance. The admin capability in MySQL Shell interacts directly with the production InnoDB cluster.

重要

與沙箱部署不同,在沙箱部署中,所有執行個體都部署在 AdminAPI 具有本機檔案存取權且可以保留組態變更的一部機器上,對於生產環境部署,您必須在執行個體上保留任何組態變更。如何執行此動作取決於執行個體上執行的 MySQL 版本,請參閱第 6.2.3 節「保留設定」

若要將伺服器的連線資訊傳遞至 AdminAPI,請使用類似 URI 的連線字串或資料字典;請參閱使用類似 URI 的字串或鍵值對連線至伺服器。在此文件中,會顯示類似 URI 的字串。

本節假設您已