Skip to content

Commit

Permalink
upgrade dependencies, resolve configs and print stat on finish
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoyangnz committed Jun 10, 2021
1 parent 0c49307 commit d5c9deb
Show file tree
Hide file tree
Showing 22 changed files with 9,431 additions and 5,469 deletions.
55 changes: 29 additions & 26 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@

{
"env": {
"browser": false,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-types": 0,
"no-case-declarations": 0,
"no-constant-condition": 0
}
}
"env": {
"browser": false,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-types": 0,
"no-case-declarations": 0,
"no-constant-condition": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"jest/valid-expect": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": 0
}
}
4 changes: 2 additions & 2 deletions examples/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { runner } from '../src';
import './scenarios/sample';
// import './scenarios/composer-story-flow';
// import './scenarios/composer-image-flow';
import { getEnv } from '../src/loadrush/util';
// import { getEnv } from '../src/loadrush/util';

runner.sustain(getEnv('COMPOSER_USERS', 10));
runner.sustain(10);
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
},
"timepicker": {},
"timezone": "",
"title": "LOADRUSH Dashboard",
"uid": "kW_EJd1Mz",
"title": "Loadrush Dashboard",
"uid": "loadrush",
"version": 1
}
56 changes: 0 additions & 56 deletions ops/timescaledb/loadflux.sql

This file was deleted.

56 changes: 56 additions & 0 deletions ops/timescaledb/loadrush.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
CREATE TABLE virtual_user (
dataset VARCHAR NOT NULL,
time TIMESTAMPTZ NOT NULL,
active INTEGER NOT NULL
);

CREATE TABLE request (
dataset VARCHAR NOT NULL,
time TIMESTAMPTZ NOT NULL,
trace VARCHAR NOT NULL,
scenario VARCHAR NOT NULL,
action VARCHAR NOT NULL,
virtual_user INTEGER NOT NULL,
method VARCHAR NOT NULL,
url VARCHAR NOT NULL
);

CREATE TABLE response (
dataset VARCHAR NOT NULL,
time TIMESTAMPTZ NOT NULL,
trace VARCHAR NOT NULL,
method VARCHAR NOT NULL,
url VARCHAR NOT NULL,
timing_wait INTEGER NOT NULL,
timing_dns INTEGER NOT NULL,
timing_tcp INTEGER NOT NULL,
timing_tls INTEGER NOT NULL,
timing_request INTEGER NOT NULL,
timing_first_byte INTEGER NOT NULL,
timing_download INTEGER NOT NULL,
timing_total INTEGER NOT NULL,
status_code INTEGER NOT NULL,
success BOOLEAN,
time_success TIMESTAMPTZ,
failure BOOLEAN,
time_failure TIMESTAMPTZ,
error_capture BOOLEAN,
time_error_capture TIMESTAMPTZ
);

CREATE TABLE error (
dataset VARCHAR NOT NULL,
time TIMESTAMPTZ NOT NULL,
trace VARCHAR NOT NULL,
virtual_user INTEGER NOT NULL,
method VARCHAR NOT NULL,
url VARCHAR NOT NULL,
error VARCHAR NOT NULL,
error_timeout BOOLEAN,
error_network BOOLEAN
);

SELECT create_hypertable('virtual_user', 'time');
SELECT create_hypertable('request', 'time');
SELECT create_hypertable('response', 'time');
SELECT create_hypertable('error', 'time');
Loading

0 comments on commit d5c9deb

Please sign in to comment.