1.1

Table Of Contents
sqlf locator
Allows peers (including other locators) in a distributed system to discover each other without the need to hard-code
anything about other peers.
Syntax
To start a stand-alone locator use the command:
sqlf locator start [-J<vmarg>]* [-dir=<workingdir>]
[-classpath=<classpath>]
[-distributed-system-id=<id>]
[-max-heap=<size>] [-initial-heap=<size>]
[-peer-discovery-address=<addr> (default is 0.0.0.0)]
[-peer-discovery-port=<port> (default 10334)]
[-sync=<true|false> (default false)]
[-bind-address=<address> (default is the
-peer-discover-address value)]
[-run-netserver=<true|false> (default true)]
[-client-bind-address=<addr> (default is
bind-address or if not set then loopback)]
[-client-port=<clientport> (default 1527)]
[-locators=<addresses>] [-auth-provider=<provider>]
[-remote-locators=<host[port]>[,<host[port]>]...]
[-server-auth-provider=<provider>]
[-user=<username>] [-password[=<password>]]
[-log-file=<path> (default sqlflocator.log)]
[-<prop-name>=<prop-value>]*
Note:
When starting a locator using sqlf locator start, in addition to using the options listed above
you can use any other SQLFire boot properties (-<prop-name>=<prop-value>) on the command-line.
The startup script maintains the running status of the locator in a le .sqlflocator.ser.
To display the status of a running locator:
sqlf locator status [ -dir=<workingdir> ]
To stop a running locator:
sqlf locator stop [ -dir=<workingdir> ]
If you started a locator from a script or batch le using the -sync=false command, you can use the following
command to wait until the locator has nished synchronization and nished starting:
sqlf locator wait [-J<vmarg>]* [-dir=<workingdir>]
The wait command does not return control until the locator has completed startup.
The table below describes options for all of the above sqlf locator commands. Default values are used if
you do not specify an option.
DescriptionOption
JVM option passed to the spawned SQLFire Locator JVM. For
example, use -J-Xmx1024m to set the JVM heap to 1GB.
-J
Working directory of the locator that will contain the SQLFire
Locator status le and will be the default location for log le,
-dir
369
sqlf Launcher Commands