1.1

Table Of Contents
4. To manage client connections to the available SQLFire server members, the cluster in this tutorial uses a
SQLFire locator member. Create a new directory for the locator member:
mkdir locator
A locator maintains a list of available servers in the cluster, and updates that list as servers join and leave the
cluster. Locators also load balance client connections across all available servers.
5.
To start or stop a SQLFire locator or a SQLFire server, you use the sqlf script (for Linux platforms) or
sqlf.bat script (for Windows platforms). In either case, you must rst ensure that the path to the SQLFire
bin directory is part of your PATH environment variable. For example, on a Linux platform enter:
export PATH=$PATH:~/vFabric_SQLFire_11_bNNNNN/bin
On a Windows platform enter:
set Path=%Path%;c:\vFabric_SQLFire_11_bNNNNN\bin
6.
When you start a SQLFire distributed system, always begin by starting the locator member. Use the sqlf
locator command to start the locator in the specied directory:
sqlf locator start -dir=locator -peer-discovery-address=ip_address
-peer-discovery-port=10101 \
-client-bind-address=ip_address -client-port=1527
Note: In this step and in all subsequent steps, replace ip_address with the IP address of your local
system.
The -peer-discovery-address and -peer-discovery-port combination denes a unique
connection that all members of this SQLFire distributed system use for communicating with one another.
Note: Always use a unique -peer-discovery-port number to avoid joining a cluster that is
already running on your network. If other people might be evaluating SQLFire on your network, choose
a port number other than 10101.
The -client-bind-address and -client-port combination denes the connection that client
applications use to connect to this locator. In this tutorial, all SQLFire members run on the local computer's
IP address and use different port numbers to dene unique connections.
You can verify the peer and client connections in the locator startup messages, which are similar to:
Starting SQLFire Locator using peer discovery on: ip_address[10101]
Starting network server for SQLFire Locator at address
localhost/127.0.0.1[1527]
SQLFire Locator pid: 41149 status: running
Note: By starting the locator member rst, the locator can manage cluster membership from the start
as new servers join and leave the distributed system. The locator member should also be the last process
that you shut down when you want to stop a SQLFire distributed system.
Note: As an alternative, SQLFire members can discover each other using multicast messaging.
However, important SQLFire features such as WAN replication and user authentication require that
a SQLFire system use locators rather than multicast for discovery. See Conguring Discovery
Mechanisms on page 219.
7.
Now use the sqlf server command to start both SQLFire server members and join them to the distributed
system:
sqlf server start -dir=server1 -locators=ip_address[10101]
-client-bind-address=ip_address -client-port=1528
vFabric SQLFire User's Guide36
Getting Started with vFabric SQLFire