Background
The CFG offers simulations of five types of network faults for Serverless clusters: network disorder, network duplication, network package loss, network delay, and network DNS anomalies. In a Kubernetes cluster, the stability of network performance is crucial for service response speed and user experience, as Pod lifecycles are closely linked to requests. Simulating these network faults helps you better understand your service's performance under different network conditions, allowing you to optimize your application and enhance its fault tolerance.
Experiment Execution
Experiment Preparation
Purchase Serverless cluster container instances and deploy test services.
Experiment Steps
Step 1: Create an Experiment
2. Click Skip and create a blank experiment, and fill in the experiment details.
Step 2: Add Experiment Instances and Actions
Adding Node Type Fault for Regular Node in Standard Cluster
1. In the experiment object configuration step, select Container — Serverless Cluster Pod.
2. Select Add Instance, and select the required Cluster ID and Namespace, which will automatically fetch all Pods in that namespace.
3. Add experiment actions. Select network fault actions under Network Resources.
Network disorder: Simulates scenarios where network data packages arrive at the destination in an order different from the sending order.
Network duplication: Simulates scenarios where network data packages are repeatedly sent during transmission.
Network packet loss: Simulates scenarios where network data packages are lost during transmission.
Network latency: Simulates scenarios where network data packages are delayed in reaching the destination.
DNS tampering: Simulates scenarios with DNS parsing anomalies.
4. Configuring Fault Action Parameters
Network Card: The network interface name must exist in the selected instances; otherwise, fault injection may fail. Use a semicolon (;) to separate multiple network interfaces.
Whitelist Port: Ports that are not affected. Use a semicolon (;) to separate multiple ports.
Local Port: Packages sent from the local machine on specified ports will be affected. Use a semicolon (;) to separate multiple ports.
Remote Port: Packages sent to specified ports will be affected. Use a semicolon (;) to separate multiple ports.
Remote IP: Packages sent to specified IPs will be affected. Use a semicolon (;) to separate multiple IPs.
5. After action parameter configuration, click Next. Configure guardrail policy and monitoring metrics considering actual situations, and click Submit to complete experiment creation.
Step 3: Execute the Experiment
Click Execute Experiment. Since network actions are high-risk, authentication must be completed before executing the action.
Was this page helpful?