-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lucas Fontes <[email protected]>
- Loading branch information
Showing
8 changed files
with
145 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: blaster-component | ||
annotations: | ||
description: Blast Away | ||
wasmcloud.dev/authors: Cosmonic | ||
spec: | ||
components: | ||
- name: component | ||
type: component | ||
properties: | ||
image: ttl.sh/da0244dc-90ee-4de3-8671-962a95c024d1:24h | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import wrpc from "k6/x/wrpc"; | ||
|
||
export const options = { | ||
scenarios: { | ||
blaster: { | ||
executor: "constant-vus", | ||
vus: 10, | ||
duration: "15m", | ||
exec: "wrpcBlaster", | ||
}, | ||
// http: { | ||
// executor: "constant-vus", | ||
// vus: 10, | ||
// duration: "15m", | ||
// exec: "httpBlaster", | ||
// }, | ||
}, | ||
}; | ||
|
||
let blaster = wrpc.blaster({ | ||
nats: { | ||
url: "nats://nats-headless.default.svc.cluster.local:4222", | ||
prefix: "default.blaster_component-component", | ||
}, | ||
}); | ||
|
||
let http = wrpc.http({ | ||
nats: { | ||
url: "nats://nats-headless.default.svc.cluster.local:4222", | ||
prefix: "default.rust_hello_world-http_component", | ||
}, | ||
}); | ||
|
||
export function wrpcBlaster() { | ||
blaster.blast(); | ||
} | ||
|
||
export function httpBlaster() { | ||
http.get("http://localhost:8080/"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import wrpc from "k6/x/wrpc"; | ||
|
||
export const options = { | ||
scenarios: { | ||
blaster: { | ||
executor: "constant-vus", | ||
vus: 10, | ||
duration: "15m", | ||
exec: "wrpcBlaster", | ||
}, | ||
// http: { | ||
// executor: "constant-vus", | ||
// vus: 10, | ||
// duration: "15m", | ||
// exec: "httpBlaster", | ||
// }, | ||
}, | ||
}; | ||
|
||
let blaster = wrpc.blaster({ | ||
nats: { | ||
url: "nats://nats-headless.default.svc.cluster.local:4222", | ||
prefix: "wasmtime", | ||
}, | ||
}); | ||
|
||
let http = wrpc.http({ | ||
nats: { | ||
url: "nats://nats-headless.default.svc.cluster.local:4222", | ||
prefix: "wasmtime", | ||
}, | ||
}); | ||
|
||
export function wrpcBlaster() { | ||
blaster.blast(); | ||
} | ||
|
||
export function httpBlaster() { | ||
http.get("http://localhost:8080/"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: k6.io/v1alpha1 | ||
kind: TestRun | ||
metadata: | ||
name: wasmtime | ||
spec: | ||
parallelism: 5 | ||
# pod anti-affinity | ||
separate: true | ||
arguments: "--tag test-id=wasmtime -o experimental-opentelemetry" | ||
runner: | ||
image: ghcr.io/cosmonic-labs/xk6-wrpc:main | ||
imagePullPolicy: Always | ||
env: | ||
- name: K6_OTEL_GRPC_EXPORTER_INSECURE | ||
value: "true" | ||
- name: K6_OTEL_GRPC_EXPORTER_ENDPOINT | ||
value: "otel-collector-headless.default.svc.loadtesting:4317" | ||
- name: K6_OTEL_METRIC_PREFIX | ||
value: "k6_" | ||
script: | ||
configMap: | ||
name: tests | ||
file: wasmtime-test.js |