# IGNITE-102: Added configs.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/c9aadf07 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/c9aadf07 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/c9aadf07 Branch: refs/heads/ingite-9655-merge Commit: c9aadf0778d818b00fe20d549dc81f7082d79652 Parents: 99e3fa6 Author: AKuznetsov <akuznet...@gridgain.com> Authored: Wed Jan 28 13:05:49 2015 +0700 Committer: AKuznetsov <akuznet...@gridgain.com> Committed: Wed Jan 28 13:05:49 2015 +0700 ---------------------------------------------------------------------- .../config/benchmark-atomic-win.properties | 42 +++++++ .../config/benchmark-atomic.properties | 48 ++++++++ .../config/benchmark-compute-win.properties | 45 +++++++ .../config/benchmark-compute.properties | 51 ++++++++ .../config/benchmark-query-win.properties | 43 +++++++ .../yardstick/config/benchmark-query.properties | 49 ++++++++ .../config/benchmark-tx-win.properties | 42 +++++++ .../yardstick/config/benchmark-tx.properties | 48 ++++++++ .../yardstick/config/benchmark-win.properties | 50 ++++++++ modules/yardstick/config/benchmark.properties | 61 ++++++++++ modules/yardstick/config/ignite-base-config.xml | 118 +++++++++++++++++++ .../config/ignite-localhost-config.xml | 55 +++++++++ .../config/ignite-multicast-config.xml | 38 ++++++ .../yardstick/cache/GetBenchmarkIgnite.java | 41 ------- .../yardstick/cache/IgniteGetBenchmark.java | 41 +++++++ 15 files changed, 731 insertions(+), 41 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-atomic-win.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-atomic-win.properties b/modules/yardstick/config/benchmark-atomic-win.properties new file mode 100644 index 0000000..97132f0 --- /dev/null +++ b/modules/yardstick/config/benchmark-atomic-win.properties @@ -0,0 +1,42 @@ +:: +:: Contains benchmarks for ATOMIC cache. +:: + +:: JVM options. +set JVM_OPTS=%JVM_OPTS% -DGRIDGAIN_QUIET=false + +:: Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +:: set JVM_OPTS=%JVM_OPTS%^ +:: -XX:+UseParNewGC^ +:: -XX:+UseConcMarkSweepGC^ +:: -XX:+UseTLAB^ +:: -XX:NewSize=128m^ +:: -XX:MaxNewSize=128m^ +:: -XX:MaxTenuringThreshold=0^ +:: -XX:SurvivorRatio=1024^ +:: -XX:+UseCMSInitiatingOccupancyOnly^ +:: -XX:CMSInitiatingOccupancyFraction=60 + +:: List of default probes. +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +:: Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +:: Probe point writer class name. +:: BENCHMARK_WRITER= + +:: Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +set SERVER_HOSTS=localhost,localhost + +:: Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +set DRIVER_HOSTS=localhost + +:: Remote username. +:: set REMOTE_USER= + +:: 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). +set CONFIGS=^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutBenchmark -sn IgniteNode -ds atomic-put-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetBenchmark -sn IgniteNode -ds atomic-put-get-1-backup http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-atomic.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-atomic.properties b/modules/yardstick/config/benchmark-atomic.properties new file mode 100644 index 0000000..d10259d --- /dev/null +++ b/modules/yardstick/config/benchmark-atomic.properties @@ -0,0 +1,48 @@ +# +# Contains benchmarks for ATOMIC cache. +# + +# JVM options. +JVM_OPTS=${JVM_OPTS}" -DGRIDGAIN_QUIET=false" + +# Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +# JVM_OPTS=${JVM_OPTS}" \ +# -XX:+UseParNewGC \ +# -XX:+UseConcMarkSweepGC \ +# -XX:+UseTLAB \ +# -XX:NewSize=128m \ +# -XX:MaxNewSize=128m \ +# -XX:MaxTenuringThreshold=0 \ +# -XX:SurvivorRatio=1024 \ +# -XX:+UseCMSInitiatingOccupancyOnly \ +# -XX:CMSInitiatingOccupancyFraction=60 \ +#" + +# List of default probes. +# Add DStatProbe or VmStatProbe if your OS supports it (e.g. if running on Linux). +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +# Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +# Probe point writer class name. +# BENCHMARK_WRITER= + +# Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +SERVER_HOSTS=localhost,localhost + +# Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +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. +# Note that each benchmark is set to run for 300 seconds (5 mins) with warm-up set to 60 seconds (1 minute). +CONFIGS="\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutBenchmark -sn IgniteNode -ds atomic-put-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetBenchmark -sn IgniteNode -ds atomic-put-get-1-backup\ +" http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-compute-win.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-compute-win.properties b/modules/yardstick/config/benchmark-compute-win.properties new file mode 100644 index 0000000..06c7f6a --- /dev/null +++ b/modules/yardstick/config/benchmark-compute-win.properties @@ -0,0 +1,45 @@ +:: +:: Contains benchmarks for distributed computations. +:: + +:: JVM options. +set JVM_OPTS=%JVM_OPTS% -DGRIDGAIN_QUIET=false + +:: Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +:: set JVM_OPTS=%JVM_OPTS%^ +:: -XX:+UseParNewGC^ +:: -XX:+UseConcMarkSweepGC^ +:: -XX:+UseTLAB^ +:: -XX:NewSize=128m^ +:: -XX:MaxNewSize=128m^ +:: -XX:MaxTenuringThreshold=0^ +:: -XX:SurvivorRatio=1024^ +:: -XX:+UseCMSInitiatingOccupancyOnly^ +:: -XX:CMSInitiatingOccupancyFraction=60 + +:: List of default probes. +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +:: Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +:: Probe point writer class name. +:: BENCHMARK_WRITER= + +:: Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +set SERVER_HOSTS=localhost,localhost + +:: Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +set DRIVER_HOSTS=localhost + +:: Remote username. +:: set REMOTE_USER= + +:: 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). +set CONFIGS=^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 1 -d 30 -t 1 -sm PRIMARY_SYNC -j 10 -dn IgniteAffinityCallBenchmark -sn IgniteNode -ds affcall-compute-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 1 -d 30 -t 1 -sm PRIMARY_SYNC -j 10 -dn IgniteApplyBenchmark -sn IgniteNode -ds apply-compute-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 1 -d 30 -t 1 -sm PRIMARY_SYNC -j 10 -dn IgniteBroadcastBenchmark -sn IgniteNode -ds broad-compute-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 1 -d 30 -t 1 -sm PRIMARY_SYNC -j 10 -dn IgniteExecuteBenchmark -sn IgniteNode -ds exec-compute-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 1 -d 30 -t 1 -sm PRIMARY_SYNC -j 10 -dn IgniteRunBenchmark -sn IgniteNode -ds run-compute-1-backup http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-compute.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-compute.properties b/modules/yardstick/config/benchmark-compute.properties new file mode 100644 index 0000000..d90a954 --- /dev/null +++ b/modules/yardstick/config/benchmark-compute.properties @@ -0,0 +1,51 @@ +# +# Contains benchmarks for distributed computations. +# + +# JVM options. +JVM_OPTS=${JVM_OPTS}" -DGRIDGAIN_QUIET=false" + +# Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +# JVM_OPTS=${JVM_OPTS}" \ +# -XX:+UseParNewGC \ +# -XX:+UseConcMarkSweepGC \ +# -XX:+UseTLAB \ +# -XX:NewSize=128m \ +# -XX:MaxNewSize=128m \ +# -XX:MaxTenuringThreshold=0 \ +# -XX:SurvivorRatio=1024 \ +# -XX:+UseCMSInitiatingOccupancyOnly \ +# -XX:CMSInitiatingOccupancyFraction=60 \ +#" + +# List of default probes. +# Add DStatProbe or VmStatProbe if your OS supports it (e.g. if running on Linux). +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +# Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +# Probe point writer class name. +# BENCHMARK_WRITER= + +# Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +SERVER_HOSTS=localhost,localhost + +# Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +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. +# Note that each benchmark is set to run for 300 seconds (5 mins) with warm-up set to 60 seconds (1 minute). +CONFIGS="\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteAffinityCallBenchmark -sn IgniteNode -ds affcall-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteApplyBenchmark -sn IgniteNode -ds apply-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteBroadcastBenchmark -sn IgniteNode -ds broad-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteExecuteBenchmark -sn IgniteNode -ds exec-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteRunBenchmark -sn IgniteNode -ds run-compute-1-backup\ +" http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-query-win.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-query-win.properties b/modules/yardstick/config/benchmark-query-win.properties new file mode 100644 index 0000000..377bac0 --- /dev/null +++ b/modules/yardstick/config/benchmark-query-win.properties @@ -0,0 +1,43 @@ +:: +:: Contains benchmarks for SQL queries. +:: + +:: JVM options. +:: set JVM_OPTS=%JVM_OPTS% -DGRIDGAIN_QUIET=false + +:: Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +set JVM_OPTS=%JVM_OPTS%^ + -XX:+UseParNewGC^ + -XX:+UseConcMarkSweepGC^ + -XX:+UseTLAB^ + -XX:NewSize=128m^ + -XX:MaxNewSize=128m^ + -XX:MaxTenuringThreshold=0^ + -XX:SurvivorRatio=1024^ + -XX:+UseCMSInitiatingOccupancyOnly^ + -XX:CMSInitiatingOccupancyFraction=60 + +:: List of default probes. +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +:: Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +:: Probe point writer class name. +:: BENCHMARK_WRITER= + +:: Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +set SERVER_HOSTS=localhost,localhost + +:: Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +set DRIVER_HOSTS=localhost + +:: Remote username. +:: set REMOTE_USER= + +:: 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). +set CONFIGS=^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryBenchmark -sn IgniteNode -ds sql-query-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryJoinBenchmark -sn IgniteNode -ds sql-query-join-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryPutBenchmark -sn IgniteNode -ds sql-query-put-1-backup http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-query.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-query.properties b/modules/yardstick/config/benchmark-query.properties new file mode 100644 index 0000000..b467e0b --- /dev/null +++ b/modules/yardstick/config/benchmark-query.properties @@ -0,0 +1,49 @@ +# +# Contains benchmarks for SQL queries. +# + +# JVM options. +# JVM_OPTS=${JVM_OPTS}" -DGRIDGAIN_QUIET=false" + +# Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +JVM_OPTS=${JVM_OPTS}" -DGRIDGAIN_QUIET=false" \ + -XX:+UseParNewGC \ + -XX:+UseConcMarkSweepGC \ + -XX:+UseTLAB \ + -XX:NewSize=128m \ + -XX:MaxNewSize=128m \ + -XX:MaxTenuringThreshold=0 \ + -XX:SurvivorRatio=1024 \ + -XX:+UseCMSInitiatingOccupancyOnly \ + -XX:CMSInitiatingOccupancyFraction=60 \ +" + +# List of default probes. +# Add DStatProbe or VmStatProbe if your OS supports it (e.g. if running on Linux). +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +# Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +# Probe point writer class name. +# BENCHMARK_WRITER= + +# Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +SERVER_HOSTS=localhost,localhost + +# Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +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. +# Note that each benchmark is set to run for 300 seconds (5 mins) with warm-up set to 60 seconds (1 minute). +CONFIGS="\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryBenchmark -sn IgniteNode -ds sql-query-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryJoinBenchmark -sn IgniteNode -ds sql-query-join-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryPutBenchmark -sn IgniteNode -ds sql-query-put-1-backup\ +" http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-tx-win.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-tx-win.properties b/modules/yardstick/config/benchmark-tx-win.properties new file mode 100644 index 0000000..7e098a5 --- /dev/null +++ b/modules/yardstick/config/benchmark-tx-win.properties @@ -0,0 +1,42 @@ +:: +:: Contains benchmarks for TRANSACTIONAL cache. +:: + +:: JVM options. +set JVM_OPTS=%JVM_OPTS% -DGRIDGAIN_QUIET=false + +:: Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +:: set JVM_OPTS=%JVM_OPTS%^ +:: -XX:+UseParNewGC^ +:: -XX:+UseConcMarkSweepGC^ +:: -XX:+UseTLAB^ +:: -XX:NewSize=128m^ +:: -XX:MaxNewSize=128m^ +:: -XX:MaxTenuringThreshold=0^ +:: -XX:SurvivorRatio=1024^ +:: -XX:+UseCMSInitiatingOccupancyOnly^ +:: -XX:CMSInitiatingOccupancyFraction=60 + +:: List of default probes. +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +:: Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +:: Probe point writer class name. +:: BENCHMARK_WRITER= + +:: Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +set SERVER_HOSTS=localhost,localhost + +:: Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +set DRIVER_HOSTS=localhost + +:: Remote username. +:: set REMOTE_USER= + +:: 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). +set CONFIGS=^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutTxBenchmark -sn IgniteNode -ds tx-put-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetTxBenchmark -sn IgniteNode -ds tx-put-get-1-backup http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-tx.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-tx.properties b/modules/yardstick/config/benchmark-tx.properties new file mode 100644 index 0000000..83be491 --- /dev/null +++ b/modules/yardstick/config/benchmark-tx.properties @@ -0,0 +1,48 @@ +# +# Contains benchmarks for TRANSACTIONAL cache. +# + +# JVM options. +JVM_OPTS=${JVM_OPTS}" -DGRIDGAIN_QUIET=false" + +# Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +# JVM_OPTS=${JVM_OPTS}" \ +# -XX:+UseParNewGC \ +# -XX:+UseConcMarkSweepGC \ +# -XX:+UseTLAB \ +# -XX:NewSize=128m \ +# -XX:MaxNewSize=128m \ +# -XX:MaxTenuringThreshold=0 \ +# -XX:SurvivorRatio=1024 \ +# -XX:+UseCMSInitiatingOccupancyOnly \ +# -XX:CMSInitiatingOccupancyFraction=60 \ +#" + +# List of default probes, comma separated. +# Add DStatProbe or VmStatProbe if your OS supports it (e.g. if running on Linux). +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +# Packages where the specified benchmark is searched by reflection mechanism, comma separated. +BENCHMARK_PACKAGES=org.yardstickframework + +# Probe point writer class name. +# BENCHMARK_WRITER= + +# Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +SERVER_HOSTS=localhost,localhost + +# Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +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. +# Note that each benchmark is set to run for 300 seconds (5 mins) with warm-up set to 60 seconds (1 minute). +CONFIGS="\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutTxBenchmark -sn IgniteNode -ds tx-put-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetTxBenchmark -sn IgniteNode -ds tx-put-get-1-backup\ +" http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark-win.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark-win.properties b/modules/yardstick/config/benchmark-win.properties new file mode 100644 index 0000000..ba77c84 --- /dev/null +++ b/modules/yardstick/config/benchmark-win.properties @@ -0,0 +1,50 @@ +:: +:: Contains all benchmarks for: +:: - ATOMIC cache +:: - TRANSACTIONAL cache +:: - SQL queries +:: + +:: JVM options. +set JVM_OPTS=%JVM_OPTS% -DGRIDGAIN_QUIET=false + +:: Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +:: set JVM_OPTS=%JVM_OPTS%^ +:: -XX:+UseParNewGC^ +:: -XX:+UseConcMarkSweepGC^ +:: -XX:+UseTLAB^ +:: -XX:NewSize=128m^ +:: -XX:MaxNewSize=128m^ +:: -XX:MaxTenuringThreshold=0^ +:: -XX:SurvivorRatio=1024^ +:: -XX:+UseCMSInitiatingOccupancyOnly^ +:: -XX:CMSInitiatingOccupancyFraction=60 + +:: List of default probes. +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +:: Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +:: Probe point writer class name. +:: BENCHMARK_WRITER= + +:: Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +set SERVER_HOSTS=localhost,localhost + +:: Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +set DRIVER_HOSTS=localhost + +:: Remote username. +:: set REMOTE_USER= + +:: 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). +set CONFIGS=^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutBenchmark -sn IgniteNode -ds atomic-put-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetBenchmark -sn IgniteNode -ds atomic-put-get-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutTxBenchmark -sn IgniteNode -ds tx-put-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetTxBenchmark -sn IgniteNode -ds tx-put-get-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryBenchmark -sn IgniteNode -ds sql-query-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryJoinBenchmark -sn IgniteNode -ds sql-query-join-1-backup,^ +-ggcfg %SCRIPT_DIR%\..\config\ignite-localhost-config.xml -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryPutBenchmark -sn IgniteNode -ds sql-query-put-1-backup http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/benchmark.properties ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/benchmark.properties b/modules/yardstick/config/benchmark.properties new file mode 100644 index 0000000..bbe9ff0 --- /dev/null +++ b/modules/yardstick/config/benchmark.properties @@ -0,0 +1,61 @@ +# +# Contains all benchmarks for: +# - ATOMIC cache +# - TRANSACTIONAL cache +# - SQL queries +# + +# JVM options. +JVM_OPTS=${JVM_OPTS}" -DGRIDGAIN_QUIET=false" + +# Uncomment to enable concurrent garbage collection (GC) if you encounter long GC pauses. +# JVM_OPTS=${JVM_OPTS}" \ +# -XX:+UseParNewGC \ +# -XX:+UseConcMarkSweepGC \ +# -XX:+UseTLAB \ +# -XX:NewSize=128m \ +# -XX:MaxNewSize=128m \ +# -XX:MaxTenuringThreshold=0 \ +# -XX:SurvivorRatio=1024 \ +# -XX:+UseCMSInitiatingOccupancyOnly \ +# -XX:CMSInitiatingOccupancyFraction=60 \ +#" + +# List of default probes. +# Add DStatProbe or VmStatProbe if your OS supports it (e.g. if running on Linux). +BENCHMARK_DEFAULT_PROBES=ThroughputLatencyProbe,PercentileProbe + +# Packages where the specified benchmark is searched by reflection mechanism. +BENCHMARK_PACKAGES=org.yardstickframework + +# Probe point writer class name. +# BENCHMARK_WRITER= + +# Comma-separated list of the hosts to run BenchmarkServers on. 2 nodes on local host are enabled by default. +SERVER_HOSTS=localhost,localhost + +# Comma-separated list of the hosts to run BenchmarkDrivers on. 1 node on local host is enabled by default. +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="\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutBenchmark -sn IgniteNode -ds atomic-put-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetBenchmark -sn IgniteNode -ds atomic-put-get-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutTxBenchmark -sn IgniteNode -ds tx-put-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgnitePutGetTxBenchmark -sn IgniteNode -ds tx-put-get-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryBenchmark -sn IgniteNode -ds sql-query-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryJoinBenchmark -sn IgniteNode -ds sql-query-join-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -dn IgniteSqlQueryPutBenchmark -sn IgniteNode -ds sql-query-put-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteAffinityCallBenchmark -sn IgniteNode -ds affcall-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteApplyBenchmark -sn IgniteNode -ds apply-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteBroadcastBenchmark -sn IgniteNode -ds broad-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteExecuteBenchmark -sn IgniteNode -ds exec-compute-1-backup,\ +-ggcfg ${SCRIPT_DIR}/../config/ignite-localhost-config.xml -nn ${nodesNum} -b 1 -w 60 -d 300 -t 64 -sm PRIMARY_SYNC -j 10 -dn IgniteRunBenchmark -sn IgniteNode -ds run-compute-1-backup\ +" http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/ignite-base-config.xml ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/ignite-base-config.xml b/modules/yardstick/config/ignite-base-config.xml new file mode 100644 index 0000000..69fe9b1 --- /dev/null +++ b/modules/yardstick/config/ignite-base-config.xml @@ -0,0 +1,118 @@ +<?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"> + <bean id="base-grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" abstract="true"> + <property name="peerClassLoadingEnabled" value="false"/> + + <!--property name="marshaller"> + <bean class="org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller"> + <property name="requireSerializable" value="true"/> + <property name="classNames"> + <list> + <value>org.yardstickframework.gridgain.cache.model.SampleValue</value> + <value>org.yardstickframework.gridgain.cache.model.Person</value> + <value>org.yardstickframework.gridgain.cache.model.Organization</value> + <value>org.yardstickframework.gridgain.compute.model.NoopTask$NoopJob</value> + <value>org.yardstickframework.gridgain.compute.model.NoopCallable</value> + <value>org.yardstickframework.gridgain.compute.GridGainRunBenchmark$NoopRunnable</value> + <value>org.yardstickframework.gridgain.compute.GridGainApplyBenchmark$NoopClosure</value> + </list> + </property> + </bean> + </property--> + + <property name="cacheConfiguration"> + <list> + <bean class="org.gridgain.grid.cache.GridCacheConfiguration"> + <property name="name" value="atomic"/> + + <property name="cacheMode" value="PARTITIONED"/> + + <property name="atomicityMode" value="ATOMIC"/> + + <property name="swapEnabled" value="false"/> + + <property name="queryIndexEnabled" value="false"/> + </bean> + + <bean class="org.gridgain.grid.cache.GridCacheConfiguration"> + <property name="name" value="tx"/> + + <property name="cacheMode" value="PARTITIONED"/> + + <property name="atomicityMode" value="TRANSACTIONAL"/> + + <property name="swapEnabled" value="false"/> + + <property name="queryIndexEnabled" value="false"/> + </bean> + + <bean class="org.gridgain.grid.cache.GridCacheConfiguration"> + <property name="name" value="query"/> + + <property name="cacheMode" value="PARTITIONED"/> + + <property name="atomicityMode" value="ATOMIC"/> + + <property name="swapEnabled" value="false"/> + + <!-- Enable query indexing for query cache. --> + <property name="queryIndexEnabled" value="true"/> + </bean> + + <bean class="org.gridgain.grid.cache.GridCacheConfiguration"> + <property name="name" value="compute"/> + + <property name="cacheMode" value="PARTITIONED"/> + + <property name="atomicityMode" value="TRANSACTIONAL"/> + + <property name="swapEnabled" value="false"/> + + <property name="queryIndexEnabled" value="false"/> + </bean> + </list> + </property> + + <property name="restEnabled" value="false"/> + + <property name="includeEventTypes"> + <list/> + </property> + + <property name="loadBalancingSpi"> + <bean class="org.apache.ignite.spi.loadbalancing.roundrobin.RoundRobinLoadBalancingSpi"> + <property name="perTask" value="false"/> + </bean> + </property> + + <property name="communicationSpi"> + <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> + <property name="sharedMemoryPort" value="-1"/> + </bean> + </property> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/ignite-localhost-config.xml ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/ignite-localhost-config.xml b/modules/yardstick/config/ignite-localhost-config.xml new file mode 100644 index 0000000..7a51bb0 --- /dev/null +++ b/modules/yardstick/config/ignite-localhost-config.xml @@ -0,0 +1,55 @@ +<?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="gridgain-base-config.xml"/> + + <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" parent="base-grid.cfg"> + <property name="localHost" value="127.0.0.1"/> + + <property name="discoverySpi"> + <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> + <property name="ipFinder"> + <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> + <property name="addresses"> + <list> + <value>127.0.0.1:47500</value> + <value>127.0.0.1:47501</value> + <value>127.0.0.1:47502</value> + <value>127.0.0.1:47503</value> + <value>127.0.0.1:47504</value> + <value>127.0.0.1:47505</value> + <value>127.0.0.1:47506</value> + <value>127.0.0.1:47507</value> + <value>127.0.0.1:47508</value> + <value>127.0.0.1:47509</value> + </list> + </property> + </bean> + </property> + </bean> + </property> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/config/ignite-multicast-config.xml ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/ignite-multicast-config.xml b/modules/yardstick/config/ignite-multicast-config.xml new file mode 100644 index 0000000..a81b0d5 --- /dev/null +++ b/modules/yardstick/config/ignite-multicast-config.xml @@ -0,0 +1,38 @@ +<?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="gridgain-base-config.xml"/> + + <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" parent="base-grid.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.multicast.TcpDiscoveryMulticastIpFinder"/> + </property> + </bean> + </property> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/GetBenchmarkIgnite.java ---------------------------------------------------------------------- diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/GetBenchmarkIgnite.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/GetBenchmarkIgnite.java deleted file mode 100644 index bbbf4d6..0000000 --- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/GetBenchmarkIgnite.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -package org.apache.ignite.yardstick.cache; - -import org.apache.ignite.*; - -import java.util.*; - -/** - * GridGain benchmark that performs get operations. - */ -public class GetBenchmarkIgnite extends IgniteCacheAbstractBenchmark { - /** {@inheritDoc} */ - @Override public boolean test(Map<Object, Object> ctx) throws Exception { - int key = nextRandom(args.range()); - - cache.get(key); - - return true; - } - - /** {@inheritDoc} */ - @Override protected IgniteCache<Integer, Object> cache() { - return grid().jcache("atomic"); - } -} http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c9aadf07/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteGetBenchmark.java ---------------------------------------------------------------------- diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteGetBenchmark.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteGetBenchmark.java new file mode 100644 index 0000000..30a8eb5 --- /dev/null +++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteGetBenchmark.java @@ -0,0 +1,41 @@ +/* + * 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. + */ + +package org.apache.ignite.yardstick.cache; + +import org.apache.ignite.*; + +import java.util.*; + +/** + * GridGain benchmark that performs get operations. + */ +public class IgniteGetBenchmark extends IgniteCacheAbstractBenchmark { + /** {@inheritDoc} */ + @Override public boolean test(Map<Object, Object> ctx) throws Exception { + int key = nextRandom(args.range()); + + cache.get(key); + + return true; + } + + /** {@inheritDoc} */ + @Override protected IgniteCache<Integer, Object> cache() { + return grid().jcache("atomic"); + } +}