1.1.1

Table Of Contents
Chapter 7
Tutorials
Learn to congure and use SQLFire features such as table replication and partitioning, persisting data to disk, and
dynamically resizing the cluster.
Main Steps
The tutorial is divided into the following steps, which explain how to set up a cluster of SQLFire servers on
multiple Java VMs and then distribute data across the cluster. Perform the steps in the sequence shown.
DescriptionStep
Create a SQLFire Cluster on page 37Step 1
Connect to the Cluster Using SQLF on page 39Step 2
Create Replicated Tables and Execute Queries on page 40Step 3
Implement a Partitioning Strategy on page 41Step 4
Persist Tables to Disk on page 43Step 5
Add Servers to the Cluster and Stop Servers on page 45Step 6
Prerequisites
Install SQLFire on your local computer as described in Install vFabric SQLFire from a ZIP File on page 19.
Create a SQLFire Cluster
In this procedure you set up and start a cluster of two SQLFire servers.
Procedure
1. Begin by opening a command prompt or terminal window on the computer or VM where you installed
SQLFire.
2. Move to the directory in which you installed the SQLFire software. This tutorial uses the example directory
~/vFabric_SQLFire_11_b NNNNN, but you should substitute the actual path to your installation. For
example:
cd ~/vFabric_SQLFire_11_bNNNNN
3. The initial SQLFire cluster in this tutorial contains two standalone SQLFire server members. Create a new
directory for each server:
mkdir server1
mkdir server2
Each server will use its local directory to write log les, backup disk store les, a datadictionary
directory for persisting data, and a single status le, .sqlfserver.ser.
37