shulieTech / Takin

Takin is an Java-based, open-source system designed to measure online environmental performance test for full-links, Especially for microservices. Through Takin, middlewares and applications can identify real online traffic and test traffic, ensure that they enter the right databases.
Apache License 2.0
1.32k stars 330 forks source link

获取不到服务 #84

Closed qianmaoliugou closed 2 years ago

qianmaoliugou commented 3 years ago

此方法试了,未解决

操作步骤(大致) 1、按照如下命令运行docker docker run -e APPIP=10.60.133.56 -p 80:80 -p 2181:2181 -p 29900-29999:29900-29999 -p 3306:3306 -p 6379:6379 registry.cn-hangzhou.aliyuncs.com/shulie-takin/takin:v1.0.1

2、添加demo及探针,然后发起流量请求,数据入库了,但是amdb库未查询到数据

3、看了下发现zookeep地址非宿主机ip,感觉应该是这个原因导致的,如果是,该如何解决? @xuehuilu @vinzhangya

Xnip2021-11-23_18-40-30

zhang19970916 commented 2 years ago

@qianmaoliugou 你好关于这个问题,应该是docker ip的地址与surge-depoy启动脚本中的docker ip地址不一致导致没有替换ip成功,可以将surge-deploy脚本中对应的容器ip地址更改为你实际的容器ip地址即可

zhang19970916 commented 2 years ago

@qianmaoliugou 脚本在/data/init_install.sh中,脚本为: nohup java -Xms512m -Xmx512m -Xss1m -cp surge-deploy-pradar-storm-1.0.jar io.shulie.surge.data.deploy.pradar.bootstrap.PradarTopologyBootStrap -DSourceType=MYSQL -DWorkers=1 -DNet={\"172.17.0.2\":\"$APPIP\"} >surge.out 2>&1 & 将自己实际的docker ip 替换掉172.17.0.2后执行,启动即可