帮酷LOGO
文章标签:高可用性??HIG??INF??数据??repl??服务??Influxdb??availability??
Service to replicate InfluxDB data for high availability

  • 源代码名称:influxdb-relay
  • 源代码网址:http://www.github.com/influxdata/influxdb-relay
  • influxdb-relay源代码文档
  • influxdb-relay源代码下载
  • Git URL:
    git://www.github.com/influxdata/influxdb-relay.git
  • Git Clone代码到本地:
    git clone http://www.github.com/influxdata/influxdb-relay
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/influxdata/influxdb-relay
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
  • InfluxDB接力

    这个项目为InfluxDB添加了一个基本的高可用性层,通过正确的架构和灾难恢复流程,实现了高度可用的安装。

    注:influxdb-relay必须用1.5 +构建

    用法

    从源代码生成并运行:

    $ # Install influxdb-relay to your $GOPATH/bin$ go get -u github.com/influxdata/influxdb-relay
    $ # Edit your configuration file$ cp $GOPATH/src/github.com/influxdata/influxdb-relay/sample.toml ./relay.toml
    $ vim relay.toml
    $ # Start relay!$ $GOPATH/bin/influxdb-relay -config relay.toml

    配置

    [[http]]# Name of the HTTP server, used for display purposes only.name = "example-http"# TCP address to bind to, for HTTP server.bind-addr = "127.0.0.1:9096"# Enable HTTPS requests.ssl-combined-pem = "/etc/ssl/influxdb-relay.pem"# Array of InfluxDB instances to use as backends for Relay.output = [
     # name: name of the backend, used for display purposes only.# location: full URL of the /write endpoint of the backend# timeout: Go-parseable time duration. Fail writes if incomplete in this time.#365bet皇冠 skip-tls-verification: skip verification for HTTPS location. WARNING: it's insecure. Don't use in production. { name="local1", location="http://127.0.0.1:8086/write", timeout="10s" },
     { name="local2", location="http://127.0.0.1:7086/write", timeout="10s" },
    ]
    [[udp]]# Name of the UDP server, used for display purposes only.name = "example-udp"# UDP address to bind to.bind-addr = "127.0.0.1:9096"# Socket buffer size for incoming connections.read-buffer = 0# default# Precision to use for timestampsprecision = "n"# Can be n, u, ms, s, m, h# Array of InfluxDB instances to use as backends for Relay.output = [
     # name: name of the backend, used for display purposes only.# location: host and port of backend.# mtu: maximum output payload size { name="local1", location="127.0.0.1:8089", mtu=512 },
     { name="local2", location="127.0.0.1:7089", mtu=1024 },
    ]

    描述

    体系结构简单,由一个负载均衡器、两个或多个InfluxDB中继进程和两个或多个InfluxDB进程组成,负载均衡器应将UDP流量和HTTP POST请求指向路径/write指向两个中继,同时将带有路径/query的get请求指向两个InfluxDB服务器。



    文章标签:数据??rep??服务??HIG??INF??repl??Influxdb??Replicate??

    Copyright ? 2011 HelpLib All rights reserved. ?? 知识分享协议 京ICP备05059198号-3 ?|? 如果智培 ?|? 酷兔英语