当前位置:网站首页>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 vendorEnter 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.confGenerate freetsd Data service configuration :
freetsd config > freetsd.confFirst 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
边栏推荐
- Design skills of main function of Blue Bridge Cup single chip microcomputer
- 优雅的自定义 ThreadPoolExecutor 线程池
- CV领域一代宗师黄煦涛教授86岁冥诞,UIUC专设博士奖学金激励新锐
- 高德地图IP定位2.0备份
- 基于Vue+Node+MySQL的美食菜谱食材网站设计与实现
- NLP - monocleaner
- Bidding announcement: Oracle database maintenance service procurement of the First Affiliated Hospital of Jinan University
- Buuctf Misc
- Getting to know cloud native security for the first time: the best guarantee in the cloud Era
- R language triple becomes matrix matrix becomes triple
猜你喜欢
![[xman2018 qualifying] pass](/img/eb/7bf04941a96e9522e2b93859266cf2.png)
[xman2018 qualifying] pass

AutoCAD - line width setting

volatile与JMM

Getting to know cloud native security for the first time: the best guarantee in the cloud Era
机械硬盘和ssd固态硬盘的原理对比分析

AQS Abstract queue synchronizer
![[business security-04] universal user name and universal password experiment](/img/09/73d8356d00cefb6d1af086669f69ff.png)
[business security-04] universal user name and universal password experiment

Redis 主从复制、哨兵模式、Cluster集群

CAS之比较并交换

Pycharm安装与设置
随机推荐
AbortController的使用
【微服务|Sentinel】热点规则|授权规则|集群流控|机器列表
SQL parsing practice of Pisa proxy
Brief reading of dynamic networks and conditional computing papers and code collection
ThreadLocal之强、弱、软、虚引用
巧用redis实现点赞功能,它不比mysql香吗?
请求一下子太多了,数据库危
E-week finance Q1 mobile banking has 650million active users; Layout of financial subsidiaries in emerging fields
Teach you how to realize pynq-z2 bar code recognition
Make a ThreadLocal (source code) that everyone can understand
AutoCAD - line width setting
隐私计算FATE-离线预测
CCID Consulting released the database Market Research Report on key application fields during the "14th five year plan" (attached with download)
Four characteristics of transactions
Strong, weak, soft and virtual references of ThreadLocal
Daily 3 questions (1): find the nearest point with the same X or Y coordinate
enable_ if
Vscode uses yapf auto format to set the maximum number of characters per line
[OS command injection] common OS command execution functions and OS command injection utilization examples and range experiments - based on DVWA range
522. 最长特殊序列 II / 剑指 Offer II 101. 分割等和子集