/hasura-load-test-with-k6

hasura-load-test-with-k6

Primary LanguageJavaScript

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