Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The samples distribution also contains an automated build process for producing a set of clustered servers. To create the clustered servers, execute the following from the servers/cluster directory:mvn clean install.
 The build will create three server images located in the target directory of each module under /servers/cluster: controller, zone1, and zone2. 
Follow the steps in the previous section to build the BigBank application. When the build completes, launch the H2 database, controller and zone runtimes:*

  • Launch the shared H2 database process from cluster/database:

...

  • java -jar target/h2-1.2.140.jar

...


  • * From the controller/target/image/bin directory:

...

  • java -jar server.jar controller

...


  • * From the zone1/target/image/bin directory:

...

  • java -jar server.jar participant
    * From the zone2/target/image/bin directory:

...

  • java -jar server.jar participant

...

After booting, the runtimes will discover each other and form a distributed domain consisting of two clusters (zones). Note the runtimes may be on the same machine or different machines. Copy the BigBank archives to the controller/target/image/runtimes/controller/deploy directory. The controller will provision the loan service and web UIs to zone1 and the backend services to zone2. 

...