yoho.switch
有货故障切换脚本
切换流程
公网域名解析
有货前台
: api.yoho.cn
, service.yoho.cn
, union.yoho.cn
, webunion.yohobuy.com
- default:
123.206.1.98
- backup 1:
123.206.2.50
- backup 2(灰度):
140.143.181.49
pch5
: *.yohobuy.com
, *.m.yohobuy.com
- default: 140.143.217.201
云负载均衡器是跨多AZ可用的, 所以一般不需要切换域名
需要切换域名的场景: 某个负载均衡器出现故障
Role Variables
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
BSD
Author Information
chunhua.zhang@yoho.cn