"Fossies" - the Fresh Open Source Software Archive

Member "apache-zookeeper-3.8.1/zookeeper-it/README.txt" (25 Jan 2023, 2710 Bytes) of package /linux/misc/apache-zookeeper-3.8.1.tar.gz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "README.txt": 3.6.0_vs_3.6.1.

    1 To run the system test we need to create processing containers that we can
    2 spawn tasks, called Instances, in. (how is that for a dangling preposition!?!)
    3 Start up InstanceContainers first. Then run the system test. The system test
    4 finds the InstanceContainers and directs them through ZooKeeper, so you are
    5 going to need an instance of ZooKeeper running that they can all access.
    6 The easiest way to do all of this is to use the zookeeper fat jar.
    8 Steps to run system test
    9 ------------------------
   10 1) build and transfer the fatjar from the `zookeeper-contrib/zookeeper-contrib-fatjar/target`
   11    directory to all systems participating in the test
   13    Command to build fatjar without executing the tests:
   15    `mvn clean install -P fatjar -DskipTests`
   17 2) run a zookeeper standalone instance (cluster is ok too)
   19 e.g. java -jar zookeeper-<version>-fatjar.jar server <zoo.cfg>
   21 Note: you must provide zoo.cfg, see sample in conf directory
   23 3) on each host start the system test container
   25 e.g. java -jar zookeeper-<version>-fatjar.jar ic <name> <zkHostPort> /sysTest
   27 name : name of the test container - must be unique 
   28   typically it's a good idea to name after the host to aid debugging
   30 zkHostPort : the host:port of the server from step 2)
   32 4) initiate the system test using the fatjar:
   34 java -jar build/contrib/fatjar/zookeeper-<version>-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest
   36 by default it will access the zk server started in 2) on localhost:2181 
   38 or you can specify a remote host:port using
   39   -DsysTest.zkHostPort=<host>:<port>,<host>:<port>,...
   41 java -DsysTest.zkHostPort=hostA:2181  -jar build/contrib/fatjar/zookeeper-<version>-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest
   43 where hostA is running the zk server started in step 2) above
   45 InstanceContainers can also be used to run a the saturation benchmark. The
   46 first two steps are the same as the system test. Step 3 is almost the same:
   48 3) start the InstanceContainer on each host:
   50 e.g. java -jar zookeeper-<version>-fatjar.jar ic <name> <zkHostPort> <prefix>
   52 note prefix can be /sysTest or any other path. If you do use /sysTest, make
   53 sure the system test isn't running when you run the benchmark.
   55 4) run GenerateLoad using the following
   57 java -jar build/contrib/fatjar/zookeeper-<version>-fatjar.jar generateLoad <zkHostPort> <prefix> #servers #clients
   59 Once GenerateLoad is started, it will read commands from stdin. Usually
   60 the only command you need to know is "percentage" which sets the percentage
   61 of writes to use in the requests. Once a percentage is set, the benchmark
   62 will start. "percentage 0" will cause only reads to be issued and
   63 "percentage 100" will cause only writes to be issued.