Skip to content

rongfengliang/hasura-load-test-with-k6

Repository files navigation

hasura load tests

init table

CREATE TABLE demoapp (
    id integer PRIMARY KEY,
    name text NOT NULL
);
COMMENT ON TABLE demoapp IS 'demoapp';

-- Indices -------------------------------------------------------

CREATE UNIQUE INDEX demoapp_pkey ON demoapp(id int4_ops);

connect conf

  • hasura max_connections
max_connections=300
  • pg
max_connections=2000

load test

with k6

k6 run app.js

prometheus metrics

  • view result
http://localhost:3000
  • load dashboard

inside dash

About

hasura-load-test-with-k6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published