ClustrixDB 可以被安裝在 CentOS 6.X 任意系統上,也支持安裝在多個雲環境上 。
第一: 在第一個節點上安裝 ClustrixDB
拷貝安裝包到一個節點上,解矸並且執行:
shell> tar xvjf current_version.tar.bz2 shell> cd current_version shell> sudo ./clxnode_install.py
第二: 在安裝嚮導裏確認調整部分配置選項
在第一個節點上安裝ClustrixDB,鍵入合適的推薦參數。參考: ClustrixDB Installation Options 修改參數值。.
第三: 每個節點的安全性配置
配置 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 | 80 | HTTP | ClustrixGUI |
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。 需要爲集羣的每個節點都運行一次。
shell> /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 是否在整個集羣中同步
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'
See Setting Up NTP for ClustrixDB on CentOS if this step identifies issues.
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.