GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — 12.3. Using the Sample Applications to Demonstrate Replication Documentation12.3. Using the Sample Applications to Demonstrate ReplicationOne way to familiarize yourself with replication is to try it with an existing application. VoltDB comes with several sample applications. You can use any of the samples to test or demonstrate replication. The following sections show how to create a replicated database, using the voter application as an example. The first section explains how to use the Enterprise Manager for the demonstration and the second uses the VoltDB shell commands. Both examples assume you have three servers:
It is also possible to perform this demonstration on two nodes by using ServerB for both the replica and the DR agent. 12.3.1. Replicating the Voter Sample Using the Enterprise ManagerFirst, using the command line, run the voter sample once to create the application catalog. Then, using the Enterprise Manager:
From the command line on ServerC, start the DR agent using the following command: $ dragent master serverA replica serverB Finally, from the command line on ServerA, run the sample client application: $ cd examples/voter $ ./run.sh client You should see the client inserts on the master database replicated on the replica. Note that you can also start the client application before the DR agent, to show that replication can be started on an existing, active database. 12.3.2. Replicating the Voter Sample Using the Command LineIn the current release, the scripts for running the sample applications do not add the necessary command line arguments for starting a master or replica database by default. However, you can use the voltdb convenience command to solve this problem:
Note that you can also start the client application (step #5) before the DR agent (step #4), to show that replication can be started on an existing, active database. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |