meituan-dianping / cat-go Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
生产环境http请求伤不起。
`
for _, server := range config.httpServerAddresses {
u.Host = fmt.Sprintf("%s:%d", server.host, config.httpServerPort)
logger.Info("Getting router config from %s", u.String())
resp, err := client.Get(u.String())
if err != nil {
logger.Warning("Error occurred while getting router config from url %s", u.String())
continue
}
c.parse(resp.Body)
return
}
`
u.Host = fmt.Sprintf("%s:%d", server.host, config.httpServerPort) 这个怎么是使用了默认端口,不是应该使用 server.port吗
这个版本还是不支持消息树吗
实际性能压测, 上报数据,最高qps只支持到4000qps
跨服务之间调用, 需要传递埋点ParentMessageId, 现在不支持
../../../../pkg/mod/github.com/!meituan-!dianping/[email protected]+incompatible/cat/monitor_collector.go:115:16: currentTime.Stolen undefined (type cpu.TimesStat has no field or method Stolen)
看了一下应该是因为依赖的github.com/shirou/[email protected]+incompatible/cpu/cpu.go 这个库导致的。
可能是因为版本不兼容的问题?
According to
Line 44 in f5c6d77
That is, in my project, I have specified http-port="443"
attribute for <server>
, but it still log something like:
2019/05/05 18:59:24 [Info] Getting router config from http://xxxxxx.com:8080/cat/s/router?domain=Foo-Test&env=dev&hostname=martin-MacBook-Pro.local&ip=xx.xxx.xxx.xx&op=xml
Is this hardcode intentional?
应该是 cat 2.0 不兼容吧,有打算支持老版本么? 如果没有就继续使用原来的客户端。
使用下来,消息不能串起来,是我用法不对吗,没看到sdk里有传递上下文的方法
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.