[rhq] modules/plugins

Jay Shaughnessy jshaughn at fedoraproject.org
Thu Aug 16 20:08:20 UTC 2012


 modules/plugins/perftest/src/main/resources/META-INF/rhq-plugin.xml |    8 ++
 modules/plugins/perftest/src/main/resources/configurable-7.xml      |   40 ++++++++++
 2 files changed, 48 insertions(+)

New commits:
commit f0f52f180b65682996586b4a0438a1865cae8381
Author: Jay Shaughnessy <jshaughn at redhat.com>
Date:   Thu Aug 16 16:06:57 2012 -0400

    Adding perftest scenario support to help test bug 784571

diff --git a/modules/plugins/perftest/src/main/resources/META-INF/rhq-plugin.xml b/modules/plugins/perftest/src/main/resources/META-INF/rhq-plugin.xml
index 72fae98..7a34f7e 100644
--- a/modules/plugins/perftest/src/main/resources/META-INF/rhq-plugin.xml
+++ b/modules/plugins/perftest/src/main/resources/META-INF/rhq-plugin.xml
@@ -114,6 +114,14 @@
          </resource-configuration>
       </service>
 
+      <service name="service-gamma" class="PerfTestComponent" discovery="PerfTestDiscoveryComponent" description="Omega Service Gamma">
+         <plugin-configuration>
+            <c:simple-property name="gamma-property0"/>
+         </plugin-configuration>
+         
+         <metric displayName="Gamma Metric 0" property="gamma-metric0" defaultOn="false"/>         
+      </service>
+
    </server>
 
    <!-- try to make server-a and its children representative of "average" resources -->
diff --git a/modules/plugins/perftest/src/main/resources/configurable-7.xml b/modules/plugins/perftest/src/main/resources/configurable-7.xml
new file mode 100644
index 0000000..8c6051f
--- /dev/null
+++ b/modules/plugins/perftest/src/main/resources/configurable-7.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+
+<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xmlns="urn:xmlns:jboss.org:rhq-perftest">
+
+   <!--
+        Sets up "omega servers" that have three kinds of child services, "alpha", "beta" and "gamma".
+        
+        This is currently for simple services, not all of the service featured are exposed, only numeric metrics.
+
+        Example:
+
+        -Drhq.perftest.scenario=configurable-7
+        -Drhq.perftest.server-omega-count=10
+        -Drhq.perftest.service-alpha-count=25
+        -Drhq.perftest.service-beta-count=2
+        -Drhq.perftest.service-gamma-count=10        
+   -->
+
+   <resource type="server-omega">
+      <simpleResourceGenerator property="rhq.perftest.server-omega-count"/>
+      <simpleNumericMeasurementGenerator/>
+   </resource>
+
+   <resource type="service-alpha">
+      <simpleResourceGenerator property="rhq.perftest.service-alpha-count"/>
+      <simpleNumericMeasurementGenerator/>
+   </resource>
+
+   <resource type="service-beta">
+      <simpleResourceGenerator property="rhq.perftest.service-beta-count"/>
+      <simpleNumericMeasurementGenerator/>
+   </resource>
+
+   <resource type="service-gamma">
+      <simpleResourceGenerator property="rhq.perftest.service-gamma-count"/>
+      <simpleNumericMeasurementGenerator/>
+   </resource>
+
+</scenario>




More information about the rhq-commits mailing list