项目链接: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 here
sprintf(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 10
return __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/compose
8 threads and 800 connections
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread Stats Avg Stdev 99% +/- Stdev
Latency -nanus -nanus 0.00us 0.00%
Req/Sec 0.00 0.00 0.00 100.00%
Latency Distribution (HdrHistogram - Recorded Latency)
50.000% 0.00us
75.000% 0.00us
90.000% 0.00us
99.000% 0.00us
99.900% 0.00us
99.990% 0.00us
99.999% 0.00us
100.000% 0.00us
Detailed 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 read
Socket 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/compose
8 threads and 800 connections
Thread calibration: mean lat.: 2104.624ms, rate sampling interval: 9699ms
Thread calibration: mean lat.: 1889.653ms, rate sampling interval: 6881ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 2174.770ms, rate sampling interval: 8904ms
Thread calibration: mean lat.: 9223372036854776.000ms, rate sampling interval: 10ms
Thread calibration: mean lat.: 2399.937ms, rate sampling interval: 9494ms
Thread calibration: mean lat.: 1688.259ms, rate sampling interval: 7458ms
Thread Stats Avg Stdev 99% +/- Stdev
Latency 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.00
3991.551 0.100000 42208 1.11
4820.991 0.200000 84525 1.25
5574.655 0.300000 126534 1.43
6230.015 0.400000 168745 1.67
6893.567 0.500000 210866 2.00
7278.591 0.550000 231991 2.22
7716.863 0.600000 253116 2.50
8187.903 0.650000 274112 2.86
8609.791 0.700000 295553 3.33
9043.967 0.750000 316304 4.00
9281.535 0.775000 326919 4.44
9625.599 0.800000 337497 5.00
9912.319 0.825000 348106 5.71
10174.463 0.850000 358470 6.67
10518.527 0.875000 369153 8.00
10723.327 0.887500 374387 8.89
10928.127 0.900000 379662 10.00
11116.543 0.912500 385044 11.43
11329.535 0.925000 390047 13.33
11542.527 0.937500 395500 16.00
11640.831 0.943750 398066 17.78
11739.135 0.950000 400729 20.00
11870.207 0.956250 403379 22.86
11984.895 0.962500 406021 26.67
12115.967 0.968750 408522 32.00
12189.695 0.971875 409876 35.56
12271.615 0.975000 411234 40.00
12361.727 0.978125 412509 45.71
12476.415 0.981250 413844 53.33
12607.487 0.984375 415181 64.00
12664.831 0.985938 415791 71.11
12722.175 0.987500 416402 80.00
12804.095 0.989062 417080 91.43
12877.823 0.990625 417737 106.67
12951.551 0.992188 418392 128.00
12992.511 0.992969 418790 142.22
13025.279 0.993750 419128 160.00
13058.047 0.994531 419413 182.86
13090.815 0.995313 419698 213.33
13131.775 0.996094 420044 256.00
13156.351 0.996484 420232 284.44
13180.927 0.996875 420385 320.00
13197.311 0.997266 420530 365.71
13221.887 0.997656 420698 426.67
13246.463 0.998047 420887 512.00
13254.655 0.998242 420947 568.89
13271.039 0.998437 421039 640.00
13287.423 0.998633 421113 731.43
13303.807 0.998828 421188 853.33
13320.191 0.999023 421274 1024.00
13328.383 0.999121 421310 1137.78
13344.767 0.999219 421357 1280.00
13361.151 0.999316 421409 1462.86
13369.343 0.999414 421430 1706.67
13385.727 0.999512 421481 2048.00
13393.919 0.999561 421493 2275.56
13402.111 0.999609 421512 2560.00
13410.303 0.999658 421540 2925.71
13418.495 0.999707 421563 3413.33
13426.687 0.999756 421571 4096.00
13434.879 0.999780 421582 4551.11
13443.071 0.999805 421595 5120.00
13451.263 0.999829 421617 5851.43
13451.263 0.999854 421617 6826.67
13459.455 0.999878 421628 8192.00
13459.455 0.999890 421628 9102.22
13475.839 0.999902 421633 10240.00
13492.223 0.999915 421637 11702.86
13508.607 0.999927 421645 13653.33
13516.799 0.999939 421648 16384.00
13524.991 0.999945 421652 18204.44
13524.991 0.999951 421652 20480.00
13541.375 0.999957 421662 23405.71
13541.375 0.999963 421662 27306.67
13541.375 0.999969 421662 32768.00
13541.375 0.999973 421662 36408.89
13541.375 0.999976 421662 40960.00
13549.567 0.999979 421669 46811.43
13549.567 0.999982 421669 54613.33
13549.567 0.999985 421669 65536.00
13549.567 0.999986 421669 72817.78
13549.567 0.999988 421669 81920.00
13549.567 0.999989 421669 93622.86
13549.567 0.999991 421669 109226.67
13549.567 0.999992 421669 131072.00
13557.759 0.999993 421672 145635.56
13557.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 read
Socket errors: connect 0, read 0, write 0, timeout 4199
Non-2xx or 3xx responses: 715063
Requests/sec: 35529.11
Transfer/sec: 7.45MB