Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drew #1

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config:
target: "http://ekko-ekkos-T56QXUWSORKN-964893551.us-east-2.elb.amazonaws.com"
target: "http://ekko-ekkos-YK9SB7GQBXVU-1280264013.us-east-2.elb.amazonaws.com"
phases:
- duration: 10
arrivalRate: 1
Expand All @@ -8,7 +8,7 @@ config:
socketio:
transports: ["websocket"]
auth:
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImFwcE5hbWUiOiJsb2FkdGVzdCIsImlhdCI6MTYyMTQ4MDE0Mn0.E6zZGs0Xw7s-MhfmFg1F73RHDvbXoZ5E4xoTANASu1s"
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiYXBwTmFtZSI6ImxvYWR0ZXN0IiwiaWF0IjoxNjIxNTU2MTM2fQ.TFcvBGww4qgg04snU59En9pJEESD2otToqkdASn-FZg"
scenarios:
- name: ekko Test
engine: socketio-v3
Expand Down
32 changes: 32 additions & 0 deletions config_loop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

config:
target: "http://ekko-ekkos-1QZ0F5RQERLFR-1436539638.us-east-1.elb.amazonaws.com/loadtest"
engines:
socketio-v3: {}
socketio:
transports: ["websocket"]
auth:
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImFwcE5hbWUiOiJsb2FkdGVzdCIsImlhdCI6MTYyMTYzNDIwNX0.B-Uv1ETUw3xvYF74PPrvfUTFcHoktfpHerGefniOaqQ"
uuid: "hi"
phases:
- duration: 100
arrivalRate: 25

scenarios:
- name: An IoT Device
engine: socketio-v3
flow:
- emit: ["subscribe", { channels: ["greeting"], uuid: "nobody" }]
# - think: 1000
# - loop:
# - emit:
# [
# "publish",
# { channel: "greeting", message: { text: "my message" } },
# ]
# - think: 60
# count: 10
- think: 150
25 changes: 15 additions & 10 deletions config_pub.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
config:
target: "http://ekko-ekkos-T56QXUWSORKN-964893551.us-east-2.elb.amazonaws.com/loadtest"
target: "http://ekko-ekkos-1QZ0F5RQERLFR-1436539638.us-east-1.elb.amazonaws.com/loadtest"
phases:
- duration: 10
- duration: 1
arrivalRate: 1
engines:
socketio-v3: {}
socketio:
transports: ["websocket"]
auth:
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImFwcE5hbWUiOiJsb2FkdGVzdCIsImlhdCI6MTYyMTQ4MDE0Mn0.E6zZGs0Xw7s-MhfmFg1F73RHDvbXoZ5E4xoTANASu1s"
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImFwcE5hbWUiOiJsb2FkdGVzdCIsImlhdCI6MTYyMTYzNDIwNX0.B-Uv1ETUw3xvYF74PPrvfUTFcHoktfpHerGefniOaqQ"
uuid: "hi"
scenarios:
- name: ekko Test
- name: An IoT Device
engine: socketio-v3
flow:
- emit:
[
"publish",
{ channel: "greeting", message: { text: "hi" }, uuid: "none" },
]
- think: 10
# - emit: ["subscribe", { channels: ["greeting"], uuid: "nobody" }]
- think: 120
- loop:
- emit:
[
"publish",
{ channel: "greeting", message: { text: "my message" } },
]
- think: 1
count: 100
- think: 1
Empty file added functions.js
Empty file.
6 changes: 4 additions & 2 deletions monitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<script src="https://d3irfuxwybyrt2.cloudfront.net/ekko-client-v2.2.6.js"></script>
<script>
const ekko = new Ekko({
host: "http://ekko-ekkos-T56QXUWSORKN-964893551.us-east-2.elb.amazonaws.com",
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiYXBwTmFtZSI6ImxvYWR0ZXN0IiwiaWF0IjoxNjIxNDgwNDc3fQ.JlYYcvZ-_GI7r6lwFvDpCTzBI7aI-BoAZUE-EavUJXs",
host:
"http://ekko-ekkos-1QZ0F5RQERLFR-1436539638.us-east-1.elb.amazonaws.com",
jwt:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImFwcE5hbWUiOiJsb2FkdGVzdCIsImlhdCI6MTYyMTYzNDIwNX0.B-Uv1ETUw3xvYF74PPrvfUTFcHoktfpHerGefniOaqQ",
appName: "loadtest",
});

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"scripts": {
"load": "artillery run config.yml",
"pub": "artillery run config_pub.yml"
"pub": "artillery run config_pub.yml",
"loop": "artillery run config_loop.yml"
},
"license": "MIT",
"devDependencies": {
Expand Down
Loading