# n9e-tsdb **Repository Path**: ahlcc/n9e-tsdb ## Basic Information - **Project Name**: n9e-tsdb - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-24 - **Last Updated**: 2021-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## N9E-TSDB ### 接入方式 下载安装包 ``` wget 116.85.64.82/n9e-tsdb.tar.gz ``` 需要修改server.yml的配置如下 ``` transfer: enable: true backend: datasource: "tsdb" m3db: enabled: false #修改为false maxSeriesPoints: 720 # default 720 name: "m3db" namespace: "default" seriesLimit: 0 docsLimit: 0 daysLimit: 7 # max query time # https://m3db.github.io/m3/m3db/architecture/consistencylevels/ writeConsistencyLevel: "majority" # one|majority|all readConsistencyLevel: "unstrict_majority" # one|unstrict_majority|majority|all config: service: # KV environment, zone, and service from which to write/read KV data (placement # and configuration). Leave these as the default values unless you know what # you're doing. env: default_env zone: embedded service: m3db etcdClusters: - zone: embedded endpoints: - 127.0.0.1:2379 tls: caCrtPath: /etc/etcd/certs/ca.pem crtPath: /etc/etcd/certs/etcd-client.pem keyPath: /etc/etcd/certs/etcd-client-key.pem tsdb: enabled: true name: "tsdb" cluster: tsdb01: 127.0.0.1:8011 monapi: indexMod: index alarmEnabled: true region: - default judge: query: connTimeout: 1000 callTimeout: 2000 maxConn: 2000 maxIdle: 100 connTimeout: 1000 callTimeout: 2000 indexCallTimeout: 2000 indexMod: index ``` 在etc/address.yml中,添加tsdb和index的配置 ``` tsdb: http: 0.0.0.0:8010 rpc: 0.0.0.0:8011 addresses: - 127.0.0.1 index: http: 0.0.0.0:8012 rpc: 0.0.0.0:8013 addresses: - 127.0.0.1 ``` ## 修改nginx配置 原来的配置: ``` upstream n9e.index { server 127.0.0.1:8000; keepalive 60; } ``` 改成: ``` upstream n9e.index { server 127.0.0.1:8012; keepalive 60; } ``` ### 编译 如果是x86架构的64位Linux,我们这里提供了编译好的:116.85.64.82/n9e-tsdb.tar.gz ``` ./control build ``` ### 启动 ``` ./control start all ```