ClustrixDB在centos上的安装

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
TCP22SSHAdministration and upgrade
TCP, UDP2048Control PortClustrixDB specialized administrative tool
TCP, UDP2424 Nanny Portnanny - Clustrix process manager
TCP3306SQL

Database communication

TCP7888clxdbiDatabase interface for ClustrixGUI
TCP, UDP24378 - 24410MultiportClustrixDB internode communication

外部访问端口

这些是应用程序和集群管理员从外部访问的端口.

Protocol
Port                
Use
Reason
TCP22SSHRemote management and cluster access   
TCP80HTTPClustrixGUI
TCP3306SQLDatabase access
TCP3581Health CheckHeartbeat 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 installed
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 是否在整个集群中同步

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'

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.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值