XRegionサービスの起動

各リージョンのXregionサービスは、xrstartコマンドを使用して開始できます。xrstartコマンドは、データ・ストアごとに個別に実行する必要があります。xrstartコマンド実行のステータスは、nohup.outファイルの内容を読み取ることで表示できます。xrstartコマンドと各種パラメータの詳細は、「xrstart」を参照してください。

次に例を示します。

フランクフルトとロンドンの両リージョンでXRegionサービスを起動します。

XRegionサービス・エージェントは、フランクフルトとロンドンの両方のリージョンにあります。フランクフルトでは、XRegionエージェントはhost1およびhost7にあり、ロンドンでは、XRegionエージェントはhost4およびhost8にあります。両方のXRegionエージェントを各リージョンで起動する必要があります。

# Start the first XRegion Service in host1 in the 'fra' Region
[oracle@host1 xrshome]$nohup java -Xms256m -Xmx2048m -jar $KVHOME/lib/kvstore.jar xrstart \
-config <path to the json config file> > \
<path to the home directory of the xregion service>/nohup.out &

[1] 24356
[oracle@host1 xrshome]$ nohup: ignoring input and redirecting stderr to stdout

# View the status of the xrstart command in host1 in the 'fra' Region
[oracle@host1 xrshome]$ cat nohup.out
Cross-region agent (region=fra,store=mrtstore, helpers=[host1:5000, host2:5000, host3:5000]) 
starts up from config file=/home/oracle/xrshome/ json.config at 2019-11-07 08:57:34 UTC
同様に、host7でXRegionエージェントを起動します。
# Start the second XRegion Service in host 7 in the 'fra' Region

[oracle@host7 xrshome]$nohup java -Xms256m -Xmx2048m -jar $KVHOME/lib/kvstore.jar xrstart \
-config <path to the json config file> > \
<path to the home directory of the xregion service>/nohup.out &

[1] 24489
[oracle@host7 xrshome]$ nohup: ignoring input and redirecting stderr to stdout

# View the status of the xrstart command in host7 in the 'fra' Region
[oracle@host7 xrshome]$ cat nohup.out
Cross-region agent (region=fra,store=mrtstore, helpers=[host1:5000, host2:5000, host3:5000]) 
starts up from config file=/home/oracle/xrshome/ json.config at 2023-10-07 08:59:34 UTC
# Start the first XRegion Service in host4 in the 'lnd' Region
[oracle@host4 xrshome]$ nohup java -Xms256m -Xmx2048m -jar $KVHOME/lib/kvstore.jar xrstart \ 
-config <path to the json config file> > \
<path to the home directory of the xregion service>/nohup.out & 

[1] 17587
[oracle@host4 xrshome]$ nohup: ignoring input and redirecting stderr to stdout

# View the status of the xrstart command in host4 in the 'lnd' Region
[oracle@host4 xrshome]$ cat nohup.out
Cross-region agent (region=lnd,store=mrtstore, helpers=[host4:5000, host5:5000, host6:5000]) 
starts up from config file=/home/oracle/xrshome/ json.config at 2019-11-07 08:57:34 UTC
同様に、host8でXRegionエージェントを起動します。
# Start the second XRegion Service in host8 in the 'lnd' Region

[oracle@host8 xrshome]$ nohup java -Xms256m -Xmx2048m -jar $KVHOME/lib/kvstore.jar xrstart \ 
-config <path to the json config file> > \
<path to the home directory of the xregion service>/nohup.out & 

[1] 17587
[oracle@host8 xrshome]$ nohup: ignoring input and redirecting stderr to stdout

# View the status of the xrstart command in the 'lnd' Region
[oracle@host8 xrshome]$ cat nohup.out
Cross-region agent (region=lnd,store=mrtstore, helpers=[host4:5000, host5:5000, host6:5000]) 
starts up from config file=/home/oracle/xrshome/ json.config at 2023-10-07 09:09:34 UTC