Scylladb部署
Scylladb部署
一、部署
在centos 7.9上部署scylla-4.2
下面步骤都需要root权限或者sudo权限
1、添加scylladb 回购文件和yum源
yum install epel-release
curl -o /etc/yum.repos.d/scylla.repo -L http://repositories.scylladb.com/scylla/repo/ef1f1a47-2243-4237-a22b-4244266affc0/centos/scylladb-4.2.repo
2、删除abrt
自动错误报告工具(abrt)会与ScyllaDB coredump 配置发生冲突,需要卸载
yum remove -y abrt
3、安装scylla
yum install scylla
· 安装相应的小版本的scylladb(4.2下的小版本)
--查看提供的具体小版本
yum provides scylla
--进行安装具体小版本
yum install scylla-4.2.1-0.20201108.4fb8ebccff.x86_64
4、配置参数
配置文件默认位于/etc/scylla
4.1 scylla.yaml
vi /etc/scylla/scylla.yaml
cluster_name: 'dtstack'
listen_address: 172.16.121.151
rpc_address: 172.16.121.151
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "172.16.121.151,172.16.121.152"
endpoint_snitch: GossipingPropertyFileSnitch
4.2 cassandra-rackdc.properties
vi /etc/scylla/cassandra-rackdc.properties
dc=my_data_center
rack=my_rack
prefer_local=true
4.3 检查配置
检查配置命令:
cat /etc/scylla/scylla.yaml | grep cluster_name
cat /etc/scylla/scylla.yaml | grep seeds:
cat /etc/scylla/scylla.yaml | grep endpoint_snitch
cat /etc/scylla/scylla.yaml | grep authenticator
cat /etc/scylla/scylla.yaml | grep -E "listen_address|rpc_address"
scylla --version
5、运行scylla_setup
运行scylla_setup,进行配置主机相关的设置
[root@172-16-121-151 ~]# scylla_setup
Skip any of the following steps by answering 'no'
Do you want to run check your kernel version?
Yes - runs a script to verify that the kernel for this instance qualifies to run Scylla. No - skips the kernel check.
[YES/no]
· IOTune 这一步必须要选择yes,这步做基准测试生成/etc/scylla.d/io.conf配置文件,如果没有 XFS文件系统 或io.conf文件,ScyllaDB 将无法运行。要绕过此检查,需要 ScyllaDB 设置为开发者模式,调用脚本执行命令如下,该脚本会将开发者模式设置写入/etc/scylla.d/dev-mode.conf文件
scylla_dev_mode_setup --developer-mode 1
6、启动scylla服务
systemctl start scylla-server
--启动、停止、重启、查看 scylla服务的命令
systemctl start|stop|restart|status scylla-server
7、检查集群信息
nodetool -h ::FFFF:127.0.0.1 status