Skip to content
New issue

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

Auto get local ip for TseerServer & TseerAgent and some other enhancement #19

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

troycheng
Copy link
Contributor

@troycheng troycheng commented Aug 29, 2018

  1. TseerAgent 多机批量部署时需要替换 conf 中的 localip,现改为,配置中不指定时自动获取,否则使用配置中指定的 ip,TseerServer 同
  2. 将本地缓存的路径从./routersCache 移到 /tmp/.routersCache,避免执行命令时到处都有缓存目录
  3. 修正Agent api 模式下,remoteProvider缺少可用性探测的问题,避免 TseerAgent 挂掉时 api 的长耗时
  4. 增加命令get_instance 的实现,可用于命令行环境查询服务信息
  5. 一些编译、监控脚本的改进和一些细节错误的修改
  • TseerAgent and TseerServer can get local IP automatically if no 'localip' option in config file, which is convenient for batch deployment on multiple machines
  • Change default cache directory from "./routersCache" to "/tmp/.routersCache", avoid leaving cache files everywhere after executing relevant commands
  • Add available detection for Agent api, avoid long cost when TseerAgent is down
  • Add implementation of "get_instance" cmd for getting ip, port and set in terminal environment, see api/cplus/demo/main_get_instance.cpp.
  • Some enhancement for compiling and monitoring scripts and fix some typo errors

1. TseerAgentServer增加日志级别配置选项
2. 环境编译脚本改进
1. TseerServer and TseerAgent can auto get local ip now, which is friendly for batch job
2.  fix some problem for TseerAgent monitor script

1. TseerServer和 TseerAgent获取本地 ip 由配置文件配置改为自动获取
2. 修正TseerAgent 的监控脚本的兼容性问题,提高检查频率
1. change default cache dir from ./routersCache to /tmp/.routersCache, avoid generating cache files everywhere.
Fix one typo error in sample cpp file
1. As mentioned, add an cmd implementation for getting ip, port, set info

1. 增加一个命令的实现,方便在终端下查询 service 包含的 ip,port 和 set 信息
@CLAassistant
Copy link

CLAassistant commented Aug 29, 2018

CLA assistant check
All committers have signed the CLA.

add missing changes
Add available detection in Agent api, avoid long cost when TseerAgent is down.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants