Shiwen Cheng
Shiwen Cheng
@lifeibo Yes! I did execute `drop measurement` first!
@lowang-bh [wilhelmguo/influx-proxy](https://github.com/wilhelmguo/influx-proxy) is forked from [chengshiwen/influx-proxy](https://github.com/chengshiwen/influx-proxy), and is pushed to [Qihoo360/influx-proxy](https://github.com/Qihoo360/influx-proxy), that's why. [Qihoo360/influx-proxy](https://github.com/Qihoo360/influx-proxy) is out of date. And if you're interested, check out the upstream [chengshiwen/influx-proxy](https://github.com/chengshiwen/influx-proxy).
因为以measurement的维度进行了分库,不同measurement被分到了不同的influxdb实例,所以每个influxdb实例的series cardinality是降低了的,从而不会OOM 更多参考:https://github.com/chengshiwen/influx-proxy 中文文档:https://github.com/chengshiwen/influx-proxy/wiki
我是看 wayne 仓库,顺便看到郭少巍 @wilhelmguo 在 fork 了我的仓库 chengshiwen/influx-proxy 后修改放到了 Qihoo360 下,但之前有一些代码同事写的有 bug,我把那段重写了,就不向 downstream 提 pr 了
更多参考:https://github.com/chengshiwen/influx-proxy 中文文档:https://github.com/chengshiwen/influx-proxy/wiki 尚未支持,未来计划支持,不过已经支持create database语句,即 `"CREATE DATABASE" db_name [ WITH [ retention_policy_duration ] [ retention_policy_replication ] [ retention_policy_shard_group_duration ] [ retention_policy_name ] ]` 从而间接支持
@zhangjianpinghik 请问 `influxdb1` 是后来加进来的吗?我看 `telegraf` 写了 9 个 measurement,其中有 4 个measurement的位置不对,也就是说刚开始 `circle-1` 只有 1 个 backend 名为 `influxdb2`,启动 influx-proxy 后,写了 9 个 measurement,然后 `circle-1` 新加了 1 个 backend 名为 `influxdb1`?
4 个 influxdb 是最开始就在配置文件里配置好了吗?
只有 influxdb2 有数据库,那还有没有一种可能,部署 influx-proxy 之前,influxdb2 就已经被接入在写数据了,里面其实已经有数据了?
@zhangjianpinghik 微信:Neo0103
@wjjboy proxy 仅做转发代理,实际使用内存几乎很少,大量写入时会占用一定的 cpu,实践经验是,proxy 的 cpu 核数是 influxdb 核数的一半即可,内存 1-2g 就足够了