You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/07/16 01:42:02 UTC

[servicecomb-pack] branch master updated (551e9da -> 4d051a7)

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git.


    from 551e9da  SCB-1372 Benchmarking tool increases the warm-Up parameter
     new f36de77  SCB-1379 Add alpha benchmark tool documents
     new 4d051a7  SCB-1379 Update benchmark report

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 alpha/alpha-benchmark/README.md | 87 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
 create mode 100644 alpha/alpha-benchmark/README.md


[servicecomb-pack] 01/02: SCB-1379 Add alpha benchmark tool documents

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git

commit f36de774fbf74c96645595441da2929c42390bc1
Author: Lei Zhang <co...@gmail.com>
AuthorDate: Mon Jul 15 15:52:40 2019 +0800

    SCB-1379 Add alpha benchmark tool documents
---
 alpha/alpha-benchmark/README.md | 88 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)

diff --git a/alpha/alpha-benchmark/README.md b/alpha/alpha-benchmark/README.md
new file mode 100644
index 0000000..d11e4ac
--- /dev/null
+++ b/alpha/alpha-benchmark/README.md
@@ -0,0 +1,88 @@
+# Alpha Benchmark tool
+
+The Alpha Benchmark Project is a Stress test tool, Test Alpha speed by simulating sending Omega events. This simulator sends a set of global transactions with three sub-transactions
+
+```prop
+SagaStartedEvent
+TxStartedEvent
+TxEndedEvent
+TxStartedEvent
+TxEndedEvent
+TxStartedEvent
+TxEndedEvent
+SagaEndedEvent
+```
+
+## Basic Usage
+
+```bash
+java -jar alpha-benchmark-0.5.0-SNAPSHOT-exec.jar --alpha.cluster.address=0.0.0.0:8080 --w=50 --n=50000 --c=200
+```
+
+Output:
+
+```bash
+2019-07-15 15:30:53.754  INFO 53871 --- [           main] o.a.s.p.omega.spring.OmegaSpringConfig   : alpha.feature.akka.enabled=false
+2019-07-15 15:30:53.819  INFO 53871 --- [           main] o.a.s.p.omega.spring.OmegaSpringConfig   : Discovery alpha cluster address 0.0.0.0:8080 from DEFAULT
+Benchmarking ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
+
+Concurrency Level         150
+Time taken for tests      50 seconds
+Complete requests         50000
+Failed requests           0
+Requests per second       1123 [#/sec]
+Time per request          150 [ms]
+
+Percentage of the requests served within a certain time (ms)
+50%   163.27
+60%   161.19
+70%   156.95
+80%   153.10
+90%   150.92
+100%  150.17
+2019-07-15 15:31:44.654  INFO 53871 --- [           main] o.a.s.p.a.benchmark.SagaEventBenchmark   : OK
+```
+
+## Command Line Options
+
+```bash
+  --n requests        Number of requests to perform
+  --c concurrency     Number of multiple requests to make at a time
+  --w warm-up         Number of multiple warm-up to make at a time
+```
+
+## Benchmarking Tips
+
+Tuning Java Virtual Machines
+
+```bash
+java \
+  -Xmx8g -Xms8g -Xmn4g \
+  -Xss256k \
+  -XX:PermSize=128m -XX:MaxPermSize=512m \
+  -XX:+UseConcMarkSweepGC \
+  -XX:+UseParNewGC \
+  -XX:MaxTenuringThreshold=15 \
+  -XX:+ExplicitGCInvokesConcurrent \
+  -XX:+CMSParallelRemarkEnabled \
+  -XX:SurvivorRatio=8 \
+  -XX:+UseCompressedOops \
+  -Dcom.sun.management.jmxremote \
+  -Dcom.sun.management.jmxremote.port=9090 \
+  -Dcom.sun.management.jmxremote.ssl=false \
+  -Dcom.sun.management.jmxremote.authenticate=false \
+  -jar alpha-server-0.5.0-SNAPSHOT-exec.jar \
+  --spring.datasource.username=saga-user \
+  --spring.datasource.password=saga-password \
+  --spring.datasource.url="jdbc:postgresql://0.0.09.0:5432/saga?useSSL=false" \
+  --spring.profile.active=prd \
+  --alpha.feature.akka.enabled=true
+```
+
+Optimizing System Performance
+
+```bash
+ulimit -u unlimited
+ulimit -n 90000
+```
+


[servicecomb-pack] 02/02: SCB-1379 Update benchmark report

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git

commit 4d051a7ed1f2baf311797718286dbc825c5d9c45
Author: Lei Zhang <co...@gmail.com>
AuthorDate: Mon Jul 15 16:17:28 2019 +0800

    SCB-1379 Update benchmark report
---
 alpha/alpha-benchmark/README.md | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

diff --git a/alpha/alpha-benchmark/README.md b/alpha/alpha-benchmark/README.md
index d11e4ac..32d01e7 100644
--- a/alpha/alpha-benchmark/README.md
+++ b/alpha/alpha-benchmark/README.md
@@ -16,31 +16,30 @@ SagaEndedEvent
 ## Basic Usage
 
 ```bash
-java -jar alpha-benchmark-0.5.0-SNAPSHOT-exec.jar --alpha.cluster.address=0.0.0.0:8080 --w=50 --n=50000 --c=200
+java -jar alpha-benchmark-0.5.0-SNAPSHOT-exec.jar --alpha.cluster.address=0.0.0.0:8080 --w=50 --n=200000 --c=500
 ```
 
 Output:
 
 ```bash
-2019-07-15 15:30:53.754  INFO 53871 --- [           main] o.a.s.p.omega.spring.OmegaSpringConfig   : alpha.feature.akka.enabled=false
-2019-07-15 15:30:53.819  INFO 53871 --- [           main] o.a.s.p.omega.spring.OmegaSpringConfig   : Discovery alpha cluster address 0.0.0.0:8080 from DEFAULT
-Benchmarking ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
+Benchmarking ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 
-Concurrency Level         150
-Time taken for tests      50 seconds
-Complete requests         50000
+Warm Up                   500
+Concurrency Level         500
+Time taken for tests      113 seconds
+Complete requests         200000
 Failed requests           0
-Requests per second       1123 [#/sec]
-Time per request          150 [ms]
+Requests per second       1769 [#/sec]
+Time per request          283 [ms]
 
 Percentage of the requests served within a certain time (ms)
-50%   163.27
-60%   161.19
-70%   156.95
-80%   153.10
-90%   150.92
-100%  150.17
-2019-07-15 15:31:44.654  INFO 53871 --- [           main] o.a.s.p.a.benchmark.SagaEventBenchmark   : OK
+50%   274.33
+60%   276.00
+70%   278.29
+80%   280.14
+90%   280.17
+100%  282.51
+2019-07-15 16:12:50.208  INFO 39338 --- [           main] o.a.s.p.a.benchmark.SagaEventBenchmark   : OK
 ```
 
 ## Command Line Options