gnatsdのclusterについて, confファイルの設定方法をメモ
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
# クライアントからは以下のようにして接続 | |
# 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:nats@127.0.0.1:4245 | |
nats-route://nats:nats@127.0.0.1:4246 | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment