Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
806ddd63
Unverified
Commit
806ddd63
authored
Jan 25, 2019
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load test/ha fixes
parent
95d9328c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
devenv/docker/ha_test/docker-compose.yaml
+2
-1
devenv/docker/loadtest/auth_token_test.js
+2
-2
devenv/docker/loadtest/run.sh
+6
-2
No files found.
devenv/docker/ha_test/docker-compose.yaml
View file @
806ddd63
...
...
@@ -55,7 +55,8 @@ services:
# - GF_DATABASE_SSL_MODE=disable
# - GF_SESSION_PROVIDER=postgres
# - GF_SESSION_PROVIDER_CONFIG=user=grafana password=password host=db port=5432 dbname=grafana sslmode=disable
-
GF_LOG_FILTERS=alerting.notifier:debug,alerting.notifier.slack:debug
-
GF_LOG_FILTERS=alerting.notifier:debug,alerting.notifier.slack:debug,auth:debug
-
GF_LOGIN_ROTATE_TOKEN_MINUTES=2
ports
:
-
3000
depends_on
:
...
...
devenv/docker/loadtest/auth_token_test.js
View file @
806ddd63
...
...
@@ -6,8 +6,8 @@ export let options = {
noCookiesReset
:
true
};
let
endpoint
=
__ENV
.
URL
||
'http://localhost:3000'
const
client
=
createClient
(
endpoint
)
let
endpoint
=
__ENV
.
URL
||
'http://localhost:3000'
;
const
client
=
createClient
(
endpoint
)
;
export
const
setup
=
()
=>
{
const
basicAuthClient
=
createBasicAuthClient
(
endpoint
,
'admin'
,
'admin'
);
...
...
devenv/docker/loadtest/run.sh
View file @
806ddd63
...
...
@@ -4,17 +4,21 @@ PWD=$(pwd)
run
()
{
duration
=
'15m'
url
=
'http://localhost:3000'
while
getopts
":d:"
o
;
do
while
getopts
":d:
u:
"
o
;
do
case
"
${
o
}
"
in
d
)
duration
=
${
OPTARG
}
;;
u
)
url
=
${
OPTARG
}
;;
esac
done
shift
$((
OPTIND-1
))
docker run
-t
--network
=
host
-v
$PWD
:/src
--rm
-i
loadimpact/k6:master run
--vus
2
--duration
$duration
src/auth_token_test.js
docker run
-t
--network
=
host
-v
$PWD
:/src
-
e
URL
=
$url
-
-rm
-i
loadimpact/k6:master run
--vus
2
--duration
$duration
src/auth_token_test.js
}
run
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment