open-falcon-archive / transfer Goto Github PK
View Code? Open in Web Editor NEW数据接入和转发组件
License: Apache License 2.0
数据接入和转发组件
License: Apache License 2.0
无法 import 导致编译失败,graph 也会遇到同样问题,重现方式:go get stathat.com/c/consistent
package stathat.com/c/consistent: unrecognized import path "stathat.com/c/consistent" (https fetch: Get https://stathat.com/c/consistent?go-get=1: dial tcp 54.231.81.225:443: i/o timeout)
func (this *ConnPool) fetchFree() NConn {
if len(this.free) == 0 {
return nil
}
conn := this.free[0]
this.free = this.free[1:]
return conn
}
这一段有没有可能出现越界?
通过RPC方式给transfer推送数据,单个包不超过200个Metrics没问题,超过200不超过1000可以发送成功但获取不到正确的放回。超过1000transfer接收不到。
如果连接超时或者因网络问题断掉,ConnPool仍可以从free中获取这个连接,造成使用这个连接发送数据都会失败。
同一个endPoint同一个metric数据,假设默认MinStep=30 Second; //最小上报周期,单位sec
多个进程,每秒都向 falcon-agent/v1/push 推数据,
但到了transfer后,由于被Step 被处理
https://github.com/open-falcon/transfer/blob/dd263b4d2f91a733dfc16ddd4d1d484152f0f634/sender/sender.go#L145-L147
最终图表中只会按最每个MinStep周期的点值(非周期内被丢弃),即使miniStep设置为最小的1秒,不丢弃中间值,也不能对同一个endPoint同一个metric数据进行叠加。
注意上面说的多个进程。
使用场景就如一个服务的qps上报,但服务是多进程。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.