Created
September 30, 2015 15:48
-
-
Save seka/b9f0964adf60a0fdb46d to your computer and use it in GitHub Desktop.
gnatsdのclusterについて, confファイルの設定方法をメモ
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
# クライアントからは以下のようにして接続 | |
# nats://user:password@localhost:4242 | |
port: 4242 | |
authorization { | |
user: user | |
password: password | |
} | |
# クラスタの設定 | |
cluster { | |
# 他のgnatsdサーバからの接続待ちポート | |
host: '127.0.0.1' | |
port: 4244 | |
# クラスタ同士の接続にも認証を使うことができる | |
authorization { | |
user: nats | |
password: nats | |
} | |
# 他のgnatsdサーバへの接続 | |
routes = [ | |
nats-route://nats:[email protected]:4245 | |
nats-route://nats:[email protected]:4246 | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment