forked from alibaba/alibaba-rsocket-broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
41 lines (31 loc) · 1.18 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# start reactive service responder
start_responder:
java -jar rsocket-responder/target/rsocket-responder-1.0.0-SNAPSHOT.jar
# start reactive service requester
start_requester:
java -jar rsocket-requester/target/rsocket-requester-1.0.0-SNAPSHOT.jar
# requester http testing
requester_testing:
curl http://localhost:8181/user/2
# docker image build
docker-image-build:
mvn -Pbuildpacks -DskipTests clean package
# deploy responder and requester to K8S
k8s-deploy:
kubectl apply -f k8s/responder-deployment.yml
kubectl apply -f k8s/requester-deployment.yml
# undeploy responder and requester to K8S
k8s-undeploy:
kubectl delete -f k8s/responder-deployment.yml
kubectl delete -f k8s/requester-deployment.yml
#bench test: 30 seconds, using 5 threads, and keeping 50 HTTP connections open
benchmarking_rpc:
wrk -t5 -c50 -d30s --latency http://localhost:8181/user/2
benchmarking_rpc_direct:
wrk -t5 -c50 -d30s --latency http://localhost:8181/user2/2
benchmarking_fnf:
wrk -t5 -c50 -d30s --latency http://localhost:8181/job1
benchmarking_stream:
wrk -t5 -c50 -d30s --latency http://localhost:8181/users
benchmarking_channel:
wrk -t5 -c50 -d30s --latency http://localhost:8181/channel2