七牛云技术总监陈超 - InfluxDB的架构演进

2020-02-27 837浏览

  • 1.InfluxDB 陈 超 CrazyJvm chenchao@qiniu.com SDCC 2016 1
  • 2.Agenda basic concept how to use storage engine cluster design what we did conclusion 2
  • 3.Agenda basic concept how to use storage engine cluster design what we did conclusion 3
  • 4.TSDB A time series database (TSDB) is a software system that is optimized for handling time series data, arrays of numbers indexed by time (a datetime or a datetime range). In some fields these time series are called profiles, curves, or traces.https://en.wikipedia.org/wiki/Time_series_database4
  • 5.DB-Engines Ranking of Time Series DBMS 5
  • 6.What TSDB should do? query time-related data efficiently easy to downsampling handle expiring data automatically 6
  • 7.Why InfluxDB? No external dependencies Easy to get started Elegant restful api Powerful query language Horizontally scale Written in pure Go : ) …… 7
  • 8.Concept measurement 8
  • 9.Concept tag tagset tags are indexed 9
  • 10.Concept series = measurement + tagset 10
  • 11.Concept field 11
  • 12.Concept timestamp 12
  • 13.Concept Continuous queries 13
  • 14.Concept Retention policy 14
  • 15.Concept line protocol measurement[,tag1,tag2,…] field1[,field2,…] ts cpu,host=qn00001 value=0.1 1434055562000000000 15
  • 16.Agenda basic concept how to use storage engine cluster design what we did conclusion 16
  • 17.write point curl -i -XPOST 'http://localhost:8086/write?db=mydb'--data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000' 17
  • 18.create & show retention CREATE RETENTION POLICY two_hours ON food_data DURATION 2h REPLICATION 1 SHOW RETENTION POLICIES ON food_data 18
  • 19.write batch points curl -i -XPOST 'http://localhost:8086/write?db=mydb''>http://localhost:8086/write?db=mydb'