0
点赞
收藏
分享

微信扫一扫

InfluxDB 基础概念

​​InfluxDB​​​ 作为时序数据库(Time Series Database)其层级与关系型数据库明显不同,以下是 InfluxDB 与 MySQL、​​TDengine​​ 的对比。

层级

MySQL

InfluxDB

TDengine

实例

instance

org

instance

数据库

database

bucket

database


table

measurement

table/stable

记录

row

point

row

字段

columns

time+tag+field

columns+tag

  • 一个 InfluxDB 进程下可以创建多个组织(org),不同组织下的数据是完全隔离的。
  • 一个组织下可以多个 bucket,数据查询可以跨
    bucket,每个 bucket 拥有自己的数据保存策略。
[root@i0-110 ~]# influx org list
ID Name
c3d17b475710e788 test2
d781e1ab6a34faad test
[root@i0-110 ~]# influx bucket list -o test
ID Name Retention Shard group duration Organization ID Schema Type
74091a2d2a220be1 _monitoring 168h0m0s 24h0m0s d781e1ab6a34faad implicit
5175f85981b38eef _tasks 72h0m0s 24h0m0s d781e1ab6a34faad implicit
493461b293cb9760 db01 infinite 168h0m0s d781e1ab6a34faad implicit
1b50453093dc429b db02 240h0m0s 24h0m0s d781e1ab6a34faad implicit
[root@i0-110 ~]# influx bucket list -o test2
ID Name Retention Shard group duration Organization ID Schema Type
c8e8afe310189a81 _monitoring 168h0m0s 24h0m0s c3d17b475710e788 implicit
55d2ef9229e4fa42 _tasks 72h0m0s 24h0m0s c3d17b475710e788 implicit

InfluxDB 中的用户是基于组织(org)的。用户(user/member)与组织的对应关系类似矩阵似:

  • 1 个用户可以属于多个组织;
  • 1 个组织可以拥有多个用户;
  • 组织可以没有用户,但用户必须属于组织。

描述有点拗口,其对应关系类似于 Linux 中的 user 和 group。

[root@i0-110 ~]# influx org members list -n test
ID Name User Type Status
09476e883f624000 aaron member active
[root@i0-110 ~]# influx org members list -n test2
ID Name User Type Status
09476e883f624000 aaron member active
0986c2d565b7c000 halon member active
0986c3ca39f7c000 jack member active


举报

相关推荐

Influxdb基础知识详解

0 条评论