Object distribution method, system and device, and storage medium

By obtaining and processing the request information of the target object, and using the system identification bit list library or hash function for diversion, the problem of waste and inflexible diversion in the off-site disaster recovery mode in the existing technology is solved, and efficient resource utilization and system dual-active architecture support is achieved.

WO2025077728A1PCT designated stage expired Publication Date: 2025-04-17E-SURFING DIGITAL LIFE TECH CO LTD

Patent Information

Application Number
PCT/CN2024/123627
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-10
Filing Date
2024-10-09
Publication Date
2025-04-17

AI Technical Summary

Technical Problem

In the prior art, off-site disaster recovery mode will cause resource waste when users access it without any access, and the shunt operation of the objects handled by the shunt rule cannot achieve flexible deployment, which will affect the server resource utilization rate.

Method used

By obtaining the request information of the target object, including address information, client information, object encoding information, mobile phone number information and member level information, if it matches the list in the system identification bit list library, the diversion process is performed according to the list; otherwise, the request information is processed through a hash function to diversion.

Benefits of technology

It realizes flexible deployment of object diversion, improves resource utilization, avoids resource waste, and supports the evolution of system dual-activity and unitary architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024123627_17042025_PF_FP_ABST
    Figure CN2024123627_17042025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are an object distribution method, system and device, and a storage medium. The method comprises: acquiring request information of a target object, wherein the request information comprises address information, client information, object coding information, mobile phone number information, and member level information; if at least one list has been matched from a system identification bit list library on the basis of the request information, performing distribution processing on the target object on the basis of the matched list, and determining a target environment, wherein the system identification bit list library comprises a plurality of lists related to each piece of information in the request information; or if the list fails to be matched from the system identification bit list library on the basis of the request information, processing the request information by means of a hash function, performing distribution processing on the target object on the basis of the hash function value after processing, and determining a target environment. According to the embodiments of the present application, flexible deployment can be realized, and the resource utilization rate can be improved. The method can be widely applied to the technical field of cloud disks.
Need to check novelty before this filing date? Find Prior Art

Description

Object diversion method, system, device and storage medium Technical Field

[0001] The present invention relates to the field of cloud disk technology, and in particular to an object diversion method, system, device and storage medium. Background Art

[0002] With the rapid development of the internet, the demand for storage has also grown. The number of consumers registering for cloud storage continues to increase year by year. As the number and activity of customers grows, the shortcomings of off-site disaster recovery are gradually becoming apparent. Databases, caches, servers, search engines, and other systems are backed up simultaneously without user access, resulting in a certain amount of wasted resources. Therefore, the evolution of systems to active-active and modular architectures is urgent, and user diversion plays a crucial role in this process. Related technologies use a single diversion rule to handle object diversion operations, which cannot be deployed flexibly and affects server resource utilization.

[0003] Summary of the Invention

[0004] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.

[0005] To this end, the object of the present invention is to provide an efficient object offloading method, system, device and storage medium.

[0006] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present invention include:

[0007] In one aspect, an embodiment of the present invention provides an object offloading method, comprising the following steps:

[0008] The object diversion method of an embodiment of the present invention includes: obtaining request information of a target object, wherein the request information includes address information, client information, object coding information, mobile phone number information and membership level information; if at least one list is matched from a system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information; or, if no list is matched from a system identification bit list library according to the request information, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can choose to divert objects through a matching list by performing a matching operation on the request information of the target object; or select a hash function for object diversion; the embodiment of the present application proposes to divert objects through different processing methods, which can achieve flexible deployment and is conducive to improving resource utilization.

[0009] In addition, the object offloading method according to the above embodiment of the present invention may also have the following additional technical features:

[0010] Furthermore, in the object diversion method of an embodiment of the present invention, the identification bit in each list in the system identification bit list library corresponds to a weight information; the target object is diverted according to the matched list to determine the target environment, including:

[0011] Sorting the list in descending order or in ascending order according to the weight information;

[0012] Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, the characteristic values ​​in the request information are matched in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matched list.

[0013] Furthermore, in one embodiment of the present invention, each identifier in the system identifier list library corresponds to a weight information, and the target object is diverted according to the matched list to determine the target environment, including:

[0014] According to the request information, matching a second list set from the system identification bit list library;

[0015] The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list at the first position is determined as the target environment.

[0016] Furthermore, in one embodiment of the present invention, the method further comprises the following steps:

[0017] Get the total number of environments accessible to the server deployment;

[0018] The environmental quantity of each target environment is determined according to the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.

[0019] Furthermore, in one embodiment of the present invention, processing the request information through a hash function, performing diversion processing on the target object according to the processed hash function value, and determining the target environment includes:

[0020] Get the current time and the characteristic identifier of each information in the request information;

[0021] Determine a first time, and obtain an adjustment parameter corresponding to the feature identifier; the first time is a time during which the object undergoes random diversion without change;

[0022] Hash processing is performed on the current time, the feature identifier, the first time, and the adjustment parameter to determine a target environment.

[0023] Furthermore, in one embodiment of the present invention, performing hash processing on the current time, the feature identifier, the first time, and the adjustment parameter to determine the target environment includes:

[0024] determining a first quotient of the feature identifier and an adjustment parameter corresponding to the feature identifier;

[0025] Determining a second quotient of a first product and the first time, wherein the first product is a product of the current time and an adjustment parameter corresponding to the first time;

[0026] Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value;

[0027] The first value is modulo the diversion ratio to determine the target environment.

[0028] Furthermore, in one embodiment of the present invention, the method further includes:

[0029] Determine a diversion strategy based on the newly added attribute information of the target object;

[0030] According to the diversion strategy, a third list is established, and the third list is put into the system identification bit list library.

[0031] On the other hand, an embodiment of the present invention provides an object diversion system, including:

[0032] The first module is used to obtain the request information of the target object, which includes address information, client information, object code information, mobile phone number information and membership level information;

[0033] The second module is configured to, if at least one list is matched from a system identifier list library according to the request information, perform diversion processing on the target object according to the matched list to determine the target environment; the system identifier list library includes a plurality of lists related to each information in the request information;

[0034] The third module is used to process the request information through a hash function if no list is matched from the system identification bit list library according to the request information, and to divert the target object according to the processed hash function value to determine the target environment.

[0035] In another aspect, an embodiment of the present invention provides an object diversion device, comprising:

[0036] at least one processor;

[0037] at least one memory for storing at least one program;

[0038] When the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the above-mentioned object offloading method.

[0039] On the other hand, an embodiment of the present invention provides a storage medium storing a program executable by a processor. When the program is executed by the processor, it is used to implement the above-mentioned object offloading method.

[0040] The object diversion method provided by the embodiment of the present invention includes the steps of: obtaining request information of the target object, the request information including address information, client information, object coding information, mobile phone number information and membership level information; if at least one list is matched from the system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information; or, if no list is matched from the system identification bit list library according to the request information, the request information is processed by a hash function, the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can choose to divert the object through the matching list by performing a matching operation on the request information of the target object; or select the hash function for object diversion; the embodiment of the present application proposes to divert the object through different processing methods, which can achieve flexible deployment and is conducive to improving resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following introduction is made to the drawings of the embodiments of the present invention or the related technical solutions in the prior art. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0042] FIG1 is a flow chart of an embodiment of an object diversion method provided by the present invention;

[0043] FIG2 is a flow chart of another embodiment of the object diversion method provided by the present invention;

[0044] FIG3 is a schematic diagram of a flow chart of an embodiment of a list matching process provided by the present invention;

[0045] FIG4 is a flow chart of an embodiment of a hash function-based traffic diversion process provided by the present invention;

[0046] FIG5 is a schematic diagram of an interface effect of an embodiment of a user logging into a cloud disk provided by the present invention;

[0047] FIG6 is a schematic diagram of an interface effect of another embodiment of the user login process of the cloud disk provided by the present invention;

[0048] FIG7 is a flow chart of an embodiment of a process of a user logging into a cloud disk provided by the present invention;

[0049] FIG8 is a schematic structural diagram of an embodiment of an object diversion system provided by the present invention;

[0050] FIG9 is a schematic structural diagram of an embodiment of an object diversion device provided by the present invention;

[0051] FIG10 is a schematic structural diagram of another embodiment of the object diversion device provided by the present invention. DETAILED DESCRIPTION

[0052] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and are not to be construed as limiting the present invention. The step numbers in the following embodiments are provided for ease of explanation only and do not limit the order of the steps. The order of execution of the steps in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0053] With the rapid development of the internet, people are becoming increasingly dependent on electronic devices. Simultaneously, the space occupied by various files used for entertainment and office work is also increasing. This can put immense pressure on mobile phone storage, and the need for multi-device synchronization and backup of computer files is also growing. Cloud storage services have emerged as a key solution. People can manually upload photos and files to cloud storage, or choose to automatically back up their phone albums or computer folders.

[0054] According to data analysis, the number of users registered to use cloud disks has increased year by year. With the increase in the number of users and user activity, the off-site disaster recovery model has gradually revealed its shortcomings. The synchronous backup of databases, caches, servers, search engines, etc. and the lack of user access will cause a certain proportion of resource waste. Therefore, the evolution of the system's active-active and unitized architecture is imminent. The user diversion method and system are particularly important in this link. User diversion can effectively solve the problem of user access requests going to the designated system environment according to the system's preset direction, and when the environment fails, the user access request can be cut to other normal system environments in time to ensure that users can use the cloud disk business functions normally. The system deployment is flexible and the server resource utilization is improved.

[0055] The embodiment of the present invention intelligently diverts users without changing user usage behavior and only optimizes user access requests on the server side, achieving an important step in the evolution of system grayscale release, dual active, and unitized architecture. At the same time, at the business layer, it can meet the gradual increase in volume of new businesses online, or random diversion of users within a certain period of time without changing the target diversion system. It can also meet the instant switching between systems. If the new environment cannot carry the request volume of all users, the requests of specific users / objects (such as member users, certain specific IP users, etc.) can be switched to the new environment to ensure the normal operation of the system and meet the normal use of users.

[0056] The object offloading method and system proposed in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. First, the object offloading method proposed in the embodiments of the present invention will be described with reference to the accompanying drawings.

[0057] 1 , an object diversion method is provided in an embodiment of the present invention. The object diversion method in the embodiment of the present invention can be applied to a terminal, a server, or software running in a terminal or a server. The terminal can be a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The object diversion method in the embodiment of the present invention mainly includes the following steps:

[0058] S100: Obtaining request information of the target object, including address information, client information, object code information, mobile phone number information and membership level information;

[0059] S200: If at least one list is matched from the system identifier list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identifier list library includes a plurality of lists related to each information in the request information;

[0060] S300: Alternatively, if no matching list is found in the system identification bit list library according to the request information, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment.

[0061] In some possible implementations, referring to FIG2 , the embodiment of the present application can realize functions such as random diversion of users for a certain period of time, random diversion of specific users for a certain period of time, or directional diversion according to system preset identification bits. The system is preset with a system identification bit list library, including several lists, each list is used to represent a diversion rule. For example, the rules that can be included in the list may involve single or combined rules such as whitelist (R1), membership level (R2), client diversion identification (R3), request IP (R4), and user percentage random (R5), and can also be expanded to more diversion rules (R m ). At the same time, the embodiment of the present application sets corresponding weights for each rule, which are w1, w2, w3, ..., w m According to the weight, the priority of the matching process can be set. The whitelist (R1) refers to the direct configuration of a specific user to be diverted to a specified environment, the membership level (R2) refers to the level of the user's membership in the system, the client diversion identifier (R3) refers to the client's request header with a specific user diversion identifier field, the request IP (R4) refers to the access IP when the user requests, this rule can be used to perform centralized diversion for users of the configured local area network or office network, the user percentage random (R5) refers to the calculation of the user ID and other identification fields through the diversion algorithm of this patented system, and the random diversion of users to various system environments in proportion, the weight (w m ) refers to whether each diversion rule is enabled (not enabled if equal to 0) and the priority used when enabled. The embodiment of the present application sets up a system identification list library to store the diversion rules in a list by means of system identification, which facilitates the subsequent diversion matching of target objects / users by list matching, thereby improving the efficiency of diversion.

[0062] The user diversion process proposed in the embodiment of the present application can be divided into two parts: one is to perform system diversion calculation based on the system identification bit, and the other is to perform diversion calculation based on the system identification bit and the hash function for each diversion rule. The preferred method is to perform diversion by list matching based on the system identification bit.

[0063] The object diversion method of an embodiment of the present invention includes: obtaining request information of a target object, the request information including address information, client information, object coding information, mobile phone number information and membership level information; if at least one list is matched from the system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information; or, if no list is matched from the system identification bit list library according to the request information, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can choose to divert objects through a matching list by performing a matching operation on the request information of the target object; or select a hash function for object diversion; the embodiment of the present application proposes to divert objects through different processing methods, which can achieve flexible deployment and is conducive to improving resource utilization.

[0064] Optionally, as shown in FIG3 , in one embodiment of the present invention, an identifier in each list in the system identifier list library corresponds to a weight information; performing diversion processing on the target object according to the matched list to determine the target environment includes:

[0065] S210: sorting the list in descending order or in ascending order according to the weight information;

[0066] S220: Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, list matching is performed on the characteristic values ​​in the request information in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matched list.

[0067] The embodiment of the present application sets the matching priority by the weight information of the list, and then performs object diversion. Specifically, in some possible implementations, the system presets a whitelist (R1), a client diversion identifier (R3), a request IP (R4), an extension identifier (R5), and a corresponding object diversion identifier (R6). x ) is the system user diversion identification bit, and the corresponding weights are w i ,w3,w4,…,w x , the target group list corresponding to R1 configuration is T1, the client diversion identifier list corresponding to R3 configuration is T3, the request IP list corresponding to R4 configuration is T4, R x The corresponding list of configuration is T xThe preset whitelist (R1) is pre-entered into the system with the user's unique identification code (which can be a user code, mobile phone number, etc.), that is, T1 is the user's unique identification code list, and this identification code can be obtained from the request when the request passes through the system; the client diversion identifier (R3) is a specific request header in the request header, and T3 is a list of specific request headers, T3 = {h1, h2, h3, ..., h n}, such as header = h, h = h1, h2, h3, ..., h n , n target environments, when h=h1, it is diverted to environment 1, when h=h n , it is diverted to environment n; the request IP (R4) is the IP address analyzed through the user's request, and T4 is a series of IP addresses entered by the system and the corresponding values ​​of the target environment.

[0068] For the system identification bit list library in the above embodiment, the identification bits are sorted by weight (w i ,w3,w4,…,w x ), get the sorted identity combination R new [], the corresponding target value is T new [], when the user's access request passes through this diversion system, the feature values ​​of the request will be matched in sequence, and the target value (T x ) first divert and find the corresponding target environment (S x ) is forwarded, when P x =0, the target value matching continues until the user request is diverted to the available environment.

[0069] Optionally, in one embodiment of the present invention, each identifier in a list in a system identifier list library corresponds to a weight information, and the target object is diverted according to the matched list to determine the target environment, including:

[0070] According to the request information, a second list set is matched from the system identification bit list library;

[0071] The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list in the first position is determined as the target environment.

[0072] In some possible implementations, the embodiments of the present application may also perform list matching on each information in the request information, determine a matched second list set, and determine the environment corresponding to the target list as the target environment based on the weight information of each list in the second list set.

[0073] Optionally, in one embodiment of the present invention, the object diversion method further includes:

[0074] Get the total number of environments accessible to the server deployment;

[0075] The environmental quantity of each target environment is determined based on the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.

[0076] In some possible implementations, the service deploys a total of n target environments for access, namely S1, S2, S3, ..., S n , the diversion ratio of each environment is P1, P2, P3, ..., P n , the total value S of the service that wants to divert sum ,in And S sum =100, and P n ≥0, the interval is divided according to the proportion range. For example, if it is divided into 3 environments, and the proportion of each diversion is 10, 40, and 50, it can be divided into [0, 10), [10, 50), and [50, 99). At the same time, S sum Can be expanded to S sum Less than 1000, 10000, etc., that is, if the system needs to divert one ten-thousandth, then set S sum = 10000. It is understood that the above setting is an illustrative example, and those skilled in the art can set an appropriate total value of the proportion according to their needs.

[0077] Optionally, referring to FIG. 4 , in one embodiment of the present invention, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment, including:

[0078] S310: Obtain the current time and the characteristic identifier of each information in the request information;

[0079] S320: Determine the first time and obtain the adjustment parameter corresponding to the feature identifier; the first time is the time when the object is randomly divided and unchanged:

[0080] S330: Perform hash processing on the current time, feature identifier, first time, and adjustment parameters to determine the target environment.

[0081] Optionally, in one embodiment of the present invention, performing hash processing on the current time, the feature identifier, the first time, and the adjustment parameter to determine the target environment includes:

[0082] determining a first quotient value of a characteristic identifier and an adjustment parameter corresponding to the characteristic identifier;

[0083] Determine a second quotient of the first product and the first time; the first product is the product of the current time and the adjustment parameter corresponding to the first time:

[0084] Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value;

[0085] The target environment is determined by taking the remainder of the first value and the diversion ratio.

[0086] In the embodiment of the present application, the flow calculation of each flow rule is performed based on the hash function based on the system identification bit. For example, the unique code of the user in the system is userID, the current time is now, the user's membership level is vipLevel, and the id of the user's other yth feature is U y _ID, the time for random user diversion within a period of time is fixedTime, and the system adjustment parameters corresponding to each diversion rule are userID_salt, vipLevel_salt, ..., U y _ID_salt, fixedTime_salt, the hash function value of user diversion Then the function value y is divided into the remainder, that is, the diversion target value z= At this time, z belongs to S n If the proportion of the environment is within the range of Sn, the user should be diverted to the Sn environment. At this time, the algorithm output is completed, that is, the calculation of the user diversion target value is completed. It should be noted that the adjustment parameters in the embodiments of the present application are used to adjust the values ​​of various features. They are system preset values ​​and can be adjusted according to the actual situation of the user data. For example, if the system userID is too large, userID_sal can be set to be larger and the overall value can be adjusted accordingly.

[0087] It can be understood that the final diversion target environment value is obtained and the request is forwarded. Through the above diversion process, the target environment value to which the user should be diverted has been calculated, and then through the gateway forwarding, the user request can be diverted to the designated system environment to ensure that the user can use the business functions normally.

[0088] Optionally, in one embodiment of the present invention, the object diversion method further includes:

[0089] Determine the diversion strategy based on the newly added attribute information of the target object;

[0090] According to the diversion strategy, a third list is established and placed in the system identification list library.

[0091] In some possible implementations, the present application embodiment can add diversion strategies according to actual needs, generate a list of the newly added diversion strategies, and add it to the system identifier list library. The present application embodiment improves the selectivity of rules and improves the efficiency of diversion by adding diversion strategies.

[0092] In some possible embodiments, referring to FIG5 , in actual application scenarios, when a user who logs in to a relevant cloud disk uses various functional modules of the cloud disk, the relevant cloud disk application calculates and forwards the diversion for the user through a user diversion method based on a hash function and a system identifier. When a user is not logged in, the diversion may be randomly diverted, and it cannot be calculated and forwarded through certain diversion indicators, such as user ID and membership level. After the user logs in, the calculation will be updated for the user. Specifically, this system can be divided into a cloud disk module and a user diversion function module. Cloud disk module: This module is the application carrier of this application, and users use various terminals of the cloud disk; this system implements the user diversion function based on a hash function and a system identifier on this basis. User diversion function: The cloud disk business system triggers calculations when users use various terminals of the cloud disk, calculates the target environment for diversion for users, and forwards requests to ensure normal use by users; this user diversion method and system can also be applied to third-party systems and products in the future.

