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


MySQL Shell 9.0  /  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 的字串。

本節假設您已