Comments (7)
指定服务名字清理时,如果服务已经掉线了,也会报错
goc clear --service=xxx
{"error":"Post "http://172.16.71.81:8899/v1/cover/clear\": dial tcp 172.16.71.81:8899: connect: no route to host"}%
from goc.
服务端可以自动清理不在线的address吗
from goc.
当有很多服务注册在goc server上面,服务被销毁后,获取覆盖率文件耗时很长,如果不手动清理,注册的服务会越来越多,耗时也越来越长。 有参数可以设置跟客服端的请求超时不
这个是说遍历一遍服务消耗的时间很长?(PS: 是否尝试了这个命令 goc profile --force
?)
指定服务名字清理时,如果服务已经掉线了,也会报错
goc clear --service=xxx
{"error":"Post "[http://172.16.71.81:8899/v1/cover/clear](http://172.16.71.81:8899/v1/cover/clear%5C)": dial tcp 172.16.71.81:8899: connect: no route to host"}%
删除服务,用goc remove
命令
from goc.
服务端可以自动清理不在线的address吗
怎样的情况下才能判断服务"不在线"呢?我担心有误伤。
from goc.
服务端可以自动清理不在线的address吗
怎样的情况下才能判断服务"不在线"呢?我担心有误伤。
我也遇到了相同的问题,在容器实践过程中这是非常常见的问题,以下是我处理的方式
Line 182 in 60a18d3
在这行代码下面增加了一下的处理方式,并将 return
移除
err := s.Store.Remove(addr)
if err != nil {
c.JSON(http.StatusExpectationFailed, gin.H{"error": err.Error()})
return
}
fmt.Fprintf(c.Writer, "Remove service %s from the center.\n", addr)
这样就可以在 goc profile
时自动移除报错的 service
from goc.
PR #163 当已经修复了这个问题,先关闭。
from goc.
PR #163 当已经修复了这个问题,先关闭。
我怎么觉得这个并没有修复问题呢?k8s部署的服务,无效的address越来越多
go watchSignal(fn) 根本没启作用,是我哪里用的不对?
from goc.
Related Issues (20)
- 请问有展示报告的 HTML 网页等 GUI 吗?或者输出 JSON 文本也行 HOT 5
- Proposal: support Generics
- go cover不能生成可编译的打桩代码 HOT 4
- goc-v2编译时指定了LD_LIBRARY_PATH貌似不起作用 HOT 1
- goc v2版列出服务列表命令后希望能刷新.goc.kvstore文件
- 文件实际上是一个符号链接(symlink), 会build失败
- 我们这边一个项目部署之后会出现多个服务,这时候注册到goc-center的pod会缺失,请问有啥办法解决吗
- 请教下同一个版本内发布了多次代码,如何统计全量的覆盖率 HOT 5
- 请问: goc是否支持分支覆盖率统计
- 对于打包镜像和部署容器非同一个的情况
- 公司内部服务统一了出口ip,有什么解决办法吗
- goc build --center=<远程goc server>成功后,没有生成xx_profile_listen_addr文件。 HOT 2
- goc build --singleton 时 如何获取coverage file HOT 1
- FATA Fail to build: fail to generate new go.mod: ... invalid go version '1.22.0': must match format 1.23 HOT 2
- goc运行大概8天就会重启一次,重启时的日志如下
- dump 代码覆盖率报错 HOT 4
- 重命名的文件,会被merge一起 HOT 2
- goc clear清理覆盖率失败了
- goc build main.go报错 HOT 5
- @CarlJi 我们也是一样的问题,goc build -o不允许指定具体的main包进行编译吗,只能cd到main包所在的目录下,然后goc自己去搜索main包,然后编译吗,如果这个目录下有多个main包,就会出现楼主上面的那个报错 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goc.