Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions grabdish/artillery/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
##
## Copyright (c) 2021 Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

set -e

Expand All @@ -17,9 +20,9 @@ export RUN=`cat $NEXT_RUN_FILE`
RUN=$((RUN+1))
echo $RUN > $NEXT_RUN_FILE

for i in {1..1}
for i in {1..20}
do
export VU=$i
./node_modules/artillery/bin/artillery run art-placeorder.yaml &
./node_modules/artillery/bin/artillery run --insecure art-placeorder.yaml &
done
wait
9 changes: 4 additions & 5 deletions grabdish/inventory-nodejs/inventory/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/*
** Copyright (c) 2021 Oracle and/or its affiliates.
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
*/
FROM oraclelinux:7-slim
# Copyright (c) 2021 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

FROM oraclelinux:7-slim

ARG release=19
ARG update=5
Expand Down
5 changes: 2 additions & 3 deletions grabdish/inventory-nodejs/undeploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
** Copyright (c) 2021 Oracle and/or its affiliates.
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

# Copyright (c) 2021 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

echo delete inventory-nodejs deployment...

Expand Down
14 changes: 2 additions & 12 deletions grabdish/k6/test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

#!/bin/bash
##
## Copyright (c) 2021 Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
export VUS="$1"

set -e

Expand All @@ -17,17 +16,8 @@ if [ ! -f "$NEXT_RUN_FILE" ]; then
echo 0 > $NEXT_RUN_FILE
fi

#export RUN=`cat $NEXT_RUN_FILE`
#RUN=$((RUN+1))
#echo $RUN > $NEXT_RUN_FILE

#echo Warming up for 30 seconds
#./k6 run --vus $VUS --duration "20s" --address localhost:6566 placeorder.js > /dev/null

#sleep 10

export RUN=`cat $NEXT_RUN_FILE`
RUN=$((RUN+1))
echo $RUN > $NEXT_RUN_FILE

./k6 run --vus 20 --duration "30s" --address localhost:6566 --insecure-skip-tls-verify true placeorder.js
./k6 run --vus 20 --duration "30s" --address localhost:6566 --insecure-skip-tls-verify placeorder.js
20 changes: 20 additions & 0 deletions grabdish/order-helidon/ext-order-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
##
## Copyright (c) 2021 Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
apiVersion: v1
kind: Service
metadata:
name: ext-order
labels:
app: order
annotations:
service.beta.kubernetes.io/oci-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/oci-load-balancer-tls-secret: ssl-certificate-secret
spec:
type: LoadBalancer
ports:
- port: 443
name: https
targetPort: 8080
selector:
app: order