Last active
January 29, 2016 08:53
-
-
Save lorentzca/f49d8e73fc00a9289566 to your computer and use it in GitHub Desktop.
consul server用設定
This file contains 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
{ | |
"bootstrap_expect": 1 , | |
"server": true, | |
"data_dir": "/var/consul", | |
"bind_addr": "127.0.0.1", | |
"client_addr": "0.0.0.0" | |
} |
"bootstrap_expect": 1 ,
なのでメンバーが1個ある時点でリーダーが決まる
3の場合は3集まるまでリーダー無し
前のconsulバージョンはbootstrap trueとかで最初にリーダーとして起動するエージェントを指定する必要があったがbootstrap_expectの場合その必要なし
clientとservrの設定だけあればokになる
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/Lorentzca/29985c80aec390df4efb 用