项目链接:https://github.com/delimitrou/DeathStarBench/tree/master/socialNetwork
参考链接:https://blog.csdn.net/Ever_glow/article/details/120875222

docker swam

https://blog.csdn.net/violin_biubiubiu/article/details/127958470?spm=1001.2014.3001.5502

Start docker containers

Start docker containers on a machine cluster with docker swarm

[root@k8s-master /home/dc/DeathStarBench/socialNetwork]# docker stack deploy --compose-file=docker-compose-swarm.yml benchapp
Creating network benchapp_default
Creating service benchapp_url-shorten-service
Creating service benchapp_user-mongodb
Creating service benchapp_post-storage-service
Creating service benchapp_cassandra
Creating service benchapp_user-service
Creating service benchapp_media-memcached
Creating service benchapp_jaeger-query
Creating service benchapp_home-timeline-service
Creating service benchapp_user-mention-service
Creating service benchapp_url-shorten-memcached
Creating service benchapp_jaeger-agent
Creating service benchapp_compose-post-service
Creating service benchapp_text-service
Creating service benchapp_media-mongodb
Creating service benchapp_media-service
Creating service benchapp_nginx-web-server
Creating service benchapp_social-graph-redis
Creating service benchapp_social-graph-service
Creating service benchapp_home-timeline-redis
Creating service benchapp_post-storage-mongodb
Creating service benchapp_unique-id-service
Creating service benchapp_user-timeline-mongodb
Creating service benchapp_user-timeline-service
Creating service benchapp_cassandra-schema
Creating service benchapp_social-graph-mongodb
Creating service benchapp_media-frontend
Creating service benchapp_jaeger-collector
Creating service benchapp_url-shorten-mongodb
Creating service benchapp_post-storage-memcached
Creating service benchapp_user-timeline-redis
Creating service benchapp_user-memcached

运行后查看

查看网络

[root@k8s-master /home/dc/DeathStarBench/socialNetwork]# docker network ls
NETWORK ID     NAME               DRIVER    SCOPE
xgzhp07783y5   benchapp_default   overlay   swarm
4c2654e8135e   bridge             bridge    local
cc7a4b03dc2f   docker_gwbridge    bridge    local
eb533a2b9129   host               host      local
wzzimp7tt28k   ingress            overlay   swarm
7daff480f7e1   none               null      local

查看服务

[root@k8s-master /home/dc/DeathStarBench/socialNetwork]# docker service ls
ID             NAME                              MODE         REPLICAS   IMAGE                                                PORTS
lppizl3wr9c6   benchapp_cassandra                replicated   1/1        cassandra:3.9
yub06i7phsvj   benchapp_cassandra-schema         replicated   0/1        jaegertracing/jaeger-cassandra-schema:latest
uctn9xl89aeq   benchapp_compose-post-service     replicated   1/1        deathstarbench/social-network-microservices:latest
jl1n3c57uhs2   benchapp_home-timeline-redis      replicated   1/1        redis:latest
oj1q3ueeizfl   benchapp_home-timeline-service    replicated   1/1        deathstarbench/social-network-microservices:latest
cls3e8qqo0gr   benchapp_jaeger-agent             replicated   1/1        jaegertracing/jaeger-agent:latest
rkm9l9by9fvg   benchapp_jaeger-collector         replicated   1/1        jaegertracing/jaeger-collector:latest                *:14269->14269/tcp
vpvt42b5vruu   benchapp_jaeger-query             replicated   1/1        jaegertracing/jaeger-query:latest                    *:16686->16686/tcp
hqey5unn9631   benchapp_media-frontend           replicated   1/1        yg397/media-frontend:xenial                          *:8081->8080/tcp
x2yj59hh45e8   benchapp_media-memcached          replicated   1/1        memcached:latest
ifosjf7d180b   benchapp_media-mongodb            replicated   1/1        mongo:4.4.6
v8491jhpr4du   benchapp_media-service            replicated   1/1        deathstarbench/social-network-microservices:latest
it5pv2hi5gw2   benchapp_nginx-web-server         replicated   1/1        yg397/openresty-thrift:xenial                        *:8080->8080/tcp
z4bdhipkbmj9   benchapp_post-storage-memcached   replicated   1/1        memcached:latest
id0368lqyrff   benchapp_post-storage-mongodb     replicated   1/1        mongo:4.4.6
oh3gme9cyq9h   benchapp_post-storage-service     replicated   1/1        deathstarbench/social-network-microservices:latest
v3z0h9ocla4y   benchapp_social-graph-mongodb     replicated   1/1        mongo:4.4.6
48ouyfiot2f5   benchapp_social-graph-redis       replicated   1/1        redis:latest
1ddhza3ely6r   benchapp_social-graph-service     replicated   0/1        deathstarbench/social-network-microservices:latest
uh4loqntxs4w   benchapp_text-service             replicated   1/1        deathstarbench/social-network-microservices:latest
5yk1t8zzqdwm   benchapp_unique-id-service        replicated   1/1        deathstarbench/social-network-microservices:latest
tf8dl7dnl4lg   benchapp_url-shorten-memcached    replicated   1/1        memcached:latest
95t098x9v5bn   benchapp_url-shorten-mongodb      replicated   1/1        mongo:4.4.6
vj68a4ofo0i9   benchapp_url-shorten-service      replicated   1/1        deathstarbench/social-network-microservices:latest
lakxqssg356o   benchapp_user-memcached           replicated   1/1        memcached:latest
jyndzdnsljzf   benchapp_user-mention-service     replicated   1/1        deathstarbench/social-network-microservices:latest
mjflv6yqbi6z   benchapp_user-mongodb             replicated   1/1        mongo:4.4.6
u1w3xgjm9vfq   benchapp_user-service             replicated   1/1        deathstarbench/social-network-microservices:latest
uomm8jwav34k   benchapp_user-timeline-mongodb    replicated   1/1        mongo:4.4.6
tb83qbk3myh6   benchapp_user-timeline-redis      replicated   1/1        redis:latest
nitabg9oyxgn   benchapp_user-timeline-service    replicated   0/1        deathstarbench/social-network-microservices:latest   

查看某个具体的服务 使用ID查询

[root@k8s-master /home/dc/DeathStarBench/socialNetwork]# docker service ps nitabg9oyxgn
ID             NAME                                   IMAGE                                                NODE         DESIRED STATE   CURRENT STATE                 ERROR                              PORTS
iofx1djyftol   benchapp_user-timeline-service.1       deathstarbench/social-network-microservices:latest   k8s-master   Running         Running about a minute ago
ij90ojhkdpbx    \_ benchapp_user-timeline-service.1   deathstarbench/social-network-microservices:latest   k8s-node1    Shutdown        Rejected about a minute ago   "invalid mount config for type…"
6k9wax53iboh    \_ benchapp_user-timeline-service.1   deathstarbench/social-network-microservices:latest   k8s-node1    Shutdown        Rejected 2 minutes ago        "invalid mount config for type…"
gow89dinx6tt    \_ benchapp_user-timeline-service.1   deathstarbench/social-network-microservices:latest   k8s-node1    Shutdown        Rejected 2 minutes ago        "invalid mount config for type…"
tzk1univksez    \_ benchapp_user-timeline-service.1   deathstarbench/social-network-microservices:latest   k8s-node1    Shutdown        Rejected 2 minutes ago        "invalid mount config for type…"   

然后根据官网流程,加载数据集,产生负载并查看jaeger。

