*Scalarisの分散環境用の設定方法 [#s48ecc3f]
Scalarisを複数のノードで動作させるための設定方法について説明します。

*想定する構成 [#t65d88be]

1台のbootサーバに対して、複数台のレギュラーノードが接続するための設定を行います。
bootサーバとレギュラーノードがそれぞれ異なるPCの場合用の設定を行います。

*設定ファイル [#zb13be8c]

分散環境用の設定ファイルとしてはbin/scalaris.local.cfgが使用されます。
デフォルトでは用意されていませんが、bin/scalaris.local.cfg.exampleというサンプルがあるのでコピーして使用すると良いでしょう。

 # cd bin
 # cp scalaris.local.cfg.example scalaris.local.cfg
 # vi scalaris.local.cfg

scalaris.local.cfg.exampleの内容は以下のようになっています。


 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Settings for distributed Erlang
 % (see cs_send.erl to switch)
 
 % {boot_host, {boot,'boot@foo.bar.com'}}.
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Settings for TCP mode.
 % (see cs_send.erl to switch)
 
 % Insert the appropriate IP-addresses for your setup
 % as comma separated integers:
 % IP Address, Port, and label of the boot server
 {boot_host, {{127,0,0,1},14195,boot}}.
 
 % IP Address, Port, and label of a node which is already in the system
 {known_hosts, [{{127,0,0,1},14195, service_per_vm}]}.

%がコメントアウトになります。
なので実質設定されているのはboot_hostとknown_hostになります。

*bootサーバ用の設定 [#icc4ac59]

bootサーバになるPCのための設定としては、boot_hostを設定する必要があります。
boot_hostの127,0,0,1の部分を
例えば、bootサーバが192.168.0.1の場合は以下のようになります。

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Settings for TCP mode.
 % (see cs_send.erl to switch)
 
 % Insert the appropriate IP-addresses for your setup
 % as comma separated integers:
 % IP Address, Port, and label of the boot server
 {boot_host, {{192,168,0,1},14195,boot}}.
 
 % IP Address, Port, and label of a node which is already in the system
 {known_hosts, [{{127,0,0,1},14195, service_per_vm}]}.

以下作成中


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS