Data management method and device, equipment and storage medium
By confirming the progress of data migration and formulating service strategies, it provides unified access entrances and differentiated paths for global objects, solves compliance and security issues during data migration, achieves continuity and compliance of data migration, and improves User experience.
Patent Information
- Application Number
- CN202410628325.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-20
AI Technical Summary
On a global scale, how to ensure the legality and security of data when migrating data, especially when different countries and regions have different data storage regulatory requirements, how to achieve smooth migration of data and continuous access services to global objects is a question Key challenges.
By confirming the relocation progress of the existing object collection and determining the service strategy, we provide a globally unified access entrance domain name and differentiated access paths for the target objects to be processed under different relocation progress conditions, ensuring the compliance of data storage in the target area, and Provide continuity of service during the relocation process through the redirection mechanism to avoid service interruption or performance degradation.
It realizes the gradual completion of data and service migration without affecting object services, reduces the risk of being unable to provide services during the relocation process, ensures business continuity, and improves user experience and data compliance.
Smart Images

Figure CN118535548A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to technical fields such as big data and data migration. Background Art
[0002] As data services expand globally, the compliance and security of object data have become critical. Different countries and regions have corresponding regulations for data storage. For example, countries in Europe require that object data must be located in a specified area and cannot be moved out of the area. Therefore, an effective data management method is needed. Summary of the invention
[0003] The present disclosure provides a data management method, apparatus, device and storage medium.
[0004] According to one aspect of the present disclosure, there is provided a data management method, comprising:
[0005] Confirm the progress of relocating the object data of the stock object set from the current area to the target area;
[0006] Based on the migration progress, a service strategy is determined for the target objects to be processed in the stock object set, wherein the service strategy is used to provide the target objects to be processed under different migration progress with a domain name (Domain Name, DN) of a global unified access portal that is unified with the current region, and an access path that is differentiated from the current region, so as to meet the data storage requirements of the target area.
[0007] According to another aspect of the present disclosure, there is provided a data management device, comprising:
[0008] A confirmation module, used to confirm the progress of relocating the object data of the stock object set from the current area to the target area;
[0009] A processing module is used to determine a service strategy for a target object to be processed in a set of existing objects based on the relocation progress, wherein the service strategy is used to provide a domain name of a global unified access portal that is unified with the current region and an access path that is differentiated from the current region for the target objects to be processed under different relocation progress conditions, so as to meet the data storage requirements of the target region.
[0010] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0011] at least one processor; and
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0014] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.
[0015] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.
[0016] In the disclosed embodiment, differentiated access paths are provided for objects according to different relocation progress, so that continuous services are provided for the objects using appropriate access paths and compliance requirements of the target area can be met.
[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0019] Figure 1 is a flowchart of a data management method according to an embodiment of the present disclosure;
[0020] Figure 2 is a flowchart of a data management method when the relocation progress does not reach a preset progress according to an embodiment of the present disclosure;
[0021] Figure 3 is a flowchart of processing a first service request according to an embodiment of the present disclosure;
[0022] Figure 4 is a schematic diagram of a process for relocating object data in an idle state according to an embodiment of the present disclosure;
[0023] Figure 5 It is a process intention for processing a request for a to-be-processed object that has not been found in a logged-in state according to an embodiment of the present disclosure;
[0024] Figure 6 is a timing diagram of service request processing before and after login state migration according to an embodiment of the present disclosure;
[0025] Figure 7It is a process intention of processing business requests of objects in different states according to an embodiment of the present disclosure;
[0026] Figure 8 is a timing diagram of service request processing of objects in different states according to an embodiment of the present disclosure;
[0027] Fig. 9 It is a flowchart of processing an object request after modifying a global unified domain name resolution address according to an embodiment of the present disclosure;
[0028] Fig.10 It is a schematic diagram of the service request processing flow of different objects after modifying the global unified domain name resolution address according to an embodiment of the present disclosure;
[0029] Fig.11 is a structural diagram of a data management device according to an embodiment of the present disclosure;
[0030] Fig.12 It is a block diagram of an electronic device used to implement the data management method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0032] The terms "first", "second", etc. in this disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] In the case of objects of considerable scale around the world, ensuring the legitimacy and security of object data becomes a key challenge. Different countries and regions have corresponding data storage regulations for data storage. How to complete data migration while complying with local regulations on data storage and ensure that global objects can smoothly access services is the key issue currently faced.
[0034] In view of this, a data management method is proposed in the embodiment of the present disclosure, such as Figure 1 As shown, including:
[0035] S101, confirming the progress of migrating object data of a stock object set from a current area to a target area.
[0036] The stock object set refers to the set of objects that provide services (including data storage) in the current region but need to be relocated to the target region and provided with services by the target region. For example, object A in region A logs in and registers in region B and conducts business in region B. Based on compliance requirements, objects in region A can only be accessed in region A to protect data security in region A. Therefore, object A needs to be relocated from region B to region A and provided with services by region A.
[0037] The relocation progress can be determined according to the number of objects that have been relocated in the stock object set to be relocated. For example, if the stock object set includes m objects and the number of objects that have been relocated is n, the relocation progress can be expressed as (n / m).
[0038] In other embodiments, the migration progress can be determined according to the total amount of object data of all objects that need to be migrated to the target area. For example, if the total amount of data is M and the amount of data that has been migrated is N, the migration progress can be expressed as (N / M).
[0039] S102, based on the relocation progress, determine the service strategy for the target objects to be processed in the stock object set, wherein the service strategy is used to provide the target objects to be processed under different relocation progress with a domain name of a global unified access portal that is unified with the current region and an access path that is differentiated from the current region, so as to meet the data storage requirements of the target region.
[0040] The domain name of the global unified access portal provides a unified access portal for global objects. Before all objects are relocated, the domain name operation service of the global unified access portal is applicable to objects in all regions. And the domain name of the global unified access portal of all objects is only resolved to a limited number of addresses.
[0041] In the embodiment of the present disclosure, when it is necessary to migrate the data of an object from the current area to the target area, a corresponding service strategy is established based on the migration progress, so as to provide differentiated access paths for the object according to different migration progress, thereby using appropriate access paths to provide continuous services for the object and meet the compliance requirements of the target area. In addition, regardless of the migration progress, the embodiment of the present disclosure provides services for objects in different areas through a global unified access portal, thereby improving the user experience.
[0042] In some embodiments, based on the relocation progress, the service strategy for the target object to be processed in the stock object set can be implemented as follows: Figure 2As shown: S201, when the relocation progress reaches the preset progress, the domain name of the global unified access portal is set to the access address of the target area for the resolution address of the target area, so that the first-category objects that have been successfully relocated in the stock object set can provide services for the first-category objects through the access address of the target area; and the second-category objects that have not been completely relocated in the stock object set are redirected to the current area via the target area, and the current area provides services for the second-category objects.
[0043] The preset progress can be set according to the needs, and the preset progress is used to indicate that most of the relocation progress has been completed. For example, the preset progress can be set to 60%, 80%, etc., and can be determined according to the actual situation during implementation, and the embodiments of the present disclosure do not limit this.
[0044] After the migration progress exceeds the preset progress, the domain name resolution address of the global unified access portal of the target area's objects is changed to the target area. Therefore, after the resolution address is changed, the services of the first type of objects in the stock object set are provided by the target area, and the data generated in the future is also stored in the target area. For the objects added thereafter, they are also provided by the target area, and the data of the new objects will be completely stored in the target area.
[0045] For example, by DNS (Domain Name System) resolution of the domain name of the global unified access portal, the URL of the domain name of the global unified access portal is mapped to the target area; for the second type of objects that have not been relocated, since there is no object data in the target area, when the second type of objects are accessed through the domain name of the global unified access portal, the server in the target area will redirect its operation request to the current area, and the current area can continue to provide services for the second type of objects, which will not affect the business operations of the second type of objects.
[0046] It should be noted that the resolved address of the object in the target area falls into the current area.
[0047] In the disclosed embodiment, when the relocation progress reaches the preset progress, although the object data of the stock object set has not been completely relocated from the current area to the target area, the resolution address of the domain name of the global unified access portal can be set to the access address of the target area, so that when most of the objects that have been relocated are accessed again, services will be provided directly through the server in the target area, thereby improving access speed and responsiveness. In addition, the new data of the first type of objects will be stored in the target area to meet compliance requirements. During the relocation process, the first type of objects have been migrated to the target area, and the second type of objects are still in the current area. Through the redirection mechanism, the second type of objects can still obtain services through the current area, and the load can be balanced between the two areas to avoid service interruption or performance degradation caused by relocation. In this way, the migration of data and services can be gradually completed without affecting the object service, reducing the risk of not being able to provide services to the object during the relocation process, and ensuring business continuity. In addition, the domain name of the global unified access portal can ensure that a unified access portal is provided for the object, thereby improving the object experience.
[0048] In the disclosed embodiment, for each stock object, regardless of whether the stock object belongs to other regions, a registration country field can be set. During implementation, the registration country of the stock object can be determined by at least one of the IP (Internet Protocol) address, terminal device information, registration location, etc. when the stock object is registered, thereby determining the field value of the registration country field. On this basis, objects whose registration country field information represents the target region are filtered out from all objects in the current region to obtain a stock object set.
[0049] In the disclosed embodiment, according to the registration information of all objects in the current region, the corresponding registration country field information is set respectively to indicate the region information to which each object in the full amount of objects in the current region belongs, so as to filter out the objects representing the target region. For example, in a database containing all objects, the SECLECT (select) statement is used to filter out the object data representing the target region to obtain the stock object set.
[0050] In the disclosed embodiment, by filtering out objects whose registration country field information indicates a target area from all objects, objects in a specific area can be more accurately located and identified. The laws and regulations of different countries or regions can be complied with according to the registration country field information, and services or content related to the area where the object is located can be provided, thereby enhancing the object usage experience.
[0051] The above describes how to change the resolution address of the domain name of the global unified access portal to the target area, but this is subject to a prerequisite, that is, the relocation progress must reach the preset progress. In the case where the relocation progress does not reach the preset progress, in order to be able to provide services to the object continuously and stably, the embodiment of the present disclosure also proposes a solution. For ease of understanding, the following describes how to provide services to the object and how to relocate data before and after the domain name resolution address is modified.
[0052] 1. The relocation progress has not reached the preset progress, and the global unified domain name resolution address has not been modified. In this case, the following can be used: Figure 2 The method shown provides service strategies for objects, including:
[0053] S202, when the migration progress does not reach the preset progress, the resolution address of the domain name of the global unified access portal for the target area is maintained as the access address of the current area, so as to use the current area as the access portal for each target object to be processed in the stock object set, and on this basis, to facilitate the migration of the data of the target object to be processed to the target area.
[0054] That is, if the relocation progress does not reach the preset progress, a large amount of data is still stored in the current area. Therefore, using the current area to provide services can provide reliable services for the objects to be processed and improve service quality.
[0055] Specifically, when there is a business request, the processing flow is as follows: Figure 2 As shown, including:
[0056] S203, when receiving the first business request of the target object to be processed in the stock object set, identifying the area identifier of the target object to be processed; wherein the area identifier of the first type of object that has been successfully relocated is the target area; and the area identifier of the second type of object that has not been completely relocated is the current area.
[0057] During implementation, add the object region field r, i.e., region identifier, to the account system. For example, if the object data is in the current region (A), then r = A. If the object is registered in the target region (B), then r = B. When the object data of object A in the current region is successfully moved to the target region, r of object A will be changed from A to B.
[0058] After adding the region identifier, reliable and stable services can be provided for the object through the redirection operation. That is, in S204, when the region identifier of the target object to be processed is the target region, the current region redirects the target object to be processed to the target region so that the target region provides services for the target object to be processed; in S205, when the region identifier of the target object to be processed is the current region, the current region provides services for the target object to be processed.
[0059] In the disclosed embodiment, by identifying the region identifier of the target object to be processed, a compliant region can be selected to provide services for the target object to be processed. Among them, for objects whose region identifier is the target region, since the object's request will be automatically directed to the current region, the object can operate the business through a unified access portal, thereby ensuring the overall experience of the object. For the target object to be processed in the current region, stable and reliable services can still be provided by the server in the current region, ensuring business continuity and stability.
[0060] like Figure 3 As shown, the target object to be processed sends a first service request to the server 1 in its current area through the domain name (www.xxxx.com) of the global unified access portal on the client, performs authentication in the account service of the server 1 in the current area, and queries the area to which the target object to be processed belongs by identifying the area identifier. For the target object to be processed in the target area, the temporary access domain (b.xxxx.com) name of the target area set in advance is used to redirect to the target area to provide services. The specific operation to achieve the redirection is: Server 1 will return a redirection request, which contains a temporary access domain name, and the client will send the request to Server 2 after processing, so as to complete the operation of redirecting the object request of the target area from the current area to the target area, and enable the target area to provide services for it. Through the redirection operation of the temporary access domain name, the object in the target area can be guided to the target area for operation. Before the relocation progress reaches the preset progress, the temporary access domain name is used to redirect to the target area. As a result, the newly added object data will be retained in the target area, so that the impact of the newly generated data on the relocation task can be avoided as much as possible during the relocation of data, and the existing objects can be provided with services smoothly and stably. For objects that have been successfully relocated, the temporary access domain name can also be successfully redirected to the target area to provide services. Then, when the relocation progress reaches the preset progress, the temporary access domain name is recovered, and the target area continues to use the domain name of the global unified access portal, which can provide a unified access portal for objects in different regions.
[0061] The domain name of the current area points to the domain name of the target area, which can automatically guide the object to the new web page, avoid error pages, and improve the object's experience.
[0062] For objects in the current region, after authentication is passed, such as Figure 3 As shown, the gateway can forward the service request to the business service module to perform related business operations in the current area.
[0063] In the embodiment of the present disclosure, for any target object to be processed in the stock object set, in order to reduce the business impact of data migration on it, such as Figure 4As shown, in S401, when the target object to be processed is in an idle state, the object data of the target object to be processed is migrated to the target area.
[0064] The period during which the target object to be processed logs into the service but is not active can be understood as an idle state, and the period during which the target object to be processed does not log into the service can also be understood as an idle state. In the embodiment of the present disclosure, when the target object to be processed is in an idle state, data migration can be performed safely to reduce the impact on the object's business, and in addition, the complexity of the migration work increased due to the generation of new data can be reduced.
[0065] Among them, the object data may include business data. In the case where the target object to be processed has a login state during the data migration process, the object data may also include the login state of the target object to be processed. When the target object to be processed is in an idle state, its business data is mainly migrated. In order to provide stable and reliable services for the target object to be processed, during the process of migrating its business data, the object state of the target object to be processed can be set to a migration state (copy state). Therefore, by querying the object state, it can be understood whether the object data of the target object to be processed is being migrated.
[0066] In addition, in the embodiments of the present disclosure, in order to timely discover and correct errors that may occur during data migration, business problems caused by inconsistent data can be reduced. Figure 4 As shown, in S402, when the business data in the object data of the target object to be processed is completely relocated, a verification operation is performed to verify whether the business data of the target area of the target object to be processed is consistent with the business data of the current area.
[0067] As described above, during the process of relocating business data, the state of the target object to be processed is the migration state, and during the process of verifying data consistency after the business data is relocated, the object state is maintained in the verification state in the embodiment of the disclosure. The migration progress can be understood through the verification state.
[0068] S403: When the verification result indicates that the data is consistent, the region identifier of the target object to be processed is set as the target region to indicate that the object data of the target object to be processed has been successfully relocated.
[0069] In the disclosed embodiment, by verifying whether the business data of the target area and the current area are consistent, it is ensured that the data is not lost or damaged during the relocation process, which guarantees the consistency of the data and avoids the inability to process the business normally due to data loss, thereby improving the reliability and stability of the service. Setting the area identifier as the target area indicates that the object data has been successfully relocated, which provides a basis for the distribution of subsequent business operation data to which area for processing, and ensures that the newly generated data is stored in a compliant area during the use of the service.
[0070] During the data migration process, if the target object to be processed has a logged-in state, it may be that the target object to be processed has always been in a logged-in state, or that the logged-in state is generated by logging in through the current area during the migration process. In any case, having a logged-in state means that the object is online during the migration process. In one possible implementation, the logged-in state may not be migrated to the target area. In the case of losing the logged-in state, the request of the target object to be processed is sent to the current area. Since the data has been successfully migrated, the service will be redirected from the current area to the target area. The target object to be processed can log in again in the target area and perform subsequent operations.
[0071] This may cause a sudden interruption of the object's business. In order to ensure the continuity and integrity of the service and avoid data loss or damage caused by changing the service to the target area, before the area identifier of the target object to be processed is set to the target area, if the login state of the target object to be processed exists, it is necessary to migrate the login state to the target area.
[0072] That is, after the business data is migrated, a data consistency check is performed. If the check passes, the business data is successfully migrated and no new data is generated during the migration of the business data. At this time, the login state can be migrated to the target area, and then the area identifier is updated as the target area. With the support of business data and login state, the target area can provide complete and reliable services for the target objects to be processed.
[0073] Of course, it is understandable that, if the target object to be processed does not have a login state, after passing the verification, its region identifier can be directly set to the target region. In this way, all subsequent operations of the object are performed in the target region, and the login state will also be maintained by the target region, which can provide complete and reliable services for the target object to be processed.
[0074] In the disclosed embodiment, relocating the login state of the existing object to the target area helps maintain the business continuity of the object and can reduce the risk of interruption caused by area switching. When the object continues to operate in the target area, since the login state has been relocated, the object experience will not be affected by the change of area, reducing the inconvenience caused by operations such as re-login.
[0075] The relocation of the login state indicates that the target object to be processed is currently in the login state. In the embodiment of the present disclosure, in order to avoid interruption of the object business and to provide services to the object stably and continuously, in the case of the relocation of the login state, Figure 5 In the method shown, although the service area is switched, the object is not affected, including the following:
[0076] S501: The current area receives a second service request, where the second service request includes an object identifier.
[0077] That is, because the domain name of the global unified access portal of the target area has not been changed to the target area, and even if the object data of the target object to be processed has been relocated, it will still be accessed to area A through the domain name of the global unified access portal. In order to store its newly generated data in the target area, in S502, when it is determined that the object identifier is the target object to be processed in the stock object set, the login state of the target object to be processed is searched in the current area.
[0078] S503: When the current area fails to find the login state of the target object to be processed, the current area redirects the target object to be processed to the target area corresponding to the area identifier of the target object to be processed, so that the target area provides services for the target object to be processed.
[0079] For example, if Figure 6 As shown, taking object D as an example, there is object D in the target area (B) in the stock set of the current area (A). However, before the login state of object D is migrated and in the migration state, the area identifier of object D is the current area, so all requests sent by object D through the client will be processed by server 1 in the current area. At this time, the login state of object D is in server 1, and the authentication of object D is completed through the login state. If the authentication is passed, server 1 executes the operation corresponding to the request and returns the processing result to the client of object D.
[0080] In the case where the object D successfully migrates to the login state, since the resolution address of the domain name of the global unified access portal for the target area has not changed, it is still resolved to the current area, so the server 1 in the current area will still receive the request of the object D. However, because the login state has been migrated to the target area, the server 1 in the current area has not found the login state of the target object to be processed in the current area, but it is confirmed that the object D exists. Therefore, the server 1 in the current area can determine that it is very likely that the login state of the object D has been migrated to the target area. Therefore, after receiving the service request sent by the object, the server 1 in the current area knows through query that the area identification of the object D has been changed to the target area, then the server 1 in the current area returns the request result (including the temporary access domain name of the server 2 in the target area) to the client, and the client reprocesses the request result, redirects the second service request to the server 2 in the target area for processing, and the target area can authenticate the object D based on the migrated login state, and after the authentication is passed, it can continue to provide services for the object D. In this way, when the object D continues to log in, even if the service area is switched after the data migration is completed, the business operation can be performed without perception, without repeated login.
[0081] It can be seen that in the embodiment of the present disclosure, before the regional identification of the target object to be processed is set as the target region, by checking whether the target object is logged in in the current region, a suitable region can be allocated to provide services for the target object to be processed, thereby ensuring the continuity and timeliness of the service and the compliance of the data. As the business develops and changes, the system can flexibly adapt to the adjustment of regional identification and service areas to maintain the stability and scalability of the service.
[0082] It is understandable that if the current region does not find the login state of the target object to be processed, the target object to be processed may not have migrated data or the business data has not been migrated. Since the region identifier of the target object to be processed is still the current region, the current region continues to provide services for the target object and writes the newly generated data into the current region.
[0083] As explained above, in the process of relocating the object data of the target object to be processed, there are two states: migration state and verification state. Among them, the migration state means that the target object to be processed is in the process of relocating its object data from the current area to the target area; the verification state means that the target object to be processed is in the process of verifying the consistency of the data. The following introduces the business request processing when the stock object is in the migration state and the verification state respectively:
[0084] 1) The target object to be processed is in the migration state
[0085] In the case of being in the migration state, the data of the target object to be processed has not been completely migrated. In order to ensure the stability of the business, upon receiving the first business request of the target object to be processed and the target object to be processed is in the migration state, the current area processes the first business request and returns the response data of the first business request to the target object to be processed;
[0086] As described above, in the process of migrating the business data in the object data of the target object to be processed to the target area, the target object to be processed remains in the migration state.
[0087] For example, the business data of the target object B to be processed is relocated to the target area B. During the relocation, the object data of the target object to be processed can be backed up first, and then the backup data can be relocated. The newly added data during the relocation process is still updated to the original data. During the verification, in order to ensure that all data is relocated to the target area, the original data can be used for verification. In this way, during the relocation process, although new data is generated in the current area due to the operation, the verification will eventually fail due to the newly added data. Based on this, the relocation operation can continue to be performed to ensure that all business data of the target object to be processed is relocated to the target area.
[0088] In the disclosed embodiment, when the existing objects are in a migration state, the current area provides services for operation requests for the target objects to be processed, so that the system can still process the request immediately instead of waiting for the migration to be completed. This ensures that the operation of the object will not be delayed or interrupted due to the migration process within the system, thereby improving the usage experience of the object.
[0089] 2) The target object to be processed is in the inspection state
[0090] When receiving the first service request of the target object to be processed and the target object to be processed is in a verification state, the current area prompts the target object to be processed that the current service is unavailable;
[0091] Wherein, during the process of verifying whether the business data of the target area of the target object to be processed is consistent with the business data of the current area, the target object to be processed maintains the verification state.
[0092] In the embodiment of the present disclosure, when the target object to be processed is in the verification state, when the target object to be processed has an operation request, a prompt message is sent to the target object to be processed. For example, the prompt message to the target object to be processed is "The current object is in the migration verification state, please try again later." 。 If the verification results are consistent, the operation request of the target object to be processed will be redirected by the server in the current area to the target area, so that the object data generated later is stored in the target area. If the verification results are inconsistent, optional operation services will be provided to the target object to be processed, such as providing the target object to be processed with two optional operation options: "Migration Retry" and "Logout".
[0093] In the disclosed embodiment, when the target object to be processed is in the verification state, the business request for the target object to be processed prompts that the current service is unavailable, which can ensure data consistency and avoid accepting business request operations when the data of the target object is changing or has not been finalized, causing the destruction of object data consistency.
[0094] In some embodiments, before the domain name of the global unified access portal is set to the resolution address of the target area as the access address of the target area, stable, reliable and compliant services are provided for new objects in the target area through the following operations, specifically including: redirecting the new objects to the target area based on the registration requests and business requests of the new objects, so as to save the object data of the new objects in the target area.
[0095] During implementation, the newly added object can be redirected to the target area using the temporary access domain name of the pre-set target area. For example, since the domain name of the global unified access portal has not changed, object B in target area B still accesses the service of current area A through the domain name of the global unified access portal. In view that object B is an object in area B, current area A returns the temporary access domain name of area B to object B, thereby redirecting the access request of object B to area B. All operations thereafter are completed in area B.
[0096] In the disclosed embodiment, the registration request and service request of the registered object will be redirected to the target area, and the object data can be stored in the target area, which can improve the data processing efficiency and reduce the delay caused by cross-regional data transmission, and also meet the legal requirements of some regions for local data storage. In addition, the object usually has a faster response time when accessing the server in the local area, thereby improving the object experience.
[0097] In other embodiments, for any existing object in the current area, the common operation location of the existing object is detected based on the object data of the existing object; when the common operation location of the existing object is the target area and the registration location of the stock object is the current area, the object data of the stock object is moved to the common operation location.
[0098] In the embodiment of the present disclosure, when the common operation location of the stock object is the target area and the registration location of the stock object is the current area, migrating data to the common operation location can reduce the data transmission time and thus improve the object experience.
[0099] In order to better understand the activity status of the object at each period when the migration progress has not reached the preset progress and the global unified domain name resolution address has not been modified, the following is a more intuitive explanation with the activity status diagram of the object at each period and the timing diagram of the object.
[0100] like Figure 7 As shown in , the server in the current area stores the status of each object in the stock object set that needs to be relocated to the target area. Figure 7 As shown, it is assumed that object A, object B, object C, and object D are all objects to be processed in the stock object set. The object data of the current area stores the relocation status of object A, object B, object C, and object D, and maintains their corresponding area identifiers in real time. Figure 7 As shown in , it is assumed that object A is in the verification state, and the region identifier is A (that is, it belongs to the current region); object B is in the migration state, and the region identifier is A; object C is in the state of not starting migration, and the region identifier is A; object D has been successfully migrated, and the region identifier has been updated from A to B. The processing process of each object is as follows:
[0101] (1) When object A sends a request to the server through the client, since object A is in the verification state, its region identifier is still the current region, so the request result returned by the current region to the object is in an unavailable state;
[0102] (2) When object B sends a request to the server through the client, since object B is in the migration state, its region identifier is still the current region, so the service request of object B is served by server 1 in the current region. However, when it enters the verification state later, the verification may fail because new data is generated during the migration process, and the incremental data needs to be migrated to the target region.
[0103] (3) When object C sends a request to the server through the client, since object C has not yet moved, its region identifier is the current region, and the object data is all in the server in the current region. At this time, the service request of object C is provided by server 1 in the current region.
[0104] (4) When object D sends a request to the server through the client, since object D has been successfully migrated, the object data of object D has been moved to the target area, and its area identifier has been updated to the target area. At this time, the service request of object D will be redirected to server 2 in the target area, and server 2 will provide services for it.
[0105] It should be noted that the current region maintains a mapping relationship between all object accounts and region identifiers, so that the current region can determine the region to which each object belongs.
[0106] To help understand the changes of each object during the migration process, let's take object D as an example. The entire migration process of object D is as follows: Figure 8 As shown:
[0107] (1) Before migration at time T0, the object data of object D is in server 1 of the current region, and its region identifier is the current region (i.e., the server indicated by the black five-pointed star in the figure). Therefore, the client of object D sends a request to server 1 of the current region through the domain name resolution of the global unified access portal for processing. For example, the object information is queried through the database of the current region, and the query result is returned, and then the request result is returned to the client through server 1 and fed back to object D.
[0108] (2) When object D is in the idle state, the object data of object D is migrated, and at this time, object D begins to enter the migration state. The migration state lasts for a period of time. At any time T1 within this period, when object D has a business request, its region is identified as the current region (i.e., the server indicated by the black five-pointed star in the figure). Therefore, the client of object D sends a request to server 1 in the current region through the domain name resolution of the global unified access portal for processing. For example, the business request of object D is sent by the client to server 1, which queries the object information through the database of the current region and returns the query result. The request result is then returned to the client through server 1 and fed back to object D.
[0109] (3) When the business data migration of object D is completed, object D is in the verification state. Figure 8 In the verification state, at any time T2, when object D has a service request, since its region is identified as the current region, the request sent by the client of object D will be resolved by the domain name of the global unified access portal to the server 1 in the current region for processing. It will prompt that its service is unavailable.
[0110] (4) After the business data of object D is successfully migrated, if there is a login state of object D, the login state is migrated to the target area, and the area identifier of object D is changed to the target area. The object data of object D has been migrated to the server in the target area. At time T3, when object D has a business request, the business request of object D is resolved to server 1 by the domain name of the global unified access portal. Server 1 queries its area identifier and returns the query result. Since the area identifier of object D is queried in the server in the current area and has been changed to the target area, server 1 returns a new request header to the client. The client sends a business request to server 2 through the temporary access domain name of the target area, and provides services for the object through server 2 in the target area. For example, the object information is queried through the database of server 2, and the query result is returned. Then the request result is returned to the client through server 2 and fed back to object D.
[0111] 2. When the relocation progress reaches the preset progress, modify the global unified domain name resolution address
[0112] like Fig. 9 As shown, for the pending target object that has been relocated, the region field of the pending target object has been changed from the current region A to the target region B. After a business request is made through the modified global unified domain name resolution address, the server in the target region detects that the region field of the pending target object is B, and subsequent business operations of the pending target object will be performed in the target region.
[0113] For the unprocessed target objects that have not been migrated, after their requests reach the server in the target region through the modified global unified domain name, the region identifier of the unprocessed target object is still the current region because the data of the target object has not been migrated to the target region. Fig. 9 As shown, the server in the target area will redirect the target object request to the current area, and the current area will continue to provide services for the target object.
[0114] For newly registered objects, since the registration area is the target area, all requests for newly registered objects will be provided by the server in the target area.
[0115] Below Fig.10 The business request process of each object after the object relocation progress reaches the preset progress and the global unified domain name resolution address is modified is explained.
[0116] (1) After object A is migrated from server 1 in the current region to server 2 in the target region, the object data of object A is stored in server 2, and the region ID has been changed to target region B. The domain name resolution address of the global unified access portal of the target region has been changed from server 1 to server 2. Therefore, when object A subsequently sends requests to server 2 through the client, server 2 in the target region will provide services for it.
[0117] (2) For the newly added object B in the target area, the registration request sent by the newly added object B by modifying the domain name of the global unified access portal of the domain name resolution address will be processed by server 2. After server 2 completes the registration, it will mark its regional identifier as the target area and synchronize it to other areas so that other areas have the regional identifier of all objects in the world. For object B, subsequent business requests will be fully processed by server 2 in the target area, and the object data of object B will be fully stored in the server in the target area.
[0118] (3) For object C that has not been relocated. Since the domain name of the global unified access portal has changed its resolution address, the request of object C will be sent to server 2 in the target area instead of server 1. The target area resolves its region identifier as the current area, so when object C sends a request to server 2 through the client, server 2 will redirect the service request of object C to server 1 in the current area. At this time, the request of object C is served by server 1 in the current area, and the processing result is returned to object C.
[0119] In addition, it should be noted that, in addition to the aforementioned description that the servers in each region can each maintain the region identification of all objects, in other embodiments, a centralized service can be set up, that is, a central service maintains the region identification of all objects, and when any region updates an object, it needs to be synchronized to the central service. When each region needs to query the region identification of any object, it can send a query request to the central service to obtain the region identification of the object to be queried.
[0120] Based on the same technical concept, the embodiment of the present disclosure also provides a data management device 1100, such as Fig.11 As shown, including:
[0121] Confirmation module 1101, used to confirm the progress of relocating the object data of the stock object set from the current area to the target area;
[0122] Processing module 1102 is used to determine the service strategy for the target objects to be processed in the stock object set based on the migration progress, wherein the service strategy is used to provide the target objects to be processed under different migration progress with a domain name of a global unified access portal that is unified with the current region and an access path that is differentiated from the current region, so as to meet the data storage requirements of the target area.
[0123] In some embodiments, the processing module includes:
[0124] The first processing unit is used to set the domain name of the global unified access portal to the access address of the target area as the resolution address of the target area when the relocation progress reaches the preset progress, so that the first-category objects that have been successfully relocated in the stock object set can provide services for the first-category objects through the access address of the target area; and the second-category objects that have not been completely relocated in the stock object set can be redirected to the current area via the target area, and then the current area can provide services for the second-category objects.
[0125] In some embodiments, the processing module further includes:
[0126] The second processing unit is used to keep the resolution address of the domain name of the global unified access portal for the target area as the access address of the current area when the migration progress does not reach the preset progress, so as to facilitate the migration of the data of the target object to be processed to the target area.
[0127] In some embodiments, when the relocation progress does not reach the preset progress, the method further includes:
[0128] an identification module, configured to identify the region identifier of the target object to be processed when receiving the first business request of the target object to be processed in the stock object set; wherein the region identifier of the first type of object that has been successfully relocated is the target region; and the region identifier of the second type of object that has not been completely relocated is the current region;
[0129] A first redirection module, configured to redirect the target object to be processed to the target area from the current area when the area of the target object to be processed is identified as the target area, so that the target area provides services for the target object to be processed;
[0130] The second service module is used for providing services for the target object to be processed by the current area when the area identifier of the target object to be processed is the current area.
[0131] In some embodiments, when the relocation progress does not reach the preset progress, the method further includes:
[0132] A verification module, used for performing a verification operation when the business data in the object data of the target object to be processed is completely relocated, and the verification operation is used to verify whether the business data of the target area of the target object to be processed is consistent with the business data of the current area;
[0133] The marking module is used to set the area identifier of the target object to be processed as the target area to indicate that the object data of the target object to be processed has been successfully relocated when the verification result indicates that the data is consistent.
[0134] In some embodiments, a first relocation module is further included, which is used to relocate the login state to the target area if there is a login state of the target object to be processed before the area identifier of the target object to be processed by the marking module is set as the target area.
[0135] In some embodiments, when the relocation progress does not reach the preset progress, a third service module is further included, which is used to process the first service request by the current area and return the response data of the first service request to the target object to be processed when the first service request of the target object to be processed is received and the target object to be processed is in the migration state;
[0136] In the process of migrating the business data in the object data of the target object to be processed to the target area, the target object to be processed remains in a migration state.
[0137] In some embodiments, a fourth service module is further included, which is used to prompt the target object to be processed that the current service is unavailable when the first service request of the target object to be processed is received and the target object to be processed is in a verification state;
[0138] In the process of verifying whether the business data of the target area of the target object to be processed is consistent with the business data of the current area, the target object to be processed remains in the verification state.
[0139] In some embodiments, a second relocation module is further included, which is used to migrate the object data of any target object to be processed in the stock object set to the target area when the target object to be processed is in an idle state.
[0140] In some embodiments, a second redirection module is further included, which is used to:
[0141] The current area receives a second service request, where the second service request includes an object identifier;
[0142] When it is determined that the object identifier is a target object to be processed in the stock object set, searching for a login state of the target object to be processed in the current area;
[0143] When the current region fails to find the login state of the target object to be processed, the current region redirects the target object to be processed to the target region corresponding to the region identifier of the target object to be processed, so that the target region provides services for the target object to be processed.
[0144] In some embodiments, a set determination module is further included, which is used to identify the set of stock objects based on the following method:
[0145] Objects whose registration country field information represents the target region are filtered out from all objects in the current region to obtain a stock object set.
[0146] In some embodiments, a third processing module is further included, configured to:
[0147] Before setting the resolution address of the domain name of the global unified access portal for the target area as the access address of the target area, for new objects in the target area, the new objects are redirected to the target area based on the registration request and business request of the new objects, so that the object data of the new objects are saved in the target area.
[0148] In some embodiments, the domain name redirected to the target area is a preset temporary access domain name of the target area.
[0149] In some embodiments, an optimization module is further included for:
[0150] For any stock object in the current area, detecting a common operation location of the stock object based on object data of the stock object;
[0151] When the common operation location of the stock object is the target area and the registration location of the stock object is the current area, the object data of the stock object is migrated to the common operation location.
[0152] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0153] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0154] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0155] Fig.12 A schematic block diagram of an example electronic device 1200 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0156] like Fig.12 As shown, the device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1202 or a computer program loaded from a storage unit 1208 into a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the device 1200 can also be stored. The computing unit 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.
[0157] A number of components in the device 1200 are connected to the I / O interface 1205, including: an input unit 1206, such as a keyboard, a mouse, etc.; an output unit 1207, such as various types of displays, speakers, etc.; a storage unit 1208, such as a disk, an optical disk, etc.; and a communication unit 1209, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1209 allows the device 1200 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0158] The computing unit 1201 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1201 performs the various methods and processes described above, such as data management methods. For example, in some embodiments, the data management method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1200 via the ROM 1202 and / or the communication unit 1209. When the computer program is loaded into the RAM 1203 and executed by the computing unit 1201, one or more steps of the data management method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform the data management method in any other appropriate manner (e.g., by means of firmware).
[0159] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0160] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0161] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0162] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0163] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0164] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0165] Based on the aforementioned electronic device, the present disclosure also provides a vehicle, which may include electronic devices, and may also include communication components, a display screen for realizing a human-machine interface, and an information collection device for collecting surrounding environment information, etc. The communication components, the display screen, the information collection device and the electronic device are communicatively connected.
[0166] According to the embodiments of the present disclosure, the electronic device may be integrated with the communication component, the display screen and the information collection device, or may be separately provided with the communication component, the display screen and the information collection device.
[0167] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0168] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A data management method, comprising: Confirm the progress of relocating the object data of the stock object set from the current area to the target area; Based on the migration progress, a service strategy for the target objects to be processed in the stock object set is determined, wherein the service strategy is used to provide the target objects to be processed under different migration progress with a domain name of a global unified access portal that is unified with the current region and an access path that is differentiated from the current region, so as to meet the data storage requirements of the target region.
2. The method according to claim 1, wherein: The determining, based on the relocation progress, a service strategy for the target object to be processed in the stock object set includes: When the migration progress reaches a preset progress, the domain name of the global unified access portal is set to the access address of the target area for the resolution address of the target area, so that the first category of objects that have been successfully migrated in the stock object set can provide services for the first category of objects through the access address of the target area; and the second category of objects that have not been completely migrated in the stock object set can be redirected to the current area via the target area, and then the current area can provide services for the second category of objects.
3. The method according to claim 1, wherein: The determining, based on the relocation progress, of service strategies for target objects to be processed with different relocation progresses in the stock object set includes: When the migration progress does not reach the preset progress, the domain name of the global unified access portal remains the resolution address of the target area as the access address of the current area, so as to migrate the data of the target object to be processed to the target area.
4. The method according to claim 3, when the relocation progress does not reach the preset progress, further comprises: Upon receiving the first service request of the target object to be processed, identifying the region identifier of the target object to be processed; wherein the region identifier of the first type of object that has been successfully relocated is the target region; and the region identifier of the second type of object that has not been completely relocated is the current region; In a case where the area identifier of the target object to be processed is the target area, the current area redirects the target object to be processed to the target area, so that the target area provides services for the target object to be processed; In a case where the region identifier of the target object to be processed is the current region, the current region provides services for the target object to be processed.
5. The method according to claim 4, when the relocation progress does not reach the preset progress, further comprises: When the business data in the object data of the target object to be processed is completely relocated, performing a verification operation, wherein the verification operation is used to verify whether the business data of the target area of the target object to be processed is consistent with the business data of the current area; When the verification result indicates that the data is consistent, the region identifier of the target object to be processed is set to the target region to indicate that the object data of the target object to be processed has been successfully relocated.
6. The method according to claim 5, further comprising: Before the area identifier of the target object to be processed is set as the target area, if a login state of the target object to be processed exists, the login state is moved to the target area.
7. The method according to claim 5, when the relocation progress does not reach the preset progress, further comprising: When receiving a first service request of the target object to be processed and the target object to be processed is in a migration state, the current area processes the first service request and returns response data of the first service request to the target object to be processed; In the process of migrating the business data in the object data of the target object to be processed to the target area, the target object to be processed maintains the migration state.
8. The method according to claim 5, when the relocation progress does not reach the preset progress, further comprising: When receiving the first service request of the target object to be processed and the target object to be processed is in a verification state, the current area prompts the target object to be processed that the current service is unavailable; Wherein, in the process of verifying whether the business data of the target area of the target object to be processed is consistent with the business data of the current area, the target object to be processed maintains the verification state.
9. The method according to claim 1, further comprising: For any target object to be processed in the stock object set, when the target object to be processed is in an idle state, object data of the target object to be processed is migrated to the target area.
10. The method according to claim 3, further comprising: The current area receives a second service request, wherein the second service request includes an object identifier; When it is determined that the object identifier is the target object to be processed in the stock object set, searching the current area for a login state of the target object to be processed; When the current area fails to find the login state of the target object to be processed, the current area redirects the target object to be processed to the target area corresponding to the area identifier of the target object to be processed, so that the target area provides services for the target object to be processed.
11. The method according to claim 1, further comprising identifying the set of stock objects based on the following method: Objects whose registration country field information indicates the target area are filtered out from all objects in the current area to obtain the stock object set.
12. The method according to any one of claims 1 to 11, further comprising: Before setting the resolution address of the domain name of the global unified access portal for the target area as the access address of the target area, for new objects in the target area, the new objects are redirected to the target area based on the registration request and business request of the new objects, so that the object data of the new objects are saved in the target area.
13. The method according to claim 4 or 12, wherein: The domain name redirected to the target area is a preset temporary access domain name of the target area.
14. The method according to claim 1, further comprising: For any stock object in the current area, detecting a common operation location of the stock object based on object data of the stock object; When the common operation location of the stock object is the target area and the registration location of the stock object is the current area, the object data of the stock object is migrated to the common operation location.
15. A data management device, comprising: A confirmation module, used to confirm the progress of relocating the object data of the stock object set from the current area to the target area; A processing module is used to determine a service strategy for a target object to be processed in the stock object set based on the migration progress, wherein the service strategy is used to provide the target object to be processed under different migration progress conditions with a domain name of a global unified access portal that is unified with the current area and an access path that is differentiated from the current area, so as to meet the data storage requirements of the target area.
16. The device according to claim 15, wherein: The processing module comprises: The first processing unit is used to set the domain name of the global unified access portal to the access address of the target area when the migration progress reaches a preset progress, so that the first category of objects that have been successfully migrated in the stock object set can provide services for the first category of objects through the access address of the target area; and the second category of objects that have not been completely migrated in the stock object set can be redirected to the current area via the target area, and then the current area can provide services for the second category of objects.
17. The apparatus according to claim 15, wherein the processing module further comprises: The second processing unit is used to keep the resolved address of the domain name of the global unified access portal for the target area as the access address of the current area when the migration progress does not reach the preset progress, so as to facilitate the migration of the data of the target object to be processed to the target area.
18. The device according to claim 17, further comprising: an identification module, configured to identify the region identifier of the target object to be processed in the set of stock objects upon receiving the first business request of the target object to be processed; wherein the region identifier of the first type of object that has been successfully relocated is the target region; and the region identifier of the second type of object that has not been completely relocated is the current region; A first redirection module, configured to redirect the target object to be processed to the target area by the current area when the area identifier of the target object to be processed is the target area, so that the target area provides services for the target object to be processed; The second service module is configured to, when the area identifier of the target object to be processed is the current area, provide services for the target object to be processed by the current area.
19. The device according to claim 18, when the relocation progress does not reach the preset progress, further comprising: A verification module, used for performing a verification operation when the business data in the object data of the target object to be processed is completely relocated, wherein the verification operation is used for verifying whether the business data of the target area of the target object to be processed is consistent with the business data of the current area; The marking module is used to set the area identifier of the target object to be processed as the target area to indicate that the object data of the target object to be processed has been successfully relocated when the verification result indicates that the data is consistent.
20. The device according to claim 19, further comprising a first relocation module, which is used to relocate the login state to the target area if there is a login state of the target object to be processed before the marking module sets the area identifier of the target object to be processed to the target area.
21. The device according to claim 19, further comprising a third service module, when the relocation progress does not reach the preset progress, for receiving a first service request of the target object to be processed and the target object to be processed is in a migration state, processing the first service request by the current area and returning response data of the first service request to the target object to be processed; in, In the process of migrating the business data in the object data of the target object to be processed to the target area, the target object to be processed maintains the migration state.
22. The device according to claim 19, further comprising a fourth service module, configured to prompt the current area that the current service of the target object to be processed is unavailable when the first service request of the target object to be processed is received and the target object to be processed is in a verification state; in, In the process of verifying whether the business data of the target area of the target object to be processed is consistent with the business data of the current area, the target object to be processed maintains the verification state.
23. The device according to claim 15 further comprises a second relocation module, which is used to migrate the object data of any target object to be processed in the stock object set to the target area when the target object to be processed is in an idle state.
24. The apparatus according to claim 17, further comprising a second redirection module, configured to: The current area receives a second service request, wherein the second service request includes an object identifier; When it is determined that the object identifier is the target object to be processed in the stock object set, searching the current area for a login state of the target object to be processed; When the current area fails to find the login state of the target object to be processed, the current area redirects the target object to be processed to the target area corresponding to the area identifier of the target object to be processed, so that the target area provides services for the target object to be processed.
25. The apparatus according to claim 15, further comprising a set determination module, configured to identify the set of stock objects based on the following method: Objects whose registration country field information indicates the target area are filtered out from all objects in the current area to obtain the stock object set.
26. The apparatus according to any one of claims 15 to 25, further comprising a third processing module, configured to: Before setting the resolution address of the domain name of the global unified access portal for the target area as the access address of the target area, for new objects in the target area, the new objects are redirected to the target area based on the registration request and business request of the new objects, so that the object data of the new objects are saved in the target area.
27. The device according to claim 18 or 26, wherein: The domain name redirected to the target area is a preset temporary access domain name of the target area.
28. The apparatus according to claim 15, further comprising an optimization module, configured to: For any stock object in the current area, detecting a common operation location of the stock object based on object data of the stock object; When the common operation location of the stock object is the target area and the registration location of the stock object is the current area, the object data of the stock object is migrated to the common operation location.
29. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 14.
30. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-14.
31. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Data migration method and device
CN108874828A
Real-time migration of clusters in containerized environment
CN112099918A
Data processing method and device, electronic equipment and storage medium
CN114969444A
Capacity expansion method and device of storage system, equipment and storage medium
CN117544642A
Data migration techniques
US10296255B1
Cited By
Configuration method and system for global data compliance, electronic equipment and program product
CN119292650A
