Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Kubernetes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yann
Kubernetes
Commits
f3e57bd5
Commit
f3e57bd5
authored
3 years ago
by
Yann
Browse files
Options
Downloads
Patches
Plain Diff
Delete script.js
parent
ec4576f3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
K6/script.js
+0
-24
0 additions, 24 deletions
K6/script.js
with
0 additions
and
24 deletions
K6/script.js
deleted
100644 → 0
+
0
−
24
View file @
ec4576f3
import
http
from
'
k6/http
'
;
import
{
check
,
group
,
sleep
}
from
'
k6
'
;
export
const
options
=
{
stages
:
[
{
duration
:
'
5m
'
,
target
:
60
},
// simulate ramp-up of traffic from 1 to 60 users over 5 minutes.
{
duration
:
'
10m
'
,
target
:
60
},
// stay at 60 users for 10 minutes
{
duration
:
'
3m
'
,
target
:
100
},
// ramp-up to 100 users over 3 minutes (peak hour starts)
{
duration
:
'
2m
'
,
target
:
100
},
// stay at 100 users for short amount of time (peak hour)
{
duration
:
'
3m
'
,
target
:
60
},
// ramp-down to 60 users over 3 minutes (peak hour ends)
{
duration
:
'
10m
'
,
target
:
60
},
// continue at 60 for additional 10 minutes
{
duration
:
'
5m
'
,
target
:
0
},
// ramp-down to 0 users
],
thresholds
:
{
http_req_duration
:
[
'
p(99)<1500
'
],
// 99% of requests must complete below 1.5s
},
};
export
default
function
()
{
const
result
=
http
.
get
(
'
http://192.168.39.174:30068/
'
);
check
(
result
,
{
'
http response status code is 200
'
:
result
.
status
===
200
,
});
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment