|
@@ -18,6 +18,8 @@ for i in {1..100}; do curl -s -H "Cookie: user=admin_123456" http://localhost:45
|
|
|
|
|
|
|
|
|
|
|
|
+#----------------------------------------------
|
|
|
+# sers单体压测(net6.0)
|
|
|
|
|
|
dotnet /root/app/ServiceCenter/App.ServiceCenter.dll
|
|
|
|
|
@@ -26,14 +28,18 @@ http://127.0.0.1:4580/_gover_/index.html?user=admin_123456
|
|
|
|
|
|
|
|
|
|
|
|
-#----------------------------------------------
|
|
|
-# sers单体压测(net6.0)
|
|
|
|
|
|
CentOs8(2x24核) .net6
|
|
|
|
|
|
+Sers.CL.workThreadCount 1
|
|
|
+Sers.CL.Client-Iocp.Mode Simple
|
|
|
+Sers.RpcDataSerializeMode BytePointor
|
|
|
+Sers.LocalApiService.workThreadCount {workThread}
|
|
|
+Vit.ConsumerMode ConsumerCache_BlockingCollection
|
|
|
+
|
|
|
|
|
|
方式 线程数(处理/请求) qps(cpu利用率)
|
|
|
-type workThread/requestThread qps(cpu利用率)
|
|
|
+ workThread/requestThread
|
|
|
|
|
|
|
|
|
ApiClientAsync 16/16 140-150万(15%)
|
|
@@ -49,3 +55,52 @@ ApiClientAsync 24/24 160-180
|
|
|
|
|
|
|
|
|
|
|
|
+#----------------------------------------------
|
|
|
+# sers分布式压测(net6.0)
|
|
|
+
|
|
|
+dotnet /root/app/ServiceCenter/App.ServiceCenter.dll
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+dotnet /root/app/Demo/Did.SersLoader.Demo.dll > console.log 2>&1 &
|
|
|
+
|
|
|
+
|
|
|
+dotnet /root/app/Robot/App.Robot.Station.dll > console.log 2>&1 &
|
|
|
+
|
|
|
+
|
|
|
+#杀死进程
|
|
|
+kill -s 9 `pgrep -f 'dotnet'`
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+CentOs8(2x24核) .net6
|
|
|
+
|
|
|
+
|
|
|
+# ServiceCenter:
|
|
|
+
|
|
|
+Sers.CL.workThreadCount 4
|
|
|
+Sers.CL.Client-Iocp.Mode Timer
|
|
|
+Sers.RpcDataSerializeMode BytePointor
|
|
|
+Sers.LocalApiService.workThreadCount 4
|
|
|
+Vit.ConsumerMode ConsumerCache_BlockingCollection
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+# Demo and Robot
|
|
|
+
|
|
|
+Sers.CL.workThreadCount 2
|
|
|
+Sers.CL.Client-Iocp.Mode Timer
|
|
|
+Sers.RpcDataSerializeMode BytePointor
|
|
|
+Sers.LocalApiService.workThreadCount 20
|
|
|
+Vit.ConsumerMode ConsumerCache_BlockingCollection
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+方式 线程数(处理/请求) qps(cpu利用率-服务端 客户端)
|
|
|
+ workThread/requestThread
|
|
|
+
|
|
|
+ApiClientAsync 20/5000 18-20万(20% 14%)
|