1.1.1

Table Of Contents
The -locators option lists the peer connection information for all locators used in the same SQLFire distributed
system. The command above species a distributed system with two locators. The second locator would be
started using a similar command:
sqlf locator start -peer-discovery-address=locator2host
-peer-discovery-port=20202 \
-locators=locator1host[
10101],locator2host[
20202] \
-client-bind-address=locator2host -client-port=1528 -dir=locator2
All log and status les are stored in the specied directories (or in the current working directory if you omit the
-dir option).
Congure Locators for WAN Member Discovery on page 236 provides additional information about starting
locators for WAN replication.
Stop Locators
To stop a running locator, use the command:
sqlf locator stop -dir=locator_directory
To stop an entire SQLFire distributed system, always use the sqlf shut-down-all command. This command stops
all data stores and accessors in the system, but leaves locators and JMX agents running. If necessary, shut down
locators individually, but only after all data stores in the system have nished shutting down.
Start SQLFire Peers and Servers Using Locators
SQLFire peers or servers must specify a list of locator addresses to connect to when they join the distributed
system.
Use the -locators option when starting a SQLFire server or peer to identify the peer connection the member
should use to join the distributed system. In the previous section, Start and Stop Locators on page 223, two locators
were started using the -peer-discovery-address and -peer-discovery-port combinations of
"locator1host:10101" and "locator2host:20202." In order to join the distributed system created by these locators,
new SQLFire servers must specify those peer connections at startup.
For example, to start a new SQLFire server in the same cluster dened in Start and Stop Locators on page 223,
use the command:
sqlf server start -locators=locator1host[
10101],locator2host[
20202] \
-client-bind-address=server1host -client-port=1529 -dir=server1
Any additional servers joining the same cluster would likewise specify the same list of locators:
sqlf server start -locators=locator1host[
10101],locator2host[
20202] \
-client-bind-address=server2host -client-port=1530 -dir=server2
Embedded SQLFire peers can supply the locators attribute in the JDBC peer client connection string. For
example:
jdbc:sqlfire:;locators=locator1host[port1],locator2host[port2];host-data=false
As each server or peer joins the distributed system, both locators update their information with the new server's
client connection information. Note that although each server denes a client bind address and port, individual
clients should connect directly to one of the available locators rather than to an individual server. In this way,
the locator can load balance client connections to available servers, and can manage the list of available servers
as they leave and join the distributed system.
vFabric SQLFire User's Guide224
Deploying vFabric SQLFire