Stopping Migration Tasks
When using Logstash for large-scale data migration or log ingestion, you may need to suspend or terminate pipelines to allow for policy adjustment or configuration optimization, or upon task completion. However, inappropriately terminating pipelines may cause ingestion checkpoint loss or data inconsistency between the source and destination. CSS provides two methods for stopping Logstash pipelines: Stop All and Hot Stop. Each method is designed for specific task scenarios. By selecting the appropriate method, you can ensure data migration and log ingestion tasks are stopped safely.
Comparing Pipeline Stop Options
| Stop Option | Stop All | Hot Stop |
|---|---|---|
| Pipeline Status | The pipeline status changes from Running to Stopped. | The pipeline is removed. |
| How It Works | A global signal is sent to the Logstash process to block the pipeline execution logic without deregistering the configuration metadata. | A dynamic unloading operation is performed on the selected pipeline to disassociate the configuration file. The Logstash process will no longer load this pipeline. |
| Data integrity | Stopping a pipeline may cause brief latency for data in transit or trigger an offset reset. Ensure that the source data maintains traceability, for example, via incremental change-tracking columns in the source database. Additionally, it will immediately interrupt data migration. Exercise caution. | |
| When to Use | Use this option when you are preparing your cluster for a comprehensive maintenance, or when you need to release resources during peak hours. With this option, you can suspend pipelines while retaining their configuration to allow for a one-click restoration later. | Use this option when you want to permanently remove a pipeline that is no longer needed. This releases resources without interrupting other pipelines. |
Prerequisites
There are Running pipeline tasks in the configuration center of the Logstash cluster.
Stop All
Suspend all running pipelines in the cluster in one click.
- Go to the Configuration Center page.
- Log in to the CSS management console.
- In the navigation pane on the left, choose Clusters > Logstash.
- In the cluster list, click the name of the target cluster. The cluster information page is displayed.
- Click the Configuration Center tab.
- Above the pipeline list, click Stop All.
- In the displayed dialog box, click OK.
- Verify the result. Check the Status column in the pipeline list and confirm that all pipelines are now Stopped.
Hot Stop
Remove a specific pipeline without interrupting other pipelines.
- Go to the Configuration Center page.
- Log in to the CSS management console.
- In the navigation pane on the left, choose Clusters > Logstash.
- In the cluster list, click the name of the target cluster. The cluster information page is displayed.
- Click the Configuration Center tab.
- In the pipeline list, select the target pipeline, and click Hot Stop above.
- In the displayed dialog box, click OK.
- Verify the result. Confirm that the selected pipeline is no longer in the pipeline list.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot