Products | Versions |
---|---|
TIBCO ActiveSpaces | - |
Not Applicable | - |
ant
The Java compiler compiles the examples and the following JAR files are created:
• Examples.jar contains the class files for all of the examples except for ASPaint
• ASPaint.jar contains the class files for only the ASPaint example.
Once the Examples.jar file has been successfully created, create the following shell scripts on the following servers:
Server 1 (Master)
# cd AS_HOME/examples/java
# > start-as-perf.sh
# chmod 755 start-as-perf.sh
Add the following contents into the file and edit them to match your setup:
java
-cp Examples.jar tools.asperf.ASPerf -metaspace "woywoy_ascluster"
-discovery
"tcp://10.97.70.120:50500;10.97.70.106:50500;10.97.70.118:50500" -listen
"tcp://10.97.70.120:50500" -remote_listen "tcp://10.97.70.120:40551"
-member_name master
Now start the ASPerf by running:
#./start-as-perf.sh
Server 2 (Slave 1)
# cd AS_HOME/examples/java
# > start-as-perfSlave.sh
# chmod 755 start-as-perfSlave.sh
Add the following contents into the file and edit them to match your setup:
java
-cp Examples.jar tools.asperf.ASPerfSlave -metaspace "woywoy_ascluster"
-discovery
"tcp://10.97.70.120:50500;10.97.70.106:50500;10.97.70.118:50500" -listen
"tcp://10.97.70.118:50500" -remote_listen "tcp://10.97.70.120:40551"
-member_name slave1 -role seeder
Now start the ASPerfSlave by running:
#./start-as-perfSlave.sh
Server 3 (Slave 2)
# cd AS_HOME/examples/java
# > start-as-perf.sh
# chmod 755 start-as-perf.sh
Add the following contents into the file and edit them to match your setup:
java
-cp Examples.jar tools.asperf.ASPerfSlave -metaspace "woywoy_ascluster"
-discovery
"tcp://10.97.70.120:50500;10.97.70.106:50500;10.97.70.118:50500" -listen
"tcp://10.97.70.106:50500" -remote_listen "tcp://10.97.70.106:40551"
-member_name slave2 -role seeder
Now start the ASPerfSlave by running:
#./start-as-perfSlave.sh
When all slaves have connected to the master, the master will allow you to invoke commands on the slaves (enter 'h' for help).
Type the commands:
# count 100000 (The number represents <blob count>)
# lput (This will Launche LatencyPut count 100000 size 1024 space shared)
You will get an output similar to the following:
Launching LatencyPut count 1000 size 1024 space shared
slave1 op/s = 1450 err = 0.00% avg = 0.689490ms min = 0.227000ms max = 67.508000ms lang = Java role = seeder
slave2 op/s = 1734 err = 0.00% avg = 0.576593ms min = 0.215000ms max = 20.482000ms lang = Java role = seeder
slave3 op/s = 1582 err = 0.00% avg = 0.631880ms min = 0.201000ms max = 68.409000ms lang = Java role = seeder
Total: op/s = 4766 avg latency= 0.632654ms err = 0.00% min = 0.201000ms max = 68.409000ms