With the Swift Log Migration function, you can migrate the logdb log data of a project from Swift storage to Elasticsearch storage.
After the migration is complete, you can switch the data connection of the original analysis tables based on logdb to continue viewing and using them.
You can use this function in the following two scenarios:
1. Log migration within the same project: A project is switched from Swift storage to Elasticsearch storage. This scenario is common when Elasticsearch is used as the log storage component after a project crash.
2. Log migration across projects: Operation logs in Swift of one project are migrated to Elasticsearch of another project. This scenario is common when a Non-FineOps-deployed project is migrated to a FineOps-deployed project.
Applicable scenario: A project is switched from Swift storage to Elasticsearch storage. This scenario is common when Elasticsearch is used after a project crash. In this case, select the same project from the Swift Storage Project and Elasticsearch Log Project drop-down lists.
Before starting the migration, complete the following preparations. After you select a project, FineOps automatically performs an environment check.
1. The FineOps version must be V2.37.0 or later.
2. FineOps must have been connected to the project.
3. Operation logs stored in Swift must exist in the project. If Swift operation logs have never been enabled, you do not need to use the Swift Log Migration function.
4. Elasticsearch for operation log storage must have been enabled for the project. For details, see Connecting Elasticsearch to Projects for Log Service.
5. The remaining available disk capacity of Elasticsearch must be greater than the disk capacity occupied by current Swift logs.
6. No other Swift Log Migration task can be running in FineOps. Only one migration task can run at a time.
7. You are advised to perform the migration during non-production hours because the migration process occupies high server disk I/O and network I/O.
8. After all operation logs stored in Swift in the project have been migrated to Elasticsearch, reverting to Swift storage is not supported.
1. Log in to FineOps as the admin, and choose Maintenance Center > Project Migration > Swift Log Migration to go to the migration configuration page.
2. Select the same project from the Swift Storage Project and Elasticsearch Log Project drop-down lists.
3. FineOps automatically performs an environment check on the current project. Continue after all check items pass.
The pass criteria and solutions for the related check items are shown in the following table.
Error: The task status check failed. Try again or check the logs.
Pass Criteria: No other Swift Log Migration task is running in FineOps or the selected project.
Error: The target project [xxx] does not have an Elasticsearch log store configured. Configure it in the project before migration.
Pass Criteria: The target project has been configured with the Elasticsearch storage component, and the Elasticsearch Implementation of LogDB plugin has been installed and enabled in the project.
Error: The source project [xxx] has the Elasticsearch log plugin enabled, which conflicts with Swift logs. Disable the Elasticsearch plugin and restart the project to read Swift log data.
Pass Criteria: FineOps can read the tables to be migrated from Swift.
Solution: Because the current project has the Elasticsearch log plugin enabled, which conflicts with Swift logs, this check item generally cannot pass. Disable the Elasticsearch Implementation of LogDB plugin and restart the project before reading Swift log data.
Click Auto Switchover (Disable Elasticsearch and Restart) in the pop-up message.
Wait until FineOps automatically disables the plugin in the project and restarts the project.
After the log mode is switched successfully, perform the migration.
4. Select the start date and end date in Time Range. The default value is from the start time to the end time of the current project Swift logs.
5. Select log tables from the Logs to Migrate drop-down list. Multiple selection and full selection are supported.
You are advised to select only the log tables that require analysis, and prioritize the migration of execution record logs (fine_record_execute).
Performance event tracking log tables contain a large data volume and account for approximately 60% of the total log volume. If you do not need to analyze these log tables, you can skip migrating them to shorten the migration time.
6. Click Start Migration.
7. After the migration starts, the page displays migration progress information.
Disk Check: If disk space is insufficient, the migration cannot start.
Estimated Time Remaining: It displays the estimated time remaining based on the current migration progress.
Migration details: The log table name, corresponding log table, and migration progress are displayed. The migration progress is represented by Number of migrated rows/Total number of rows to migrate.
Task pausing is not supported. If a task fails midway, the system automatically reverts all changes made during the current migration.
8. After the migration succeeds, FineOps automatically starts the Elasticsearch plugin of the target project. The pop-up message is displayed: "Elasticsearch Log Plugin Enabled Automatically: Migration completed. The Elasticsearch log plugin (that was temporarily disabled to resolve a Swift/Elasticsearch data conflict) in the project [xxx] has been re-enabled."
Applicable scenario: Operation logs in the Swift storage of one project are migrated to the Elasticsearch storage of another project. This scenario is common when a Non-FineOps-deployed project is migrated to a FineOps-deployed project.
Before starting the migration, complete the following preparations. After you select projects, FineOps automatically performs an environment check.
2. The same FineOps must have been connected to both projects.
3. Elasticsearch storage must not have been enabled for the source project.
4. Operation logs stored in Swift must exist in the source project. If Swift has not stored any operation logs, you do not need to use the Swift Log Migration function.
5. Elasticsearch for operation log storage must have been enabled for the target project. For details, see Connecting Elasticsearch to Projects for Log Service.
6. The remaining available disk capacity of Elasticsearch in the target project must be greater than the disk capacity occupied by current Swift logs in the source project.
7. No other Swift Log Migration task can be running in FineOps. Only one migration task can run at a time.
8. You are advised to perform the migration during non-production hours because the migration process occupies high server disk I/O and network I/O.
2. Select the corresponding projects from the Swift Storage Project and Elasticsearch Log Project drop-down lists.
Swift Storage Project: the source project that uses Swift for operation log storage
Elasticsearch Log Project: the target project that uses Elasticsearch for operation log storage
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy