Cross-region configuration management method, device, equipment and medium

The cross-regional configuration management system solves the inefficiency problem caused by manual operations in the existing technology by automatically identifying environmental features and converting configuration content, and realizes efficient and secure configuration management.

CN120470187APending Publication Date: 2025-08-12HANGZHOU SHIQU INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510612788.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

The existing configuration management methods rely too much on manual operations, resulting in inefficient configuration management and difficult to meet the rapidly changing needs.

Method used

Through the cross-region configuration management system, the environmental characteristics of the target distribution region are automatically identified, and the original configuration is converted into the target configuration using the preset language translation model and image unified resource locator conversion technology, including the target text content and target image unified resource locator, ensuring that it is adapted and then distributed.

Benefits of technology

It realizes automatic environment adaptation, reduces manual workload, improves configuration distribution efficiency and accuracy, meets rapidly changing needs, ensures the security of configuration data transmission and storage, and ensures system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120470187A_ABST
    Figure CN120470187A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-region configuration management method and device, equipment and a medium, and relates to the technical field of configuration management, and the method comprises the steps: determining a to-be-distributed original configuration from a preset central configuration library according to a configuration distribution instruction, and determining a target distribution region; if it is judged that the original configuration is not matched with the target distribution region, environment features of the target distribution region are recognized; based on the environment features, converting original text content in the original configuration into target text content by utilizing a preset language translation model, and converting an original picture uniform resource locator in the original configuration into a target picture uniform resource locator to obtain target configuration; and after determining that both the target text content and the target picture uniform resource locator in the target configuration meet the preset conversion index, distributing the target configuration to the target distribution region. Therefore, the problems that the configuration management efficiency is low and the requirement of rapid change is difficult to meet due to the fact that the current configuration management method depends too much on manual operation can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of configuration management technology, and in particular to a cross-region configuration management method, apparatus, device and medium. Background Art

[0002] In global business scenarios, enterprises often need to deploy systems across multiple regions and environments. However, differences in language, resource paths, and other factors lead to significant discrepancies in system configuration requirements across these environments. This necessitates manual configuration adjustments and distribution, which is complex, increasing workload and the risk of errors. Furthermore, manual configuration distribution is time-consuming and difficult to meet rapidly changing needs.

[0003] To sum up, how to solve the problem that current configuration management methods are too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs is a technical problem that needs to be solved urgently. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a cross-region configuration management method, apparatus, device, and medium that can solve the problem that current configuration management methods are too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs. The specific solution is as follows:

[0005] In a first aspect, the present application provides a cross-region configuration management method, which is applied to a cross-region configuration management system, including:

[0006] Determine the original configuration to be distributed from the preset central configuration library according to the received configuration distribution instruction, and determine the target distribution area;

[0007] If it is determined that the original configuration is not compatible with the target distribution area, identifying environmental characteristics of the target distribution area;

[0008] Based on the environmental characteristics, a preset language translation model is used to convert original text content in the original configuration into target text content adapted to the target distribution region, and an original image uniform resource locator in the original configuration into a target image uniform resource locator adapted to the target distribution region, so as to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator;

[0009] After determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, the target configuration is distributed to the target distribution area.

[0010] Optionally, identifying environmental characteristics of the target distribution area includes:

[0011] Obtaining environmental information of the target distribution area; the environmental information includes any one or a combination of environmental tags, deployment location information, and configuration-related metadata;

[0012] The regional attributes and deployment type of the target distribution region are identified according to the environmental information; the environmental characteristics include the regional attributes and the deployment type.

[0013] Optionally, the converting of the original text content in the original configuration into target text content adapted to the target distribution region by using a preset language translation model based on the environmental characteristics includes:

[0014] Determining whether the original text content in the original configuration has a corresponding translation record in the target database;

[0015] If there is no corresponding translation record for the original text content in the target database, determining the target code for the target distribution area based on the environmental characteristics;

[0016] Extracting target term information corresponding to the target distribution area from a preset term library using the target code;

[0017] The original text content is translated based on the target terminology information and a preset language translation model, and the original text content is localized and adapted using a preset adaptation mapping table to obtain target text content adapted to the target distribution area, and the target text content is stored as a newly added translation record in the target database.

[0018] Optionally, converting the original image uniform resource locator in the original configuration into a target image uniform resource locator adapted to the target distribution region includes:

[0019] Parsing the original image uniform resource locator to obtain corresponding original image information;

[0020] determining a target code for the target distribution region according to the environmental characteristics, and determining an object storage area corresponding to the target distribution region based on the target code;

[0021] Determining, based on the original picture information, whether there is a picture file in the object storage area that is consistent with the target picture corresponding to the original picture uniform resource locator;

[0022] If there is no image file that is consistent with the target image corresponding to the original image uniform resource locator, the target image is uploaded or copied to the object storage area, and a target image uniform resource locator adapted to the target distribution area is generated.

[0023] Optionally, after determining that both the target text content and the target image uniform resource locator in the target configuration meet preset conversion indicators, distributing the target configuration to the target distribution area includes:

[0024] Reviewing the target text content in the target configuration using the preset language translation model to obtain a first review result;

[0025] Feeding back the target text content to the front end of the cross-region configuration management system, so as to obtain a second review result for the target text content through the front end;

[0026] If both the first review result and the second review result indicate that the target text content has passed the review, then it is determined that the target text content meets the preset conversion index;

[0027] If it is determined that the target picture uniform resource locator in the target configuration is a picture uniform resource locator that has been successfully converted, then determining that the target picture uniform resource locator meets a preset conversion indicator;

[0028] After determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, the target configuration is distributed to the target distribution area.

[0029] Optionally, distributing the target configuration to the target distribution area includes:

[0030] Determine the identity authority information of initiating the configuration distribution instruction;

[0031] If the identity authority information contains authority information indicating that distribution operations can be performed, the target configuration is encrypted using a preset encryption technology, and the encrypted configuration is distributed to the target distribution area, so that after the target distribution area receives the encrypted configuration, it decrypts the encrypted configuration based on a preset decryption technology corresponding to the preset encryption technology, and deploys the decrypted target configuration locally.

[0032] Optionally, before distributing the target configuration to the target distribution area, the method further includes:

[0033] The current configuration of the target distribution area is backed up so that after monitoring that the distribution status of the target configuration is abnormal, the configuration of the target distribution area is rolled back to the current configuration, and the abnormal status is fed back to the front end of the cross-region configuration management system, and the distribution of the target configuration is retried based on a preset retry frequency until the target configuration is successfully distributed.

[0034] In a second aspect, the present application provides a cross-region configuration management device, which is applied to a cross-region configuration management system, including:

[0035] A region determination module is used to determine the original configuration to be distributed from a preset central configuration library according to the received configuration distribution instruction, and determine the target distribution region;

[0036] a feature recognition module, configured to recognize environmental features of the target distribution area if it is determined that the original configuration is not compatible with the target distribution area;

[0037] a locator conversion module, configured to convert, based on the environmental characteristics, the original text content in the original configuration into target text content adapted to the target distribution region using a preset language translation model, and convert the original image uniform resource locator in the original configuration into a target image uniform resource locator adapted to the target distribution region, so as to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator;

[0038] The configuration distribution module is configured to distribute the target configuration to the target distribution area after determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators.

[0039] In a third aspect, the present application provides an electronic device, comprising:

[0040] Memory, used to store computer programs;

[0041] The processor is configured to execute the computer program to implement the aforementioned cross-region configuration management method.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned cross-region configuration management method is implemented.

[0043] In the present application, an original configuration to be distributed is determined from a preset central configuration library according to a received configuration distribution instruction, and a target distribution area is determined; if it is determined that the original configuration is not compatible with the target distribution area, the environmental characteristics of the target distribution area are identified; based on the environmental characteristics, a preset language translation model is used to convert the original text content in the original configuration into target text content that is compatible with the target distribution area, and the original image uniform resource locator in the original configuration is converted into a target image uniform resource locator that is compatible with the target distribution area, so as to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator; after determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, the target configuration is distributed to the target distribution area. As can be seen from the above, after receiving the configuration distribution instruction, the present application determines the original configuration to be distributed and the target distribution area from the preset central configuration library according to the configuration distribution instruction, and after judging that the original configuration is not compatible with the target distribution area, automatically identifies the environmental characteristics of the target distribution area, and based on the environmental characteristics, respectively converts the original text content and the original image uniform resource locator in the original configuration to the target text content and the target image uniform resource locator adapted to the target distribution area to obtain the target configuration, and at the same time, after determining that the target text content and the target image uniform resource locator in the target configuration meet the preset conversion indicators, distributes the target configuration to the target distribution area. In this way, through the above process of the present application, after receiving the configuration distribution instruction and judging that the original configuration is not compatible with the target distribution area, the original text content and the original image uniform resource locator are automatically converted, realizing automatic environmental adaptation and reducing manual workload, thereby solving the problem that the current configuration management method is too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0045] Figure 1 This is a flow chart of a cross-region configuration management method disclosed in this application;

[0046] Figure 2 This is a schematic diagram of the module architecture of a cross-region configuration management method disclosed in this application;

[0047] Figure 3 This is a timing diagram of the automatic conversion module process of a cross-region configuration management method disclosed in this application;

[0048] Figure 4 This is a schematic diagram of the structure of a cross-region configuration management device disclosed in this application;

