2021-10-12
DTLE-数据传输中间件单实例安装配置详解
准备安装包:
https://github.com/actiontech/dtle/releases
rpm -ivh dtle-3.20.08.0.x86_64.rpm
yum install epel-release jq -y
yum localinstall dtle-3.20.08.0.x86_64.rpm
配置文件:
默认配置文件的位置:
[root@node200 dtle]# pwd
/etc/dtle
[root@node200 dtle]# ls
consul.hcl nomad.hcl
启动服务:
systemctl start dtle-nomad
systemctl start dtle-consul
systemctl enable dtle-consul dtle-nomad # 开机自动启动
检查本地服务是否正常:
[root@node200 ~]# curl -XGET "127.0.0.1:4646/v1/nodes" -s | jq
[root@node200 ~]# curl -XGET "127.0.0.1:4646/v1/nodes" -s | jq
[
{
"Address": "127.0.0.1",
"ID": "9829e096-6554-95b6-8b81-b1844a491063",
"Datacenter": "dc1",
"Name": "nomad0",
"NodeClass": "",
"Version": "1.1.2",
"Drain": false,
"SchedulingEligibility": "eligible",
"Status": "ready",
"StatusDescription": "",
"Drivers": {
"raw_exec": {
"Attributes": null,
"Detected": false,
"Healthy": false,
"HealthDescription": "disabled",
"UpdateTime": "2021-10-12T10:42:54.582013452+08:00"
},
"dtle": {
"Attributes": {
"driver.dtle.version": "3.21.08.0",
"driver.dtle.full_version": "3.21.08.0-3.21.08.x-e56bde2",
"driver.dtle": "true"
},
"Detected": true,
"Healthy": true,
"HealthDescription": "Healthy",
"UpdateTime": "2021-10-12T10:42:54.931129464+08:00"
}
},
"HostVolumes": null,
"NodeResources": null,
"ReservedResources": null,
"LastDrain": null,
"CreateIndex": 7,
"ModifyIndex": 1632
}
]
查看服务状态:
集群相关
# 查看管理(server)节点
[root@node200 ~]# nomad server members
Name Address Port Status Leader Protocol Build Datacenter Region
nomad0.global 127.0.0.1 4648 alive true 2 1.1.2 dc1 global
[root@node200 ~]# nomad server members -address=http://127.0.0.1:4646
Name Address Port Status Leader Protocol Build Datacenter Region
nomad0.global 127.0.0.1 4648 alive true 2 1.1.2 dc1 global
# 查看执⾏(client)节点,即运行dtle插件的节点
[root@node200 ~]# nomad node status
ID DC Name Class Drain Eligibility Status
9829e096 dc1 nomad0 <none> false eligible ready
[root@node200 ~]# nomad node status -address=http://127.0.0.1:4646
ID DC Name Class Drain Eligibility Status
9829e096 dc1 nomad0 <none> false eligible ready
查看版本:
[root@node200 ~]# nomad version
Nomad v1.1.2 (60638a086ef9630e2a9ba1e237e8426192a44244)
查看某个节点的dtle插件版本
[root@node200 ~]# nomad node status -verbose
ID DC Name Class Address Version Drain Eligibility Status
9829e096-6554-95b6-8b81-b1844a491063 dc1 nomad0 <none> 127.0.0.1 1.1.2 false eligible ready
[root@node200 ~]# nomad node status -verbose 9829e096-6554-95b6-8b81-b1844a491063 | grep dtle
dtle true true Healthy 2021-10-12T10:42:54+08:00
driver.dtle = 1
driver.dtle.full_version = 3.21.08.0-3.21.08.x-e56bde2
driver.dtle.version = 3.21.08.0
评论
发表评论
姓 名: