We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
➜ discovery git:(master) ✗ dist/bin/discovery -conf dist/conf/discovery.toml 2020/12/15 15:16:49 start watch filepath: dist/conf/discovery.toml INFO 12/15-15:16:49.823 /Users/kings/go/src/discovery/discovery/syncup.go:159 discovery changed nodes:[127.0.0.1:7171] zones:map[] INFO 12/15-15:16:49.824 /Users/kings/go/src/discovery/registry/registry.go:229 Polls from(test1) new connection(1) INFO 12/15-15:16:49.824 /Users/kings/go/pkg/mod/github.com/go-kratos/[email protected]/pkg/net/http/blademaster/server.go:97 blademaster: start http listen addr: 127.0.0.1:7171 INFO 12/15-15:16:49.824 /Users/kings/go/src/discovery/http/http.go:28 [HTTP] Listening on: 127.0.0.1:7171
➜ target git:(master) ✗ tree . ├── comet ├── comet.toml ├── job ├── job.toml ├── logic └── logic.toml
2../logic -conf=logic.toml -region=sh -zone=sh001 -deploy.env=dev -weight=10 2>&1 启动日志如下
➜ target git:(master) ✗ ./logic -conf=logic.toml -region=sh -zone=sh001 -deploy.env=dev -weight=10 2>&1 E1215 14:42:05.362617 4815 client.go:551] discovery: client.Get(http://127.0.0.1:7171/discovery/polls?appid=infra.discovery&env=dev&hostname=phildeMBP.lan&latest_timestamp=1608014458680852000) error(Get http://127.0.0.1:7171/discovery/polls?appid=infra.discovery&env=dev&hostname=phildeMBP.lan&latest_timestamp=1608014458680852000: context canceled) E1215 14:42:15.365407 4815 logic.go:80] discovery start timeout [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode) [GIN-debug] POST /goim/push/keys --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).pushKeys-fm (3 handlers) [GIN-debug] Listening and serving HTTP on :3111 [GIN-debug] POST /goim/push/mids --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).pushMids-fm (3 handlers) [GIN-debug] POST /goim/push/room --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).pushRoom-fm (3 handlers) [GIN-debug] POST /goim/push/all --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).pushAll-fm (3 handlers) [GIN-debug] GET /goim/online/top --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).onlineTop-fm (3 handlers) [GIN-debug] GET /goim/online/room --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).onlineRoom-fm (3 handlers) [GIN-debug] GET /goim/online/total --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).onlineTotal-fm (3 handlers) [GIN-debug] GET /goim/nodes/weighted --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).nodesWeighted-fm (3 handlers) [GIN-debug] GET /goim/nodes/instances --> github.com/Terry-Mao/goim/internal/logic/http.(*Server).nodesInstances-fm (3 handlers)
同时discovery开始不停打日志
➜ discovery git:(master) ✗ dist/bin/discovery -conf dist/conf/discovery.toml 2020/12/15 15:16:49 start watch filepath: dist/conf/discovery.toml INFO 12/15-15:16:49.823 /Users/kings/go/src/discovery/discovery/syncup.go:159 discovery changed nodes:[127.0.0.1:7171] zones:map[] INFO 12/15-15:16:49.824 /Users/kings/go/src/discovery/registry/registry.go:229 Polls from(test1) new connection(1) INFO 12/15-15:16:49.824 /Users/kings/go/pkg/mod/github.com/go-kratos/[email protected]/pkg/net/http/blademaster/server.go:97 blademaster: start http listen addr: 127.0.0.1:7171 INFO 12/15-15:16:49.824 /Users/kings/go/src/discovery/http/http.go:28 [HTTP] Listening on: 127.0.0.1:7171 INFO 12/15-15:20:12.210 http-access-log user=no_user params=appid=infra.discovery&env=dev&hostname=phildeMBP.lan&latest_timestamp=0 traceid= method=GET path=/discovery/polls ret=0 msg=0 stack=<nil> ts=0.000380469 ip=127.0.0.1 err= timeout_quota=39.999983875 INFO 12/15-15:20:12.212 /Users/kings/go/src/discovery/registry/registry.go:229 Polls from(phildeMBP.lan) new connection(1) INFO 12/15-15:20:12.240 http-access-log ip=127.0.0.1 msg=0 timeout_quota=39.999964881 method=GET params=appid=infra.discovery&env=dev&hostname=phildeMBP.lan&latest_timestamp=0 ret=0 user=no_user ts=0.000107722 traceid= path=/discovery/polls stack=<nil> err= INFO 12/15-15:20:12.241 /Users/kings/go/src/discovery/registry/registry.go:235 Polls from(phildeMBP.lan) reuse connection(2) ERROR 12/15-15:20:12.242 /Users/kings/go/src/discovery/registry/registry.go:200 Polls zone() env(dev) appid(goim.comet) error(-404) INFO 12/15-15:20:12.242 /Users/kings/go/src/discovery/registry/registry.go:235 Polls from(phildeMBP.lan) reuse connection(3) INFO 12/15-15:20:12.242 /Users/kings/go/src/discovery/registry/registry.go:229 Polls from(phildeMBP.lan) new connection(1) INFO 12/15-15:20:22.250 http-access-log ip=127.0.0.1 ret=0 traceid= method=POST path=/discovery/register stack=<nil> timeout_quota=39.999981346 user=no_user msg=0 err= params=addrs=grpc%3A%2F%2F192.168.15.183%3A3119&appid=goim.logic&env=dev&hostname=phildeMBP.lan&metadata=%7B%22weight%22%3A%2210%22%7D®ion=sh&status=1&version=&zone=sh001 ts=0.000114793 INFO 12/15-15:20:42.216 /Users/kings/go/src/discovery/registry/registry.go:382 DelConns from(phildeMBP.lan) count decr(3) ERROR 12/15-15:20:42.216 http-access-log path=/discovery/polls err=-304 stack=-304 ts=30.004327648 ip=127.0.0.1 user=no_user traceid= method=GET params=appid=infra.discovery&env=dev&hostname=phildeMBP.lan&latest_timestamp=1608016609823791000 ret=-304 msg=-304 timeout_quota=39.99999195 INFO 12/15-15:20:42.217 /Users/kings/go/src/discovery/registry/registry.go:235 Polls from(phildeMBP.lan) reuse connection(3) INFO 12/15-15:20:42.243 /Users/kings/go/src/discovery/registry/registry.go:382 DelConns from(phildeMBP.lan) count decr(3) INFO 12/15-15:20:42.243 /Users/kings/go/src/discovery/registry/registry.go:385 DelConns from(phildeMBP.lan) delete(1) INFO 12/15-15:20:42.243 /Users/kings/go/src/discovery/registry/registry.go:382 DelConns from(phildeMBP.lan) count decr(2) ERROR 12/15-15:20:42.243 http-access-log msg=-304 ip=127.0.0.1 path=/discovery/polls ret=-304 user=no_user err=-304 timeout_quota=39.999980737 ts=30.001130117 params=appid=infra.discovery&appid=goim.comet&env=dev&hostname=phildeMBP.lan&latest_timestamp=1608016609823791000&latest_timestamp=0 stack=-304 traceid= method=GET ERROR 12/15-15:20:42.243 http-access-log method=GET user=no_user ret=-304 ip=127.0.0.1 path=/discovery/polls traceid= stack=-304 err=-304 timeout_quota=39.999986443 ts=30.002668851 params=appid=infra.discovery&env=dev&hostname=phildeMBP.lan&latest_timestamp=1608016609823791000 msg=-304 ERROR 12/15-15:20:42.244 /Users/kings/go/src/discovery/registry/registry.go:200 Polls zone() env(dev) appid(goim.comet) error(-404) INFO 12/15-15:20:42.244 /Users/kings/go/src/discovery/registry/registry.go:235 Polls from(phildeMBP.lan) reuse connection(2) INFO 12/15-15:20:42.244 /Users/kings/go/src/discovery/registry/registry.go:229 Polls from(phildeMBP.lan) new connection(1) WARN 12/15-15:20:49.827 /Users/kings/go/src/discovery/registry/guard.go:57 discovery is protected, the factual renews(2) less than expected renews(3) INFO 12/15-15:20:52.255 http-access-log msg=0 timeout_quota=39.999990335 ts=8.7107e-05 traceid= ip=127.0.0.1 ret=0 stack=<nil> err= method=POST user=no_user path=/discovery/renew params=appid=goim.logic&env=dev&hostname=phildeMBP.lan®ion=sh&zone=sh001
The text was updated successfully, but these errors were encountered:
我也遇到这个问题了,貌似是注册discovery失败了。还在查原因。 有哪位老哥可以指教下吗? 感谢!
Sorry, something went wrong.
怎么解决问题的
No branches or pull requests
部署discovery
启动后日志如下
部署goim
2../logic -conf=logic.toml -region=sh -zone=sh001 -deploy.env=dev -weight=10 2>&1
启动日志如下
同时discovery开始不停打日志
The text was updated successfully, but these errors were encountered: