ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #IGNITE-497 Added configuration for EC2.
Date Wed, 25 Mar 2015 12:23:14 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-497 966c9b93f -> 5ec1ca186


#IGNITE-497 Added configuration for EC2.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/5ec1ca18
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5ec1ca18
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5ec1ca18

Branch: refs/heads/ignite-497
Commit: 5ec1ca186c6d17d16e8df6b656d1b802c0f35235
Parents: 966c9b9
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Wed Mar 25 15:23:05 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Wed Mar 25 15:23:05 2015 +0300

----------------------------------------------------------------------
 .../yardstick/config/benchmark-ec2.properties   | 69 ++++++++++++++++++++
 modules/yardstick/config/ignite-es2-config.xml  | 50 ++++++++++++++
 2 files changed, 119 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5ec1ca18/modules/yardstick/config/benchmark-ec2.properties
----------------------------------------------------------------------
diff --git a/modules/yardstick/config/benchmark-ec2.properties b/modules/yardstick/config/benchmark-ec2.properties
new file mode 100644
index 0000000..239e554
--- /dev/null
+++ b/modules/yardstick/config/benchmark-ec2.properties
@@ -0,0 +1,69 @@
+# 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.
+
+#
+# Contains benchmarks for running docker container.
+#
+
+# JVM options.
+JVM_OPTS=${JVM_OPTS}" -DIGNITE_QUIET=false"
+
+# Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses.
+JVM_OPTS=${JVM_OPTS}" \
+  -Xloggc:./gc.log \
+  -XX:+PrintGCDetails \
+  -verbose:gc \
+  -XX:+UseParNewGC \
+  -XX:+UseConcMarkSweepGC \
+  -XX:+UseTLAB \
+  -XX:NewSize=128m \
+  -XX:MaxNewSize=128m \
+  -XX:MaxTenuringThreshold=0 \
+  -XX:SurvivorRatio=1024 \
+  -XX:+UseCMSInitiatingOccupancyOnly \
+  -XX:CMSInitiatingOccupancyFraction=60 \
+"
+
+#Ignite version
+ver="Ignite-"
+
+# List of default probes.
+BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe
+
+# Packages where the specified benchmark is searched by reflection mechanism.
+BENCHMARK_PACKAGES=org.yardstickframework,org.apache.ignite.yardstick
+
+# Comma-separated list of the hosts to run BenchmarkServers on.
+SERVER_HOSTS=localhost
+
+# Comma-separated list of the hosts to run BenchmarkDrivers on.
+DRIVER_HOSTS=localhost
+
+# Remote username.
+# REMOTE_USER=
+
+# Number of nodes, used to wait for the specified number of nodes to start.
+nodesNum=$((`echo ${SERVER_HOSTS} | tr ',' '\n' | wc -l` + `echo ${DRIVER_HOSTS} | tr ','
'\n' | wc -l`))
+
+# Run configuration which contains all benchmarks.
+# Note that each benchmark is set to run for 300 seconds (5 mins) with warm-up set to 60
seconds (1 minute).
+CONFIGS="\
+-cfg ${SCRIPT_DIR}/../config/ignite-es2-config.xml -nn ${nodesNum} -b 1 -w 10 -d 20 -t 64
-sm PRIMARY_SYNC -dn IgnitePutBenchmark -cn atomic -sn IgniteNode -ds ${ver}atomic-put-1-backup,\
+-cfg ${SCRIPT_DIR}/../config/ignite-es2-config.xml -nn ${nodesNum} -b 1 -w 10 -d 20 -t 64
-sm PRIMARY_SYNC -dn IgnitePutGetBenchmark -cn atomic -sn IgniteNode -ds ${ver}atomic-put-get-1-backup,\
+-cfg ${SCRIPT_DIR}/../config/ignite-es2-config.xml -nn ${nodesNum} -b 1 -w 10 -d 20 -t 64
-sm PRIMARY_SYNC -dn IgnitePutTxBenchmark -cn tx -sn IgniteNode -ds ${ver}tx-put-1-backup,\
+-cfg ${SCRIPT_DIR}/../config/ignite-es2-config.xml -nn ${nodesNum} -b 1 -w 10 -d 20 -t 64
-sm PRIMARY_SYNC -dn IgnitePutGetTxBenchmark -cn tx -sn IgniteNode -ds ${ver}tx-put-get-1-backup,\
+-cfg ${SCRIPT_DIR}/../config/ignite-es2-config.xml -nn ${nodesNum} -b 1 -w 10 -d 20 -t 64
-sm PRIMARY_SYNC -dn IgniteSqlQueryBenchmark -cn query -sn IgniteNode -ds ${ver}sql-query-1-backup,\
+-cfg ${SCRIPT_DIR}/../config/ignite-es2-config.xml -nn ${nodesNum} -b 1 -w 10 -d 20 -t 64
-sm PRIMARY_SYNC -dn IgniteSqlQueryPutBenchmark -cn query -sn IgniteNode -ds ${ver}sql-query-put-1-backup\
+"

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5ec1ca18/modules/yardstick/config/ignite-es2-config.xml
----------------------------------------------------------------------
diff --git a/modules/yardstick/config/ignite-es2-config.xml b/modules/yardstick/config/ignite-es2-config.xml
new file mode 100644
index 0000000..45dbd9d
--- /dev/null
+++ b/modules/yardstick/config/ignite-es2-config.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<!--
+    Ignite Spring configuration file to startup grid.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="
+        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    <import resource="ignite-base-config.xml"/>
+
+    <bean id="propertyPlaceholder" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+        <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
+    </bean>
+
+    <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" parent="base-ignite.cfg">
+        <property name="discoverySpi">
+            <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
+                <property name="ipFinder">
+                    <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.s3.TcpDiscoveryS3IpFinder">
+                        <property name="bucketName" value="ignite-benchmark"/>
+                        <property name="awsCredentials">
+                            <bean class="com.amazonaws.auth.BasicAWSCredentials">
+                                <constructor-arg value="${amazon.access.key}"/>
+                                <constructor-arg value="${amazon.secret.key}"/>
+                            </bean>
+                        </property>
+                    </bean>
+                </property>
+            </bean>
+        </property>
+    </bean>
+</beans>


Mime
View raw message