[0093] As shown in Figure 6, users can log in to the cloud disk system through a mobile phone terminal; as shown in Figure 7, users can log in to the cloud disk system through a computer terminal. It is understandable that users can log in to the cloud disk system through any terminal and divert users / objects through the object diversion method provided in the embodiment of the present application. Specifically, user 1 uses the cloud disk application, logs in and enters the cloud disk homepage. At this time, the system has calculated and diverted the user to the specified system environment and provides the user with smooth and stable services. When this system environment is abnormal, the system will automatically switch the user to the new environment to ensure user use.

[0094] The embodiment of the present application uses x preset system identification bits as the basic module, and can directly perform user diversion based on the system identification bits and preset values. At the same time, it can also calculate the user's diversion value based on n divertible system target environments through an intelligent diversion algorithm, and then determine which environment range it falls into, and perform system diversion in n target environments. The embodiment of the present application does not need to obtain private information such as user browsing history and preferences. It only uses an intelligent user diversion algorithm to analyze and calculate various preset and configuration information for business requests without the user's perception, helping the system to quickly divert users and intelligently divert and forward traffic. It can enable specific users to access specific system environments, ensure that the user diversion target value does not change within a certain period of time, and achieve flexible and rapid switching of the target environment accessed by users through multiple dimensions. The technical side provides support for grayscale release, system dual active, unitized architecture evolution, etc., and the business side provides support for comparative analysis of access benefits before and after the launch of various new functions. The embodiment of the present application can flexibly adapt to multiple diversion rules, which can greatly improve user diversion efficiency. At the same time, the system can meet business and architecture requirements without the user having to understand the specific details of the algorithm, which can greatly improve R&D efficiency and advance project progress. The embodiments of this application can be extended to other third-party scenarios where user diversion, phased release, AB testing, and gradual business expansion are required. The embodiments of this application can be applied to related cloud disks and used in the construction of active-active cloud disk systems. They will be subsequently applied to the evolution of the unitized architecture of related cloud disks.

[0095] The object diversion method of an embodiment of the present invention includes: obtaining request information of a target object, wherein the request information includes address information, client information, object coding information, mobile phone number information and membership level information; if at least one list is matched from a system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information; or, if no list is matched from a system identification bit list library according to the request information, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can choose to divert objects through a matching list by performing a matching operation on the request information of the target object; or select a hash function for object diversion; the embodiment of the present application proposes to divert objects through different processing methods, which can achieve flexible deployment and is conducive to improving resource utilization.

[0096] Next, an object diversion system according to an embodiment of the present invention will be described with reference to FIG8 .

[0097] FIG8 is a schematic diagram of the structure of an object distribution system according to an embodiment of the present invention. The system specifically includes:

[0098] The first module 810 is used to obtain the request information of the target object, which includes address information, client information, object code information, mobile phone number information and membership level information;

[0099] The second module 820 is configured to, if at least one list is matched from a system identifier list library according to the request information, perform diversion processing on the target object according to the matched list to determine the target environment; the system identifier list library includes a plurality of lists related to each piece of information in the request information;

[0100] The third module 830 is used to process the request information through a hash function if no list is matched from the system identification bit list library according to the request information, and to divert the target object according to the processed hash function value to determine the target environment.

[0101] Optionally, in one embodiment of the present invention, each identification bit in the list in the system identification bit list library corresponds to a piece of weight information; and the second module is further configured to:

[0102] Sorting the list in descending order or in ascending order according to the weight information;

[0103] Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, the characteristic values ​​in the request information are matched in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matched list.

[0104] Optionally, in one embodiment of the present invention, an identification bit in each list in the system identification bit list library corresponds to a piece of weight information, and the second module is further configured to:

[0105] According to the request information, matching a second list set from the system identification bit list library;

[0106] The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list at the first position is determined as the target environment.

[0107] Optionally, in one embodiment of the present invention, the second module is further configured to:

[0108] Get the total number of environments accessible to the server deployment;

[0109] The environmental quantity of each target environment is determined according to the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.

[0110] Optionally, in one embodiment of the present invention, the request information is processed through a hash function, and the third module is further configured to:

[0111] Get the current time and the characteristic identifier of each information in the request information;

[0112] Determine a first time, and obtain an adjustment parameter corresponding to the feature identifier; the first time is a time during which the object undergoes random diversion without change;

[0113] Hash processing is performed on the current time, the feature identifier, the first time, and the adjustment parameter to determine a target environment.

[0114] Optionally, in one embodiment of the present invention, the third module is further configured to:

[0115] determining a first quotient of the feature identifier and an adjustment parameter corresponding to the feature identifier;

[0116] Determining a second quotient of a first product and the first time, wherein the first product is a product of the current time and an adjustment parameter corresponding to the first time;

[0117] Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value;

[0118] The first value is modulo the diversion ratio to determine the target environment.

[0119] Optionally, in one embodiment of the present invention, the system further includes a fourth module, configured to determine a diversion strategy according to the newly added attribute information of the target object;

[0120] According to the diversion strategy, a third list is established, and the third list is put into the system identification bit list library.

[0121] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0122] An embodiment of the present invention provides an object diversion device, comprising:

[0123] at least one processor;

[0124] at least one memory for storing at least one program;

[0125] When the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the object offloading method.

[0126] Similarly, the contents of the above method embodiments are applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0127] The object diversion device for performing the above-mentioned object diversion method provided in the embodiment of the present application can be a terminal. Referring to FIG9 , FIG9 is a partial structural block diagram of the terminal provided in the embodiment of the present application, and the terminal includes components such as a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art will understand that the terminal structure shown in FIG9 does not constitute a limitation on mobile phones, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0128] The RF circuit can be used to receive and send signals during information transmission or calls. In particular, it receives downlink information from the base station and sends it to the processor for processing; in addition, it sends the designed uplink data to the base station.

[0129] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory.

[0130] The input unit can be used to receive input digital or character information and generate key signal input related to the settings and function control of the mobile phone. Specifically, the input unit can include a touch panel 1031 and other input devices 1032.

[0131] The display unit 1040 may include a display panel 1041 .

[0132] The audio circuit 1060 , the speaker 1061 , and the microphone 1062 may provide an audio interface.

[0133] In this embodiment, the processor included in the terminal can execute the object offloading method of the previous embodiment.

[0134] The object diversion device for performing the above-mentioned object diversion method provided in the embodiment of the present application can also be a server. Referring to Figure 10, Figure 10 is a partial structural block diagram of the server provided in the embodiment of the present application. The server 1100 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs for short), 1122 (for example, one or more processors) and memory 1132, one or more storage media 1130 (for example, one or more mass storage devices) storing application programs 1142 or data 1144. Among them, the memory 1132 and the storage medium 1130 can be temporary storage or permanent storage. The program stored in the storage medium 1130 may include one or more modules (not shown in the figure), each module may include a series of instruction operations on the server 1100. Furthermore, the central processing unit 1122 can be configured to communicate with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.

[0135] The server may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1158, and / or one or more operating systems 1141, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0136] The processor in the server can be used to execute the above object offloading method.

[0137] Similarly, the contents of the above method embodiments are applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0138] An embodiment of the present invention further provides a computer-readable storage medium storing a program executable by a processor. The program executable by the processor is used to execute the above-mentioned object offloading method when executed by the processor.

[0139] Similarly, the contents of the above method embodiments are applicable to the present storage medium embodiment. The functions specifically implemented by the present storage medium embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0140] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided in an exemplary manner for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are contemplated in which the order of the various operations is changed and the sub-operations described as a part of a larger operation are performed independently.

[0141] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present invention. More specifically, given the properties, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the ordinary skill of an engineer. Therefore, a person skilled in the art will be able to implement the present invention set forth in the claims using ordinary skill without undue experimentation. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0142] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several programs for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0143] The logic and / or steps represented in a flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by, or in conjunction with, a program execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can retrieve and execute a program from a program execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, a program execution system, apparatus, or device.

[0144] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0145] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0146] In the above description of this specification, reference to the terms "one embodiment / example," "another embodiment / example," or "certain embodiments / examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0147] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.

[0148] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. An object diversion method, characterized in that: The following steps are involved: Obtaining request information of the target object, the request information including address information, client information, object code information, mobile phone number information and membership level information; If at least one list is matched from the system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes a number of lists related to each information in the request information; Alternatively, if no list is matched in the system identification bit list library according to the request information, the request information is processed by a hash function, and the target object is shunted according to the processed hash function value to determine the target environment.

2. The object diversion method according to claim 1, characterized in that: Each identification bit in the list in the system identification bit list library corresponds to a weight information; the target object is diverted according to the matched list to determine the target environment, including: Sorting the list in descending order or in ascending order according to the weight information; Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, the characteristic values ​​in the request information are matched in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matched list.

3. The object diversion method according to claim 1, characterized in that: The identification bit in each list in the system identification bit list library corresponds to a weight information, and the target object is diverted according to the matched list to determine the target environment, including: According to the request information, matching a second list set from the system identification bit list library; The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list at the first position is determined as the target environment.

4. The object diversion method according to claim 1, characterized in that: The method further comprises the following steps: Get the total number of environments accessible by the server deployment; The environmental quantity of each target environment is determined according to the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.

5. The object diversion method according to claim 1, characterized in that: The step of processing the request information through a hash function, performing a flow control process on the target object according to the processed hash function value, and determining the target environment includes: Get the current time and the characteristic identifier of each information in the request information; Determine a first time, obtain the adjustment parameter corresponding to the feature identifier; the first time is to perform random diversion on the object time that has not changed; The current time, the feature identifier, the first time, and the adjustment parameter are hashed to determine a target environment.

6. The object diversion method according to claim 5, characterized in that: The performing hash processing on the current time, the feature identifier, the first time, and the adjustment parameter to determine the target environment includes: Determining a first quotient value of the feature identifier and an adjustment parameter corresponding to the feature identifier; Determine a second quotient of a first product and the first time; the first product is a product of the current time and an adjustment parameter corresponding to the first time; Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value; The first value is modulo the diversion ratio to determine the target environment.

7. The object diversion method according to claim 1, characterized in that: The method further comprises: Determine a diversion strategy according to the newly added attribute information of the target object; According to the diversion strategy, a third list is established, and the third list is put into the system identification bit list library.

8. An object diversion system, characterized in that: include: The first module is used to obtain the request information of the target object, the request information includes address information, client information, object code information, mobile phone number information and membership level information; The second module is used for, if at least one list is matched from the system identification bit list library according to the request information, performing diversion processing on the target object according to the matched list to determine the target environment; the system identification bit list library includes a plurality of lists related to each information in the request information; The third module is used to process the request information through a hash function if no list is matched in the system identification bit list library according to the request information, and to divert the target object according to the processed hash function value to determine the target environment.

9. An object diversion device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the object diversion method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the object diversion method according to any one of claims 1 to 7 when executed by the processor.

Citation Information

Patent Citations

  • Data processing method, device and equipment and storage medium

    CN112486988A

  • Distribution method and device based on configuration request, equipment and storage medium

    CN115309732A

  • Data processing method and device and storage medium

    CN116028196A

  • Data processing method and device, medium and electronic equipment

    CN116069837A

  • Object shunting method, system and device and storage medium

    CN117390673A

Cited By

  • Task execution method of humanoid robot and related equipment

    CN121515160A