From 241bd1fe5a37d1b3bafd6987bc85035d3819784d Mon Sep 17 00:00:00 2001 From: Ahoo Wang Date: Thu, 8 Jul 2021 21:06:05 +0800 Subject: [PATCH] update jmh report --- README.md | 57 ++--- README.zh-CN.md | 56 ++-- cosky-dashboard/package.json | 2 +- docs/jmh/jmh-cosky-config.json | 160 ++++++++++++ docs/jmh/jmh-cosky-discovery.json | 368 +++++++++++++++++++++++++++ k8s/deployment/cosky-mirror.yml | 2 +- k8s/deployment/cosky-rest-api.yml | 2 +- k8s/docker/cosky-mirror/Dockerfile | 6 +- k8s/docker/rest-api-local/Dockerfile | 6 +- k8s/docker/rest-api/Dockerfile | 6 +- settings.gradle.kts | 2 +- 11 files changed, 595 insertions(+), 72 deletions(-) create mode 100644 docs/jmh/jmh-cosky-config.json create mode 100644 docs/jmh/jmh-cosky-discovery.json diff --git a/README.md b/README.md index 4ed408e8..7b934a99 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,7 @@ > [中文文档](https://github.com/Ahoo-Wang/CoSky/blob/main/README.zh-CN.md) -*[CoSky](https://github.com/Ahoo-Wang/CoSky)* is a lightweight, low-cost service registration, service discovery, and configuration service SDK. By using -Redis in the existing infrastructure (I believe you have already deployed Redis), it doesn’t need to bring extra to the -operation and maintenance deployment. Cost and burden. With the high performance of Redis, *CoSky* -provides ultra-high TPS&QPS (100,000+/s [JMH Benchmark](#jmh-benchmark)). *CoSky* combines the process cache strategy + *Redis PubSub* to achieve real-time process cache refresh, with unparalleled QPS performance (70,000,000+/s [JMH Benchmark](#jmh-benchmark)) and real-time consistency +*[CoSky](https://github.com/Ahoo-Wang/CoSky)* is a lightweight, low-cost service registration, service discovery, and configuration service SDK. By using Redis in the existing infrastructure (I believe you have already deployed Redis), it doesn’t need to bring extra to the operation and maintenance deployment. Cost and burden. With the high performance of Redis, *CoSky* provides ultra-high TPS&QPS (100,000+/s [JMH Benchmark](#jmh-benchmark)). *CoSky* combines the process cache strategy + *Redis PubSub* to achieve real-time process cache refresh, with unparalleled QPS performance (70,000,000+/s [JMH Benchmark](#jmh-benchmark)) and real-time consistency between process cache and Redis. ### Service Discovery @@ -37,7 +34,7 @@ between process cache and Redis. > Kotlin DSL ``` kotlin - val coskyVersion = "1.1.11"; + val coskyVersion = "1.1.12"; implementation("me.ahoo.cosky:spring-cloud-starter-cosky-config:${coskyVersion}") implementation("me.ahoo.cosky:spring-cloud-starter-cosky-discovery:${coskyVersion}") implementation("org.springframework.cloud:spring-cloud-starter-loadbalancer:3.0.3") @@ -55,7 +52,7 @@ between process cache and Redis. 4.0.0 demo - 1.1.11 + 1.1.12 @@ -104,30 +101,30 @@ logging: #### Option 1:Download the executable file -> Download [cosky-rest-api-server](https://github.com/Ahoo-Wang/cosky/releases/download/1.1.11/cosky-rest-api-1.1.11.tar) +> Download [cosky-rest-api-server](https://github.com/Ahoo-Wang/cosky/releases/download/1.1.12/cosky-rest-api-1.1.12.tar) -> tar *cosky-rest-api-1.1.11.tar* +> tar *cosky-rest-api-1.1.12.tar* ```shell -cd cosky-rest-api-1.1.11 -# Working directory: cosky-rest-api-1.1.11 +cd cosky-rest-api-1.1.12 +# Working directory: cosky-rest-api-1.1.12 bin/cosky-rest-api --server.port=8080 --cosky.redis.uri=redis://localhost:6379 ``` #### Option 2:Run On Docker ```shell -docker pull ahoowang/cosky-rest-api:1.1.11 -docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.11 +docker pull ahoowang/cosky-rest-api:1.1.12 +docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.12 ``` ##### MacBook Pro (M1) -> Please use *ahoowang/cosky-rest-api:1.1.11-armv7* +> Please use *ahoowang/cosky-rest-api:1.1.12-armv7* ```shell -docker pull ahoowang/cosky-rest-api:1.1.11-armv7 -docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.11-armv7 +docker pull ahoowang/cosky-rest-api:1.1.12-armv7 +docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.12-armv7 ``` #### Option 3:Run On Kubernetes @@ -155,7 +152,7 @@ spec: value: standalone - name: COSKY_REDIS_URI value: redis://redis-uri:6379 - image: ahoowang/cosky-rest-api:1.1.11 + image: ahoowang/cosky-rest-api:1.1.12 name: cosky-rest-api ports: - containerPort: 8080 @@ -289,12 +286,12 @@ spec: ``` shell gradle cosky-config:jmh # or -java -jar cosky-config/build/libs/cosky-config-1.1.11-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 +java -jar cosky-config/build/libs/cosky-config-1.1.12-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 ``` ``` # JMH version: 1.29 -# VM version: JDK 11.1.111, OpenJDK 64-Bit Server VM, 11.1.111+9-LTS +# VM version: JDK 11.1.121, OpenJDK 64-Bit Server VM, 11.1.121+9-LTS # VM invoker: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java # VM options: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/ahoo/cosky/cosky-config/build/tmp/jmh -Duser.country=CN -Duser.language=zh -Duser.variant # Blackhole mode: full + dont-inline hint @@ -305,9 +302,9 @@ java -jar cosky-config/build/libs/cosky-config-1.1.11-jmh.jar -bm thrpt -t 25 -w # Benchmark mode: Throughput, ops/time Benchmark Mode Cnt Score Error Units -ConsistencyRedisConfigServiceBenchmark.getConfig thrpt 265321650.148 ops/s -RedisConfigServiceBenchmark.getConfig thrpt 106991.476 ops/s -RedisConfigServiceBenchmark.setConfig thrpt 103659.132 ops/s +ConsistencyRedisConfigServiceBenchmark.getConfig thrpt 256733987.827 ops/s +RedisConfigServiceBenchmark.getConfig thrpt 241787.679 ops/s +RedisConfigServiceBenchmark.setConfig thrpt 140461.112 ops/s ``` ### ServiceDiscovery @@ -315,12 +312,12 @@ RedisConfigServiceBenchmark.setConfig thrpt 103659.132 ``` shell gradle cosky-discovery:jmh # or -java -jar cosky-discovery/build/libs/cosky-discovery-1.1.11-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 +java -jar cosky-discovery/build/libs/cosky-discovery-1.1.12-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 ``` ``` # JMH version: 1.29 -# VM version: JDK 11.1.111, OpenJDK 64-Bit Server VM, 11.1.111+9-LTS +# VM version: JDK 11.1.121, OpenJDK 64-Bit Server VM, 11.1.121+9-LTS # VM invoker: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java # VM options: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/ahoo/cosky/cosky-discovery/build/tmp/jmh -Duser.country=CN -Duser.language=zh -Duser.variant # Blackhole mode: full + dont-inline hint @@ -331,11 +328,11 @@ java -jar cosky-discovery/build/libs/cosky-discovery-1.1.11-jmh.jar -bm thrpt -t # Benchmark mode: Throughput, ops/time Benchmark Mode Cnt Score Error Units -ConsistencyRedisServiceDiscoveryBenchmark.getInstances thrpt 76894658.867 ops/s -ConsistencyRedisServiceDiscoveryBenchmark.getServices thrpt 466036317.472 ops/s -RedisServiceDiscoveryBenchmark.getInstances thrpt 107778.244 ops/s -RedisServiceDiscoveryBenchmark.getServices thrpt 106920.412 ops/s -RedisServiceRegistryBenchmark.deregister thrpt 114094.513 ops/s -RedisServiceRegistryBenchmark.register thrpt 109085.694 ops/s -RedisServiceRegistryBenchmark.renew thrpt 127003.104 ops/s +ConsistencyRedisServiceDiscoveryBenchmark.getInstances thrpt 76621729.048 ops/s +ConsistencyRedisServiceDiscoveryBenchmark.getServices thrpt 455760632.346 ops/s +RedisServiceDiscoveryBenchmark.getInstances thrpt 226909.985 ops/s +RedisServiceDiscoveryBenchmark.getServices thrpt 304979.150 ops/s +RedisServiceRegistryBenchmark.deregister thrpt 255305.648 ops/s +RedisServiceRegistryBenchmark.register thrpt 110664.160 ops/s +RedisServiceRegistryBenchmark.renew thrpt 210960.325 ops/s ``` diff --git a/README.zh-CN.md b/README.zh-CN.md index 65e541e9..0ba87962 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -4,9 +4,7 @@ > [English Document](https://github.com/Ahoo-Wang/CoSky/blob/main/README.md) -*[CoSky](https://github.com/Ahoo-Wang/CoSky)* 是一个轻量级、低成本的服务注册、服务发现、 配置服务 SDK,通过使用现有基础设施中的 Redis (相信你已经部署了Redis),不用给运维部署带来额外的成本与负担。 -借助于 Redis 的高性能, *CoSky* 提供了超高TPS&QPS (10W+/s [JMH 基准测试](#jmh-benchmark))。*CoSky* 结合本地进程缓存策略 + *Redis PubSub* -,实现实时进程缓存刷新,兼具无与伦比的QPS性能 (7000W+/s [JMH 基准测试](#jmh-benchmark))、进程缓存与 Redis 的实时一致性。 +*[CoSky](https://github.com/Ahoo-Wang/CoSky)* 是一个轻量级、低成本的服务注册、服务发现、 配置服务 SDK,通过使用现有基础设施中的 Redis (相信你已经部署了Redis),不用给运维部署带来额外的成本与负担。 借助于 Redis 的高性能, *CoSky* 提供了超高TPS&QPS (10W+/s [JMH 基准测试](#jmh-benchmark))。*CoSky* 结合本地进程缓存策略 + *Redis PubSub*,实现实时进程缓存刷新,兼具无与伦比的QPS性能 (7000W+/s [JMH 基准测试](#jmh-benchmark))、进程缓存与 Redis 的实时一致性。 ### 服务注册与发现 @@ -35,7 +33,7 @@ > Kotlin DSL ``` kotlin - val coskyVersion = "1.1.11"; + val coskyVersion = "1.1.12"; implementation("me.ahoo.cosky:spring-cloud-starter-cosky-config:${coskyVersion}") implementation("me.ahoo.cosky:spring-cloud-starter-cosky-discovery:${coskyVersion}") implementation("org.springframework.cloud:spring-cloud-starter-loadbalancer:3.0.3") @@ -53,7 +51,7 @@ 4.0.0 demo - 1.1.11 + 1.1.12 @@ -102,30 +100,30 @@ logging: #### 方式一:下载可执行文件 -> 下载 [rest-api-server](https://github.com/Ahoo-Wang/cosky/releases/download/1.1.11/cosky-rest-api-1.1.11.tar) +> 下载 [rest-api-server](https://github.com/Ahoo-Wang/cosky/releases/download/1.1.12/cosky-rest-api-1.1.12.tar) -> 解压 *cosky-rest-api-1.1.11.tar* +> 解压 *cosky-rest-api-1.1.12.tar* ```shell -cd cosky-rest-api-1.1.11 -# 工作目录: cosky-rest-api-1.1.11 +cd cosky-rest-api-1.1.12 +# 工作目录: cosky-rest-api-1.1.12 bin/cosky-rest-api --server.port=8080 --cosky.redis.uri=redis://localhost:6379 ``` #### 方式二:在 Docker 中运行 ```shell -docker pull ahoowang/cosky-rest-api:1.1.11 -docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.11 +docker pull ahoowang/cosky-rest-api:1.1.12 +docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.12 ``` ##### MacBook Pro (M1) -> 请使用 *ahoowang/cosky-rest-api:1.1.11-armv7* +> 请使用 *ahoowang/cosky-rest-api:1.1.12-armv7* ```shell -docker pull ahoowang/cosky-rest-api:1.1.11-armv7 -docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.11-armv7 +docker pull ahoowang/cosky-rest-api:1.1.12-armv7 +docker run --name cosky-rest-api -d -p 8080:8080 --link redis -e COSKY_REDIS_URI=redis://redis:6379 ahoowang/cosky-rest-api:1.1.12-armv7 ``` #### 方式三:在 Kubernetes 中运行 @@ -153,7 +151,7 @@ spec: value: standalone - name: COSKY_REDIS_URI value: redis://redis-uri:6379 - image: ahoowang/cosky-rest-api:1.1.11 + image: ahoowang/cosky-rest-api:1.1.12 name: cosky-rest-api ports: - containerPort: 8080 @@ -287,12 +285,12 @@ spec: ``` shell gradle cosky-config:jmh # or -java -jar cosky-config/build/libs/cosky-config-1.1.11-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 +java -jar cosky-config/build/libs/cosky-config-1.1.12-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 ``` ``` # JMH version: 1.29 -# VM version: JDK 11.1.111, OpenJDK 64-Bit Server VM, 11.1.111+9-LTS +# VM version: JDK 11.1.121, OpenJDK 64-Bit Server VM, 11.1.121+9-LTS # VM invoker: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java # VM options: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/ahoo/cosky/config/build/tmp/jmh -Duser.country=CN -Duser.language=zh -Duser.variant # Blackhole mode: full + dont-inline hint @@ -303,9 +301,9 @@ java -jar cosky-config/build/libs/cosky-config-1.1.11-jmh.jar -bm thrpt -t 25 -w # Benchmark mode: Throughput, ops/time Benchmark Mode Cnt Score Error Units -ConsistencyRedisConfigServiceBenchmark.getConfig thrpt 265321650.148 ops/s -RedisConfigServiceBenchmark.getConfig thrpt 106991.476 ops/s -RedisConfigServiceBenchmark.setConfig thrpt 103659.132 ops/s +ConsistencyRedisConfigServiceBenchmark.getConfig thrpt 256733987.827 ops/s +RedisConfigServiceBenchmark.getConfig thrpt 241787.679 ops/s +RedisConfigServiceBenchmark.setConfig thrpt 140461.112 ops/s ``` ### ServiceDiscovery @@ -313,12 +311,12 @@ RedisConfigServiceBenchmark.setConfig thrpt 103659.132 ``` shell gradle cosky-discovery:jmh # or -java -jar cosky-discovery/build/libs/cosky-discovery-1.1.11-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 +java -jar cosky-discovery/build/libs/cosky-discovery-1.1.12-jmh.jar -bm thrpt -t 25 -wi 1 -rf json -f 1 ``` ``` # JMH version: 1.29 -# VM version: JDK 11.1.111, OpenJDK 64-Bit Server VM, 11.1.111+9-LTS +# VM version: JDK 11.1.121, OpenJDK 64-Bit Server VM, 11.1.121+9-LTS # VM invoker: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java # VM options: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/ahoo/cosky/discovery/build/tmp/jmh -Duser.country=CN -Duser.language=zh -Duser.variant # Blackhole mode: full + dont-inline hint @@ -329,11 +327,11 @@ java -jar cosky-discovery/build/libs/cosky-discovery-1.1.11-jmh.jar -bm thrpt -t # Benchmark mode: Throughput, ops/time Benchmark Mode Cnt Score Error Units -ConsistencyRedisServiceDiscoveryBenchmark.getInstances thrpt 76894658.867 ops/s -ConsistencyRedisServiceDiscoveryBenchmark.getServices thrpt 466036317.472 ops/s -RedisServiceDiscoveryBenchmark.getInstances thrpt 107778.244 ops/s -RedisServiceDiscoveryBenchmark.getServices thrpt 106920.412 ops/s -RedisServiceRegistryBenchmark.deregister thrpt 114094.513 ops/s -RedisServiceRegistryBenchmark.register thrpt 109085.694 ops/s -RedisServiceRegistryBenchmark.renew thrpt 127003.104 ops/s +ConsistencyRedisServiceDiscoveryBenchmark.getInstances thrpt 76621729.048 ops/s +ConsistencyRedisServiceDiscoveryBenchmark.getServices thrpt 455760632.346 ops/s +RedisServiceDiscoveryBenchmark.getInstances thrpt 226909.985 ops/s +RedisServiceDiscoveryBenchmark.getServices thrpt 304979.150 ops/s +RedisServiceRegistryBenchmark.deregister thrpt 255305.648 ops/s +RedisServiceRegistryBenchmark.register thrpt 110664.160 ops/s +RedisServiceRegistryBenchmark.renew thrpt 210960.325 ops/s ``` diff --git a/cosky-dashboard/package.json b/cosky-dashboard/package.json index 37eedaf7..fa8b46b2 100644 --- a/cosky-dashboard/package.json +++ b/cosky-dashboard/package.json @@ -1,6 +1,6 @@ { "name": "cosky-dashboard", - "version": "1.1.2", + "version": "1.1.12", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/docs/jmh/jmh-cosky-config.json b/docs/jmh/jmh-cosky-config.json new file mode 100644 index 00000000..46c12370 --- /dev/null +++ b/docs/jmh/jmh-cosky-config.json @@ -0,0 +1,160 @@ +[ + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.config.ConsistencyRedisConfigServiceBenchmark.getConfig", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-config/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 2.567339878265105E8, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 2.567339878265105E8, + "50.0" : 2.567339878265105E8, + "90.0" : 2.567339878265105E8, + "95.0" : 2.567339878265105E8, + "99.0" : 2.567339878265105E8, + "99.9" : 2.567339878265105E8, + "99.99" : 2.567339878265105E8, + "99.999" : 2.567339878265105E8, + "99.9999" : 2.567339878265105E8, + "100.0" : 2.567339878265105E8 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 2.567339878265105E8 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.config.RedisConfigServiceBenchmark.getConfig", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-config/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 241787.67908598774, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 241787.67908598774, + "50.0" : 241787.67908598774, + "90.0" : 241787.67908598774, + "95.0" : 241787.67908598774, + "99.0" : 241787.67908598774, + "99.9" : 241787.67908598774, + "99.99" : 241787.67908598774, + "99.999" : 241787.67908598774, + "99.9999" : 241787.67908598774, + "100.0" : 241787.67908598774 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 241787.67908598774 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.config.RedisConfigServiceBenchmark.setConfig", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-config/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 140461.11232942733, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 140461.11232942733, + "50.0" : 140461.11232942733, + "90.0" : 140461.11232942733, + "95.0" : 140461.11232942733, + "99.0" : 140461.11232942733, + "99.9" : 140461.11232942733, + "99.99" : 140461.11232942733, + "99.999" : 140461.11232942733, + "99.9999" : 140461.11232942733, + "100.0" : 140461.11232942733 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 140461.11232942733 + ] + ] + }, + "secondaryMetrics" : { + } + } +] + + diff --git a/docs/jmh/jmh-cosky-discovery.json b/docs/jmh/jmh-cosky-discovery.json new file mode 100644 index 00000000..2c423821 --- /dev/null +++ b/docs/jmh/jmh-cosky-discovery.json @@ -0,0 +1,368 @@ +[ + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.ConsistencyRedisServiceDiscoveryBenchmark.getInstances", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 7.662172904826319E7, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 7.662172904826319E7, + "50.0" : 7.662172904826319E7, + "90.0" : 7.662172904826319E7, + "95.0" : 7.662172904826319E7, + "99.0" : 7.662172904826319E7, + "99.9" : 7.662172904826319E7, + "99.99" : 7.662172904826319E7, + "99.999" : 7.662172904826319E7, + "99.9999" : 7.662172904826319E7, + "100.0" : 7.662172904826319E7 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 7.662172904826319E7 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.ConsistencyRedisServiceDiscoveryBenchmark.getServices", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 4.5576063234583616E8, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 4.5576063234583616E8, + "50.0" : 4.5576063234583616E8, + "90.0" : 4.5576063234583616E8, + "95.0" : 4.5576063234583616E8, + "99.0" : 4.5576063234583616E8, + "99.9" : 4.5576063234583616E8, + "99.99" : 4.5576063234583616E8, + "99.999" : 4.5576063234583616E8, + "99.9999" : 4.5576063234583616E8, + "100.0" : 4.5576063234583616E8 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 4.5576063234583616E8 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.RedisServiceDiscoveryBenchmark.getInstances", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 226909.9848247323, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 226909.9848247323, + "50.0" : 226909.9848247323, + "90.0" : 226909.9848247323, + "95.0" : 226909.9848247323, + "99.0" : 226909.9848247323, + "99.9" : 226909.9848247323, + "99.99" : 226909.9848247323, + "99.999" : 226909.9848247323, + "99.9999" : 226909.9848247323, + "100.0" : 226909.9848247323 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 226909.9848247323 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.RedisServiceDiscoveryBenchmark.getServices", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 304979.1504962891, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 304979.1504962891, + "50.0" : 304979.1504962891, + "90.0" : 304979.1504962891, + "95.0" : 304979.1504962891, + "99.0" : 304979.1504962891, + "99.9" : 304979.1504962891, + "99.99" : 304979.1504962891, + "99.999" : 304979.1504962891, + "99.9999" : 304979.1504962891, + "100.0" : 304979.1504962891 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 304979.1504962891 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.RedisServiceRegistryBenchmark.deregister", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 255305.64839226945, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 255305.64839226945, + "50.0" : 255305.64839226945, + "90.0" : 255305.64839226945, + "95.0" : 255305.64839226945, + "99.0" : 255305.64839226945, + "99.9" : 255305.64839226945, + "99.99" : 255305.64839226945, + "99.999" : 255305.64839226945, + "99.9999" : 255305.64839226945, + "100.0" : 255305.64839226945 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 255305.64839226945 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.RedisServiceRegistryBenchmark.register", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 110664.15987293601, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 110664.15987293601, + "50.0" : 110664.15987293601, + "90.0" : 110664.15987293601, + "95.0" : 110664.15987293601, + "99.0" : 110664.15987293601, + "99.9" : 110664.15987293601, + "99.99" : 110664.15987293601, + "99.999" : 110664.15987293601, + "99.9999" : 110664.15987293601, + "100.0" : 110664.15987293601 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 110664.15987293601 + ] + ] + }, + "secondaryMetrics" : { + } + }, + { + "jmhVersion" : "1.29", + "benchmark" : "me.ahoo.cosky.discovery.RedisServiceRegistryBenchmark.renew", + "mode" : "thrpt", + "threads" : 50, + "forks" : 1, + "jvm" : "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java", + "jvmArgs" : [ + "-Dfile.encoding=UTF-8", + "-Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/CoSky/cosky-discovery/build/tmp/jmh", + "-Duser.country=CN", + "-Duser.language=zh", + "-Duser.variant" + ], + "jdkVersion" : "11.0.11", + "vmName" : "OpenJDK 64-Bit Server VM", + "vmVersion" : "11.0.11+9-LTS", + "warmupIterations" : 1, + "warmupTime" : "10 s", + "warmupBatchSize" : 1, + "measurementIterations" : 1, + "measurementTime" : "10 s", + "measurementBatchSize" : 1, + "primaryMetric" : { + "score" : 210960.3249804336, + "scoreError" : "NaN", + "scoreConfidence" : [ + "NaN", + "NaN" + ], + "scorePercentiles" : { + "0.0" : 210960.3249804336, + "50.0" : 210960.3249804336, + "90.0" : 210960.3249804336, + "95.0" : 210960.3249804336, + "99.0" : 210960.3249804336, + "99.9" : 210960.3249804336, + "99.99" : 210960.3249804336, + "99.999" : 210960.3249804336, + "99.9999" : 210960.3249804336, + "100.0" : 210960.3249804336 + }, + "scoreUnit" : "ops/s", + "rawData" : [ + [ + 210960.3249804336 + ] + ] + }, + "secondaryMetrics" : { + } + } +] + + diff --git a/k8s/deployment/cosky-mirror.yml b/k8s/deployment/cosky-mirror.yml index 9b148c7e..2940cce8 100644 --- a/k8s/deployment/cosky-mirror.yml +++ b/k8s/deployment/cosky-mirror.yml @@ -28,7 +28,7 @@ spec: value: nacos - name: SPRING_CLOUD_NACOS_PASSWORD value: nacos-pwd - image: ahoowang/cosky-mirror:1.1.11 + image: ahoowang/cosky-mirror:1.1.12 name: cosky-mirror resources: limits: diff --git a/k8s/deployment/cosky-rest-api.yml b/k8s/deployment/cosky-rest-api.yml index 034ee9db..23bd2ba3 100644 --- a/k8s/deployment/cosky-rest-api.yml +++ b/k8s/deployment/cosky-rest-api.yml @@ -20,7 +20,7 @@ spec: value: standalone - name: COSKY_REDIS_URI value: redis://redis-uri:6379 - image: ahoowang/cosky-rest-api:1.1.11 + image: ahoowang/cosky-rest-api:1.1.12 name: cosky-rest-api ports: - containerPort: 8080 diff --git a/k8s/docker/cosky-mirror/Dockerfile b/k8s/docker/cosky-mirror/Dockerfile index e54ce4ab..9514c872 100644 --- a/k8s/docker/cosky-mirror/Dockerfile +++ b/k8s/docker/cosky-mirror/Dockerfile @@ -1,8 +1,8 @@ -# docker buildx build --push --platform linux/arm/v7 --build-arg COSKY_VERSION=1.1.11 --build-arg JDK_VERSION=armv7l-centos-jdk-11.0.11_9-slim -t ahoowang/cosky-mirror:1.1.11-armv7 . -# docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg COSKY_VERSION=1.1.11 --build-arg JDK_VERSION=jdk11u-centos-nightly-slim -t ahoowang/cosky-mirror:1.1.11 . +# docker buildx build --push --platform linux/arm/v7 --build-arg COSKY_VERSION=1.1.12 --build-arg JDK_VERSION=armv7l-centos-jdk-11.0.11_9-slim -t ahoowang/cosky-mirror:1.1.12-armv7 . +# docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg COSKY_VERSION=1.1.12 --build-arg JDK_VERSION=jdk11u-centos-nightly-slim -t ahoowang/cosky-mirror:1.1.12 . ARG JDK_VERSION=jdk11u-centos-nightly-slim -ARG COSKY_VERSION=1.1.11 +ARG COSKY_VERSION=1.1.12 ARG COSKY_HOME=/cosky FROM adoptopenjdk/openjdk11:${JDK_VERSION} AS base diff --git a/k8s/docker/rest-api-local/Dockerfile b/k8s/docker/rest-api-local/Dockerfile index cda23a2d..aff59227 100644 --- a/k8s/docker/rest-api-local/Dockerfile +++ b/k8s/docker/rest-api-local/Dockerfile @@ -1,8 +1,8 @@ -# docker buildx build --push --platform linux/arm/v7 --build-arg COSKY_VERSION=1.1.11 --build-arg JDK_VERSION=armv7l-centos-jdk-11.0.11_9-slim -t ahoowang/cosky-rest-api:1.1.11-armv7 . -# docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg COSKY_VERSION=1.1.11 --build-arg JDK_VERSION=jdk11u-centos-nightly-slim -t ahoowang/cosky-rest-api:1.1.11 . +# docker buildx build --push --platform linux/arm/v7 --build-arg COSKY_VERSION=1.1.12 --build-arg JDK_VERSION=armv7l-centos-jdk-11.0.11_9-slim -t ahoowang/cosky-rest-api:1.1.12-armv7 . +# docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg COSKY_VERSION=1.1.12 --build-arg JDK_VERSION=jdk11u-centos-nightly-slim -t ahoowang/cosky-rest-api:1.1.12 . ARG JDK_VERSION=jdk11u-centos-nightly-slim -ARG COSKY_VERSION=1.1.11 +ARG COSKY_VERSION=1.1.12 ARG COSKY_HOME=/cosky FROM adoptopenjdk/openjdk11:${JDK_VERSION} AS base diff --git a/k8s/docker/rest-api/Dockerfile b/k8s/docker/rest-api/Dockerfile index d0dd932a..7eaa2fca 100644 --- a/k8s/docker/rest-api/Dockerfile +++ b/k8s/docker/rest-api/Dockerfile @@ -1,8 +1,8 @@ -# docker buildx build --push --platform linux/arm/v7 --build-arg COSKY_VERSION=1.1.11 --build-arg JDK_VERSION=armv7l-centos-jdk-11.1.111_9-slim -t ahoowang/cosky-rest-api:1.1.11-armv7 . -# docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg COSKY_VERSION=1.1.11 --build-arg JDK_VERSION=jdk11u-centos-nightly-slim -t ahoowang/cosky-rest-api:1.1.11 . +# docker buildx build --push --platform linux/arm/v7 --build-arg COSKY_VERSION=1.1.12 --build-arg JDK_VERSION=armv7l-centos-jdk-11.1.121_9-slim -t ahoowang/cosky-rest-api:1.1.12-armv7 . +# docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg COSKY_VERSION=1.1.12 --build-arg JDK_VERSION=jdk11u-centos-nightly-slim -t ahoowang/cosky-rest-api:1.1.12 . ARG JDK_VERSION=jdk11u-centos-nightly-slim -ARG COSKY_VERSION=1.1.11 +ARG COSKY_VERSION=1.1.12 ARG COSKY_HOME=/cosky FROM adoptopenjdk/openjdk11:${JDK_VERSION} AS base diff --git a/settings.gradle.kts b/settings.gradle.kts index bc7d45ee..17becf28 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,7 +24,7 @@ * Detailed information about configuring a multi-project build in Gradle can be found * in the user manual at https://docs.gradle.org/7.0/userguide/multi_project_builds.html */ -rootProject.name = "cosky" +rootProject.name = "CoSky" include(":cosky-core") include(":cosky-config")