Background
In a real production environment, various uncertain factors (such as machine power failure, and network delay) may result in inconsistent system time on the nodes in a distributed system. If the nodes have inconsistent time, events generated by the system will be disordered, which may have catastrophic consequences on the system. For this reason, the platform provides a fault action for simulating a real CVM system time skew. Users can verify the resilience of the system in the event of a system time skew.
Experiment Implementation
Step 1: Experiment Preparation
Prepare several CVM instance objects for the experiment.
Step 2: Experiment Orchestration
2. Click Skip and create a blank experiment, fill in the experiment information, and select a CVM instance for an experiment objective.
3. Click Add Now to add an experiment action, select Shell Script, click CVM time skew, and click Next.
4. Configure action parameters for fault actions, and click Confirm.
5. After action parameter configuration, click Next. After confirming all configurations, click Submit to complete experiment creation.
Step 3: Experiment Execution
1. Check CVM system time before the experiment.
2. Go to Experiment Details, select actions to be executed, and click Execute to start the experiment.
3. Click the Action Card to check details of an action.
4. Check of CVM instance system time, which has skewed.
5. Manually execute recovery actions. You can see that time has returned to normal.
Was this page helpful?