Influxdb version1.8

HTTP:

0x00000000016d0ce3 in github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePoints

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/coordinator/points_writer.go:286

1  0x0000000001a73482 in github.com/influxdata/influxdb/services/httpd.(*Handler).serveWrite

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:819

2  0x0000000001a8b17c in github.com/influxdata/influxdb/services/httpd.(*Handler).serveWrite-fm

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:715

3  0x0000000001a88171 in github.com/influxdata/influxdb/services/httpd.authenticate.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:1571

4  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

5  0x0000000001a890eb in github.com/influxdata/influxdb/services/httpd.(*Handler).responseWriter.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:1756

6  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

7  0x0000000001a86bde in github.com/influxdata/influxdb/services/httpd.gzipFilter.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/gzip.go:39

8  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

9  0x0000000001a8826f in github.com/influxdata/influxdb/services/httpd.cors.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:1698

10  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

11  0x0000000001a88bb4 in github.com/influxdata/influxdb/services/httpd.requestID.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:1729

12  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

13  0x0000000001a88d5f in github.com/influxdata/influxdb/services/httpd.(*Handler).logging.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:1737

14  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

15  0x0000000001a895f7 in github.com/influxdata/influxdb/services/httpd.(*Handler).recovery.func1

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:1793

16  0x000000000134fc04 in net/http.HandlerFunc.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1995

17  0x00000000018e47b3 in github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP

at /Users/chenxianpao/Go_1/src/github.com/bmizerany/pat/mux.go:117

18  0x0000000001a6fdfc in github.com/influxdata/influxdb/services/httpd.(*Handler).ServeHTTP

at /Users/chenxianpao/Go_1/src/github.com/influxdata/influxdb/services/httpd/handler.go:386

19  0x0000000001352ed8 in net/http.serverHandler.ServeHTTP

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:2774

20  0x000000000134ebc1 in net/http.(*conn).serve

at /usr/local/Cellar/go/1.12.4/libexec/src/net/http/server.go:1878

21  0x000000000105e4f1 in runtime.goexit

at /usr/local/Cellar/go/1.12.4/libexec/src/runtime/asm_amd64.s:1337

// WritePoints writes metadata and point data into the engine.
// It returns an error if new points are added to an existing key.
func (e *Engine) WritePoints(points []models.Point) error {
    ....
    // first try to write to the cache
    if err := e.Cache.WriteMulti(values); err != nil {
        return err
    }
    if e.WALEnabled {
        if _, err := e.WAL.WriteMulti(values); err != nil {
            return err
        }
    }
}

先写Cache,再写WAL。由Compactor定期刷入TSM本地文件。

InfluxDB写流程的更多相关文章

  1. Raid1源代码分析--写流程

    正确写流程的总体步骤是,raid1接收上层的写bio,申请一个r1_bio结构,将其中的所有bios[]指向该bio.假设盘阵中有N块盘.然后克隆N份上层的bio结构,并分别将每个bios[]指向克隆 ...

  2. HDFS写流程

    HDFS client首先会与NameNode交互元数据信息,然后NameNode制定策略,分配NameNode节点,客户端先会与离自己最近的DataNode进行socket连接,已经与DataNod ...

  3. hbase实践之写流程

    内容提要 一.写入流程 初始化ZooKeeper Session,建立长连接,获取META Region的地址. 获取rowkey对应的Region路由信息:来自.meta. 写入region 如何快 ...

  4. php写流程管理

    流程控制即某个人发起一个流程,通过一层一层审核,通过后,完成整个流程,若有一层审核未通过,中断整个流程.即结束! 比如请假流程: 某一员工发起一个请假流程,那么这个流程的节点人员即他的上级,上上级,上 ...

  5. 为什么是InfluxDB | 写在《InfluxDB原理和实战》出版之际

    1年前写的一篇旧文,文中的分析,以及探讨的问题和观点,至今仍有意义. 从2016年起,笔者在腾讯公司负责QQ后台的海量服务分布式组件的架构设计和研发工作,例如微服务开发框架SPP.名字路由CMLB.名 ...

  6. hbase实践之写流程拾遗

    keyvalue KeyValue中包含了丰富的自我描述信息: KeyValue是支撑"稀疏矩阵"设计的一个关键点:一些Key相同的任意数量的独立KeyValue就可以构成一行数据 ...

  7. HI3518E用J-link烧写裸板fastboot u-boot流程

    Hi3518E的裸板烧写fastboot是不能像HI3531那样,可以通过FB直接烧写.遵循ARM9的烧写流程.其中一般u-boot的烧写流程可分为几类:第一:通过编程器芯片直接烧写:第二通过RVDS ...

  8. hadoop之 解析HDFS的写文件流程

    文件是如何写入HDFS的 ? 下面我们来先看看下面的“写”流程图:  假如我们有一个文件test.txt,想要把它放到Hadoop上,执行如下命令: 引用         # hadoop fs  - ...

  9. Linux Kernel文件系统写I/O流程代码分析(一)

    Linux Kernel文件系统写I/O流程代码分析(一) 在Linux VFS机制简析(二)这篇博客上介绍了struct address_space_operations里底层文件系统需要实现的操作 ...

随机推荐

  1. PIL处理图片信息

    最近遇到了图片处理的一些问题,python提供了一些库可以很方便地帮助我们解决这些问题,在这里把我这几天的学习总结一下. 一.提取图片的RGB值 1.非代码:如果只是为了提取某张图片或者某个像素点的R ...

  2. 使用 Visual Studio 部署 .NET Core 应用

    可将 .NET Core 应用程序部署为依赖框架的部署或独立部署,前者包含应用程序二进制文件,但依赖目标系统上存在的 .NET Core,而后者同时包含应用程序和 .NET Core 二进制文件. 有 ...

  3. Jquery动态添加元素并给元素增加onchange相应

    动态添加元素: $select = $("<select></select>"); $("<option></option> ...

  4. Django Ajax学习一

    1. 简单的加法 <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...

  5. Linux下安装PHP环境(非集成)

    一.安装Apache1.到官网下载  http://httpd.apache.org/download.cgi    2.安装apache [root@localhost 52lamp]# mkdir ...

  6. Python基础系列----语法、数据类型、变量、编码

    1.基本语法                                                                                        Python ...

  7. vue-vuex安装

    npm install vuex --save 然后在package.json文件的 dependencies中就看到有了一个vuex的文件 解释一下 dependencies生产环境它的意思就是上线 ...

  8. SPOJ - SUBST1 D - New Distinct Substrings

    D - New Distinct Substrings 题目大意:求一个字符串中不同子串的个数. 裸的后缀数组 #include<bits/stdc++.h> #define LL lon ...

  9. ubuntu下基于Anaconda使用Tensorflow

    为了在ubuntu下利用Anaconda使用tensorflow,但在利用conda安装tensorflow,不能在终端,spyder和notebook中直接使用,需要我们进行一定的配置. 1.安装A ...

  10. CentOS7系统防火墙开关、状态与自启

    首先需要说明的是CentOS7使用的是firewalld.service,而不是iptables.service [xf@xuexi ~]$ systemctl status firewalld.se ...