---
id: openebs-pool-network-delay
title: OpenEBS Pool Network Latency Experiment Details
sidebar_label: Pool Network Latency
original_id: openebs-pool-network-delay
---
---
## Experiment Metadata
| Variables |
Description |
Specify In ChaosEngine |
Notes |
| APP_PVC |
The PersistentVolumeClaim used by the stateful application |
Mandatory |
PVC can use OpenEBS cStor storage class |
| LIB_IMAGE |
The chaos library image used to inject the latency |
Optional |
Defaults to `gaiaadm/pumba:0.6.5`. Supported: `docker : gaiaadm/pumba:0.6.5` |
| TOTAL_CHAOS_DURATION |
Total duration for which network latency is injected |
Optional |
Defaults to 60 seconds |
| NETWORK_DELAY |
Egress delay injected into the pool container |
Optional |
Defaults to 60000 milliseconds (60s) |
| DATA_PERSISTENCE |
Flag to perform data consistency checks on the application |
Optional |
Default value is disabled (empty/unset). It supports only `mysql` and `busybox`. Ensure configmap with app details are created |
| INSTANCE_ID |
A user-defined string that holds metadata/info about current run/instance of chaos. Ex: 04-05-2020-9-00. This string is appended as suffix in the chaosresult CR name. |
Optional |
Ensure that the overall length of the chaosresult CR is still < 64 characters |
#### Sample ChaosEngine Manifest
[embedmd]: # "https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-pool-network-delay/engine.yaml"
```yaml
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: pool-chaos
namespace: default
spec:
annotationCheck: "false"
appinfo:
appns: "default"
applabel: "app=nginx"
appkind: "deployment"
chaosServiceAccount: pool-network-delay-sa
monitoring: false
# It can be delete/retain
jobCleanUpPolicy: "delete"
experiments:
- name: openebs-pool-network-delay
spec:
components:
env:
- name: APP_PVC
value: "demo-nginx-claim"
- name: OPENEBS_NAMESPACE
value: "openebs"
# in milliseconds
- name: NETWORK_DELAY
value: "60000"
- name: TOTAL_CHAOS_DURATION
value: "60" # in seconds
```
### Create the ChaosEngine Resource
- Create the ChaosEngine manifest prepared in the previous step to trigger the Chaos.
`kubectl apply -f chaosengine.yml`
### Watch Chaos progress
- View network delay in action by setting up a ping to the storage controller in the OpenEBS namespace
- Watch the behaviour of the application pod and the OpenEBS data replica/pool pods by setting up in a watch on the respective namespaces
`watch -n 1 kubectl get pods -n