[0049] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0051] In global business scenarios, enterprises often need to deploy systems across multiple regions and environments. However, differences in language, resource paths, and other factors lead to significant discrepancies in system configuration requirements across these environments. This necessitates manual configuration adjustments and distribution, which is complex, increasing workload and the risk of errors. Furthermore, manual configuration distribution is time-consuming and difficult to meet rapidly changing needs.

[0052] In order to overcome the above technical problems, the present application provides a cross-regional configuration management method to solve the problem that the current configuration management method is too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs.

[0053] See also Figure 1 As shown, an embodiment of the present invention discloses a cross-region configuration management method, which is applied to a cross-region configuration management system, including:

[0054] Step S11: determining the original configuration to be distributed from a preset central configuration library according to the received configuration distribution instruction, and determining the target distribution area.

[0055] In this embodiment, after receiving a configuration distribution instruction, the cross-region configuration management system determines the original configuration to be distributed from a preset central configuration repository and determines the target distribution region based on the configuration distribution instruction. The configuration distribution instruction is initiated by a user through the front-end of the cross-region configuration management system and includes the user-specified original configuration and the target distribution region. The central configuration repository is used to store user-defined configurations to be distributed and is responsible for unified configuration management across all environments, supporting multiple formats such as JSON (a lightweight text data exchange format), YAML (a data serialization format), and XML (an extensible markup language).

[0056] It should be pointed out that in order to solve the problem that the current configuration management method is too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs, the cross-regional configuration management system of this application includes an environment perception module, a configuration management module, an automatic conversion module, a distribution module, a monitoring and rollback module, and a log and audit module, such as Figure 2The figure shows a module architecture diagram of a cross-region configuration management method provided by the present application. Among them, the environment perception module is responsible for identifying the regional attributes and deployment type of the environment and capturing the environmental characteristics; the configuration management module is responsible for managing the central configuration library and supporting the storage, version control and template of the configuration; the automatic conversion module is used to intelligently complete the language translation, CDN link and compliance requirement conversion according to the specified environmental characteristics; the distribution module is responsible for implementing the one-click distribution and batch distribution functions of the configuration, using encrypted communication to ensure security; the monitoring and rollback module is used to monitor the configuration distribution status in real time and automatically trigger rollback when an exception occurs; the log and audit module is used to record operation logs and provide a visual interface and audit function. It can be understood that the user only needs to select the target distribution region to initiate the configuration distribution instruction to achieve the one-click distribution function. At the same time, considering that there are some common main configurations in the central configuration library that need to be distributed to multiple regions at the same time, the batch distribution function can be used to select the target distribution region corresponding to the main configuration to be distributed to initiate the configuration distribution instruction. The cross-region configuration management system can determine the type of distribution function to be executed through the configuration distribution instruction and automatically complete the configuration conversion and distribution operation. In addition, since the configuration needs to be adjusted at any time according to the situation and has multiple versions, the configuration management module includes a version control mechanism to ensure that the configuration matches the service version. In this way, this embodiment supports one-click distribution and batch distribution functions, which can meet the user's personalized distribution needs. The distribution mode can be selected according to the needs, which improves the flexibility of configuration distribution; the original configuration to be distributed and the target distribution area are determined based on the received configuration distribution instructions, so that the original configuration can be automatically distributed to the target distribution area later, improving distribution efficiency; the configuration of all environments is uniformly managed through the central configuration library, solving the inefficiency and error-prone problems caused by decentralized configuration management.

[0057] Step S12: If it is determined that the original configuration is not compatible with the target distribution area, then identifying environmental characteristics of the target distribution area.

[0058] In this embodiment, if it is determined that the original configuration is not compatible with the target distribution area, that is, the original configuration cannot be directly distributed to the target distribution area and needs to be processed, the environmental characteristics of the target distribution area are identified so as to dynamically generate a corresponding adaptation configuration based on the environmental characteristics, thereby reducing manual intervention and the complexity of configuration adaptation.

[0059] It should be noted that the process for identifying the environmental characteristics of the target distribution region is as follows: obtaining environmental information of the target distribution region; the environmental information includes any one or a combination of environmental tags, deployment location information, and configuration-related metadata; identifying the regional attributes and deployment type of the target distribution region based on the environmental information; the environmental characteristics include the regional attributes and the deployment type. The regional attributes include, but are not limited to, the target distribution region's language, CDN (Content Delivery Network) requirements, and compliance requirements; and the deployment type includes, but is not limited to, public cloud or private cloud in the target distribution region. Specifically, the environmental awareness module obtains environmental tags and / or deployment location information and / or configuration-related metadata related to the target distribution region, and identifies the regional attributes and deployment type of the target distribution region based on any one or a combination of the environmental tags, deployment location information, and metadata to determine the environmental characteristics of the target distribution region. It should be noted that this embodiment associates the environmental characteristics with configuration requirements to generate environmental adaptation rules, so that a configuration adapted to the environment can be subsequently generated based on the environmental adaptation rules. In this way, after determining that the original configuration is not compatible with the target distribution area, this embodiment first identifies the environmental characteristics of the target distribution area, so as to dynamically generate a corresponding adaptation configuration based on the regional attributes and deployment type of the environmental characteristics, thereby reducing manual intervention and the complexity of configuration adaptation.

