ClustrixDB在centos上的安裝
ClustrixDB 可以被安裝在 CentOS 6.X 任意系統上,也支援安裝在多個雲環境上 。
第一: 在第一個節點上安裝 ClustrixDB
拷貝安裝包到一個節點上,解矸並且執行:
shell> tar xvjf current_version.tar.bz2 shell> cd current_version shell> sudo ./clxnode_install.py
安裝可能會花一些時間,等一會兒就好了。
第二: 在安裝嚮導裡確認調整部分配置選項
第三: 每個節點的安全性配置
配置 ClustrixDB 對外部應用程式提供服的埠和內部通訊埠.
選項 A:允許所有內部結點間的通訊
允許節點之間通訊的推薦方法是允許在安全環境內的所有埠上的所有節點之間的訪問。
選項 B: 開啟指定的埠
您還可以開啟ClustrixDB所需的特定埠,如下所示。如果設定了網路安全如防火牆或安全組,則必須允許以下網路流量
在 Clustrix 節點間的內部訪問
這些是節點間通訊的必需的一些埠. 必須確保叢集內部埠是可以訪問的.
Protocol | Port | Use | Reason |
---|---|---|---|
TCP | 22 | SSH | Administration and upgrade |
TCP, UDP | 2048 | Control Port | ClustrixDB specialized administrative tool |
TCP, UDP | 2424 | Nanny Port | nanny - Clustrix process manager |
TCP | 3306 | SQL |
Database communication |
TCP | 7888 | clxdbi | Database interface for ClustrixGUI |
TCP, UDP | 24378 - 24410 | Multiport | ClustrixDB internode communication |
外部訪問埠
這些是應用程式和叢集管理員從外部訪問的埠.
Protocol | Port | Use | Reason |
---|---|---|---|
TCP | 22 | SSH | Remote management and cluster access |
TCP | 3306 | SQL | Database access |
TCP | 3581 | Health Check | Heartbeat monitor for cluster |
For instructions for specific cloud environments, please see Installing ClustrixDB at a cloud provider.
Step 4: Install Software on Additional Nodes
從第一個配置節點的命令列執行flex_clone,以在其他節點上安裝相同版本的ClustrixDB。 需要為叢集的每個節點都執行一次。
Run flex_clone from a node with ClustrixDB already installedshell> /opt/clustrix/bin/flex_clone.sh 'new node IP'
Step 5: 配置叢集
You can now connect to your new database to configure your cluster. ClustrixDB uses your existing mysql client to access the ClustrixDB database. First, execute the following from a command line prompt.
shell> mysql
Follow this syntax from the resulting mysql prompt to provide the license number and configure your cluster. Be sure to include the curly brackets that surround your license key. (If you do not already have a license key, please contact Clustrix Sales.)
SET GLOBAL license = '{license key including curly brackets}'
ALTER CLUSTER ADD 'ip' [, 'ip'] ...
For example, this adds three nodes to the cluster.
sql> ALTER CLUSTER ADD '10.2.13.58', '10.2.13.55', '10.2.13.59';
Step 6: 驗證NTP 是否在整個叢集中同步
This test will only succeed once all nodes have been successfully added to your cluster using the previous step.
To verify that the clocks are synchronized between all nodes of the cluster, run the following from a command line prompt:
shell> /opt/clustrix/bin/clx cmd 'ntpstat'
Step 7: 校驗 ClustrixDB 配置
Execute the following from a command line prompt to access the “test” database created during installation:
shell> mysql -u root test
Step 8: 訪問 GUI
You should now be able to access the ClustrixGUI Administration UI to monitor and manage your cluster. Provide the IP or hostname of one of the nodes of your cluster in the address bar of a browser and press Enter. Clustrix recommends using Chrome.
Please contact Clustrix Support if you experience any problems during installation.