当前位置:网站首页>[deeply understand tcapulusdb technology] one click installation of tmonitor background
[deeply understand tcapulusdb technology] one click installation of tmonitor background
2022-06-21 22:16:00 【Database master】
One click installation script modification
Tmonitor The one click installation script defaults to TcaplusDB Written by business , For other businesses , The installation procedure is the same as "Tmonitor Stand alone installation guidelines ", The following script should be modified before installation :
1. modify init_some_tables.sql.

\2. Modify the of the script gen_dcsvr_conf() function .

Two Tmonitor Configuration instances that monitor each other :

The second monitor Tmonitor2 Installation configuration
A. modify sql sentence 、 Configure the file and execute the installation script
- 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

- modify tmonitor_conf.xml The configuration file , Prepare for script installation


- Finally, execute the following command to install tmonitor2, There may be errors , The solution is as follows
$ ./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------------- | |
|---|---|
hold rpmforge The closing of the (enabled=0, be located /etc/yum.repos.d/rpmforge.repo),
Re install , success ! Get it done !
yum install -y perl-XML*
B. take Tmonitor2 Register as a monitoring server


C. take Tmonitor2 Also registered as a business , Can be Tmonitor1 monitor , Realize mutual monitoring

**D.** Manual start-up steps after Script Installation
- ./tmonitor_install.pl install The script needs to be started manually after installation tagent、tcenterd、tcmcenter、dc_tconnd、dcsvr、sasvr Wait for the process ( Because some configurations need to be changed )
- Tagent:
Restart after modification - Tcenterd:
Restart after modification - Tcmcenter: It needs to be modified first host.xml The accuracy in IP Address , And then restart
- Dc_tconnd: After the above processes are started successfully , Get into tcmconsole in start
- Dcsvr: Use the following command to modify dcsvr.xml Configuration of , And then start the process
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 <---------- Fill in A-5 Created library name
sed -i ‘/DBMSUser/c tmonitor’ dcsvr.xml
7. Sasvr: Need modification sasvr.xml It's connected db( Modify the... Used for the front-end page db, namely tmonitor_center_db) and weburl
E. Tmonitor2 Installation completed
The first monitoring Tmonitor1 Installation configuration
Responsible for monitoring Tcaplus Clustered Tmonitor1 You need to add dc_tconnd and dcsvr The process reports its status , Before you can give tmonitor2 monitor . Here are the configuration steps :
A. preparation
cd ~/tmonitor_install
cp -rp dc_tconnd_1 dc_tconnd_9
cp -rp dcsvr_1 dcsvr_9
B. by Tmonitor1 Building database and building tables
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. To configure dc_tconnd
1. modify dc_tconnd_9 Configuration file for xml


2. modify dc_tconnd_9 Log profile for tconnd_log.xml

3. modify dc_tconnd_9 The process starts 、 Stop... In the script id

**D.** To configure dcsvr_9
1. modify dcsvr_9 Configuration file for xml, Ensure existence sasvr and dcsvr Two process items ( Other process items can be modified , Because you only need to use sasvr and dcsvr)

2. modify dcsvr_9 Log profile for dcsvr_log.xml( Here the process ID Get and C-1 The modified values are consistent )

3. modify dcsvr_9 The process starts 、 Stop... In the script id( Here the process ID Get and C-1 The modified values are consistent )

**E.** take dc_tconnd_9 and dcsvr_9 Add to tcm management , And send them tbus passageway , Finally start dc_tconnd_9 and dcsvr_9
1. Add process information to proc_deploy.xml

2. restart tcmcenter
3. from tcmconsole Send out tbus passageway :refreshbuscfg ...
4. To their own bin Start the process under the directory :./start_tconnd.sh; ./start_dcsvr.sh
**F.** For controlled Tmonitor1 Process configuration 、 Issue the collection strategy 、 Alarm strategy configuration
1.Tmonitor1 Of web Basic configuration

2. Issue the collection strategy

3. Observe for a few minutes after the collection strategy is issued , The following figure shows the normal

4. Add default alarm receiver and configure alarm policy
TcaplusDB It's a distributed product of Tencent NoSQL database , The code for storage and scheduling is completely self-developed . With cache + Landing fusion architecture 、PB Levels of storage 、 Millisecond delay 、 Lossless horizontal expansion and complex data structure . At the same time, it has rich ecological environment 、 Easy migration 、 Extremely low operation and maintenance costs and five nine high availability features . Customer coverage game 、 Internet 、 government affairs 、 Finance 、 Manufacturing and the Internet of things .

边栏推荐
猜你喜欢

B2B mall website helps enterprises speed up distribution and build an efficient and intelligent B2B online distribution platform

Six interesting web page effects that can be used

Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine

企业数据防泄漏解决方案分享

Using streamapi assertion combination and local cache for fuzzy query (nearly 1000 times more efficient than MySQL)

央企国电集团上海翔伟机电和中外海达成战略合作,捐赠2亿

I2C【2】-IIC为什么需要用开漏输出和上拉电阻bug

秒懂微服务

Abbkine细胞周期染色试剂盒特色和实验建议

Ruiji housekeeper, a century old classic, is waiting for your elegant journey to start again
随机推荐
Leetcode508- the most frequent subtree elements and - deep search
Anaconda add channels
Communication failure between botu simulation HMI and real 1200plc
Utilisation de la combinaison d'assertions de l'API Stream et de la mise en cache locale pour les requêtes floues (près de 1000 fois plus efficace que MySQL)
Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine
New energy industry commercial procurement collaboration system: enable new energy industry procurement business and enhance industrial collaboration
es7创建索引模板
The order management system realizes the unified management of enterprise order inventory
I2C [1] - I2C drive debug read operation abnormal bug
Dotter| dot method sequence pairwise comparison software
GDB调试实战(8)给程序传递启动参数
洛谷P1514 [NOIP2010 提高组] 引水入城 题解
中衍期货开户可以吗?平台靠谱吗?安全性高吗?
Yi Li, head of Alibaba cloud container service: how does cloud origin solve the problem of reducing costs and improving efficiency?
Mafft|multi sequence alignment tool
分别利用for、while、do while,循环求1-100的和
Spark 离线开发框架设计与实现
B2B商城网站助力企业加快分销速度,构建高效智能的B2B网上分销平台
新能源行业商业采购协同系统:赋能新能源行业采购业务,提升产业协同
Enzo high sensitivity detection Arg8 vasopressin ELISA Kit