当前位置:网站首页>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
边栏推荐
- Web chat room system based on SSM
- [PHP code injection] common injectable functions of PHP language and utilization examples of PHP code injection vulnerabilities
- NLP - monocleaner
- Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
- 【PHP代码注入】PHP语言常见可注入函数以及PHP代码注入漏洞的利用实例
- [business security-02] business data security test and example of commodity order quantity tampering
- What are the operating modes of the live app? What mode should we choose?
- Bidding announcement: Oracle database maintenance service procurement of the First Affiliated Hospital of Jinan University
- Synchronized and lock escalation
- 图书管理系统
猜你喜欢

基于WEB平台的阅读APP设计与实现

The global chip market may stagnate, and China's chip expansion accelerates to improve its self-sufficiency rate against the trend

Leetcode 724. Find the central subscript of the array (yes, once)

Reflection learning summary

Redis持久化

反射学习总结

Référence forte, faible, douce et virtuelle de threadlocal

AQS抽象队列同步器

Integration of entry-level SSM framework based on XML configuration file

ThreadLocal之强、弱、軟、虛引用
随机推荐
每日3题(2):检查二进制字符串字段
Naacl 2022 | TAMT: search the transportable Bert subnet through downstream task independent mask training
请求一下子太多了,数据库危
Référence forte, faible, douce et virtuelle de threadlocal
[advanced MySQL] MTS master-slave synchronization principle and Practice Guide (7)
Integration of entry-level SSM framework based on XML configuration file
基于 Nebula Graph 构建百亿关系知识图谱实践
About the meaning of the first two $symbols of SAP ui5 parameter $$updategroupid
Unity3d best practices: folder structure and source control
Kyndryl partnered with Oracle and Veritas
AbortController的使用
[business security-04] universal user name and universal password experiment
Semaphore of thread synchronization
Reflection learning summary
What are the operating modes of the live app? What mode should we choose?
ThreadLocal之强、弱、软、虚引用
【高等数学】从法向量到第二类曲面积分
优雅的自定义 ThreadPoolExecutor 线程池
ReentrantLock、ReentrantReadWriteLock、StampedLock
Julia1.1 installation instructions