Created
June 18, 2014 06:11
-
-
Save zembutsu/5655c8db9e48a1d9a545 to your computer and use it in GitHub Desktop.
Consulのノードやサービス検出でTTL値の設定 ref: http://qiita.com/zembutsu/items/4965ec2e3ff7838673a1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dns_config": { | |
| "service_ttl": { | |
| "*": "5s", | |
| "web": "30s" | |
| } | |
| "allow_stale": false , | |
| "max_stale": "5s", | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ dig web.service.sakura.consul | |
| (略) | |
| ;; QUESTION SECTION: | |
| ;web.service.sakura.consul. IN A | |
| ;; ANSWER SECTION: | |
| web.service.sakura.consul. 30 IN A 192.168.39.13 | |
| web.service.sakura.consul. 30 IN A 192.168.39.11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ANSWER SECTION: | |
| web.service.sakura.consul. 21 IN A 192.168.39.11 | |
| web.service.sakura.consul. 21 IN A 192.168.39.13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ANSWER SECTION: | |
| web.service.sakura.consul. 30 IN A 192.168.39.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment