Skip to content

Instantly share code, notes, and snippets.

@kennethho
Created September 5, 2012 12:40
Show Gist options
  • Save kennethho/3635968 to your computer and use it in GitHub Desktop.
Save kennethho/3635968 to your computer and use it in GitHub Desktop.
$ ./balad -h
LBS mode usage:
balad [OPSIONS...] --lsb LBS-HOST:LBS-PORT...
RBS mode usage:
balad [OPSIONS...] --rsb RBS-HOST:RBS-PORT:PROTOCOL-LEVEL...
Allowed options:
-h [ --help ] Produce this help message and exit
-c [ --concurrency ] arg (=1) Concurrency (number of threads)
-b [ --buffer ] arg (=1024) Size of session buffer in bytes
-l [ --listen ] arg Where to listen for incoming connections
--lbs arg Run in LBS mode and use user specified list of
LBS servers
--rbs arg Run in RBS mode and use user specified list of
RBS servers
Examples:
# Run in LBS mode with one LBS server and listen for incoming
# connections at 127.0.0.1:2000 192.168.1.63:2000.
balad -l 127.0.0.1:2000 192.168.1.63:2000 -p my.pem --lbs lbs1.example.com:1234
# Run in RBS mode with two RBS servers (of different protocol-level)
# with 8 threads and listen for incoming connections on port 2000.
balad -l 2000 -c 8 -p my.pem --rbs rbs1.example.com:2000:22 rbs2.example.com:3000:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment