当前位置:网站首页>February 16, 2022 freetsdb compilation and operation
February 16, 2022 freetsdb compilation and operation
2022-06-27 14:48:00 【a tracer】
Catalog
Enter the root directory to download the dependent go modular :
Enter the root directory to compile :
Generate configuration files :
use influxdb Even on freetsdb Check with influxdb Compatibility :
Abstract :
Record freetsdb Compile and run .
freetsdb edition :
Adopt the latest release edition v0.1.2, Remodel from influxdb1.9.4
https://github.com/freetsdb/freetsdb/releases/tag/v0.1.2
compile :
Enter the root directory to download the dependent go modular :
go env -w GOPROXY=https://goproxy.cn,direct
# go mod init
go mod verify
go mod download
go mod vendor
Enter the root directory to compile :
#!/bin/bash
HERE=`pwd`
cd $HERE
cd cmd/freets
echo `date` go build -o freets ./main.go
go build -o freets ./main.go
cp ./freets /usr/bin -f
cd $HERE
cd cmd/freetsd
echo `date` go build -o freetsd ./main.go
go build -o freetsd ./main.go
cp ./freetsd /usr/bin -f
cd $HERE
cd cmd/freetsd-ctl
echo `date` go build -o freetsd-ctl ./main.go
go build -o freetsd-ctl ./main.go
cp ./freetsd-ctl /usr/bin -f
cd $HERE
cd cmd/freetsd-meta
echo `date` go build -o freetsd-meta ./main.go
go build -o freetsd-meta ./main.go
cp ./freetsd-meta /usr/bin -f
cd $HERE
cd cmd/freets_inspect
echo `date` go build -o freets_inspect ./main.go
go build -o freets_inspect ./main.go
cp ./freets_inspect /usr/bin -f
cd $HERE
cd cmd/freets_tools
echo `date` go build -o freets_tools ./main.go
go build -o freets_tools ./main.go
cp ./freets_tools /usr/bin -f
# cd $HERE
# cd cmd/freets_tsm
# echo `date` go build -o freets_tsm ./main.go
# go build -o freets_tsm ./main.go
# cp ./freets_tsm /usr/bin -f
cd $HERE
cd cmd/store
echo `date` go build -o store ./main.go
go build -o store ./main.go
cp ./store /usr/bin -f
cd $HERE
function :
Generate configuration files :
Generate freetsd-meta Metadata service configuration :
freetsd-meta config > freetsd-meta.conf
Generate freetsd Data service configuration :
freetsd config > freetsd.conf
First run :
#!/bin/bash
echo pkill freetsd
pkill freetsd
echo `date` sleep 2s
sleep 2s
echo `date` rm /root/.freetsdb -rf
rm /root/.freetsdb -rf
echo `date` sleep 2s
sleep 2s
echo `date` bash ./run-meta.sh
bash ./run-meta.sh
echo `date` sleep 2s
sleep 2s
echo `date` freetsd-ctl add-meta localhost:8091
freetsd-ctl add-meta localhost:8091
echo `date` bash ./run-data.sh
bash ./run-data.sh
echo `date` sleep 2s
sleep 2s
echo `date` freetsd-ctl add-data localhost:8088
freetsd-ctl add-data localhost:8088
Key points of operation :
- This operation is to use single meta node , If it existed before raft.db, It is considered that the cluster has been established , Have been waiting for leader appear
- The purpose of forcibly deleting the data directory is to avoid raft.db Appearance
- Before use, you must add-meta and add-data
use influxdb Even on freetsdb Check with influxdb Compatibility :
The default port is 8086, Test and influxdb compatible
[email protected]:~/.freetsdb/meta# influx
Connected to http://localhost:8086 version 1.8.4
InfluxDB shell version: 1.8.10
>
>
> show databases
name: databases
name
----
_internal
NOAA_water_database
>
>
View after writing data /roo/.freetsdb/ Data directory
[email protected]:~/.freetsdb# tree
.
├── data
│ ├── _internal
│ │ ├── monitor
│ │ │ └── 1
│ │ │ └── fields.idx
│ │ └── _series
│ │ ├── 00
│ │ │ └── 0000
│ │ ├── 01
│ │ │ └── 0000
│ │ ├── 02
│ │ │ └── 0000
│ │ ├── 03
│ │ │ └── 0000
│ │ ├── 04
│ │ │ └── 0000
│ │ ├── 05
│ │ │ └── 0000
│ │ ├── 06
│ │ │ └── 0000
│ │ └── 07
│ │ └── 0000
│ ├── NOAA_water_database
│ │ ├── autogen
│ │ │ ├── 2
│ │ │ │ ├── 000000001-000000001.tsm
│ │ │ │ └── fields.idx
│ │ │ ├── 3
│ │ │ │ ├── 000000001-000000001.tsm
│ │ │ │ └── fields.idx
│ │ │ ├── 4
│ │ │ │ ├── 000000001-000000001.tsm
│ │ │ │ └── fields.idx
│ │ │ ├── 5
│ │ │ │ ├── 000000001-000000001.tsm
│ │ │ │ └── fields.idx
│ │ │ ├── 6
│ │ │ │ ├── 000000001-000000001.tsm
│ │ │ │ └── fields.idx
│ │ │ └── 7
│ │ │ ├── 000000001-000000001.tsm
│ │ │ └── fields.idx
│ │ └── _series
│ │ ├── 00
│ │ │ └── 0000
│ │ ├── 01
│ │ │ └── 0000
│ │ ├── 02
│ │ │ └── 0000
│ │ ├── 03
│ │ │ └── 0000
│ │ ├── 04
│ │ │ └── 0000
│ │ ├── 05
│ │ │ └── 0000
│ │ ├── 06
│ │ │ └── 0000
│ │ └── 07
│ │ └── 0000
│ └── node.json
├── meta
│ ├── node.json
│ ├── raft.db
│ └── snapshots
└── wal
├── _internal
│ └── monitor
│ └── 1
│ └── _00001.wal
└── NOAA_water_database
└── autogen
├── 2
│ └── _00002.wal
├── 3
│ └── _00002.wal
├── 4
│ └── _00002.wal
├── 5
│ └── _00002.wal
├── 6
│ └── _00002.wal
└── 7
└── _00002.wal
44 directories, 39 files
边栏推荐
- 剑指 Offer II 039. 直方图最大矩形面积 单调栈
- 【高等数学】从法向量到第二类曲面积分
- CAS之比较并交换
- PCL Library - error reporting solution: cmake and Anaconda conflicts during installation
- 关于 SAP UI5 参数 $$updateGroupId 前面两个 $ 符号的含义
- Reflection learning summary
- Practice of constructing ten billion relationship knowledge map based on Nebula graph
- Computer screen splitting method
- Resolve activity startup - lifecycle Perspective
- 【PHP代码注入】PHP语言常见可注入函数以及PHP代码注入漏洞的利用实例
猜你喜欢
Computer screen splitting method
R language objects are stored in JSON
Design and implementation of food recipe and ingredients website based on vue+node+mysql
Référence forte, faible, douce et virtuelle de threadlocal
做一篇人人能搞懂的ThreadLocal(源码)
Getting to know cloud native security for the first time: the best guarantee in the cloud Era
原子操作类
Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and the mobile phone can easily read literature
[business security 03] password retrieval business security and interface parameter account modification examples (based on the metinfov4.0 platform)
Talk about redis transactions
随机推荐
優雅的自定義 ThreadPoolExecutor 線程池
CCID Consulting released the database Market Research Report on key application fields during the "14th five year plan" (attached with download)
Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and the mobile phone can easily read literature
my. INI file configuration
AbortController的使用
Is there any discount for opening an account now? Is it safe to open an account online?
R language objects are stored in JSON
优雅的自定义 ThreadPoolExecutor 线程池
volatile与JMM
What kind of experience is it to read other people's code
June 27, 2022 Daily: swin transformer, Vit authors and others said: a good basic model is the simple pursuit of CV researchers
[OS command injection] common OS command execution functions and OS command injection utilization examples and range experiments - based on DVWA range
PostgreSQL 15新版本特性解读(含直播问答、PPT资料汇总)
Redis CacheClient
Top ten Devops best practices worthy of attention in 2022
事务的四大特性
Sword finger offer II 039 Histogram maximum rectangular area monotonic stack
易周金融 | Q1手机银行活跃用户规模6.5亿;理财子公司布局新兴领域
PCL Library - error reporting solution: cmake and Anaconda conflicts during installation
R language triple becomes matrix matrix becomes triple