Giter Site home page Giter Site logo

lichong2005 / influxdb-cluster Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 8.0 1.68 MB

influxdb-cluster是基于influxdb1.7.x版本以及分布式Raft协议开发的分布式时序数据库

License: MIT License

Go 96.49% Shell 0.04% CSS 0.83% HTML 0.97% JavaScript 1.66%

influxdb-cluster's Introduction

influxdb-cluster

influxdb-cluster是基于influxdb1.7.x版本以及分布式Raft协议开发的分布式时序数据库,具有influxdb本身的特性之外,还有容量扩展、副本容错等集群功能。

Forked from angopher/chronus

Features

  • influxdb基于1.7.x版本,功能上都兼容

  • 元数据节点和数据节点都可水平线性扩展

  • 元数据节点强一致性,数据节点最终一致性

Architecture

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

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

compile

  • export GOPROXY=https://goproxy.io

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

  • cd workspace/src/github.com/influxdb-cluster

  • git clone [email protected]:lichong2005/influxdb-cluster.git && cd influxdb-cluster

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

  • 编译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

界面

浏览器打开:http://localhost:8083 即可

命令行操作

创建第一个数据库

写入数据

查询

分析

License

Influxdb-cluster is under the MIT license. See the LICENSE file for details.

influxdb-cluster's People

Contributors

lichong2005 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

influxdb-cluster's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.