当前位置:网站首页>【深入理解TcaplusDB技术】一键安装Tmonitor后台
【深入理解TcaplusDB技术】一键安装Tmonitor后台
2022-06-25 18:12:00 【数据人儿】
一键安装脚本修改
Tmonitor一键安装脚本默认是为TcaplusDB业务编写的,对于其他业务,安装步骤同"Tmonitor单机安装指引",安装前要对以下脚本进行修改:
1.修改init_some_tables.sql。

\2. 修改脚本的gen_dcsvr_conf()函数。

两个Tmonitor互相监控的配置实例:

第二个监控Tmonitor2安装配置
A.修改sql语句、配置文件和执行安装脚本
- scp tmonitor_install_2.2.5sp3_130243.tar.gz /data
- tar xf tmonitor_install_2.2.5sp3_130243.tar.gz
- Vim init_some_tables.sql

- mysql -h10.59.41.57 -uroot -ptcaplus#2003
- create database tmonitor2_db;use tmonitor2_db;
- source create_tables.sql
- source init_some_tables.sql
- Vim tmonitor_install.pl

- 修改tmonitor_conf.xml配置文件,为执行脚本安装做准备


- 最后执行以下命令安装tmonitor2,有可能出现错误,解决方法如下
$ ./tmonitor_install.pl install
Can’t locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./tmonitor_install.pl line 10.
BEGIN failed–compilation aborted at ./tmonitor_install.pl line 10.
| Transaction Check Error:file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarchfile /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarchError Summary------------- | |
|---|---|
把rpmforge的关闭(enabled=0,位于/etc/yum.repos.d/rpmforge.repo),
再次安装,成功!搞定!
yum install -y perl-XML*
B.将Tmonitor2注册为一个监控服务器


C.将Tmonitor2也注册为一个业务,可以被Tmonitor1监控,实现互相监控

**D.**脚本安装后的手工起进程步骤
- ./tmonitor_install.pl install 脚本安装后需要手动启动tagent、tcenterd、tcmcenter、dc_tconnd、dcsvr、sasvr等进程(由于一些配置需要改动)
- Tagent:
修改后重启 - Tcenterd:
修改后重启 - Tcmcenter: 需要先修改host.xml里的准确IP地址,然后重启
- Dc_tconnd:在以上几个进程启动成功后,进入tcmconsole里start
- Dcsvr:使用以下命令修改dcsvr.xml的配置,然后启动进程
sed -i ‘/DBMSHost/c 10.59.41.57’ dcsvr.xml
sed -i ‘/DBMSPassword/c XXXXX’ dcsvr.xml
sed -i ‘/DBName/c tmonitor2_db’ dcsvr.xml <----------填写A-5建立的库名
sed -i ‘/DBMSUser/c tmonitor’ dcsvr.xml
7. Sasvr:需要修改sasvr.xml里面连的db(修改为前端页面使用的db,即tmonitor_center_db)和weburl
E. Tmonitor2安装完毕
第一个监控Tmonitor1安装配置
负责监控Tcaplus集群的Tmonitor1需要为自己添加dc_tconnd和dcsvr进程上报自身的状态,方能给tmonitor2监控。以下是配置步骤:
A. 准备工作
cd ~/tmonitor_install
cp -rp dc_tconnd_1 dc_tconnd_9
cp -rp dcsvr_1 dcsvr_9
B.为Tmonitor1建库建表
Vim init_some_tables.sql

mysql -h10.59.41.57 -uroot -ptcaplus#2003
create database tmonitor1_db;
Use tmonitor1_db;
source create_tables.sql
source init_some_tables.sql
C.配置dc_tconnd
1.修改dc_tconnd_9的配置文件xml


2.修改dc_tconnd_9的日志配置文件tconnd_log.xml

3.修改dc_tconnd_9的进程启动、停止脚本里的id

**D.**配置dcsvr_9
1.修改dcsvr_9的配置文件xml,确保存在sasvr和dcsvr两个进程项(可修改其他的进程项,因为这里只需要用到sasvr和dcsvr)

2.修改dcsvr_9的日志配置文件dcsvr_log.xml(此处进程ID得和C-1的修改值一致)

3.修改dcsvr_9的进程启动、停止脚本里的id(此处进程ID得和C-1的修改值一致)

**E.**将dc_tconnd_9和dcsvr_9添加到tcm管理,并为他们下发tbus通道,最后启动dc_tconnd_9和dcsvr_9
1.添加进程信息到proc_deploy.xml

2.重启tcmcenter
3.从tcmconsole里下发tbus通道:refreshbuscfg ...
4.到各自的bin目录下启动进程:./start_tconnd.sh; ./start_dcsvr.sh
**F.**为受控Tmonitor1进程做配置、采集策略下发、告警策略配置
1.Tmonitor1的web基础配置

2.采集策略下发

3.采集策略下发后观察几分钟,如下图为正常

4.添加默认告警接收者和配置告警策略
TcaplusDB是腾讯出品的分布式NoSQL数据库,存储和调度的代码完全自研。具备缓存+落地融合架构、PB级存储、毫秒级时延、无损水平扩展和复杂数据结构等特性。同时具备丰富的生态、便捷的迁移、极低的运维成本和五个九高可用等特点。客户覆盖游戏、互联网、政务、金融、制造和物联网等领域。

边栏推荐
- Bilstm and CRF
- Is it safe for a securities company to open an account with the lowest handling fee among the top ten
- 什么是泛型以及在集合中泛型的使用[通俗易懂]
- What is the ranking of the top ten securities companies? Is it safe to open a mobile account?
- Are the top ten leading securities companies safe to open accounts
- HMS Core机器学习服务实现同声传译,支持中英文互译和多种音色语音播报
- 近来开发的一款简单易用的图可视化工具
- Centos7 installing redis 7.0.2
- 1、对范数的理解
- Video production material website arrangement
猜你喜欢

Utilisation de diskgenius pour augmenter la capacité du disque système C

揭秘GES超大规模图计算引擎HyG:图切分

lock

QT中QString包含“\u0000“的处理方式

Article 7: there is no code prompt in clion,,,

1、对范数的理解

【日常记录】——对BigDecimal除法运算时遇到的Bug

Bilstm and CRF

喜报|海泰方圆通过CMMI-3资质认证,研发能力获国际认可

Why do we need ankeri's active power filter in frequency converter occasions?
随机推荐
股票开户怎么办理 办理开户安全吗
跨境电商亚马逊、eBay、Shopee、Lazada、速卖通、沃尔玛、阿里国际等平台,怎样进行自养号测评更安全?
图标丢失,URL附带JESSSIONID的什么来的?
Android Internet of things application development (smart Park) - picture preview interface
Redis trend - NVM memory
What is the ranking of the top ten securities companies? Is it safe to open a mobile account?
解析数仓lazyagg查询重写优化
Slam visuel Leçon 14 leçon 9 filtre Kalman
Unity technical manual - lifecycle rotation rotationoverlifetime speed rotation rotationbyspeed external forces
Iet attends the 2022 World Science and technology community development and Governance Forum and offers suggestions for building an international science and technology community
Getting started with kotlin (20) several common dialog boxes
什么是算子?
[daily record] - bug encountered during BigDecimal Division
Bert's summary of me
ASP.NET超市便利店在线购物商城源码,针对周边配送系统
Article 7: there is no code prompt in clion,,,
QT using SQLite database
Utilisation de diskgenius pour augmenter la capacité du disque système C
Uncover ges super large scale graph computing engine hyg: Graph Segmentation
Solve nvprof error err_ NVGPUCTRPERM - The user does not have permission to profile on the target device.