Influxdb-官方文档摘录
2017-01-12 14:35
519 查看
基本概念
1.与传统数据库名词比较influxdb | 传统数据库 |
---|---|
database | 数据库 |
measurement | 数据库中的表 |
points | 表里面的一行数据 |
2.1 Point
Point由时间戳(time)、数据(field)、标签(tags)组成。
Point属性 | 传统数据库中的概念 |
---|---|
time | 每个数据记录时间,是数据库中的主索引(会自动生成) |
fields | 各种记录值(没有索引的属性) |
tags | 各种有索引的属性 |
先举例:
select * from test show series from test
3 调优
3.1 硬盘
influxdb/wal和influxdb/data分开两个磁盘,最好是两个ssd磁盘。
如果你挂载两个ssd盘:/mnt/influx和 /mnt/db,那么配置文件可以如下配置。
... [meta] dir = "/mnt/db/meta" ... ... [data] dir = "/mnt/db/data" ... wal-dir = "/mnt/influx/wal" ... ... [hinted-handoff] ... dir = "/mnt/db/hh" ...
tips:如果有权限配置记得对文件进行赋权:
chown influxdb:influxdb /mnt/influx chown influxdb:influxdb /mnt/db
3.2 内存
最少8g
参考资料
安装:https://docs.influxdata.com/influxdb/v1.1/introduction/installation/
配置:
https://docs.influxdata.com/influxdb/v1.1/administration/config/
名词解释:
https://docs.influxdata.com/influxdb/v1.1/concepts/glossary/
相关文章推荐
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录
- Influxdb-官方文档摘录