[root@k8s-master /home/dc/DeathStarBench/socialNetwork]# python3 scripts/init_social_graph.py --graph=socfb-Reed98
Registering Users...
0
200
400
600
800
Succeeded: 962
Adding follows...
200
400
^CTraceback (most recent call last):
[root@k8s-master /home/dc/DeathStarBench/socialNetwork]# cd wrk2
[root@k8s-master /home/dc/DeathStarBench/socialNetwork/wrk2]# make
Building LuaJIT...
make[1]: Entering directory '/home/dc/DeathStarBench/socialNetwork/wrk2/deps/luajit/src'
HOSTCC    host/minilua.o
HOSTLINK  host/minilua
DYNASM    host/buildvm_arch.h
HOSTCC    host/buildvm.o
In file included from host/buildvm.c:59:0:
./../dynasm/dasm_x86.h: In function ‘dasm_put’:
./../dynasm/dasm_x86.h:207:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]if (*p++ == 1 && *p == DASM_DISP) mrm = n; continue;^~
./../dynasm/dasm_x86.h:207:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’if (*p++ == 1 && *p == DASM_DISP) mrm = n; continue;^~~~~~~~
HOSTCC    host/buildvm_asm.o
HOSTCC    host/buildvm_peobj.o
HOSTCC    host/buildvm_lib.o
HOSTCC    host/buildvm_fold.o
HOSTLINK  host/buildvm
BUILDVM   lj_vm.s
ASM       lj_vm.o
CC        lj_gc.o
BUILDVM   lj_ffdef.h
CC        lj_err.o
CC        lj_char.o
BUILDVM   lj_bcdef.h
CC        lj_bc.o
CC        lj_obj.o
CC        lj_str.o
CC        lj_tab.o
CC        lj_func.o
CC        lj_udata.o
CC        lj_meta.o
CC        lj_debug.o
CC        lj_state.o
CC        lj_dispatch.o
CC        lj_vmevent.o
CC        lj_vmmath.o
CC        lj_strscan.o
CC        lj_api.o
CC        lj_lex.o
CC        lj_parse.o
CC        lj_bcread.o
CC        lj_bcwrite.o
CC        lj_load.o
CC        lj_ir.o
CC        lj_opt_mem.o
BUILDVM   lj_folddef.h
CC        lj_opt_fold.o
CC        lj_opt_narrow.o
CC        lj_opt_dce.o
CC        lj_opt_loop.o
CC        lj_opt_split.o
CC        lj_opt_sink.o
CC        lj_mcode.o
CC        lj_snap.o
CC        lj_record.o
CC        lj_crecord.o
BUILDVM   lj_recdef.h
CC        lj_ffrecord.o
CC        lj_asm.o
CC        lj_trace.o
CC        lj_gdbjit.o
CC        lj_ctype.o
CC        lj_cdata.o
CC        lj_cconv.o
CC        lj_ccall.o
CC        lj_ccallback.o
CC        lj_carith.o
CC        lj_clib.o
CC        lj_cparse.o
lj_cparse.c: In function ‘cp_next_’:
lj_cparse.c:313:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]if (cp_get(cp) != '|') return '|'; cp_get(cp); return CTOK_OROR;^~
lj_cparse.c:313:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’if (cp_get(cp) != '|') return '|'; cp_get(cp); return CTOK_OROR;^~~~~~
lj_cparse.c:315:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]if (cp_get(cp) != '&') return '&'; cp_get(cp); return CTOK_ANDAND;^~
lj_cparse.c:315:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’if (cp_get(cp) != '&') return '&'; cp_get(cp); return CTOK_ANDAND;^~~~~~
lj_cparse.c:317:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]if (cp_get(cp) != '=') return '='; cp_get(cp); return CTOK_EQ;^~
lj_cparse.c:317:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’if (cp_get(cp) != '=') return '='; cp_get(cp); return CTOK_EQ;^~~~~~
lj_cparse.c:319:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]if (cp_get(cp) != '=') return '!'; cp_get(cp); return CTOK_NE;^~
lj_cparse.c:319:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’if (cp_get(cp) != '=') return '!'; cp_get(cp); return CTOK_NE;^~~~~~
lj_cparse.c:329:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]if (cp_get(cp) != '>') return '-'; cp_get(cp); return CTOK_DEREF;^~
lj_cparse.c:329:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’if (cp_get(cp) != '>') return '-'; cp_get(cp); return CTOK_DEREF;^~~~~~
CC        lj_lib.o
CC        lj_alloc.o
CC        lib_aux.o
BUILDVM   lj_libdef.h
CC        lib_base.o
CC        lib_math.o
CC        lib_bit.o
CC        lib_string.o
CC        lib_table.o
CC        lib_io.o
CC        lib_os.o
CC        lib_package.o
CC        lib_debug.o
CC        lib_jit.o
CC        lib_ffi.o
CC        lib_init.o
AR        libluajit.a
ar: `u' modifier ignored since `D' is the default (see `U')
CC        luajit.o
BUILDVM   jit/vmdef.lua
LINK      luajit
OK        Successfully built LuaJIT
make[1]: Leaving directory '/home/dc/DeathStarBench/socialNetwork/wrk2/deps/luajit/src'
CC src/wrk.c
In file included from src/wrk.h:4:0,from src/wrk.c:3:
src/config.h:8:0: warning: "_POSIX_C_SOURCE" redefined#define _POSIX_C_SOURCE 200809L<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/pthread.h:21:0,from src/wrk.h:5,from src/wrk.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
src/wrk.c: In function ‘print_stats’:
src/wrk.c:853:14: warning: unused variable ‘max’ [-Wunused-variable]uint64_t max = stats->max;^~~
At top level:
src/wrk.c:878:13: warning: ‘print_stats_latency’ defined but not used [-Wunused-function]static void print_stats_latency(stats *stats) {^~~~~~~~~~~~~~~~~~~
src/wrk.c: In function ‘main’:
src/wrk.c:206:31: warning: ‘%lu’ directive writing between 1 and 17 bytes into a region of size 10 [-Wformat-overflow=]sprintf(filename, "%" PRIu64 ".txt", i);^~~
src/wrk.c:206:32: note: format string is defined heresprintf(filename, "%" PRIu64 ".txt", i);
src/wrk.c:206:31: note: directive argument in the range [0, 82351536043346213]sprintf(filename, "%" PRIu64 ".txt", i);^~~
In file included from /usr/include/stdio.h:862:0,from /usr/include/openssl/crypto.h:20,from /usr/include/openssl/comp.h:16,from /usr/include/openssl/ssl.h:17,from src/wrk.h:11,from src/wrk.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 6 and 22 bytes into a destination of size 10return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~__bos (__s), __fmt, __va_arg_pack ());~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wrk.c: In function ‘gen_zipf’:
src/wrk.c:489:33: warning: ‘zipf_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]return (uint64_t)(zipf_value*scalar);~~~~~~~~~~~^~~~~~~~
CC src/net.c
In file included from /usr/include/errno.h:25:0,from src/net.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/ssl.c
In file included from /usr/include/pthread.h:21:0,from src/ssl.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
src/ssl.c:22:22: warning: ‘ssl_id’ defined but not used [-Wunused-function]static unsigned long ssl_id() {^~~~~~
src/ssl.c:13:13: warning: ‘ssl_lock’ defined but not used [-Wunused-function]static void ssl_lock(int mode, int n, const char *file, int line) {^~~~~~~~
CC src/aprintf.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdlib.h:25,from src/aprintf.c:4:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/stats.c
In file included from /usr/include/inttypes.h:25:0,from src/stats.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/script.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdlib.h:25,from src/script.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/units.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdlib.h:25,from src/units.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/ae.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdio.h:27,from src/ae.c:33:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/zmalloc.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdio.h:27,from src/zmalloc.c:31:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/http_parser.c
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25:0,from src/http_parser.h:32,from src/http_parser.c:24:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/tinymt64.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdint.h:26,from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,from src/tinymt64.h:19,from src/tinymt64.c:16:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
CC src/hdr_histogram.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,from /usr/include/stdlib.h:25,from src/hdr_histogram.c:7:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"^~~~~~~
LUAJIT src/wrk.lua
LINK wrk

./wrk -D exp -t <num-threads> -c <num-conns> -d <duration> -L -s ./scripts/social-network/compose-post.lua http://localhost:8080/wrk2-api/post/compose -R <reqs-per-sec>
# <num-conns> must be >=  <num-threads>
[root@k8s-master /home/dc/DeathStarBench/socialNetwork/wrk2]# ./wrk -D exp -t 8 -c 800 -d 20 -L -s ./scripts/social-network/compose-post.lua http://localhost:8080/wrk2-api/post/compose -R 5
Running 20s test @ http://localhost:8080/wrk2-api/post/compose8 threads and 800 connectionsThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread Stats   Avg      Stdev     99%   +/- StdevLatency     -nanus    -nanus   0.00us    0.00%Req/Sec     0.00      0.00     0.00    100.00%Latency Distribution (HdrHistogram - Recorded Latency)50.000%    0.00us75.000%    0.00us90.000%    0.00us99.000%    0.00us99.900%    0.00us99.990%    0.00us99.999%    0.00us
100.000%    0.00usDetailed Percentile spectrum:Value   Percentile   TotalCount 1/(1-Percentile)0.000     1.000000            0          inf
#[Mean    =         -nan, StdDeviation   =         -nan]
#[Max     =        0.000, Total count    =            0]
#[Buckets =           27, SubBuckets     =         2048]
----------------------------------------------------------0 requests in 20.11s, 0.00B readSocket errors: connect 0, read 0, write 0, timeout 7457
Requests/sec:      0.00
Transfer/sec:       0.00B

服务部署好后运行测试程序wrk2

[root@wl-master /home/ubuntu/DeathStarBench/socialNetwork/wrk2]# ./wrk -D exp -t 8 -c 800 -d 20 -L -s ./scripts/social-network/compose-post.lua http://localhost:8080/wrk2-api/post/compose -R 5./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
./scripts/social-network/compose-post.lua: ./scripts/social-network/compose-post.lua:1: module 'socket' not found:no field package.preload['socket']no file './socket.lua'no file '/usr/local/share/luajit-2.0.3/socket.lua'no file '/usr/local/share/lua/5.1/socket.lua'no file '/usr/local/share/lua/5.1/socket/init.lua'no file './socket.so'no file '/usr/local/lib/lua/5.1/socket.so'no file '/usr/local/lib/lua/5.1/loadall.so'
Running 20s test @ http://localhost:8080/wrk2-api/post/compose8 threads and 800 connectionsThread calibration: mean lat.: 2104.624ms, rate sampling interval: 9699msThread calibration: mean lat.: 1889.653ms, rate sampling interval: 6881msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 2174.770ms, rate sampling interval: 8904msThread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10msThread calibration: mean lat.: 2399.937ms, rate sampling interval: 9494msThread calibration: mean lat.: 1688.259ms, rate sampling interval: 7458msThread Stats   Avg      Stdev     99%   +/- StdevLatency     7.20s     2.55s   12.85s    63.05%Req/Sec    14.53    361.06     0.00     99.83%Latency Distribution (HdrHistogram - Recorded Latency)50.000%    6.89s 75.000%    9.04s 90.000%   10.93s 99.000%   12.85s 99.900%   13.32s 99.990%   13.47s 99.999%   13.55s
100.000%   13.56s Detailed Percentile spectrum:Value   Percentile   TotalCount 1/(1-Percentile)2013.183     0.000000            3         1.003991.551     0.100000        42208         1.114820.991     0.200000        84525         1.255574.655     0.300000       126534         1.436230.015     0.400000       168745         1.676893.567     0.500000       210866         2.007278.591     0.550000       231991         2.227716.863     0.600000       253116         2.508187.903     0.650000       274112         2.868609.791     0.700000       295553         3.339043.967     0.750000       316304         4.009281.535     0.775000       326919         4.449625.599     0.800000       337497         5.009912.319     0.825000       348106         5.7110174.463     0.850000       358470         6.6710518.527     0.875000       369153         8.0010723.327     0.887500       374387         8.8910928.127     0.900000       379662        10.0011116.543     0.912500       385044        11.4311329.535     0.925000       390047        13.3311542.527     0.937500       395500        16.0011640.831     0.943750       398066        17.7811739.135     0.950000       400729        20.0011870.207     0.956250       403379        22.8611984.895     0.962500       406021        26.6712115.967     0.968750       408522        32.0012189.695     0.971875       409876        35.5612271.615     0.975000       411234        40.0012361.727     0.978125       412509        45.7112476.415     0.981250       413844        53.3312607.487     0.984375       415181        64.0012664.831     0.985938       415791        71.1112722.175     0.987500       416402        80.0012804.095     0.989062       417080        91.4312877.823     0.990625       417737       106.6712951.551     0.992188       418392       128.0012992.511     0.992969       418790       142.2213025.279     0.993750       419128       160.0013058.047     0.994531       419413       182.8613090.815     0.995313       419698       213.3313131.775     0.996094       420044       256.0013156.351     0.996484       420232       284.4413180.927     0.996875       420385       320.0013197.311     0.997266       420530       365.7113221.887     0.997656       420698       426.6713246.463     0.998047       420887       512.0013254.655     0.998242       420947       568.8913271.039     0.998437       421039       640.0013287.423     0.998633       421113       731.4313303.807     0.998828       421188       853.3313320.191     0.999023       421274      1024.0013328.383     0.999121       421310      1137.7813344.767     0.999219       421357      1280.0013361.151     0.999316       421409      1462.8613369.343     0.999414       421430      1706.6713385.727     0.999512       421481      2048.0013393.919     0.999561       421493      2275.5613402.111     0.999609       421512      2560.0013410.303     0.999658       421540      2925.7113418.495     0.999707       421563      3413.3313426.687     0.999756       421571      4096.0013434.879     0.999780       421582      4551.1113443.071     0.999805       421595      5120.0013451.263     0.999829       421617      5851.4313451.263     0.999854       421617      6826.6713459.455     0.999878       421628      8192.0013459.455     0.999890       421628      9102.2213475.839     0.999902       421633     10240.0013492.223     0.999915       421637     11702.8613508.607     0.999927       421645     13653.3313516.799     0.999939       421648     16384.0013524.991     0.999945       421652     18204.4413524.991     0.999951       421652     20480.0013541.375     0.999957       421662     23405.7113541.375     0.999963       421662     27306.6713541.375     0.999969       421662     32768.0013541.375     0.999973       421662     36408.8913541.375     0.999976       421662     40960.0013549.567     0.999979       421669     46811.4313549.567     0.999982       421669     54613.3313549.567     0.999985       421669     65536.0013549.567     0.999986       421669     72817.7813549.567     0.999988       421669     81920.0013549.567     0.999989       421669     93622.8613549.567     0.999991       421669    109226.6713549.567     0.999992       421669    131072.0013557.759     0.999993       421672    145635.5613557.759     1.000000       421672          inf
#[Mean    =     7199.993, StdDeviation   =     2550.022]
#[Max     =    13549.568, Total count    =       421672]
#[Buckets =           27, SubBuckets     =         2048]
----------------------------------------------------------715063 requests in 20.13s, 150.03MB readSocket errors: connect 0, read 0, write 0, timeout 4199Non-2xx or 3xx responses: 715063
Requests/sec:  35529.11
Transfer/sec:      7.45MB

DeathStarBench-Running the social network application相关推荐

  1. Linux 2: Cloud computing network application management | Linux

    Linux 系列 Linux 1: 云计算操作系统管理 Cloud computing operating system management | Linux Linux 2: 云计算网络应用管理 C ...

  2. Poster: Detection of Cyberbullying in a Mobile Social Network: Systems Issues

    Poster: Detection of Cyberbullying in a Mobile Social Network: Systems Issues 在移动社交网络中检测网络欺凌:系统问题 学习 ...

  3. 谣言检测文献阅读一A Review on Rumour Prediction and Veracity Assessment in Online Social Network

    系列文章目录 谣言检测文献阅读一-A Review on Rumour Prediction and Veracity Assessment in Online Social Network 谣言检测 ...

  4. Social network Social computing(社会网络和社会计算)

    社会计算,英文为Social Computing,中文也译为社会性计算.社交计算.社交性计算等. 什么是社会计算?目前对 此还没有一个明确和公认的定义.笼统而言,社会计算是一门现代计算技术与社会科学之 ...

  5. Social Network Analysis的Centrality总结,以及networkx实现EigenCentrality,PageRank和KatzCentrality的对比...

    本文主要总结近期学习的Social Network Analysis(SNA)中的各种Centrality度量,我暂且翻译为中心度.本文主要是实战,理论方面几乎没有,因为对于庞大的SNA,我可能连门都 ...

  6. Social Network 社交网络分析

    Social Network 社交网络分析 一:什么是SNA-社交网络分析 社交网络分析的威力何在?我想几个案例来说明. 案例1:对一个毫无了解的组织(这个组织可以是一个公司,亦或是一个组织),如果能 ...

  7. 王家林人工智能AI第14课:通过K-Nearest Neighbors改进在Social Network上销售汽车推荐系统的精准性 老师微信13928463918

    王家林人工智能AI第14课:通过K-Nearest Neighbors改进在Social Network上销售汽车推荐系统的精准性   老师微信13928463918

  8. 【NDN基础】Information-Centric Networking: A Natural Design for Social Network Applications 全文翻译

    Information-Centric Networking: A Natural Design for Social Network Applications 信息中心网络:社交网络应用程序的自然设 ...

  9. linux l7,GitHub - windslinux/l7detect: Network application protocol detection software

    1. l7detect是一个基于流的应用协议识别的框架; 2. l7detect实现了四个常用的协议识别引擎,基于port的pde,基于字符和位置的规则sde, 基于lua的lde,基于lua的协议解 ...

最新文章

  1. 百度AI快车道—企业深度学习实战营,推荐系统主题专场即将开课
  2. HTML语义化:HTML5新标签——template
  3. NLP分析技术的三个层面
  4. DockerToolbox安装docker
  5. asp.net mvc3.0安装失败之终极解决方案
  6. python爬虫案例-Python爬取租房数据实例,据说可以入门爬虫的小案例!
  7. 搜索引擎爬虫蜘蛛的UserAgent收集
  8. Silverlight Curve Animation / 曲线动画
  9. 推荐算法--其他信息(07)
  10. Java中的项目的导入导出
  11. Wonderware-InTouch 服务器Windows Server 2012 R2系统安装intouch2017
  12. 用python实现自动签到脚本
  13. Using SVN with Ant
  14. JAVA基础知识学习全覆盖
  15. hibernate中lazy的使用
  16. 关于网站目录结构需要注意的地方
  17. 博学谷java百度网盘_博学谷javaee在线就业班2020网盘
  18. 记录-Selection.addRange() 已弃用,该如何解决
  19. Docker 与虚拟机有何不同?
  20. 关于服务器ftp服务器设置基本步骤及注意要点

热门文章

  1. 计算机英语2008影印版,(计算机英语2008影印版课后单词翻译.doc
  2. Win10下如何在右键新建菜单使用Typora新建.md文件
  3. 飞机躲避小游戏---是男人就撑100秒的制作
  4. 二十岁的男人(你少哪些)
  5. 健身房运营 | 除了派单,还有这4种健身房拓客方式,一定要知道!
  6. Fusion 360的快捷键大全
  7. dpdk 网络协议栈 vpp OvS DDos SDN NFV 虚拟化 高性能专家之路
  8. CS客户端登入CAS(单点登入)方案
  9. IT大败局----第十一章 科技虚幻的诱惑
  10. 22071班(11月29日)