[0060] Step S13: Based on the environmental characteristics, a preset language translation model is used to convert the original text content in the original configuration into target text content adapted to the target distribution area, and the original image uniform resource locator in the original configuration is converted into a target image uniform resource locator adapted to the target distribution area to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator.

[0061] In this embodiment, according to the environmental characteristics, a preset language translation model is used to automatically convert the original text content in the original configuration into target text content adapted to the target distribution area, and the original image uniform resource locator (i.e., Uniform Resource Locator, URL) in the original configuration is converted into a target image uniform resource locator adapted to the target distribution area, so as to obtain a target configuration containing the target text content and the target image uniform resource locator. The original text content includes but is not limited to scene names, product descriptions, etc.; the original image uniform resource locator includes but is not limited to scene pictures, product pictures, etc. Specifically, the target configuration uses the environment adaptation rules, based on a preset configuration template, and a preset variable replacement technology to replace the original text content and the original image uniform resource locator with the target text content and the target image uniform resource locator, so as to generate a target configuration that meets the current environmental requirements and ensures the compliance of the target configuration with respect to the target distribution area. As Figure 3 The figure shows a timing diagram of the automatic conversion module process of a cross-region configuration management method provided by this application.

[0062] It should be noted that the processing flow for converting the original text content into the target text content is as follows: determine whether the original text content in the original configuration has a corresponding translation record in the target database; if the original text content does not have a corresponding translation record in the target database, determine the target code of the target distribution area based on the environmental characteristics; use the target code to extract the target term information corresponding to the target distribution area in the preset term library; translate the original text content based on the target term information and the preset language translation model, and use the preset adaptation mapping table to perform localization adaptation operations on the original text content to obtain the target text content adapted to the target distribution area, and store the target text content as a newly added translation record in the target database. Among them, the target database is used to save the historical translation records of the preset language translation model; the preset language translation model is a pre-trained large language model for text translation. Among them, the target code can be the target country code or the target language code. That is, since the translation in this embodiment has a translation memory function and will store the translation record of each translation through the target database, it is possible to first determine whether the original text content in the original configuration has a corresponding translation record in the target database. If so, there is no need to use the preset language translation model for translation again, and the translation record can be directly extracted; if not, the target code of the target distribution area is determined according to the environmental characteristics, and the language of the original text content is detected, and the target term information corresponding to the target distribution area in the preset term library is extracted using the target code, and the original text content is translated based on the target term information and the preset language translation model. At the same time, since the measurement units and the like in different regions are inconsistent, adaptation work is required. Therefore, the measurement units and the like of the original text content are localized and adapted using a preset adaptation mapping table to obtain the target text content adapted to the target distribution area, and the target text content is stored as a new translation record in the target database, so that the next time the original text content needs to be translated, the conversion work can be completed directly through the recorded translation record without having to translate again, thereby improving conversion efficiency.

[0063] It should be further pointed out that the processing flow for converting the original image uniform resource locator to the target image uniform resource locator is as follows: the original image uniform resource locator is parsed to obtain the corresponding original image information; the target code of the target distribution area is determined according to the environmental characteristics, and the object storage area corresponding to the target distribution area is determined based on the target code; based on the original image information, it is determined whether there is an image file consistent with the target image corresponding to the original image uniform resource locator in the object storage area; if there is no image file consistent with the target image corresponding to the original image uniform resource locator, the target image is uploaded or copied to the object storage area, and a target image uniform resource locator adapted to the target distribution area is generated. Wherein, the original image information includes a file path or an object key. That is, the original image uniform resource locator is parsed to obtain the corresponding original image information, the target code of the target distribution area is determined through the environmental characteristics, and the object storage (i.e., Cloud Object Storage, COS) area corresponding to the target distribution area is determined based on the target code. First, a head request (a method of requesting header information of a resource) is used to check whether there is an image file consistent with the target image corresponding to the original image uniform resource locator in the object storage area using the original image information. If so, the image uniform resource locator corresponding to the image file is directly obtained to complete the conversion; if not, the target image is uploaded or copied to the object storage area to complete the cross-region operation and generate a target image uniform resource locator adapted to the target distribution area.

[0064] It should be noted that in order to improve the efficiency of converting the original image uniform resource locator, this embodiment can support a batch pre-conversion function and cache the converted file mapping relationship so that the next time the same image file needs to be converted, the cached file mapping relationship can be directly used. In addition, when the image file corresponding to the original image uniform resource locator has a large memory, its transmission can be asynchronously processed to avoid taking up too long time due to the large file size and occupying the corresponding conversion resources. In addition, this embodiment can also support monitoring the conversion status during the conversion process, so as to automatically retry when monitoring the translation failure of the original text content, automatically resume the transmission when monitoring the interruption of the image transmission, and record the relevant information of the task failure in real time. When it is found that the task cannot be achieved by retrying, an alarm is issued to ensure smooth conversion. In addition, in order to improve the performance of the conversion, this embodiment can also batch process the translation requests and support concurrent processing of multiple products. In this way, this embodiment automatically converts the original text content and original image uniform resource locator in the original configuration into target text content and target image uniform resource locator that are adapted to the target distribution area, thereby realizing intelligent text translation and automatic mapping of image resources to content distribution nodes in the target distribution area, which can improve distribution efficiency and meet rapidly changing needs; the conversion efficiency is improved through the translation memory function of text content and the caching function of images, thereby ensuring the accuracy of distribution.

[0065] Step S14: After determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, the target configuration is distributed to the target distribution area.

[0066] In this embodiment, it is determined whether the target text content and the target image uniform resource locator in the target configuration meet a preset conversion index, and after determining that the preset conversion index is met, the target configuration is distributed to the target distribution area. The preset conversion index is a standard index for measuring whether the original text content and the original image uniform resource locator are successfully converted.

[0067] It should be pointed out that the processing flow for determining whether the target text content and the target image uniform resource locator meet the preset conversion indicators is as follows: the target text content in the target configuration is reviewed using the preset language translation model to obtain a first review result; the target text content is fed back to the front end of the cross-regional configuration management system to obtain a second review result for the target text content through the front end; if the first review result and the second review result both indicate that the target text content has passed the review, then it is determined that the target text content meets the preset conversion indicators; if it is determined that the target image uniform resource locator in the target configuration is a successfully converted image uniform resource locator, then it is determined that the target image uniform resource locator meets the preset conversion indicators; after determining that the target text content and the target image uniform resource locator in the target configuration both meet the preset conversion indicators, the target configuration is distributed to the target distribution area. That is, the target text content in the target configuration is self-reviewed through the preset language translation model, and the target text content is fed back to the front end of the cross-regional configuration management system for manual review by the staff, and then the manual review results for the target text content are obtained through the front end. After the above review results all indicate that the target text content has passed the review, it is determined that the target text content meets the preset conversion indicators; at the same time, it is determined whether the target image uniform resource locator in the target configuration is a successfully converted image uniform resource locator for self-detection. If so, it is determined that the target image uniform resource locator meets the preset conversion indicators, so that the target configuration is distributed to the target distribution area after it is determined that both the target text content and the target image uniform resource locator meet the preset conversion indicators.

[0068] It should be further pointed out that the processing flow for distributing the target configuration is as follows: determine the identity authority information that initiates the configuration distribution instruction; if the identity authority information contains authority information indicating that the distribution operation can be performed, encrypt the target configuration using a preset encryption technology, and distribute the encrypted configuration to the target distribution area, so that after the target distribution area receives the encrypted configuration, it decrypts the encrypted configuration based on a preset decryption technology corresponding to the preset encryption technology, and deploys the decrypted target configuration locally. Among them, the preset encryption technology includes but is not limited to TLS (Transport Layer Security), SSL (Secure Sockets Layer), etc. That is, in order to ensure the security of the configuration data during transmission and storage, the target configuration is distributed using encrypted communication and authority control. Specifically, determine the identity authority information that initiates the configuration distribution instruction, and judge whether the identity authority information contains authority information indicating that the distribution operation can be performed. If so, it means that the identity authority verification is passed, the target configuration is encrypted using the preset encryption technology, and the encrypted configuration is distributed to the target distribution area, so that the encrypted configuration can be decrypted in the target distribution area using the corresponding preset decryption technology, and the decrypted target configuration is deployed locally.

[0069] It should be noted that, in order to ensure the stability of the cross-region configuration management system, this embodiment can also perform a backup operation before distributing the target configuration. The processing flow is as follows: the current configuration of the target distribution region is backed up, so that after monitoring that the distribution status of the target configuration is abnormal, the configuration of the target distribution region is rolled back to the current configuration, and the abnormal status is fed back to the front end of the cross-region configuration management system, and the target configuration is retried based on the preset retry frequency until the target configuration is successfully distributed. That is, the current configuration of the target distribution region is backed up, so that when distributing the target configuration, the distribution status of the target configuration is continuously monitored, and when the distribution status is abnormal, the configuration of the target distribution region is automatically rolled back to the current configuration, and the abnormal status is fed back to the front end, and the distribution is retried based on the preset retry frequency until the distribution is successful. It is understandable that this embodiment provides a visual interface on the front end that can display the corresponding configuration version in each environment, and is also used to save audit logs that record all configuration changes and distribution operations, so that staff can manage and audit the configuration, and troubleshoot problems based on the audit logs when an exception occurs, thereby ensuring the stability of the system. In this way, this embodiment performs the distribution operation only after determining that the target text content and the target image uniform resource locator both meet the preset conversion indicators, ensuring the accuracy of the image and text conversion work; adopts permission control and encrypted communication mechanisms when distributing the target configuration to ensure the security of the configuration data during transmission and storage; monitors the configuration distribution status in real time, and automatically triggers a rollback when an exception occurs, thereby ensuring the stability of the system.

[0070] As can be seen from the above, after receiving the configuration distribution instruction, the embodiment of the present application determines the original configuration to be distributed and the target distribution area from the preset central configuration library according to the configuration distribution instruction, and after determining that the original configuration is not compatible with the target distribution area, automatically identifies the environmental characteristics of the target distribution area, and based on the environmental characteristics, converts the original text content and the original image uniform resource locator in the original configuration into target text content and target image uniform resource locator that are compatible with the target distribution area, respectively, to obtain the target configuration, and after determining that the target text content and the target image uniform resource locator in the target configuration both meet the preset conversion indicators, distributes the target configuration to the target distribution area. In this way, through the above process of the embodiment of the present application, on the one hand, it supports one-click distribution and batch distribution functions, which can meet the personalized distribution needs of users, and can choose the distribution mode according to the needs, thereby improving the flexibility of configuration distribution; on the one hand, the original configuration to be distributed and the target distribution area are determined according to the received configuration distribution instructions, so that the original configuration can be automatically distributed to the target distribution area in the future, thereby improving distribution efficiency; on the one hand, the configuration of all environments is uniformly managed through the central configuration library, thereby solving the problems of inefficiency and easy errors caused by decentralized configuration management; on the one hand, after receiving the configuration distribution instruction and determining that the original configuration is not compatible with the target distribution area, the original text content and the original image uniform resource locator are automatically converted, thereby realizing automatic environment adaptation and reducing manual workload; on the one hand, the original text content and the original image uniform resource locator in the original configuration are automatically converted to the target distribution area that is compatible with the target distribution area. The target text content and the target image uniform resource locator are combined to realize intelligent text translation and automatic mapping of image resources to content distribution nodes in the target distribution area, which can improve distribution efficiency and meet rapidly changing needs. On the one hand, the conversion efficiency is improved through the translation memory function of text content and the caching function of images, thereby ensuring the accuracy of distribution. On the other hand, the distribution operation is performed only after it is determined that both the target text content and the target image uniform resource locator meet the preset conversion indicators, thereby ensuring the accuracy of the conversion of images and texts. On the one hand, permission control and encrypted communication mechanisms are adopted when distributing target configurations to ensure the security of configuration data during transmission and storage. On the other hand, the configuration distribution status is monitored in real time, and rollback is automatically triggered in the event of an exception to ensure system stability, thereby solving the problem that the current configuration management method is too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs.

[0071] Accordingly, see Figure 4 As shown, the embodiment of the present application further provides a cross-region configuration management device, which is applied to a cross-region configuration management system, including:

[0072] The region determination module 11 is used to determine the original configuration to be distributed from the preset central configuration library according to the received configuration distribution instruction, and determine the target distribution region;

[0073] A feature recognition module 12 is configured to recognize environmental features of the target distribution area if it is determined that the original configuration is not compatible with the target distribution area;

[0074] a locator conversion module 13 for converting the original text content in the original configuration into target text content adapted to the target distribution region using a preset language translation model based on the environmental characteristics, and converting the original image uniform resource locator in the original configuration into a target image uniform resource locator adapted to the target distribution region, so as to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator;

[0075] The configuration distribution module 14 is configured to distribute the target configuration to the target distribution area after determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators.

[0076] As can be seen from the above, after receiving the configuration distribution instruction, the embodiment of the present application determines the original configuration to be distributed and the target distribution area from the preset central configuration library according to the configuration distribution instruction, and after judging that the original configuration is not compatible with the target distribution area, automatically identifies the environmental characteristics of the target distribution area, and based on the environmental characteristics, respectively converts the original text content and the original image uniform resource locator in the original configuration to the target text content and the target image uniform resource locator adapted to the target distribution area to obtain the target configuration, and at the same time, after determining that the target text content and the target image uniform resource locator in the target configuration meet the preset conversion indicators, distributes the target configuration to the target distribution area. In this way, through the above process of the embodiment of the present application, after receiving the configuration distribution instruction and judging that the original configuration is not compatible with the target distribution area, the original text content and the original image uniform resource locator are automatically converted, realizing automatic environmental adaptation and reducing manual workload, thereby solving the problem that the current configuration management method is too dependent on manual operations, resulting in low configuration management efficiency and difficulty in meeting rapidly changing needs.

[0077] In some specific implementations, the feature recognition module 12 may specifically include:

[0078] An information acquisition unit, configured to acquire environmental information of the target distribution area; the environmental information includes any one or a combination of environmental tags, deployment location information, and configuration-related metadata;

[0079] A type identification unit is used to identify the regional attributes and deployment type of the target distribution area according to the environmental information; the environmental characteristics include the regional attributes and the deployment type.

[0080] In some specific implementations, the locator conversion module 13 may specifically include:

[0081] A conditional judgment unit, configured to judge whether the original text content in the original configuration has a corresponding translation record in the target database;

[0082] a first code determination unit, configured to determine a target code for the target distribution region according to the environmental characteristics if no corresponding translation record for the original text content exists in the target database;

[0083] An information extraction unit, configured to extract target term information corresponding to the target distribution area from a preset term library using the target code;

[0084] A localization adaptation unit is configured to translate the original text content based on the target terminology information and a preset language translation model, and perform a localization adaptation operation on the original text content using a preset adaptation mapping table to obtain target text content adapted to the target distribution area, and store the target text content as a newly added translation record in the target database.

[0085] In some specific implementations, the locator conversion module 13 may specifically include:

[0086] a locator parsing unit, configured to parse the original image uniform resource locator to obtain corresponding original image information;

[0087] a second code determining unit, configured to determine a target code of the target distribution region according to the environmental characteristics, so as to determine an object storage area corresponding to the target distribution region based on the target code;

[0088] A file determination unit, configured to determine, based on the original picture information, whether there is a picture file in the object storage area that is consistent with the target picture corresponding to the original picture uniform resource locator;

[0089] A locator generating unit is used to upload or copy the target image to the object storage area if there is no image file that is consistent with the target image corresponding to the original image uniform resource locator, and generate a target image uniform resource locator adapted to the target distribution area.

[0090] In some specific implementations, the configuration distribution module 14 may specifically include:

[0091] a content review unit, configured to review the target text content in the target configuration using the preset language translation model to obtain a first review result;

[0092] a content feedback unit, configured to feed back the target text content to the front end of the cross-region configuration management system, so as to obtain a second review result for the target text content through the front end;

[0093] A first condition determination unit is configured to determine that the target text content meets a preset conversion indicator if both the first review result and the second review result indicate that the target text content has passed the review;

[0094] a second condition determination unit, configured to determine that the target picture uniform resource locator in the target configuration satisfies a preset conversion indicator if it is determined that the target picture uniform resource locator in the target configuration is a picture uniform resource locator that has been successfully converted;

[0095] The target configuration distribution unit is configured to distribute the target configuration to the target distribution area after determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators.

[0096] In some specific implementations, the configuration distribution module 14 may specifically include:

[0097] An information determining unit, configured to determine identity authority information of a person initiating the configuration distribution instruction;

[0098] An encrypted configuration distribution unit is used to encrypt the target configuration using a preset encryption technology if the identity authority information contains authority information indicating that the distribution operation can be performed, and distribute the obtained encrypted configuration to the target distribution area, so that after the target distribution area receives the encrypted configuration, it decrypts the encrypted configuration based on a preset decryption technology corresponding to the preset encryption technology, and deploys the decrypted target configuration locally.

[0099] In some specific implementations, the cross-region configuration management device may further include:

[0100] A configuration backup unit is used to back up the current configuration of the target distribution area so that after monitoring that the distribution status of the target configuration is abnormal, the configuration of the target distribution area is rolled back to the current configuration, and the abnormal status is fed back to the front end of the cross-region configuration management system, and the distribution of the target configuration is retried based on a preset retry frequency until the target configuration is successfully distributed.

[0101] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input and output interface 25 and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the cross-regional configuration management method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0102] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0103] In addition, the memory 22 as a carrier for resource storage can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0104] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222, which can be Windows Server, NetWare, Unix, Linux, etc. In addition to including computer programs capable of implementing the cross-region configuration management method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs capable of performing other specific tasks.

[0105] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when executed by a processor, the computer program implements the cross-region configuration management method disclosed above. The specific steps of this method can be referred to the corresponding content disclosed in the above embodiments and will not be repeated here.

[0106] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0107] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0108] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0109] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0110] The above is a detailed introduction to the technical solution provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A cross-region configuration management method, characterized in that: Applied to cross-region configuration management systems, including: Determine the original configuration to be distributed from the preset central configuration library according to the received configuration distribution instruction, and determine the target distribution area; If it is determined that the original configuration is not compatible with the target distribution area, identifying environmental characteristics of the target distribution area; Based on the environmental characteristics, a preset language translation model is used to convert original text content in the original configuration into target text content adapted to the target distribution region, and an original image uniform resource locator in the original configuration into a target image uniform resource locator adapted to the target distribution region, so as to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator; After determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, the target configuration is distributed to the target distribution area.

2. The cross-region configuration management method according to claim 1, characterized in that: The identifying of the environmental characteristics of the target distribution area includes: Obtaining environmental information of the target distribution area; the environmental information includes any one or a combination of environmental tags, deployment location information, and configuration-related metadata; The regional attributes and deployment type of the target distribution region are identified according to the environmental information; the environmental characteristics include the regional attributes and the deployment type.

3. The cross-region configuration management method according to claim 1, characterized in that: The converting the original text content in the original configuration into target text content adapted to the target distribution region by using a preset language translation model based on the environmental characteristics includes: Determining whether the original text content in the original configuration has a corresponding translation record in the target database; If there is no corresponding translation record for the original text content in the target database, determining the target code for the target distribution area based on the environmental characteristics; Extracting target term information corresponding to the target distribution area from a preset term library using the target code; The original text content is translated based on the target terminology information and a preset language translation model, and the original text content is localized and adapted using a preset adaptation mapping table to obtain target text content adapted to the target distribution area, and the target text content is stored as a newly added translation record in the target database.

4. The cross-region configuration management method according to claim 1, characterized in that: The converting the original picture uniform resource locator in the original configuration into a target picture uniform resource locator adapted to the target distribution area includes: Parsing the original image uniform resource locator to obtain corresponding original image information; determining a target code for the target distribution region according to the environmental characteristics, and determining an object storage area corresponding to the target distribution region based on the target code; Determining, based on the original picture information, whether there is a picture file in the object storage area that is consistent with the target picture corresponding to the original picture uniform resource locator; If there is no image file that is consistent with the target image corresponding to the original image uniform resource locator, the target image is uploaded or copied to the object storage area, and a target image uniform resource locator adapted to the target distribution area is generated.

5. The cross-region configuration management method according to claim 1, characterized in that: After determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, distributing the target configuration to the target distribution area includes: Reviewing the target text content in the target configuration using the preset language translation model to obtain a first review result; Feeding back the target text content to the front end of the cross-region configuration management system, so as to obtain a second review result for the target text content through the front end; If both the first review result and the second review result indicate that the target text content has passed the review, then it is determined that the target text content meets the preset conversion index; If it is determined that the target picture uniform resource locator in the target configuration is a picture uniform resource locator that has been successfully converted, then determining that the target picture uniform resource locator meets a preset conversion indicator; After determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators, the target configuration is distributed to the target distribution area.

6. The cross-region configuration management method according to claim 1, characterized in that: The distributing the target configuration to the target distribution area includes: Determine the identity authority information of initiating the configuration distribution instruction; If the identity authority information contains authority information indicating that distribution operations can be performed, the target configuration is encrypted using a preset encryption technology, and the encrypted configuration is distributed to the target distribution area, so that after the target distribution area receives the encrypted configuration, it decrypts the encrypted configuration based on a preset decryption technology corresponding to the preset encryption technology, and deploys the decrypted target configuration locally.

7. The cross-region configuration management method according to any one of claims 1 to 6, characterized in that: Before distributing the target configuration to the target distribution area, the method further includes: The current configuration of the target distribution area is backed up so that after monitoring that the distribution status of the target configuration is abnormal, the configuration of the target distribution area is rolled back to the current configuration, and the abnormal status is fed back to the front end of the cross-region configuration management system, and the distribution of the target configuration is retried based on a preset retry frequency until the target configuration is successfully distributed.

8. A cross-region configuration management device, characterized in that: Applied to cross-region configuration management systems, including: A region determination module is used to determine the original configuration to be distributed from a preset central configuration library according to the received configuration distribution instruction, and determine the target distribution region; a feature recognition module, configured to recognize environmental features of the target distribution area if it is determined that the original configuration is not compatible with the target distribution area; a locator conversion module, configured to convert, based on the environmental characteristics, the original text content in the original configuration into target text content adapted to the target distribution region using a preset language translation model, and convert the original image uniform resource locator in the original configuration into a target image uniform resource locator adapted to the target distribution region, so as to obtain a target configuration; the target configuration includes the target text content and the target image uniform resource locator; The configuration distribution module is configured to distribute the target configuration to the target distribution area after determining that the target text content and the target image uniform resource locator in the target configuration both meet preset conversion indicators.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the cross-region configuration management method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that Used to store a computer program; wherein, when the computer program is executed by a processor, the cross-region configuration management method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • A cross-border access acceleration method and device

    CN109670126A

  • System internationalization configuration method and device, equipment and storage medium

    CN114003208A

  • Content display method and device, computer equipment and storage medium

    CN118297080A