1.1.1

Table Of Contents
Example: Multiple Locators for High Availability
- start two locators that configured to talk
-- to one another
sqlf locator start -peer-discovery-port=3241
-locators=localhost:3242
sqlf locator start -dir=loc2 -peer-discovery-port=3242
-locators=localhost:3241 -client-port=1528
- start four servers that can talk to both
-- the above locators
sqlf server start -dir=dir1
-locators=localhost:3241,localhost:3242
-client-port=1529
sqlf server start -dir=dir2
-locators=localhost:3241,localhost:3242
-client-port=1530
sqlf server start -dir=dir3
-locators=localhost:3241,localhost:3242
-client-port=1531
sqlf server start -dir=dir4
-locators=localhost:3241,localhost:3242
-client-port=1532
- check all the members in the distributed system
sqlf
sqlf> connect client 'localhost:1527';
sqlf> select ID, KIND from sys.members order by KIND DESC;
- output will show six members with two locators
-- followed by four data stores
sqlf> quit;
- now bring down the first locator and check that
-- new servers can still join
sqlf locator stop
sqlf server start -dir=dir5
-locators=localhost:3241,localhost:3242
-client-port=1533
- check all the members in the distributed system again
sqlf
sqlf> connect client 'localhost:1528';
sqlf> select ID, KIND from sys.members order by KIND DESC;
- output will show six members with one locator
-- followed by five data stores
- stop everything
sqlf> quit;
sqlf server stop -dir=dir5
sqlf server stop -dir=dir4
sqlf server stop -dir=dir3
sqlf server stop -dir=dir2
sqlf server stop -dir=dir1
sqlf locator stop -dir=loc2
Example: Servers and Accessors with a Locator
- start a locator for peer discovery on port 3241
sqlf locator start -peer-discovery-port=3241
- start three servers using different client ports and
-- using the above started locator
sqlf server start -dir=dir1 -locators=localhost:3241
399
sqlf Launcher Commands