Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
c1452ba6
Commit
c1452ba6
authored
Jun 09, 2022
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TSDB init
parent
20c16017
Pipeline
#5742
passed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
README.md
DEVOPS/KAFKA/TSDB/README.md
+44
-0
No files found.
DEVOPS/KAFKA/TSDB/README.md
0 → 100644
View file @
c1452ba6
[
![logo
](
https://www.hongsnet.net/images/logo.gif
)
](https://www.hongsnet.net)
# TSDB 데이터정합성 Overview
`Telegraf Kafka Consumer`
환경에서는
**InfluxDB 로의 데이터 입수가 동시에 가능**
하다. 그럼, Main/Backup InfluxDB의 데이터 정합성이 맞는지 다음과 같이 검증 한다.
# TSDB 데이터정합성 Check Script
```
bash
# cat influxdb_query.sh
#!/bin/bash
MAIN_IP
=
"MAIN InfluxDB 주소"
BACKUP_IP
=
"BACKUP InfluxDB 주소"
USER_ID
=
"DB_사용자"
USER_PW
=
"DB_패스워드"
echo
"Main InfluxDB Result: "
influx
-execute
'SELECT COUNT(numa_hit) FROM kernel_vmstat'
-database
=
"디비명"
-precision
=
rfc3339
-username
$USER_ID
-password
$USER_PW
-host
$MAIN_IP
-port
8086
echo
echo
"Backup InfluxDB Result: "
influx
-execute
'SELECT COUNT(numa_hit) FROM kernel_vmstat'
-database
=
"디비명"
-precision
=
rfc3339
-username
$USER_ID
-password
$USER_PW
-host
$BACKUP_IP
-port
8086
```
위 스크립트 결과는 다음과 같다.
```
bash
# ./influxdb_query.sh
Main InfluxDB Result:
name: kernel_vmstat
time
count
----
-----
1970-01-01T00:00:00Z 7490387
Backup InfluxDB Result:
name: kernel_vmstat
time
count
----
-----
1970-01-01T00:00:00Z 7490387
```
위와 같이 Main/Backup InfluxDB 간의
**데이터 정합성에 문제가 없다**
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment