diff --git a/docs/chaos-engineering/chaos-faults/linux/experiments.ts b/docs/chaos-engineering/chaos-faults/linux/experiments.ts index 25b6833fe6..3c607dc210 100644 --- a/docs/chaos-engineering/chaos-faults/linux/experiments.ts +++ b/docs/chaos-engineering/chaos-faults/linux/experiments.ts @@ -93,13 +93,10 @@ export const experiments: ExperimentDetails[] = [ category: "linux", }, { - name: "Redis Sentinel stop", + name: "Redis cache penetration", description: - "Linux Redis Sentinel stop fault stops the Redis Sentinel server for a specific chaos duration and then starts it.", - tags: ["linux","stop"], + "Redis cache penetration fault continuously sends cache requests to the Redis database to find the value for a non-existing key. This continuous request reduces the performance of the application.", + tags: ["linux"], category: "linux", }, ]; - - - diff --git a/docs/chaos-engineering/chaos-faults/linux/linux.md b/docs/chaos-engineering/chaos-faults/linux/linux.md index c3498cab01..643b881c6f 100644 --- a/docs/chaos-engineering/chaos-faults/linux/linux.md +++ b/docs/chaos-engineering/chaos-faults/linux/linux.md @@ -246,19 +246,4 @@ Linux time chaos injects chaos to change the time of the Linux machine. - - - - -### Redis Sentinel stop - -Linux Redis Sentinel stop fault stops the [Redis Sentinel server](https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel) for a specific chaos duration and then starts it. - - -Use cases - -- Determines the resilience of Redis-dependant application when the Redis server is unavailable. - - - \ No newline at end of file diff --git a/docs/chaos-engineering/chaos-faults/linux/redis-cache-penetration.md b/docs/chaos-engineering/chaos-faults/linux/redis-cache-penetration.md new file mode 100644 index 0000000000..0f24d065e3 --- /dev/null +++ b/docs/chaos-engineering/chaos-faults/linux/redis-cache-penetration.md @@ -0,0 +1,68 @@ +--- +id: redis-cache-penetration +title: Redis cache penetration +--- + +import Ossupport from './shared/note-supported-os.md' +import FaultPermissions from './shared/fault-permissions.md' +import AuthenticationDetails from './shared/redis-auth.md' + +Redis cache penetration fault continuously sends cache requests to the Redis database to find the value for a non-existing key. This continuous request reduces the performance of the application. + +![Redis cache penetration](./static/images/redis-cache-penetration.png) + +## Use cases +- Slows down the database for responses to other requests. +- Determines the resilience of Redis-dependant application when cache requests are continuously sent to a Redis database and they result in a cache miss. + + + + + + + +### Optional tunables + + + + + + + + + + + + + + + + + + + + + + +
Tunable Description Notes
requestCount Number of requests to be sent for accessing the cache. Default: 1000. For more information, go to request count.
duration Duration through which chaos is injected into the target resource. Should be provided in [numeric-hours]h[numeric-minutes]m[numeric-seconds]s format. Default: 30s. Examples: 1m25s, 1h3m2s, 1h3s. For more information, go to duration.
rampTime Period to wait before and after injecting chaos. Should be provided in [numeric-hours]h[numeric-minutes]m[numeric-seconds]s format. Default: 0s. Examples: 1m25s, 1h3m2s, 1h3s. For more information, go to ramp time.
+ +### Number of requests + +The `requestCount` input variable indicates the number of requests sent to access the Redis cache. Redis cache. Its default value is 1000. + +The following YAML snippet illustrates the use of this input variable: + +[embedmd]:# (./static/manifests/redis-cache-penetration/requests.yaml yaml) +```yaml +apiVersion: litmuchaos.io/v1alpha1 +kind: LinuxFault +metadata: + name: redis-cache-penetration + labels: + name: cache-penetration +spec: + redisChaos/inputs: + duration: 30s + requestCount: 1000 + rampTime: "" +``` \ No newline at end of file diff --git a/docs/chaos-engineering/chaos-faults/linux/static/images/redis-cache-penetration.png b/docs/chaos-engineering/chaos-faults/linux/static/images/redis-cache-penetration.png new file mode 100644 index 0000000000..4daa492dda Binary files /dev/null and b/docs/chaos-engineering/chaos-faults/linux/static/images/redis-cache-penetration.png differ diff --git a/docs/chaos-engineering/chaos-faults/linux/static/manifests/redis-cache-penetration/requests.yaml b/docs/chaos-engineering/chaos-faults/linux/static/manifests/redis-cache-penetration/requests.yaml new file mode 100644 index 0000000000..f3844aa906 --- /dev/null +++ b/docs/chaos-engineering/chaos-faults/linux/static/manifests/redis-cache-penetration/requests.yaml @@ -0,0 +1,11 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: LinuxFault +metadata: + name: redis-cache-penetration + labels: + name: cache-penetration +spec: + redisChaos/inputs: + duration: 30s + requestCount: 1000 + rampTime: "" \ No newline at end of file