-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.1 KB
/
k6-qryn-bun.yml
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
name: K6 Test qryn:bun
on:
workflow_dispatch:
jobs:
build:
name: Run k6 on qryn:latest
runs-on: ubuntu-latest
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123
qryn:
image: qxip/qryn:bun
ports:
- 3100:3100
env:
CLICKHOUSE_SERVER: clickhouse
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Download k6 for Prometheus
run: |
wget https://github.com/grafana/xk6-client-prometheus-remote/releases/download/v0.3.1/k6_rw_v0.3.1_linux_amd64
chmod +x k6_rw_v0.3.1_linux_amd64
mv k6_rw_v0.3.1_linux_amd64 k6
- name: Run k6 local test
run: ./k6 run qryn-loadtest.js
env:
K6_WRITE_HOSTNAME: "localhost:3100"
K6_READ_HOSTNAME: "localhost:3100"
K6_WRITE_REQUEST_RATE: 1
K6_WRITE_SERIES_PER_REQUEST: 100
K6_READ_REQUEST_RATE: 1
K6_DURATION_MIN: 1
RAMP_UP_MIN: 0