-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore: bring in changes from #1393 to next * chore: backport to v0.48 * chore: remove test services * chore: backport to v0.48 * chore: backport to v0.47
- Loading branch information
1 parent
f9d6bff
commit 9040dce
Showing
36 changed files
with
678 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
docs/sources/next/javascript-api/xk6-disruptor/faults/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
--- | ||
title: 'Faults' | ||
excerpt: 'xk6-disruptor: Fault Description' | ||
weight: 01 | ||
weight: 100 | ||
--- | ||
|
||
# Faults | ||
|
||
A fault is as an abnormal condition that affects a system component and which may lead to a failure. | ||
|
||
| Fault type | Description | | ||
| ------------------------------------------------------------------------------------ | ------------------------------------------- | | ||
| [gRPC Fault](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/xk6-disruptor/faults/grpc) | Fault affecting gRPC requests from a target | | ||
| [HTTP Fault](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/xk6-disruptor/faults/http) | Fault affecting HTTP requests from a target | | ||
| Fault type | Description | | ||
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- | | ||
| [gRPC Fault](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/xk6-disruptor/faults/grpc) | Fault affecting gRPC requests from a target | | ||
| [HTTP Fault](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/xk6-disruptor/faults/http) | Fault affecting HTTP requests from a target | | ||
| [Pod Termination Fault](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/xk6-disruptor/faults/pod-termination) | Fault terminating a number of target Pods | |
33 changes: 33 additions & 0 deletions
33
docs/sources/next/javascript-api/xk6-disruptor/faults/pod-termination.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: 'Pod Termination' | ||
description: 'xk6-disruptor: Pod Termination Fault attributes' | ||
weight: 03 | ||
--- | ||
|
||
# Pod Termination | ||
|
||
A Pod Termination Fault allows terminating either a fixed number or a percentage of the pods that matching a selector or back a service. | ||
|
||
A Pod Termination fault is defined by the following attributes: | ||
|
||
| Attribute | Type | Description | | ||
| --------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| count | integer or percentage | the number of pods to be terminated. It can be specified as a integer number or as a percentage, for example `30%`, that defines the fraction of target pods to be terminated | | ||
|
||
{{% admonition type="note" %}} | ||
|
||
If the count is a percentage and there are no enough elements in the target pod list, the number is rounded up. | ||
For example '25%' of a list of 2 target pods will terminate one pod. | ||
If the list of target pods is not empty, at least one pod is always terminated. | ||
|
||
{{% /admonition %}} | ||
|
||
## Example | ||
|
||
This example defines a PorTermination fault that will terminate `30%` of target pods | ||
|
||
```javascript | ||
const fault = { | ||
count: '30%', | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/sources/next/javascript-api/xk6-disruptor/poddisruptor/constructor.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
docs/sources/next/javascript-api/xk6-disruptor/poddisruptor/injectgrpcfaults.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.