chronus

module
v0.0.0-...-0ae59ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: MIT

README

chronus

chronus是基于influxdb1.7.x版本开发的分布式时序数据库,兼容官方的influxql。

Features

  • 完全兼容influxdb的influxql协议

  • 高可用

  • 水平线性扩展

  • 最终一致性

  • MPP架构:大规模并行处理

  • 不依赖第三方服务

Architecture

  • meta server:负责元数据的存储和管理

  • data server:负责数据的存储和管理,并向meta server获取元数据。所有涉及到元数据的修改,都会请求到meta server,由meta server执行修改,并同步给集群内所有的data server

compile

  • export GO111MODULE=on

  • 需要梯子:export GOPROXY=https://goproxy.io

  • mkdir -p workspace/src/github.com/angopher && export GOPATH=$PWD/workspace

  • cd workspace/src/github.com/angopher

  • git clone https://github.com/angopher/chronus.git && cd chronus

  • 编译influxd: cd cmd/influxd && go build && cd -

  • 编译metad:cd cmd/metad && go build

run

配置启动meta server

  • 生成默认配置文件:./metad config > metad.conf

  • ./metad -config metad.conf

配置启动data server

  • 生成默认配置文件 ./influxd config > influxd.conf

  • ./influxd -config influxd.conf

Getting Started

创建第一个数据库

写入数据

查询

分析

License

chronus is under the MIT license. See the LICENSE file for details.

欢迎微信交流

Directories

Path Synopsis
cmd
Package cmd is the root package of the various command-line utilities for InfluxDB.
Package cmd is the root package of the various command-line utilities for InfluxDB.
influxd
Command influxd is the InfluxDB server.
Command influxd is the InfluxDB server.
influxd/help
Package help is the help subcommand of the influxd command.
Package help is the help subcommand of the influxd command.
influxd/run
Package run is the run (default) subcommand for the influxd command.
Package run is the run (default) subcommand for the influxd command.
Package coordinator contains abstractions for writing points, executing statements, and accessing meta data.
Package coordinator contains abstractions for writing points, executing statements, and accessing meta data.
internal
Package internal is a generated protocol buffer package.
Package internal is a generated protocol buffer package.
services
controller
Package ctl provides influxd-ctl service
Package ctl provides influxd-ctl service
hh
Package hh implements a hinted handoff for writes
Package hh implements a hinted handoff for writes
meta
Package meta provides control over meta data for InfluxDB, such as controlling databases, retention policies, users, etc.
Package meta provides control over meta data for InfluxDB, such as controlling databases, retention policies, users, etc.
This package is a set of convenience helpers and structs to make integration testing easier
This package is a set of convenience helpers and structs to make integration testing easier
x

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL