Data management methods, devices, equipment and storage media
By utilizing the domain name resolution address change and redirection mechanism of a globally unified access portal during the data migration process, the legality and security issues of data migration under the data storage regulations of different countries and regions were resolved, thereby achieving service continuity and improving user experience.
Patent Information
- Application Number
- CN202410628325.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-05-20
AI Technical Summary
How to complete data migration globally while complying with local data storage regulations and ensuring smooth access to services for global users, especially when different countries and regions have different regulatory requirements for data storage, where existing technologies struggle to ensure data legality and security.
By confirming the relocation progress and determining the service strategy, we provide the target objects with a globally unified access portal domain name and differentiated access paths. By utilizing the domain name resolution address change and redirection mechanism of the globally unified access portal, we ensure the compliance and continuity of data services in the target region.
It ensures service continuity and stability during data migration, reduces the risk of interruption due to regional switching, and guarantees data compliance and user experience.
Smart Images

Figure CN118535548B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to the fields of big data and data migration. Background Technology
[0002] With the global expansion of data services, the compliance and security of object data have become paramount. Different countries and regions have their own regulations regarding data storage. For example, European countries require object data to reside within designated regions and prohibit its migration outside of those regions. Therefore, an effective data management methodology is necessary. Summary of the Invention
[0003] This disclosure provides a data management method, apparatus, device, and storage medium.
[0004] According to one aspect of this disclosure, a data management method is provided, comprising:
[0005] Confirm the progress of migrating the object data of the existing object collection from the current region to the target region;
[0006] Based on the relocation progress, a service strategy is determined for the target objects to be processed in the existing object set. The service strategy is used to provide the target objects to be processed under different relocation progress conditions with a domain name (DN) that is consistent with the current region and has a different access path from the current region, so as to meet the data storage requirements of the target region.
[0007] According to another aspect of this disclosure, a data management apparatus is provided, comprising:
[0008] The confirmation module is used to confirm the progress of migrating object data of the existing object collection from the current area to the target area;
[0009] The processing module is used to determine the service strategy for the target objects to be processed in the set of existing objects based on the relocation progress. The service strategy is used to provide the target objects to be processed under different relocation progress conditions with a global unified access domain name that is consistent with the current region and a different access path from the current region, so as to meet the data storage requirements of the target region.
[0010] According to another aspect of this disclosure, an electronic device is provided, comprising:
[0011] At least one processor; and
[0012] The memory is communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform any of the methods described in the present disclosure.
[0014] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform any of the methods according to embodiments of this disclosure.
[0015] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the methods according to embodiments of this disclosure.
[0016] In this embodiment of the disclosure, differentiated access paths are provided for objects based on different relocation progress, thereby providing continuous services to objects using appropriate access paths and meeting the compliance requirements of the target area.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0018] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0019] Figure 1 This is a flowchart illustrating a data management method according to an embodiment of the present disclosure;
[0020] Figure 2 This is a flowchart illustrating a data management method according to an embodiment of the present disclosure when the relocation progress has not reached a preset progress.
[0021] Figure 3 This is a schematic diagram of the process of processing a first service request according to an embodiment of the present disclosure;
[0022] Figure 4 This is a flowchart illustrating the process of migrating object data in an idle state according to an embodiment of this disclosure;
[0023] Figure 5 This is a flowchart illustrating the process of handling requests for objects whose login status has not been found, according to an embodiment of this disclosure.
[0024] Figure 6 This is a timing diagram of service request processing before and after the login state migration according to an embodiment of this disclosure;
[0025] Figure 7This is a schematic diagram of the process for handling business requests of objects in different states according to an embodiment of this disclosure;
[0026] Figure 8 This is a timing diagram of business request processing for different state objects according to an embodiment of the present disclosure;
[0027] Figure 9 This is a schematic diagram of the process of handling object requests after modifying the globally unified domain name resolution address according to an embodiment of the present disclosure;
[0028] Figure 10 This is a schematic diagram illustrating the business request processing flow of different objects after modifying the globally unified domain name resolution address according to an embodiment of this disclosure;
[0029] Figure 11 This is a schematic diagram of the structure of a data management device according to an embodiment of the present disclosure;
[0030] Figure 12 This is a block diagram of an electronic device used to implement the data management method of the embodiments of this disclosure. Detailed Implementation
[0031] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0032] The terms “first,” “second,” etc., used in this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion, such as including a series of steps or units. A method, system, product, or apparatus is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatuses.
[0033] With a substantial global footprint, ensuring the legality and security of object data presents a critical challenge. Different countries and regions have their own regulations governing data storage. The key issue is how to migrate data while complying with these local regulations and ensuring seamless service access for objects worldwide.
[0034] In view of this, a data management method is proposed in the embodiments of this disclosure, such as... Figure 1 As shown, it includes:
[0035] S101, confirm the progress of migrating object data of the existing object collection from the current region to the target region.
[0036] The existing object set refers to the set of objects that currently provide services (including data storage) in the current region but need to be relocated to a target region where the target region will provide services. For example, object A in region A registers and conducts business in region B. Due to 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 services will be provided to it by region A.
[0037] The relocation progress can be determined based on the number of objects that have been relocated from the set of existing objects that need to be relocated. For example, if the set of existing objects includes m objects and the number of objects that have been relocated is n, then the relocation progress can be expressed as (n / m).
[0038] In other embodiments, the relocation progress can be determined based on the total amount of object data for all objects that need to be relocated to the target area. For example, if the total amount of data is M and the amount of data that has been relocated is N, then the relocation 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 set of existing objects. The service strategy is used to provide the target objects to be processed under different relocation progress conditions with a global unified access domain name that is consistent with the current region and a different access path from the current region, so as to meet the data storage requirements of the target region.
[0040] The globally unified access portal domain name provides a unified access point for objects worldwide. Before all objects are migrated, objects in all regions operate using this globally unified access portal domain name. Furthermore, the globally unified access portal domain name for all objects resolves to only a limited number of one or more addresses.
[0041] In this embodiment of the disclosure, when it is necessary to migrate object data from the current region to the target region, a corresponding service strategy is established based on the migration progress. This allows for the provision of differentiated access paths for objects at different migration progress stages, thereby providing continuous service to objects using appropriate access paths and meeting the compliance requirements of the target region. Furthermore, regardless of the migration progress, this embodiment of the disclosure provides services to objects in different regions through a globally unified access portal, thereby improving the user experience.
[0042] In some embodiments, the service strategy for identifying target objects to be processed in the set of existing objects based on the relocation progress can be implemented as follows: Figure 2As shown in S201, when the relocation progress reaches the preset progress, the domain name resolution address of the global unified access portal for the target region is set to the access address of the target region, so that the first type of objects that have been successfully relocated in the existing object set can provide services to the first type of objects through the access address of the target region; and so that the second type of objects that have not been relocated in the existing object set can be redirected to the current region through the target region, and then the current region can provide services to the second type of objects.
[0043] The preset progress can be set according to requirements, and 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. This embodiment of the disclosure does not limit this.
[0044] After the relocation progress exceeded the preset schedule, the DNS resolution address of the global unified access portal for objects in the target region was changed to the target region. Therefore, after the DNS resolution address change, the business logic for the first type of objects in the existing object set will be provided by the target region, and any data generated thereafter will also be stored in the target region. For any newly added objects, the data will also be provided by the target region, and all data for these new objects will be stored entirely in the target region.
[0045] For example, by resolving the domain name of the globally unified access portal using DNS (Domain Name System), the URL of the globally unified access portal domain name is mapped to the target region. For the second type of object that has not been completely migrated, since there is no object data in the target region, when the second type of object accesses through the domain name of the globally unified access portal, the server in the target region will redirect its operation request to the current region. The current region can continue to provide services to the second type of object without affecting the business operations of the second type of object.
[0046] It should be noted that the resolved address of an object in the target region falls within the current region.
[0047] In this embodiment, even if the object data of the existing object set has not been completely migrated from the current region to the target region when the migration progress reaches the preset progress, the resolution address of the globally unified access portal domain name can be set to the access address of the target region. This allows most of the migrated objects to access the service directly through the server in the target region, improving access speed and responsiveness. Furthermore, new data for the first type of object will be stored in the target region to meet compliance requirements. During the migration process, the first type of object has been migrated to the target region, while the second type of object remains in the current region. Through a redirection mechanism, the second type of object can still obtain services through the current region, balancing the load between the two regions and avoiding service interruptions or performance degradation caused by the migration. This method allows for the gradual migration of data and services without affecting object services, reducing the risk of being unable to provide services to objects during the migration process and ensuring business continuity. In addition, the globally unified access portal domain name ensures a unified access portal for objects, improving the object experience.
[0048] In this embodiment, a "Registered Country" field can be set for each existing object, regardless of whether it belongs to another region. In practice, the registered country can be determined by at least one of the following: the IP (Internet Protocol) address at the time of registration, terminal device information, registration location, etc., thereby determining the value of the "Registered Country" field. Based on this, objects representing the target region are selected from all objects in the current region, thus obtaining a set of existing objects.
[0049] In this embodiment of the disclosure, based on the registration information of all objects in the current region, corresponding registration country field information is set to represent the region information to which each object belongs in the full set of objects in the current region, thereby filtering out objects representing the target region. For example, in a database containing all objects, the SECLECT statement is used to filter out object data representing the target region, resulting in a set of existing objects.
[0050] In this embodiment of the disclosure, by filtering objects whose registration country field information represents the target region from the full set of objects, objects in specific regions can be located and identified more accurately. This allows for compliance with the laws and regulations of different countries or regions based on the registration country field information, and enables the provision of services or content related to the region where the object is located, thereby enhancing the user experience.
[0051] The above describes changing the DNS resolution address of the globally unified access portal domain to the target region. However, this is conditional, namely, the migration progress must reach a preset schedule. In cases where the migration progress has not reached the preset schedule, this disclosure also proposes a solution to ensure continuous and stable service to the target. For ease of understanding, the following explains how services are provided to the target and the migration data are handled before and after the DNS resolution address modification.
[0052] 1. If the relocation progress has not reached the preset schedule and the globally unified domain name resolution address has not been modified, in this case, it can be based on, for example... Figure 2 The methods shown provide service strategies for objects, including:
[0053] S202, if the relocation progress has not reached the preset progress, the domain name resolution address of the global unified access portal for the target region will be kept as the access address of the current region, so as to use the current region as the access portal for each target object to be processed in the existing object set, so as to facilitate the relocation of the data of the target objects to be processed to the target region.
[0054] In other words, if the relocation progress does not reach the preset progress, a large amount of data will still be stored in the current area. Therefore, using the current area to provide services can provide reliable services to the objects to be processed and improve service quality.
[0055] Specifically, in the event of a business request, the processing flow is as follows: Figure 2 As shown, it includes:
[0056] S203, upon receiving the first business request for a target object to be processed from the existing object set, identify the region identifier of the target object to be processed; wherein, the region identifier of the first type of object that has been successfully migrated is the target region; and the region identifier of the second type of object that has not been migrated is the current region.
[0057] During implementation, a field 'r' representing the object's region is added to the account system; this is the region identifier. 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. After successfully migrating the object data of object A from the current region to the target region, object A's 'r' will change from A to B.
[0058] After adding a region identifier, reliable and stable services can be provided to the object through redirection operations. That is, in S204, if the region identifier of the target object to be processed is the target region, the target object to be processed is redirected from the current region to the target region so that the target region provides services to the target object to be processed; in S205, if the region identifier of the target object to be processed is the current region, the current region provides services to the target object to be processed.
[0059] In this embodiment, by identifying the region identifier of the target object to be processed, a compliant region can be selected to provide services to the target object. Specifically, for objects whose region identifier is the target region, their requests will be automatically redirected to the current region, allowing them to operate through a unified access point, thus ensuring a consistent user experience. For target objects in the current region, stable and reliable services can still be provided through the servers in that region, ensuring business continuity and stability.
[0060] like Figure 3 As shown, the target object to be processed sends its first business request to server 1 in its current region through the globally unified access portal domain name (www.xxxx.com) on the client side. Authentication is performed by the account service of server 1 in the current region, and the region to which the target object belongs is queried by identifying the region identifier. For target objects in the target region, a pre-set temporary access domain name (b.xxxx.com) is used to redirect them to the target region for service. The specific operation for this redirection is as follows: server 1 returns a redirection request containing the temporary access domain name. After processing by the client, the request is sent to server 2, thus completing the redirection of the object request from the current region to the target region, enabling the target region to provide service. Through the redirection operation of the temporary access domain name, objects in the target region can be guided to the target region for operation. Before the migration progress reaches the preset progress, the temporary access domain name is used to redirect to the target region. Therefore, newly added object data will be retained in the target region, minimizing the impact of newly generated data on the migration task during the data migration process and ensuring smooth and stable service for existing objects. For objects that have been successfully migrated, the temporary access domain name can also successfully redirect them to the target region for service. Subsequently, once the relocation progress reaches the preset schedule, the temporary access domain name will be reclaimed, and the target region will continue to use the globally unified access portal domain name, providing a unified access portal for objects in different regions.
[0061] The domain name in the current zone points to the domain name in the target zone, which can automatically redirect the object to the new webpage, avoid error pages, and improve the object's experience.
[0062] For objects in the current region, after authentication is successful, such as Figure 3 As shown, the gateway can forward service requests to the business service module to perform relevant business operations in the current region.
[0063] In this embodiment of the disclosure, for any target object to be processed in the existing object set, in order to reduce the business impact of data migration, 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 can be migrated to the target area.
[0064] In this context, the period during which the target object to be processed is logged into the service but inactive can be understood as an idle state, as can the period during which the target object to be processed is not logged into the service. In this embodiment of the disclosure, data migration of the target object to be processed can be carried out safely while in an idle state, thus reducing the impact on the object's business. In addition, it can also reduce the complexity of the migration work caused by the generation of new data.
[0065] The object data may include business data. If the target object is logged in during the data migration process, the object data may also include the login status of that target object. If the target object is idle, its business data is primarily migrated. To provide stable and reliable service to the target object, its object status can be set to a migration state (copy state) during the business data migration. Therefore, querying the object status indicates whether the target object's object data is being migrated.
[0066] Furthermore, in this embodiment of the disclosure, in order to promptly detect and correct errors that may occur during data migration and reduce business problems caused by data inconsistency, such as... Figure 4 As shown in S402, after the business data in the object data of the target object to be processed has been migrated, a verification operation is performed. This 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.
[0067] As explained above, during the migration of business data, the target object to be processed is in a migration state. During the data consistency verification process after the business data migration is complete, this embodiment maintains the object in a verification state. The migration progress can be understood through the verification state.
[0068] S403, if the verification result indicates that the data is consistent, set the region identifier of the target object to be processed to the target region to indicate that the object data of the target object to be processed has been successfully migrated.
[0069] In this embodiment, by verifying the consistency of business data between the target area and the current area, it is ensured that no data is lost or damaged during the migration process, guaranteeing data consistency and preventing data loss from causing business malfunctions, thereby improving service reliability and stability. Setting the area identifier as the target area indicates that the object data has been successfully migrated. This provides a basis for allocating subsequent business operation data to which area for processing, ensuring that newly generated data falls into a compliant area for storage during service use.
[0070] During data migration, if the target object is logged in, it may be because it has always been logged in, or because it logged in through the current region during the migration process. In any case, being logged in indicates that the object is online during the migration. One possible implementation is to not migrate the login status to the target region. In the event of a lost login status, the target object's requests are sent to the current region. Since the data migration has been successful, the requests will be redirected from the current region to the target region for service. The target object can then log in again in the target region and perform subsequent operations.
[0071] This could lead to a sudden interruption of the target's business operations. To ensure service continuity and integrity, and to avoid data loss or corruption due to the change in service delivery to the target region, the login status of the target object needs to be migrated to the target region if it already exists, before the region identifier of the target object is set to the target region.
[0072] In other words, after the business data migration is complete, a data consistency check is performed. If the check passes, it means the business data migration is successful and no new data was generated during the migration process. At this point, the login state can be migrated to the target region, and the region identifier is updated to the target region. With the support of business data and login state, the target region can provide complete and reliable services to the target objects to be processed.
[0073] Of course, it's understandable that if the target object is not logged in, its region identifier can be directly set to the target region after successful verification. This way, all subsequent operations on the object will be performed in the target region, and the login status will be maintained by the target region, providing complete and reliable services to the target object.
[0074] In this embodiment of the disclosure, migrating the login state of existing objects to the target region helps maintain the business continuity of the objects and reduces the risk of interruption caused by region switching. When the object continues to operate in the target region, since the login state has been migrated, the user experience will not be affected by the change of region, reducing the inconvenience caused by re-login and other operations.
[0075] The migration of the login state indicates that the target object to be processed is currently logged in. In this embodiment of the disclosure, in order to avoid interruption of object services and to ensure stable and continuous service to the object, when the login state is migrated, it can be done through... Figure 5 As shown, although the service area is switched, the objects are unaware of the change, including the following:
[0076] S501, The current area receives a second service request, which 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, even if the object data of the target object to be processed is migrated, it will still access area A through the domain name of the global unified access portal. In order to store the newly generated data in the target area, in S502, if it is determined that the object is identified as the target object to be processed in the existing object set, the login status of the target object to be processed is searched in the current area.
[0078] S503, if the login status of the target object to be processed is not found in the current area, 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 can provide services to the target object to be processed.
[0079] For example, such as Figure 6 As shown, taking object D as an example, object D in the target region (B) exists in the existing set of the current region (A). However, before object D's login state migration and while in the migration state, object D's region identifier is the current region. Therefore, requests sent by object D through the client will be processed by server 1 in the current region. At this time, object D's login state is in server 1, and object D's authentication is completed through the login state. If authentication is successful, server 1 executes the operation corresponding to the request and returns the processing result to object D's client.
[0080] If object D successfully migrates its login state, since the DNS resolution address of the globally unified access portal for the target region remains unchanged and still resolves to the current region, server 1 in the current region will still receive requests from object D. However, because the login state has migrated to the target region, server 1 in the current region cannot find the login state of the target object to be processed in the current region, but confirms that object D exists. Therefore, server 1 in the current region can determine that it is very likely that the login state of object D has been migrated to the target region. Therefore, after receiving the business request sent by the object, server 1 in the current region finds out by querying that the region identifier of object D has been changed to the target region. Then, server 1 in the current region returns the request result to the client (including the temporary access domain name of server 2 in the target region). The client reprocesses the request result and redirects the second business request to server 2 in the target region for processing. The target region can authenticate object D based on the migrated login state. After successful authentication, it can continue to provide services to object D. In this way, even if the service region is switched after the data migration is completed, object D can continue to perform business operations without being aware of the migration, provided that the login state of object D is continuously logged in.
[0081] As can be seen, in this embodiment of the disclosure, before setting the region identifier of the target object to be processed to 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 to the target object to be processed, ensuring the continuity and timeliness of services while ensuring data compliance. As business development changes, the system can flexibly adapt to adjustments in region identifiers and service regions, maintaining service stability and scalability.
[0082] Understandably, if the login status of the target object to be processed is not found in the current region, the target object may not have yet migrated its data, or its business data may not have been migrated completely. Since the region identifier of the target object is still the current region, the current region will continue to provide services to the target object and write any newly generated data into the current region.
[0083] As explained earlier, the process of migrating object data of a target object involves two states: migration and verification. The migration state indicates that the target object is in the process of migrating its object data from the current region to the target region; the verification state indicates that the target object is in the process of verifying data consistency. The following sections describe the handling of business requests when existing objects are in the migration and verification states:
[0084] 1) The target object to be processed is in the transition state.
[0085] When the target object is in a migration state, the data of the target object to be processed has not been migrated. In order to ensure the stability of the business, when the first business request of the target object to be processed is received and the target object to be processed is in a migration state, the current region processes the first business request and returns the response data of the first business request to the target object to be processed.
[0086] As explained above, during the process of migrating the business data in the object data of the target object to the target area, the target object remains in a migration state.
[0087] For example, the business data of target object B needs to be migrated to target region B. During the migration, the object data of the target object can be backed up first, and then the backup data can be migrated. New data added during the migration process is still updated in the original data. During verification, to ensure that all data is migrated to the target region, the original data can be used for verification. Thus, although new data is generated in the current region due to operations during the migration process, the verification will ultimately fail due to the added data. Based on this, the migration operation can continue to ensure that all business data of the target object is migrated to the target region.
[0088] In this embodiment of the disclosure, when an existing object is in a migration state, the current region provides services for the operation request of the target object 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 internal migration process of the system, thereby improving the user experience of the object.
[0089] 2) The target object to be processed is in the inspection state.
[0090] Upon receiving the first business request for the target object to be processed, and if the target object to be processed is in a verification state, the current region will indicate that the service for the target object to be processed is currently unavailable.
[0091] 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 this embodiment of the disclosure, when the target object to be processed is in a verification state, a prompt message is sent to the target object when it requests an operation. For example, the prompt message sent to the target object may be: "The current object is in a migration verification state; please try the operation again later." 。 If the verification results are consistent, the operation request for the target object to be processed will be redirected by the server in the current region to the target region, so that the object data generated afterwards will be stored in the target region. If the verification results are inconsistent, optional operation services will be provided to the target object to be processed, such as providing "migration retry" and "logout" as two selectable operation options.
[0093] In this embodiment of the disclosure, when the target object to be processed is in the verification state, the business request for the target object to be processed is prompted that the current service is unavailable. This can ensure data consistency and prevent the business request operation from being accepted when the data of the target object is changing or has not yet been finalized, which would cause damage to the consistency of the object data.
[0094] In some embodiments, before setting the domain name resolution address of the global unified access portal to the access address of the target region, for newly added objects in the target region, the following operations are performed to provide stable, reliable and compliant services: based on the registration request and business request of the newly added object, the newly added object is redirected to the target region so as to save the object data of the newly added object in the target region.
[0095] During implementation, newly added objects can be redirected to the target region using a pre-defined temporary access domain name. For example, since the domain name of the global unified access portal remains unchanged, object B in target region B still accesses the service in current region A through the domain name of that global unified access portal. Given that object B is an object in region B, current region A returns the temporary access domain name of region B to object B, thereby redirecting object B's access request to region B. All subsequent operations are then completed in region B.
[0096] In this embodiment, both registration requests and business requests from registered objects are redirected to the target region. This allows object data to be stored in the target region, improving data processing efficiency, reducing latency caused by cross-regional data transmission, and complying with legal requirements for local data storage in certain regions. Furthermore, objects accessing servers in their local region typically experience faster response times, thus enhancing the user experience.
[0097] In other embodiments, for any existing object in the current region, the common operating location of the existing object is detected based on the object data of the existing object; if the common operating location of the existing object is the target region and the registration location of the existing object is the current region, the object data of the existing object is moved to the common operating location.
[0098] In this embodiment of the disclosure, when the common operating location of the existing object is the target area and the registration location of the existing object is the current area, migrating the data to the common operating location can reduce the data transmission time and thus improve the object experience.
[0099] To better understand the activity status of an object at various stages when the migration progress has not reached the preset progress and the globally unified domain name resolution address has not been modified, the following uses the object's activity status diagram and time sequence diagram to illustrate this more intuitively.
[0100] like Figure 7 As shown, the server in the current region stores the state of each object in the collection of existing objects that need to be migrated to the target region. For example... Figure 7 As shown, assume that objects A, B, C, and D are all objects to be processed within the existing object set. The object data in the current region stores the migration status of objects A, B, C, and D, and maintains their corresponding region identifiers in real time. Figure 7 As shown, assume object A is in the verification state, with region identifier A (i.e., belonging to the current region); object B is in the migration state, with region identifier A; object C is in the state where migration has not yet started, with region identifier A; and object D has successfully migrated, and its region identifier has been updated from A to B. The processing procedure for 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. Therefore, the request result returned from the current region to the object is unavailable.
[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. Therefore, the service request of object B is provided 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 in the server of the current region. At this time, the service request of object C is provided by server 1 of 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 facilitate understanding of the changes each object undergoes during the migration process, we will use object D as an example below. The entire migration process for object D is as follows: Figure 8 As shown:
[0107] (1) Before migration at time T0, the object data of object D is located in server 1 of the current region, and its region identifier is the current region (i.e., the server shown by the black pentagram in the figure). Therefore, the client of object D sends a request to server 1 of the current region for processing via the domain name resolution of the globally unified access portal. For example, it queries the object information through the database of the current region, returns the query result, and then returns the request result to the client through server 1, which is then fed back to object D.
[0108] (2) When object D is in an idle state, its object data is migrated, and object D enters 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 identifier is the current region (i.e., the server shown by the black pentagram in the diagram). Therefore, the client of object D sends a request to server 1 in the current region for processing via the domain name resolution of the globally unified access portal. 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. Then, server 1 returns the request result to the client and feeds it back to object D.
[0109] (3) When the business data migration for object D is completed, object D is in the verification state. For example... Figure 8 In the context of the verification state, at any time T2, when object D has a business request, since its region identifier is the current region, the request sent by object D's client will be resolved by the domain name of the globally unified access portal to server 1 in the current region for processing. It will then indicate that the business is unavailable.
[0110] (4) After the business data migration of object D is successful, if object D is still logged in, the login status will be migrated to the target region, and then the region identifier of object D will be changed to the target region. Since object D's data has been migrated to the server in the target region, when object D makes a business request at time T3, the request is resolved to server 1 via the global unified access portal's domain name. Server 1 queries its region identifier and returns the query result. Because the server in the current region finds that object D's region identifier has changed to the target region, server 1 returns a new request header to the client. The client then sends a business request to server 2 via the temporary access domain name of the target region, and server 2 in the target region provides services to the object. For example, server 2 queries the object information in its database and returns the query result, then server 2 returns the request result to the client, feeding back to object D.
[0111] 2. The relocation progress has reached the preset schedule; the globally unified domain name resolution address has been modified.
[0112] like Figure 9 As shown, for a target object that has been migrated, the region field of the target object has been changed from the current region A to the target region B. After making a business request through the modified global unified domain name resolution address, the server in the target region detects that the region field of the target object is B. Therefore, all subsequent business operations of the target object will be performed in the target region.
[0113] For pending target objects that have not yet completed migration, when their requests reach the server in the target region via the modified global unified domain name, the region identifier of the pending target object will still be the current region because the data of the target object has not yet been migrated to the target region. For example... Figure 9 As shown, the server in the target region will redirect the request for the target object to the current region, where the current region will continue to provide services for the target object.
[0114] For newly registered objects, since the registration region is the target region, all requests for newly registered objects will be provided by the server in the target region.
[0115] The following is based on Figure 10 The document describes the business request process for each object after the object migration progress reaches the preset progress and the globally unified domain name resolution address is modified.
[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 identifier has been changed to the 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, subsequent requests sent by object A to server 2 through a client will be provided by server 2 in the target region.
[0117] (2) For a newly added object B in the target region, the registration request sent by object B through modifying the domain name of the globally unified access entry point of the domain name resolution address will be processed by server 2. After server 2 completes the registration, it will mark its region identifier as the target region and can synchronize it to other regions so that other regions have the region identifier of all objects globally. For object B, subsequent business requests will be handled entirely by server 2 in the target region, and all object data of object B will be stored in the server of the target region.
[0118] (3) For object C that has not yet completed the migration. Because the domain name of the globally unified access portal has changed its resolution address, the request for object C will be sent from server 1 to server 2 in the target region. The target region resolves its region identifier to the current region. Therefore, when object C sends a request to server 2 through a client, server 2 will redirect object C's business request to server 1 in the current region. At this time, object C's request is served by server 1 in the current region, and the processing result is returned to object C.
[0119] Furthermore, it should be noted that, in addition to the aforementioned scenario where each regional server can maintain its own regional identifier for all objects, other embodiments can employ a centralized service. This means a central service maintains the regional identifiers for all objects, and any update to an object in any region must be synchronized to this central service. When a region needs to query the regional identifier of any object, it can send a query request to the central service to obtain the regional identifier of the object being queried.
[0120] Based on the same technical concept, this disclosure also provides a data management device 1100, such as... Figure 11 As shown, it includes:
[0121] Confirmation module 1101 is used to confirm the migration progress of the object data of the existing object collection from the current area to the target area;
[0122] The processing module 1102 is used to determine the service strategy for the target objects to be processed in the set of existing objects based on the relocation progress. The service strategy is used to provide the target objects to be processed under different relocation progress conditions with a domain name that is consistent with the current region and has a different access path than the current region, so as to meet the data storage requirements of the target region.
[0123] In some embodiments, the processing module includes:
[0124] The first processing unit is used to set the domain name resolution address of the global unified access portal to the target area when the relocation progress reaches the preset progress, so that the first type of objects that have been successfully relocated in the existing object set can provide services to the first type of objects through the access address of the target area; and so that the second type of objects that have not been relocated in the existing object set can be redirected to the current area through the target area and then the current area can provide services to the second type of objects.
[0125] In some embodiments, the processing module further includes:
[0126] The second processing unit is used to keep the domain name resolution address of the global unified access portal for the target region the access address of the current region if the relocation progress has not reached the preset progress, so as to facilitate the relocation of the data of the target object to be processed to the target region.
[0127] In some embodiments, if the relocation progress has not reached the preset progress, the method further includes:
[0128] The identification module is used to identify the region identifier of the target object to be processed when it receives the first business request for the target object to be processed in the existing object set; wherein, the region identifier of the first type of object that has been successfully migrated is the target region; and the region identifier of the second type of object that has not been migrated is the current region.
[0129] The first redirection module is used to redirect the target object to be processed from the current region to the target region when the region of the target object to be processed is identified as the target region, so that the target region can provide services to the target object to be processed.
[0130] The second service module is used to provide services to the target object to be processed by the current region when the region of the target object to be processed is identified as the current region.
[0131] In some embodiments, if the relocation progress has not reached the preset progress, the method further includes:
[0132] The verification module is used to perform verification operations after the business data in the object data of the target object to be processed has been migrated. 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 tagging module is used to set the region identifier of the target object to be processed as the target region when the verification result indicates that the data of the target object to be processed has been successfully migrated.
[0134] In some embodiments, a first relocation module is further included, which is used to relocate the login state of the target object to be processed to the target region before the region identifier of the target object to be processed is set to the target region.
[0135] In some embodiments, if the relocation progress has not reached the preset progress, a third service module is also included, which is used to process the first service request by the current region and return the response data of the first service request to the target object to be processed when a first service request of the target object to be processed is received and the target object to be processed is in a migration state.
[0136] During the process of migrating business data from the object data of the target object to the target region, the target object remains in a migration state.
[0137] In some embodiments, a fourth service module is also included, which is used to prompt the target object that the current service is unavailable when a first business request for the target object to be processed is received and the target object to be processed is in a verification state;
[0138] 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 remains in a verification state.
[0139] In some embodiments, a second migration module is further included, which is used to migrate the object data of any target object to be processed in the existing object set to the target area when the target object is in an idle state.
[0140] In some embodiments, a second redirection module is further included, for:
[0141] The second service request is received from the current area, and the second service request includes an object identifier;
[0142] If the object is identified as a target object to be processed in the existing object set, search for the login status of the target object to be processed in the current area;
[0143] If the login status of the target object to be processed is not found in the current region, the current region will redirect the target object to the target region corresponding to the region identifier of the target object, so that the target region can provide services to the target object.
[0144] In some embodiments, a set determination module is also included, for identifying a set of existing objects based on the following methods:
[0145] From the full set of objects in the current region, select objects whose registered country field information represents the target region to obtain a set of existing objects.
[0146] In some embodiments, a third processing module is further included, for:
[0147] Before setting the DNS resolution address of the globally unified access portal domain to the access address of the target region, for newly added objects in the target region, the newly added objects are redirected to the target region based on the registration request and business request of the newly added objects, so as to save the object data of the newly added objects in the target region.
[0148] In some embodiments, the domain name redirected to the target region is a pre-set temporary access domain name for the target region.
[0149] In some embodiments, an optimization module is also included, for:
[0150] For any existing object in the current region, detect the frequently used operation locations of the existing object based on the object data of the existing object;
[0151] If the common operating location of the existing object is the target region and the registration location of the existing object is the current region, the object data of the existing object will be migrated to the common operating location.
[0152] The specific functions and examples of each module and submodule of the apparatus in this disclosure can be found in the relevant descriptions of the corresponding steps in the above method embodiments, and will not be repeated here.
[0153] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0154] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0155] Figure 12 A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments 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 may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0156] like Figure 12 As shown, device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1202 or a computer program loaded from storage unit 1208 into random access memory (RAM) 1203. The RAM 1203 may also store various programs and data required for the operation of device 1200. The computing unit 1201, ROM 1202, and RAM 1203 are interconnected via bus 1204. Input / output (I / O) interface 1205 is also connected to bus 1204.
[0157] Multiple components in device 1200 are connected to I / O interface 1205, including: input unit 1206, such as keyboard, mouse, etc.; output unit 1207, such as various types of monitors, speakers, etc.; storage unit 1208, such as disk, optical disk, etc.; and communication unit 1209, such as network card, modem, wireless transceiver, etc. Communication unit 1209 allows device 1200 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0158] The computing unit 1201 can be a variety of general-purpose and / or special-purpose 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 special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, 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 tangibly contained in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1200 via ROM 1202 and / or communication unit 1209. When the computer program is loaded into 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 data management methods by any other suitable means (e.g., by means of firmware).
[0159] Various embodiments 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-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0160] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0161] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, 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 for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, 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 sound input, voice input, or tactile input).
[0163] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0164] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0165] Based on the aforementioned electronic devices, this disclosure also provides a vehicle that 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 information about the surrounding environment, etc., wherein the communication components, the display screen, the information collection device and the electronic devices are communicatively connected.
[0166] According to embodiments of this disclosure, the electronic device can be integrated with the communication component, display screen, and information acquisition device, or it can be separately configured with the communication component, display screen, and information acquisition device.
[0167] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0168] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A data management method, comprising: Confirm the progress of migrating the object data of the existing object collection from the current region to the target region; Based on the relocation progress, a service strategy is determined for the target objects to be processed in the existing object set, including: when the relocation progress reaches a preset progress, setting the domain name resolution address of the globally unified access portal for the target region to the access address of the target region, so that the first type of objects that have been successfully relocated in the existing object set can provide services to the first type of objects through the access address of the target region; and so that the second type of objects that have not been relocated in the existing object set can be redirected to the current region through the target region, and then the current region can provide services to the second type of objects. The service strategy is used to provide the target objects to be processed with a global unified access domain name that is consistent with the current region and a different access path than the current region for different relocation progress situations, so as to meet the data storage requirements of the target region.
2. The method according to claim 1, wherein, The service strategy for determining the target objects to be processed in the set of existing objects with different migration progress based on the migration progress includes: If the relocation progress does not reach the preset progress, the domain name resolution address of the global unified access portal for the target region will remain the access address of the current region, so as to facilitate the relocation of the data of the target object to be processed to the target region.
3. The method according to claim 2, further comprising, if the relocation progress has not reached the preset progress: Upon receiving a first service request from the target object to be processed, the region identifier of the target object to be processed is identified; 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 relocated is the current region. If the region of the target object to be processed is identified as the target region, the current region redirects the target object to be processed to the target region so that the target region provides services to the target object to be processed. If the region of the target object to be processed is identified as the current region, the current region provides services to the target object to be processed.
4. The method according to claim 3, further comprising, if the relocation progress has not reached the preset progress: After the business data in the object data of the target object to be processed has been migrated, a verification operation is performed. 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. If 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 migrated.
5. The method according to claim 4, further comprising: Before the region identifier of the target object to be processed is set to the target region, if the target object to be processed is logged in, the login status will be moved to the target region.
6. The method according to claim 4, further comprising, if the relocation progress has not reached the preset progress: Upon receiving a first service request from the target object to be processed, and the target object to be processed is in a migration state, the current region processes the first service request and returns the response data of the first service request to the target object to be processed. During the process of migrating the business data in the object data of the target object to the target region, the target object to be processed maintains the migration state.
7. The method according to claim 4, further comprising, if the relocation progress does not reach the preset progress: Upon receiving the first service request from the target object to be processed, and if the target object to be processed is in a verification state, the current region will indicate that the current service for the target object to be processed is unavailable. 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.
8. The method according to claim 1, further comprising: For any target object to be processed in the existing object set, if 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 region.
9. The method according to claim 2, further comprising: The current area receives a second service request, the second service request including an object identifier; If the object is identified as the target object to be processed in the set of existing objects, the login status of the target object to be processed is searched in the current area; If the login status of the target object to be processed is not found in the current region, the current region will redirect 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 can provide services to the target object to be processed.
10. The method of claim 1, further comprising identifying the set of existing objects based on the following method: The objects representing the target region are selected from all objects in the current region by filtering out those with the registered country field information, thus obtaining the set of existing objects.
11. The method according to claim 1, further comprising: Before setting the DNS resolution address of the global unified access portal domain for the target region to the access address of the target region, for newly added objects in the target region, the newly added objects are redirected to the target region based on the registration request and business request of the newly added objects, so as to save the object data of the newly added objects in the target region.
12. The method according to claim 3 or 11, wherein, The domain name redirected to the target region is a pre-set temporary access domain name for the target region.
13. The method according to claim 1, further comprising: For any existing object in the current region, detect the frequently used operation locations of the existing object based on the object data of the existing object; If the common operating location of the existing object is the target region and the registration location of the existing object is the current region, the object data of the existing object will be migrated to the common operating location.
14. A data management device, comprising: The confirmation module is used to confirm the progress of migrating object data of the existing object collection from the current area to the target area; The processing module is used to determine a service strategy for the target objects to be processed in the set of existing objects based on the relocation progress. The service strategy is used to provide the target objects to be processed under different relocation progress conditions with a domain name that is consistent with the current region and has a different access path than the current region, so as to meet the data storage requirements of the target region. The processing module includes: The first processing unit is configured to, when the relocation progress reaches a preset progress, set the domain name resolution address of the global unified access portal for the target region to the access address of the target region, so that the first type of objects that have been successfully relocated in the existing object set can provide services to the first type of objects through the access address of the target region; and so that the second type of objects that have not been relocated in the existing object set can be redirected to the current region through the target region, and then the current region can provide services to the second type of objects.
15. The apparatus according to claim 14, wherein the processing module further comprises: The second processing unit is configured to, in the event that the relocation progress has not reached the preset progress, keep the domain name resolution address of the global unified access portal for the target region as the access address of the current region, so as to facilitate the relocation of the data of the target object to be processed to the target region.
16. The apparatus according to claim 15, further comprising, in the event that the relocation progress has not reached the preset progress: The identification module is used to identify the region identifier of the target object to be processed when receiving a first business request for the target object to be processed in the existing object set; wherein, the region identifier of the first type of object that has been successfully migrated is the target region; and the region identifier of the second type of object that has not been migrated is the current region. The first redirection module is configured to redirect the target object to be processed from the current region to the target region when the region of the target object to be processed is identified as the target region, so that the target region provides services to the target object to be processed. The second service module is used to provide services to the target object to be processed by the current region when the region of the target object to be processed is identified as the current region.
17. The apparatus according to claim 16, further comprising, in the event that the relocation progress has not reached the preset progress: The verification module is used to perform a verification operation after the business data in the object data of the target object to be processed has been migrated. 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. The marking module is used to set the region identifier of the target object to be processed as the target region when the verification result indicates that the data is consistent, so as to indicate that the object data of the target object to be processed has been successfully moved.
18. The apparatus according to claim 17 further includes a first relocation module, configured to relocate the login status of the target object to be processed to the target area before the area identifier of the target object to be processed by the marking module is set to the target area, in the case where the login status of the target object to be processed exists.
19. The apparatus according to claim 17, further comprising a third service module when the relocation progress has not reached the preset progress, for receiving a first service request from 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, During the process of migrating the business data in the object data of the target object to the target region, the target object to be processed maintains the migration state.
20. The apparatus according to claim 17 further includes a fourth service module, configured to, upon receiving a first service request from the target object to be processed and the target object to be processed being in a verification state, prompt the target object to be processed that the current service is currently unavailable via the current region; in, 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.
21. The apparatus according to claim 14 further includes a second relocation module, configured to migrate the object data of any target object to be processed in the existing object set to the target region when the target object is in an idle state.
22. The apparatus of claim 15, further comprising a second redirection module, configured to: The current area receives a second service request, the second service request including an object identifier; If the object is identified as the target object to be processed in the set of existing objects, the login status of the target object to be processed is searched in the current area; If the login status of the target object to be processed is not found in the current region, the current region will redirect 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 can provide services to the target object to be processed.
23. The apparatus of claim 14, further comprising a set determination module, configured to identify the stock object set based on the following method: The objects representing the target region are selected from all objects in the current region by filtering out those with the registered country field information, thus obtaining the set of existing objects.
24. The apparatus of claim 14, further comprising a third processing module, configured to: Before setting the DNS resolution address of the global unified access portal domain for the target region to the access address of the target region, for newly added objects in the target region, the newly added objects are redirected to the target region based on the registration request and business request of the newly added objects, so as to save the object data of the newly added objects in the target region.
25. The apparatus according to claim 16 or 24, wherein, The domain name redirected to the target region is a pre-set temporary access domain name for the target region.
26. The apparatus of claim 14, further comprising an optimization module for: For any existing object in the current region, detect the frequently used operation locations of the existing object based on the object data of the existing object; If the common operating location of the existing object is the target region and the registration location of the existing object is the current region, the object data of the existing object will be migrated to the common operating location.
27. 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 to enable the at least one processor to perform the method of any one of claims 1-13.
28. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-13.
29. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-13.
Citation Information
Patent Citations
Data migration method and device
CN108874828A
Capacity expansion method and device of storage system, equipment and storage medium
CN117544642A