Author: orudyy
Date: Mon Nov 17 18:01:18 2014
New Revision: 1640198

URL: http://svn.apache.org/r1640198
Log:
QPID-6228: [Performance Tests] Add simple tests to measure performance in HA 
scenarios

Added:
    qpid/trunk/qpid/java/perftests/etc/ha/
    qpid/trunk/qpid/java/perftests/etc/ha/chardefs/
    
qpid/trunk/qpid/java/perftests/etc/ha/chardefs/1001-ScalingParticipants.chartdef
    qpid/trunk/qpid/java/perftests/etc/ha/readme.txt
    qpid/trunk/qpid/java/perftests/etc/ha/testdefs/
    qpid/trunk/qpid/java/perftests/etc/ha/testdefs/ScalingParticipants.js

Added: 
qpid/trunk/qpid/java/perftests/etc/ha/chardefs/1001-ScalingParticipants.chartdef
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/perftests/etc/ha/chardefs/1001-ScalingParticipants.chartdef?rev=1640198&view=auto
==============================================================================
--- 
qpid/trunk/qpid/java/perftests/etc/ha/chardefs/1001-ScalingParticipants.chartdef
 (added)
+++ 
qpid/trunk/qpid/java/perftests/etc/ha/chardefs/1001-ScalingParticipants.chartdef
 Mon Nov 17 18:01:18 2014
@@ -0,0 +1,48 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+chartType=XYLINE
+chartTitle=Scaling participants in non-HA and HA scenarios
+chartSubtitle=Persistent 1KB messages, transacted
+chartDescription=1,2,5,10 producers/consumers, single queue, persistent, 
transacted, with message payload 1KB.
+
+xAxisTitle=Participants
+yAxisTitle=Throughput (messages/s)
+
+series.1.statement=SELECT totalNumberOfConsumers, throughputMessagesPerS FROM 
ScalingParticipants WHERE participantName = 'All'
+series.1.legend=Non HA
+series.1.dir=${csvCurrentDir}
+series.1.colourName=blue
+
+#series.1.statement=SELECT totalNumberOfConsumers, throughputMessagesPerS FROM 
ScalingParticipants-non-ha WHERE participantName = 'All'
+#series.1.legend=Non HA
+#series.1.dir=${csvCurrentDir}
+#series.1.colourName=blue
+
+#series.2.statement=SELECT totalNumberOfConsumers, throughputMessagesPerS FROM 
ScalingParticipants-3-node-cluster WHERE participantName = 'All'
+#series.2.legend=3 Nodes Cluster
+#series.2.dir=${csvCurrentDir}
+#series.2.colourName=dark_green
+
+#series.3.statement=SELECT totalNumberOfConsumers, throughputMessagesPerS FROM 
ScalingParticipants-3-node-cluster-1-node-down WHERE participantName = 'All'
+#series.3.legend=3 Nodes Cluster with one node down
+#series.3.dir=${csvCurrentDir}
+#series.3.colourName=red
+
+

Added: qpid/trunk/qpid/java/perftests/etc/ha/readme.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/perftests/etc/ha/readme.txt?rev=1640198&view=auto
==============================================================================
--- qpid/trunk/qpid/java/perftests/etc/ha/readme.txt (added)
+++ qpid/trunk/qpid/java/perftests/etc/ha/readme.txt Mon Nov 17 18:01:18 2014
@@ -0,0 +1,33 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+This folder contains test definitions and chart definitions for the tests 
measuring throughput on scaling participants.
+They could be useful for testing performance in HA scenarios.
+
+The tests can be executed with:
+
+perfetsts> java -cp './target/*:./target/dependency/*:./etc/' 
-Dqpid.amqp.version=0-91 -Dqpid.disttest.duration=50000 \
+    -Dqpid.dest_syntax=BURL org.apache.qpid.disttest.ControllerRunner 
jndi-config=./etc/perftests-jndi.properties \
+    test-config=./etc/ha/testdefs/ScalingParticipants.js distributed=false 
writeToDb=false
+
+Graphs can be built with:
+
+perfetsts> java -cp 
'./visualisation-jfc/target/dependency/*:./visualisation-jfc/target/*' 
-Djava.awt.headless=true \
+          -Dlog4j.configuration=file://./etc/log4j.properties 
-DcsvCurrentDir=. -DcsvBaselineDir=. -DbaselineName=na \
+          org.apache.qpid.disttest.charting.ChartingUtil 
chart-defs=./etc/ha/1001-ScalingParticipants.chartdef

Added: qpid/trunk/qpid/java/perftests/etc/ha/testdefs/ScalingParticipants.js
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/perftests/etc/ha/testdefs/ScalingParticipants.js?rev=1640198&view=auto
==============================================================================
--- qpid/trunk/qpid/java/perftests/etc/ha/testdefs/ScalingParticipants.js 
(added)
+++ qpid/trunk/qpid/java/perftests/etc/ha/testdefs/ScalingParticipants.js Mon 
Nov 17 18:01:18 2014
@@ -0,0 +1,92 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+var jsonObject = { _tests:[] };
+
+var duration = 30000;
+var queueName = "direct://amq.direct//scaling-participants?durable='true'";
+
+var numbersOfParticipants = [1, 2, 5, 10];
+
+for(participantIndex=0; participantIndex < numbersOfParticipants.length; 
participantIndex++)
+{
+    var participantNumber = numbersOfParticipants[participantIndex];
+    var test = {
+      "_name": "Varying number of participants: " + participantNumber + " 
consumers - " + participantNumber + " producers - PERSISTENT",
+      "_queues":[
+        {
+          "_name": queueName,
+          "_durable": true
+        }
+      ],
+      "_clients":
+        QPID.times(participantNumber,
+        {
+          "_name": "producingClient__PRODUCING_CLIENT_INDEX",
+          "_connections":[
+            {
+              "_name": "connection1",
+              "_factory": "connectionfactory",
+              "_sessions": [
+                {
+                  "_sessionName": "session1",
+                  "_acknowledgeMode": 0,
+                  "_producers": [
+                    {
+                      "_name": "Producer__PRODUCING_CLIENT_INDEX",
+                      "_destinationName": queueName,
+                      "_maximumDuration": duration,
+                      "_deliveryMode": 2,
+                      "_messageSize": 1024
+                    }
+                  ]
+                }
+              ]
+            }
+          ]
+        },
+        "__PRODUCING_CLIENT_INDEX")
+        .concat(QPID.times(participantNumber,
+        {
+          "_name": "consumingClient__CONSUMING_CLIENT_INDEX",
+          "_connections":[
+            {
+              "_name": "connection1",
+              "_factory": "connectionfactory",
+              "_sessions": [
+                {
+                  "_sessionName": "session1",
+                  "_acknowledgeMode": 0,
+                  "_consumers": [
+                    {
+                      "_name": "Consumer__CONSUMING_CLIENT_INDEX",
+                      "_destinationName": queueName,
+                      "_maximumDuration": duration
+                    }
+                  ]
+                }
+              ]
+            }
+          ]
+        },
+        "__CONSUMING_CLIENT_INDEX"))
+    };
+    jsonObject._tests= jsonObject._tests.concat(test);
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to