Menu
Documentation
Grafana k6
Testing guides
Injecting faults with xk6-disruptor
xk6-disruptor API
ServiceDisruptor
terminatePods()
Open source
terminatePods()
terminatePods
terminates a number of pods that belong to the service specified in the ServiceDisruptor.
Parameter | Type | Description |
---|---|---|
fault | object | description of the Pod Termination fault |
Example
JavaScript
const fault = {
count: 2,
};
disruptor.terminatePods(fault);
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
![Performance testing and observability in Grafana Cloud](/media/webinar/Webinar---Performance-testing-and-observability-in-Grafana-Cloud-notitle.png?w=200 200w, /media/webinar/Webinar---Performance-testing-and-observability-in-Grafana-Cloud-notitle.png?w=400 400w)
Performance testing and observability in Grafana Cloud
In this webinar, learn how Grafana Cloud k6 offers you the best developer experience for performance testing.
![User-centered observability: load testing, real user monitoring, and synthetics](/media/events/obscon/2023/meta/obscon23-session-mi-17-User-centered-observability_-load-testing,-real-user-monitoring,-and-synthetics.png?w=200 200w, /media/events/obscon/2023/meta/obscon23-session-mi-17-User-centered-observability_-load-testing,-real-user-monitoring,-and-synthetics.png?w=400 400w)
User-centered observability: load testing, real user monitoring, and synthetics
Learn how to use load testing, synthetic monitoring, and real user monitoring (RUM) to understand end users' experience of your apps. Watch on demand.