User data management method and device, computer device, readable storage medium and program product
By obtaining performance metrics from the resource pool for scoring and ranking, and combining this with business models and tag binding, data writing is dynamically adjusted, solving the problem of uneven resource pool utilization in traditional methods and achieving efficient data storage and access.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CLOUD TECH CO LTD
- Filing Date
- 2024-11-20
- Publication Date
- 2026-06-16
AI Technical Summary
Traditional user-permission-based data storage management methods are difficult to adjust flexibly according to actual needs or the load of the resource pool, resulting in uneven resource pool utilization and wasted resources.
The system retrieves performance metrics of the resource pool through a query interface, performs performance scoring and sorting, dynamically adjusts data write operations, and rationally allocates write tasks based on the user's business model and resource pool tag binding relationship.
It enables dynamic load adjustment of the resource pool, improves resource utilization, ensures efficient data storage and access, and adapts to different business needs.
Smart Images

Figure CN119576233B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud data management technology, and in particular to a user data management method, apparatus, computer equipment, readable storage medium, and program product. Background Technology
[0002] With the rapid advancement of cloud computing technology, storing data in the cloud has become the mainstream choice for businesses and individuals. Cloud computing not only provides flexible and scalable storage solutions but also reduces the hardware and management costs of local storage. Therefore, how to efficiently manage and control the data storage locations of different users to ensure data balance, high availability, and service isolation has become a pressing technical challenge.
[0003] Traditional data storage management methods mainly rely on user permission-based control mechanisms. By setting specific permissions for each user, the visibility and availability of the resource pool can be controlled, thereby controlling the persistence of user data to disk.
[0004] However, this user-permission-based management method typically does not support dynamic adjustment of user data storage locations. Once a user's storage permissions are set, their data write location becomes relatively fixed, making it difficult to flexibly adjust according to actual needs or the load of the resource pool. This results in uneven resource pool utilization and wasted resources. Summary of the Invention
[0005] Therefore, it is necessary to provide a user data management method, apparatus, computer equipment, readable storage medium, and program product that can dynamically adjust the load of the resource pool to address the above-mentioned technical problems.
[0006] Firstly, this application provides a user data management method, including:
[0007] The performance metrics of each resource pool are obtained from the database through the query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks.
[0008] The resource pools are scored based on performance metrics, and all resource pools are sorted in descending order of scores.
[0009] Upon receiving a write request from a user, the system executes data write operations for the corresponding resource pools sequentially according to the current resource pool sorting, until the data is successfully written or all data write operations for all resource pools fail.
[0010] In one embodiment, the step of scoring the resource pool based on performance metrics includes:
[0011] The response time, available capacity, and backlog of tasks are normalized, and different weights are assigned to the response time, available capacity, and backlog of tasks based on the results of the normalization.
[0012] The response time, available capacity, and backlog of tasks are weighted and summed according to all weights.
[0013] The assigned values for read and write settings are determined, and the product of the weighted sum and the assigned values is used as the score for the resource pool.
[0014] In one embodiment, the step of determining the assignment of the read / write settings includes:
[0015] When read / write is set to disabled or read-only, ensure that the read / write setting is set to 0;
[0016] When read / write is set to read / write, the value of the read / write setting is determined to be 1.
[0017] In one embodiment, the method further includes:
[0018] Obtain the user's business model; the business model is determined based on the user's historical business needs.
[0019] Based on the business model and the resource pool tags corresponding to each resource pool, establish a binding relationship between users and resource pool tags.
[0020] In one embodiment, the method further includes:
[0021] Based on the binding relationship, assign writable candidate resource pools to users, and sort the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting.
[0022] Sort by target resource pool and execute data write operations for the corresponding sorted candidate resource pools in sequence.
[0023] In one embodiment, the method further includes:
[0024] Assign a new resource pool label to the user and update the binding relationship between the user and the resource pool label so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0025] Secondly, this application also provides a user data management device, comprising:
[0026] The metrics acquisition module is used to obtain performance metrics for each resource pool from the database through a query interface; performance metrics include read / write settings, response time, available capacity, and backlog of tasks;
[0027] The performance scoring module is used to score the resource pools based on performance metrics and sort all resource pools in descending order of scores.
[0028] The data writing module is used to execute data writing operations for the corresponding resource pools in sequence according to the current resource pool sorting when a write request is received from a user, until the data writing is successful or the data writing operations for all resource pools fail.
[0029] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method steps of any one of the first aspects.
[0030] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method steps of any one of the first aspects.
[0031] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the method steps of any one of the first aspects.
[0032] The aforementioned user data management methods, devices, computer equipment, readable storage media, and program products, by scoring and sorting resource pools based on performance indicators, can more rationally allocate write tasks to each resource pool, ensuring that the resources of each resource pool are properly utilized according to their actual performance status. Furthermore, by monitoring changes in various performance indicators and fluctuations in resource pool ranking, potential problems with resource pools can be detected in a timely manner, enabling dynamic adjustment of resource pool load. This ensures that data is preferentially stored in resource pools with good performance and sufficient available capacity, thereby improving resource pool utilization and guaranteeing efficient data storage and access. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is an application environment diagram of a user data management method in one embodiment;
[0035] Figure 2 This is a flowchart illustrating a user data management method in one embodiment;
[0036] Figure 3 This is a diagram illustrating the binding relationship between users and resource pool tags in one embodiment;
[0037] Figure 4 This is a flowchart illustrating a user data management method in another embodiment;
[0038] Figure 5 This is a structural block diagram of a user data management device in one embodiment;
[0039] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0041] The user data management method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Server 104 is used to cache the resource pool cluster. Terminal 102 retrieves performance metrics for each resource pool from the database through a query interface, scores the resource pools based on these metrics, and sorts all resource pools in descending order of scores. Upon receiving a write request from a user, it executes data write operations for the corresponding sorted resource pools sequentially, until the data write is successful or all resource pool write operations fail. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, and projection devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. Headset devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0042] In one exemplary embodiment, such as Figure 2 As shown, a user data management method is provided, which is applied to... Figure 1Taking terminal 102 as an example, the explanation includes the following steps 202 to 206. Wherein:
[0043] S202: Obtain performance metrics for each resource pool from the database through the query interface; performance metrics include read / write settings, response time, available capacity, and backlog of tasks.
[0044] Optionally, a resource pool is a collection of resources of the same type (such as computing resources, storage resources, network resources, etc.). These resources are logically treated as a whole and are uniformly allocated, scheduled, and monitored through specific management mechanisms and technologies. The performance metrics of the resource pool reflect its actual performance status. Read / write settings characterize the read / write status of the resource pool, including read-only, read-write, and disabled. Response time refers to the time elapsed from issuing a request (such as a read or write request) to receiving a response from the resource pool. A shorter response time usually means that the resource pool can process requests quickly and provide efficient service. Available capacity indicates how much space the resource pool currently has left to store new data. Backlog of tasks is the number of tasks that the resource pool has not yet completed. A large backlog of tasks indicates that the resource pool is in a busy state, and the speed of processing new tasks may be affected.
[0045] S204: Analyze the performance of resource pools based on performance metrics and sort all resource pools in descending order of their scores.
[0046] Optionally, each resource pool is evaluated for performance and assigned a score, taking into account the impact of factors such as read / write settings, response time, available capacity, and backlog of tasks on the overall performance of the resource pool. For example, a resource pool with shorter response time, sufficient available capacity, and fewer backlog tasks may receive a higher score. Then, based on the obtained scores, all resource pools are ranked in descending order of their scores, thus forming a priority list of resource pools based on their current performance.
[0047] S206: Upon receiving a write request initiated by a user, execute the data write operation for the corresponding resource pool in sequence according to the current resource pool sorting, until the data write is successful or the data write operation for all resource pools fails.
[0048] Optionally, when a write request is received from a user, the request is processed according to the generated resource pool sorting results. First, the data is attempted to be written to the resource pool ranked first (i.e., the one with the highest performance score). If the write operation is successful, the entire write request process is complete. However, if the write operation fails in that resource pool, the data write operation will be attempted in the next resource pool in order of sorting. This process is repeated until the data is successfully written to a resource pool or the data write operation in all resource pools fails.
[0049] In the aforementioned user data management method, by scoring and sorting resource pools based on performance indicators, write tasks can be allocated to each resource pool more rationally. This ensures that the resources of each resource pool are properly utilized according to their actual performance. Furthermore, by monitoring changes in various performance indicators and fluctuations in resource pool ranking, potential problems with the resource pools can be identified in a timely manner, enabling dynamic adjustment of the resource pool load. This ensures that data is preferentially stored in resource pools with good performance and sufficient available capacity, thereby improving the utilization rate of the resource pools and guaranteeing efficient data storage and access.
[0050] In an exemplary embodiment, the step of scoring the resource pool based on performance metrics includes: normalizing response time, available capacity, and backlog of tasks, and assigning different weights to response time, available capacity, and backlog of tasks based on the normalization results; performing a weighted summation of response time, available capacity, and backlog of tasks based on all weights; determining the values assigned to read / write settings, and using the product of the weighted summation and the assigned values as the score for the resource pool.
[0051] Optionally, normalization can transform data of different ranges and dimensions into a unified standard range, facilitating subsequent comprehensive comparison and calculation. Based on normalization, different weights are assigned to each performance indicator. For example, for some application scenarios with extremely high real-time requirements, response time may be the most important indicator, while for storage-intensive applications, available capacity may have a higher weight. Different weights are assigned to each normalized indicator according to business needs and actual conditions to reflect their relative importance in evaluating resource pool performance, thus obtaining an intermediate result that comprehensively reflects resource pool performance. Then, combined with the assigned values for read / write settings, the final score for each resource pool is obtained. It should be noted that when calculating resource pool scores, read / write settings have higher priority than other performance indicators. Since read / write settings determine the read / write status of the resource pool, if the read / write status is disabled, even if other performance indicators determine that the resource pool's performance is better, the final score will be lower because the resource pool cannot write data at this time.
[0052] In this embodiment, by normalizing, weighting, and summing multiple performance indicators, the performance of the resource pool can be comprehensively and holistically evaluated, thereby more accurately reflecting the actual performance of the resource pool under different business scenarios.
[0053] In an exemplary embodiment, the step of determining the value of the read / write setting includes: determining the value of the read / write setting to 0 when read / write is set to disabled or read-only; and determining the value of the read / write setting to 1 when read / write is set to read / write.
[0054] Optionally, read / write settings include disabled, read-only, and read / write. These three states represent different functional limitations of the resource pool in terms of data read and write operations. When read / write is set to disabled, it means that the resource pool cannot perform any read or write operations at all; both reading and writing data are prohibited. In this case, a value of 0 is assigned, indicating that the resource pool has no availability in the data read / write functional dimension. When read / write is set to read-only, the resource pool can only perform data read operations and cannot write new data. In this case, from the perspective of data writing, it is similar to the disabled state because the write task cannot be completed, so a value of 0 is also assigned. When read / write is set to read / write, the resource pool can both read and write data, which is a completely normal working state. In this case, a value of 1 is assigned, indicating that the resource pool has full availability in the read / write functional dimension.
[0055] For example, the scoring of a resource pool The calculation formula is:
[0056]
[0057] in, This indicates the read / write setting. When read / write is set to disabled or read-only, it is assigned a value of 0; when read / write is set to read / write, it is assigned a value of 1. Indicates response time; Indicates the backlog of tasks; This indicates the available capacity of the resource pool that allows data to be written to; This represents the weight values for different performance indicators, with the sum of all weights being 1; , These represent the minimum and maximum response times, respectively. , These represent the minimum and maximum values of the backlog of tasks, respectively. , These represent the minimum and maximum available capacity, respectively.
[0058] In this embodiment, by normalizing, weighting, and summing multiple performance indicators, the performance of the resource pool can be comprehensively and holistically evaluated, thereby more accurately reflecting the actual performance of the resource pool under different business scenarios.
[0059] In an exemplary embodiment, the method further includes: obtaining the user's business model; determining the business model based on the user's historical business needs; and establishing a binding relationship between the user and the resource pool tags based on the business model and the resource pool tags corresponding to each resource pool.
[0060] Optionally, each resource pool is assigned a specific tag. These tags are typically used to identify and classify certain characteristics of the resource pool. There is a many-to-many correspondence between resource pools and their tags; a resource pool may belong to multiple different resource pool tags simultaneously. A business model is an abstract description of a user's business, reflecting key elements such as the user's behavioral patterns, business processes, and data flow during business activities. Once the user's business model is obtained, the user can be bound to appropriate resource pool tags based on the characteristics and requirements of the business model. For example, if a user has high real-time requirements, a resource pool tag with better network quality can be assigned based on the user's request.
[0061] For example, such as Figure 3 As shown, Figure 3 This is a many-to-many relationship graph between resource pools, resource pool tags, and users. Users and resource pool tags have a many-to-many relationship. Through this binding relationship, users can quickly access all resource pools corresponding to the resource pool tag they are bound to. Correspondingly, when a user is unbound from a resource pool tag, the user loses the right to use all resource pools contained in that resource pool tag. By adjusting the resource pools in the resource pool tag, the visible resource pools of users can be adjusted in batches.
[0062] In this embodiment, by establishing a binding relationship between users and resource pool tags, when users have new writing needs in the future, the system can accurately recommend the most suitable resource pool to the user, thereby improving the efficiency of resource utilization.
[0063] In an exemplary embodiment, the method further includes: allocating writable candidate resource pools to users according to the binding relationship, and sorting the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; and performing data writing operations for the corresponding sorted candidate resource pools in sequence according to the target resource pool sorting.
[0064] Optionally, upon receiving a user's write request, based on the established binding relationship between the user and resource pool tags, resource pools corresponding to the resource pool tags bound to the user are selected from all resource pools. These selected resource pools are provided to the user as candidate resource pools for writing; that is, the user is only allowed to write to these candidate resource pools. Next, the candidate resource pools are sorted to obtain a target resource pool ranking. Based on meeting the user's business requirements, the candidate resource pools are further ranked according to their overall performance to ensure better selection of resource pools for subsequent data write operations. Following the target resource pool ranking, starting with the highest-ranked candidate resource pool, data write operations are attempted sequentially for each candidate resource pool. If data writing is successful on a candidate resource pool, the entire write operation process is complete. If writing fails on the current candidate resource pool, the process continues to try the next candidate resource pool in the ranking until data writing is successful or all candidate resource pools have failed.
[0065] In this embodiment, by filtering candidate resource pools based on the binding relationship between users and resource pool tags, it can be ensured that the provided candidate resource pools are highly matched with the user's business needs in terms of characteristics, thereby ensuring the rational utilization of resource pool resources.
[0066] In an exemplary embodiment, the method further includes: assigning a new resource pool label to a user and updating the binding relationship between the user and the resource pool label, so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0067] Optionally, based on the user's business needs, a new resource pool label can be assigned to the user. After a new resource pool label is assigned to the user, the original binding relationship needs to be updated to adapt to the new resource allocation. When the user accesses the resource pool in the future, they need to operate according to the new binding relationship.
[0068] In this embodiment, by analyzing users' business needs and assigning them new resource pool tags, the resources in the resource pool can be matched more accurately with user needs. At the same time, by dynamically updating the binding relationship, the binding relationship between users and resource pool tags can be viewed in a timely manner, thereby effectively managing user data.
[0069] In one exemplary embodiment, such as Figure 4 As shown, a user data management method is provided, which includes the following steps:
[0070] The performance metrics of each resource pool are obtained from the database through the query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks.
[0071] The response time, available capacity, and backlog of tasks are normalized, and different weights are assigned to each of them based on the normalization result. The response time, available capacity, and backlog of tasks are then summed based on all weights.
[0072] When read / write is set to disabled or read-only, the value of the read / write setting is set to 0; when read / write is set to read / write, the value of the read / write setting is set to 1.
[0073] The product of the weighted sum and the assigned value is used as the score for the resource pool.
[0074] All resource pools are sorted in descending order of their ratings.
[0075] Upon receiving a write request from a user, the system executes data write operations for the corresponding resource pools sequentially according to the current resource pool sorting, until the data is successfully written or all data write operations for all resource pools fail.
[0076] Obtain the user's business model; the business model is determined based on the user's historical business needs; based on the business model and the resource pool tags corresponding to each resource pool, establish the binding relationship between the user and the resource pool tags.
[0077] Based on the binding relationship, assign writable candidate resource pools to users, and sort the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; according to the target resource pool sorting, execute the data write operation for the corresponding sorted candidate resource pools in sequence.
[0078] Assign a new resource pool label to the user and update the binding relationship between the user and the resource pool label so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0079] In this embodiment, by scoring and sorting resource pools based on performance indicators, write tasks can be allocated to each resource pool more rationally. This ensures that the resources of each resource pool are properly utilized according to their actual performance. Furthermore, by monitoring changes in various performance indicators and fluctuations in the resource pool ranking, potential problems with the resource pools can be identified in a timely manner, enabling dynamic adjustment of the resource pool load. This ensures that data is preferentially stored in resource pools with good performance and sufficient available capacity, thereby improving the utilization rate of the resource pools and guaranteeing efficient data storage and access.
[0080] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0081] Based on the same inventive concept, this application also provides a user data management device for implementing the user data management method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more user data management device embodiments provided below can be found in the limitations of the user data management method described above, and will not be repeated here.
[0082] In one exemplary embodiment, such as Figure 5 As shown, a user data management device is provided, including: an indicator acquisition module 10, a performance scoring module 20, and a data writing module 30, wherein:
[0083] The metrics acquisition module 10 is used to obtain the performance metrics of each resource pool from the database through the query interface; the performance metrics include read / write settings, response time, available capacity and backlog of tasks.
[0084] The performance scoring module 20 is used to score the resource pools based on performance metrics and sort all resource pools in descending order of scores.
[0085] The data writing module 30 is used to execute data writing operations for the corresponding sorted resource pools in sequence according to the current resource pool sorting when a write request is received from the user, until the data writing is successful or the data writing operations of all resource pools fail.
[0086] In an exemplary embodiment, the performance scoring module 20 is further configured to normalize the response time, available capacity, and backlog of tasks, and assign different weights to the response time, available capacity, and backlog of tasks according to the result of the normalization; perform a weighted summation of the response time, available capacity, and backlog of tasks according to all weights; determine the assignment of the read / write settings, and use the product of the weighted summation and the assignment as the score of the resource pool.
[0087] In an exemplary embodiment, the performance scoring module 20 is further configured to determine that the read / write setting is set to 0 when read / write is set to disabled or read-only, and to determine that the read / write setting is set to 1 when read / write is set to read / write.
[0088] In an exemplary embodiment, the data writing module 30 is further configured to obtain the user's business model; the business model is determined based on the user's historical business needs; and a binding relationship between the user and the resource pool label is established based on the business model and the resource pool label corresponding to each resource pool.
[0089] In an exemplary embodiment, the data writing module 30 is further configured to allocate writable candidate resource pools to users according to the binding relationship, and sort the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; and execute data writing operations for the corresponding sorted candidate resource pools in sequence according to the target resource pool sorting.
[0090] In an exemplary embodiment, the data writing module 30 is further configured to assign a new resource pool label to the user and update the binding relationship between the user and the resource pool label, so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0091] Each module in the aforementioned user data management device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0092] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a user data management method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0093] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0094] In one exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: obtaining performance metrics of each resource pool from a database through a query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks; scoring the resource pools based on the performance metrics and sorting all resource pools in descending order of scores; and upon receiving a write request initiated by a user, sequentially executing data write operations for the corresponding sorted resource pools according to the current resource pool sorting, until the data write is successful or all data write operations for all resource pools fail.
[0095] In one embodiment, the performance scoring of the resource pool based on performance metrics when the processor executes a computer program includes: normalizing response time, available capacity, and backlog of tasks, and assigning different weights to response time, available capacity, and backlog of tasks according to the result of the normalization; performing a weighted summation of response time, available capacity, and backlog of tasks according to all weights; determining the assignment of read / write settings, and using the product of the weighted summation and the assigned values as the score of the resource pool.
[0096] In one embodiment, determining the value of read / write settings when the processor executes a computer program includes: determining the value of the read / write settings to 0 when read / write is set to disabled or read-only; and determining the value of the read / write settings to 1 when read / write is set to read / write.
[0097] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the user's business model; determining the business model based on the user's historical business needs; and establishing a binding relationship between the user and the resource pool tags based on the business model and the resource pool tags corresponding to each resource pool.
[0098] In one embodiment, when the processor executes the computer program, it further performs the following steps: allocating writable candidate resource pools to the user according to the binding relationship, and sorting the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; and sequentially performing data write operations for the corresponding sorted candidate resource pools according to the target resource pool sorting.
[0099] In one embodiment, when the processor executes the computer program, it further performs the following steps: assigning a new resource pool label to the user and updating the binding relationship between the user and the resource pool label, so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0100] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program performs the following steps: obtaining performance metrics of each resource pool from a database through a query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks; scoring the resource pools based on the performance metrics and sorting all resource pools in descending order of scores; upon receiving a write request initiated by a user, executing data write operations for the corresponding sorted resource pools sequentially according to the current resource pool sorting, until the data write is successful or all data write operations for all resource pools fail.
[0101] In one embodiment, the performance scoring of the resource pool based on performance metrics when the computer program is executed by the processor includes: normalizing response time, available capacity, and backlog of tasks, and assigning different weights to response time, available capacity, and backlog of tasks according to the result of the normalization; performing a weighted summation of response time, available capacity, and backlog of tasks according to all weights; determining the assignment of read / write settings, and using the product of the weighted summation and the assigned values as the score of the resource pool.
[0102] In one embodiment, the determination of read / write settings when a computer program is executed by a processor includes: determining that the read / write settings are set to 0 when read / write is set to disabled or read-only; and determining that the read / write settings are set to read / write when read / write is set to read / write.
[0103] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the user's business model; determining the business model based on the user's historical business needs; and establishing a binding relationship between the user and the resource pool tags based on the business model and the resource pool tags corresponding to each resource pool.
[0104] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: allocating writable candidate resource pools to the user according to the binding relationship, and sorting the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; and sequentially performing data write operations for the corresponding sorted candidate resource pools according to the target resource pool sorting.
[0105] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: assigning a new resource pool label to the user and updating the binding relationship between the user and the resource pool label, so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0106] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: obtaining performance metrics for each resource pool from a database through a query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks; scoring the resource pools based on the performance metrics and sorting all resource pools in descending order of scores; upon receiving a write request initiated by a user, sequentially executing data write operations for the corresponding sorted resource pools according to the current resource pool sorting, until data writing is successful or all data write operations for all resource pools fail.
[0107] In one embodiment, the performance scoring of the resource pool based on performance metrics when the computer program is executed by the processor includes: normalizing response time, available capacity, and backlog of tasks, and assigning different weights to response time, available capacity, and backlog of tasks according to the result of the normalization; performing a weighted summation of response time, available capacity, and backlog of tasks according to all weights; determining the assignment of read / write settings, and using the product of the weighted summation and the assigned values as the score of the resource pool.
[0108] In one embodiment, the determination of read / write settings when a computer program is executed by a processor includes: determining that the read / write settings are set to 0 when read / write is set to disabled or read-only; and determining that the read / write settings are set to read / write when read / write is set to read / write.
[0109] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the user's business model; determining the business model based on the user's historical business needs; and establishing a binding relationship between the user and the resource pool tags based on the business model and the resource pool tags corresponding to each resource pool.
[0110] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: allocating writable candidate resource pools to the user according to the binding relationship, and sorting the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; and sequentially performing data write operations for the corresponding sorted candidate resource pools according to the target resource pool sorting.
[0111] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: assigning a new resource pool label to the user and updating the binding relationship between the user and the resource pool label, so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
[0112] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0113] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0114] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A user data management method, characterized in that, The method includes: The performance metrics of each resource pool are obtained from the database through a query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks. The resource pools are scored based on the performance metrics, and all resource pools are sorted in descending order of scores. Upon receiving a write request from a user, the system executes data write operations for the corresponding resource pools sequentially according to the current resource pool sorting, until the data is successfully written or all data write operations for all resource pools fail. Obtain the user's business model; the business model is determined based on the user's historical business needs; the business model is used to characterize the user's behavioral patterns, business processes, and data flow in business activities. Based on the business model and the resource pool tags corresponding to each resource pool, a binding relationship is established between the user and the resource pool tags; the tags are used to identify and classify the characteristics of the resource pool. Based on the binding relationship, a writable candidate resource pool is allocated to the user, and the candidate resource pools are sorted according to the current resource pool sorting to obtain the target resource pool sorting. According to the target resource pool, the data writing operations for the corresponding sorted candidate resource pools are executed sequentially.
2. The method according to claim 1, characterized in that, The step of scoring the resource pool based on the performance indicators includes: The response time, available capacity, and backlog of tasks are normalized, and different weights are assigned to the response time, available capacity, and backlog of tasks respectively based on the result of the normalization. The response time, available capacity, and backlog of tasks are weighted and summed according to all weights. The assigned value of the read / write settings is determined, and the product of the weighted sum and the assigned value is used as the score of the resource pool.
3. The method according to claim 2, characterized in that, The process of determining the assignment of the read / write settings includes: When the read / write setting is disabled or read-only, the value of the read / write setting is determined to be 0; When the read / write setting is set to read / write, the value of the read / write setting is determined to be 1.
4. The method according to claim 1, characterized in that, The method further includes: A new resource pool label is assigned to the user, and the binding relationship between the user and the resource pool label is updated so that the user can access the resource pool corresponding to the resource pool label according to the updated binding relationship.
5. A user data management device, characterized in that, The device includes: The metrics acquisition module is used to obtain performance metrics of each resource pool from the database through a query interface; the performance metrics include read / write settings, response time, available capacity, and backlog of tasks; The performance scoring module is used to score the resource pool based on the performance indicators and sort all resource pools in descending order of scores. The data writing module is used to, upon receiving a write request initiated by a user, sequentially execute data write operations for the corresponding sorted resource pools according to the current resource pool sorting, until data writing is successful or all data write operations for all resource pools fail; obtain the user's business model; the business model is determined based on the user's historical business needs; the business model is used to characterize the user's behavioral patterns, business processes, and data flow in business activities; establish a binding relationship between the user and the resource pool tags according to the business model and the resource pool tags corresponding to each resource pool; the tags are used to identify and classify the characteristics of the resource pools; allocate writable candidate resource pools to the user according to the binding relationship, and sort the candidate resource pools according to the current resource pool sorting to obtain the target resource pool sorting; and sequentially execute data write operations for the corresponding sorted candidate resource pools according to the target resource pool sorting.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.