User data management method and device, computer equipment, readable storage medium and program product
By grading and sorting the resource pool performance and dynamically adjusting the write task allocation, the problem of unbalanced resource pool utilization in traditional management methods is solved, and dynamic adjustment of resource pool load and efficient storage of data is realized.
Patent Information
- Application Number
- CN202411661570.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-20
AI Technical Summary
Traditional data storage management methods based on user permissions are difficult to dynamically adjust the user data storage location, resulting in unbalanced resource pool utilization and wasted resources.
The performance indicators of the resource pool are obtained through the query interface, performance rating and sorting are performed, and write tasks are dynamically adjusted to ensure that data is stored in resource pools with good performance and sufficient available capacity.
Dynamic adjustment of resource pool load is realized, the utilization rate of resource pool is improved, and efficient storage and access of data is ensured.
Smart Images

Figure CN119576233A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud data management, and in particular to a user data management method, apparatus, computer equipment, readable storage medium, and program product. Background Art
[0002] With the rapid advancement of cloud computing technology, data storage in the cloud has become a 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 resource pools are controlled, thereby achieving control over user data storage.
[0004] However, this user rights-based management method usually does not support dynamic adjustment of user data storage locations. Once a user's storage permissions are set, the data writing location is relatively fixed, and it is difficult to flexibly adjust it according to actual needs or the load of the resource pool, resulting in uneven resource pool utilization and waste of resources. Summary of the Invention
[0005] Based on this, it is necessary to provide a user data management method, apparatus, computer equipment, readable storage medium and program product that can dynamically adjust the resource pool load to address the above technical problems.
[0006] In a first aspect, the present application provides a user data management method, comprising:
[0007] Obtain performance metrics for each resource pool from the database through a query interface; these metrics include read and write settings, response time, available capacity, and backlog.
[0008] Scoring resource pools based on performance indicators and sorting all resource pools in descending order of scores;
[0009] When a write request is received from a user, data write operations are executed in sequence for the resource pools of the corresponding order according to the current resource pool order, until the data is written successfully or the data write operations for all resource pools fail.
[0010] In one embodiment, the step of scoring the performance of the resource pool according to the performance indicator includes:
[0011] Normalize response time, available capacity, and backlog, and assign different weights to response time, available capacity, and backlog based on the normalization results.
[0012] Take the weighted sum of response time, available capacity, and backlog based on all weights;
[0013] Determine the assigned value of the read and write settings, and multiply the weighted sum by the assigned value to use as the score of the resource pool.
[0014] In one embodiment, the step of determining the value of the read-write setting includes:
[0015] In the case where the read-write setting is disabled or read-only, the value assigned to the read-write setting is determined to be 0;
[0016] In the case where the read-write setting is read-write, the value assigned to the read-write setting is determined to be 1.
[0017] In one embodiment, the method further comprises:
[0018] Obtain the user's business model; the business model is determined based on the user's historical business needs;
[0019] Establish a binding relationship between users and resource pool tags based on the business model and the resource pool tags corresponding to each resource pool.
[0020] In one embodiment, the method further comprises:
[0021] Allocate writable candidate resource pools to users based on the binding relationship, and sort the candidate resource pools based on the current resource pool sorting to obtain the target resource pool sorting;
[0022] According to the order of the target resource pools, the data writing operations for the correspondingly ordered candidate resource pools are performed in sequence.
[0023] In one embodiment, the method further comprises:
[0024] Assign a new resource pool tag to the user and update the binding relationship between the user and the resource pool tag so that the user can access the resource pool corresponding to the resource pool tag according to the updated binding relationship.
[0025] In a second aspect, the present application further provides a user data management device, comprising:
[0026] The indicator acquisition module is used to obtain the performance indicators of each resource pool from the database through the query interface; performance indicators include read and write settings, response time, available capacity, and backlog of tasks;
[0027] The performance scoring module is used to score resource pools according to performance indicators and sort all resource pools in descending order of scores;
[0028] The data writing module is used to execute data writing operations on resource pools of corresponding order in sequence according to the current resource pool order when receiving a write request initiated by the user, until the data is written successfully or the data writing operations of all resource pools fail.
[0029] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the method steps in the first aspect when executing the computer program.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements any one of the method steps in the first aspect when the computer program is executed by a processor.
[0031] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which implements any one of the method steps in the first aspect when executed by a processor.
[0032] The above-mentioned user data management method, device, computer equipment, readable storage medium and program product can more reasonably allocate write tasks to each resource pool by scoring and sorting resource pools based on performance indicators, ensuring that the resources of each resource pool can be properly utilized according to its actual performance status. In addition, through the changes in various performance indicators and fluctuations in the ranking of resource pools, possible problems in the resource pool can be discovered in a timely manner, and dynamic adjustment of the resource pool load can be achieved, ensuring that data is preferentially stored in resource pools with good performance and sufficient available capacity, thereby improving the utilization rate of the resource pool and ensuring efficient storage and access of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 This is an application environment diagram of a user data management method in one embodiment;
[0035] Figure 2 1 is a flow chart of a user data management method according to an embodiment;
[0036] Figure 3 A diagram showing the binding relationship between users and resource pool tags in one embodiment;
[0037] Figure 4 is a flowchart of a user data management method according to another embodiment;
[0038] Figure 5 is a structural block diagram of a user data management device in one embodiment;
[0039] Figure 6 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0041] The user data management method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 is used to cache the resource pool cluster. The terminal 102 is used to obtain the performance indicators of each resource pool from the database through the query interface, score the resource pool according to the performance indicators, and sort all resource pools in order from high to low according to the scores. When a write request initiated by the user is received, the data write operation for the corresponding sorted resource pool is executed in sequence according to the current resource pool sorting until the data is successfully written or the data write operation of all resource pools fails. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0042] In an exemplary embodiment, Figure 2 As shown, a user data management method is provided, which is applied to Figure 1The terminal 102 in the example is used as an example to illustrate the process, including the following steps 202 to 206. Among them:
[0043] S202: Obtain performance indicators of each resource pool from the database through a query interface; the performance indicators include read and write settings, response time, available capacity, and backlog tasks.
[0044] Optionally, a resource pool combines multiple resources of the same type (such as computing resources, storage resources, and network resources) into a resource collection. These resources are logically treated as a whole and uniformly allocated, scheduled, and monitored through specific management mechanisms and technologies. The performance metrics of a resource pool reflect its actual performance. Read / write settings characterize its read / write status, including read-only, read / write, and disabled. Response time refers to the time it takes from issuing a request (such as a read or write request) to receiving a response from the resource pool. A shorter response time generally indicates that the resource pool can process requests quickly and provide efficient service. Available capacity indicates how much space is available in the resource pool for storing new data. The backlog represents the number of tasks that have not yet been processed by the resource pool. A large backlog indicates that the resource pool is busy, potentially impacting the speed at which new tasks can be processed.
[0045] S204: The resource pools are scored according to the performance indicators, and all resource pools are sorted in descending order of scores.
[0046] Optionally, each resource pool is evaluated and assigned a score, taking into account factors such as read / write settings, response time, available capacity, and backlogs. For example, a resource pool with fast response times, ample available capacity, and a small backlog might receive a higher score. Based on these scores, all resource pools are then ranked from highest to lowest, creating a prioritized list of resource pools based on their current performance.
[0047] S206: When a write request initiated by a user is received, data write operations are executed in sequence for resource pools of corresponding order according to the current resource pool order, until the data is written successfully or the data write operations for all resource pools fail.
[0048] Optionally, when a user-initiated write request is received, it is processed based on the generated resource pool ranking results. The first attempt is to write the data to the resource pool ranked first (i.e., with the highest performance score). If the write operation succeeds, the entire write request process is completed. However, if the write operation fails in that resource pool, the next resource pool in the ranking is tried again, and this cycle continues until the data is successfully written to a resource pool or the write operation fails in all resource pools.
[0049] In the above-mentioned user data management method, by scoring and sorting resource pools based on performance indicators, write tasks can be more reasonably allocated to each resource pool, ensuring that the resources of each resource pool can be properly utilized according to its actual performance status. In addition, through the changes in various performance indicators and fluctuations in the ranking of resource pools, possible problems in the resource pool can be discovered in a timely manner, and dynamic adjustment of the resource pool load can be achieved, ensuring that data is stored preferentially in resource pools with good performance and sufficient available capacity, thereby improving the utilization rate of the resource pool and ensuring efficient storage and access of data.
[0050] In an exemplary embodiment, the step of scoring the performance of a resource pool based on performance indicators includes: normalizing the response time, available capacity, and backlog of tasks, and assigning different weights to the response time, available capacity, and backlog of tasks according to the results of the normalization; taking a weighted sum of the response time, available capacity, and backlog of tasks according to all weights; determining the assignment of read and write settings, and using the product of the weighted sum and the assignment as the score of the resource pool.
[0051] Optionally, normalization can be used to convert data of varying scopes and dimensions into a unified standard range, facilitating subsequent comprehensive comparisons and calculations. Based on this normalization, different weights are assigned to each performance metric. For example, for certain applications with extremely high real-time requirements, response time may be the most important metric, while for storage-intensive applications, available capacity may be given a higher weight. Based on business needs and actual circumstances, each normalized metric is assigned a different weight to reflect its relative importance in evaluating resource pool performance, resulting in an intermediate result that comprehensively reflects resource pool performance. Subsequently, combined with the assigned read / write settings, a score for each resource pool is ultimately determined. It should be noted that read / write settings take precedence over other performance metrics when calculating resource pool scores. Since read / write settings determine the read / write status of a resource pool, if the read / write status is disabled, even if the resource pool's performance is superior based on other performance metrics, the resulting score will be lower because the resource pool cannot write data.
[0052] In this embodiment, by normalizing multiple performance indicators, assigning weights, and performing weighted summation, the performance of the resource pool can be comprehensively and comprehensively evaluated, thereby more accurately reflecting the actual performance of the resource pool in different business scenarios.
[0053] In an exemplary embodiment, the step of determining the assigned value of the read-write setting includes: determining the assigned value of the read-write setting to be 0 when the read-write setting is disabled or read-only; and determining the assigned value of the read-write setting to be 1 when the read-write setting is read-write.
[0054] Optionally, the read-write settings include disabled, read-only, and read-write. These three states represent different functional restrictions of the resource pool in data read and write operations. When the read-write setting is disabled, it means that the resource pool cannot perform any read and write operations at all. Both reading and writing data are prohibited. In this case, the value is assigned to 0, indicating that the resource pool has no availability in the functional dimension of data reading and writing. When the read-write setting is 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 the value is also assigned to 0. When the read-write setting is read-write, the resource pool can both read and write data, which is a completely normal working state. At this time, the value is assigned to 1, indicating that the resource pool has full availability in the read and write functional dimension.
[0055] For example, the resource pool score The calculation formula is:
[0056]
[0057] in, Indicates read-write settings. When the read-write setting is disabled or read-only, the value is assigned to 0. When the read-write setting is read-write, the value is assigned to 1. Indicates the response time; Indicates the task backlog; Indicates the available capacity of the resource pool that allows data to be written; Indicates the weight values of different performance indicators, and all weights and values are 1; 、 Respectively represent the minimum and maximum response time; 、 Respectively represent the minimum and maximum value of the backlog; 、 Indicates the minimum and maximum available capacity, respectively.
[0058] In this embodiment, by normalizing multiple performance indicators, assigning weights, and performing weighted summation, the performance of the resource pool can be comprehensively and comprehensively evaluated, thereby more accurately reflecting the actual performance of the resource pool in different business scenarios.
[0059] In an exemplary embodiment, the method further includes: obtaining a business model of the user; determining the business model based on the user's historical business needs; and establishing a binding relationship between the user and the resource pool tag 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 categorize certain characteristics of the resource pool. Furthermore, there is a many-to-many correspondence between resource pools and resource pool 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 user behavior patterns, business processes, and data flows in business activities. Once a user's business model is obtained, the user can be associated with an appropriate resource pool tag 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 good network quality can be assigned based on the user's requested location.
[0061] For example, Figure 3 As shown, Figure 3 This is a many-to-many relationship diagram 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 tags they are bound to. Accordingly, when a user is unbound from a resource pool tag, the user loses the right to use all resource pools contained in this resource pool tag. By adjusting the resource pools in the resource pool tag, you can batch adjust the user's visible resource pools.
[0062] In this embodiment, by establishing a binding relationship between the user and the resource pool tag, when the user subsequently has a new writing requirement, the resource pool that best suits the user's needs can be accurately recommended 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 based on binding relationships, and sorting the candidate resource pools according to the current resource pool sorting to obtain a target resource pool sorting; and executing data writing operations for the corresponding sorted candidate resource pools in sequence according to the target resource pool sorting.
[0064] Optionally, when a write request is received from a user, based on the determined binding relationship between the user and the resource pool tag, resource pools corresponding to the resource pool tag bound to the user are screened out from all resource pools, and these screened out resource pools are provided to the user as writable candidate resource pools, that is, the user is only allowed to write to these candidate resource pools. Afterwards, the candidate resource pools are sorted to obtain a target resource pool sorting. On the basis of meeting the user's business demand characteristics, the candidate resource pools are further sorted according to the comprehensive performance of the resource pool so that the resource pool can be better selected for data writing operations in the future. According to the obtained target resource pool sorting, starting from the candidate resource pool with the highest sorting, the data writing operation for the candidate resource pool is attempted in sequence. If the data is successfully written to a candidate resource pool, the entire write operation process is completed. If the write fails in the current candidate resource pool, the next candidate resource pool is tried according to the sorting until the data is successfully written or the data write operation of all candidate resource pools fails.
[0065] In this embodiment, by screening candidate resource pools based on the binding relationship between users and resource pool tags, it is possible to ensure that the provided candidate resource pools are highly matched with the user's business needs in terms of characteristics, thereby ensuring reasonable utilization of resource pool resources.
[0066] In an exemplary embodiment, the method further includes: allocating a new resource pool tag to the user, and updating the binding relationship between the user and the resource pool tag, so that the user accesses the resource pool corresponding to the resource pool tag according to the updated binding relationship.
[0067] Optionally, based on the user's business needs, a new resource pool tag can be assigned to the user. After the new resource pool tag is assigned to the user, the original binding relationship needs to be updated to adapt to the new resource allocation situation. When the user subsequently accesses the resource pool, he needs to operate according to the new binding relationship.
[0068] In this embodiment, by analyzing the user's business needs and assigning new resource pool tags to them, the resource pool resources can be more accurately matched with the user's needs. At the same time, by dynamically updating the binding relationship, the binding relationship between the user and the resource pool tag can be viewed in a timely manner, thereby effectively managing user data.
[0069] In an exemplary embodiment, Figure 4 As shown, a user data management method is provided, which includes the following steps:
[0070] The performance indicators of each resource pool are obtained from the database through the query interface; performance indicators include read and 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 the response time, available capacity, and backlog of tasks based on the normalization results; the response time, available capacity, and backlog of tasks are weighted and summed based on all weights.
[0072] In the case where the read-write setting is disabled or read-only, the value assigned to the read-write setting is determined to be 0; in the case where the read-write setting is read-write, the value assigned to the read-write setting is determined to be 1.
[0073] The product of the weighted sum and the assigned value is used as the score of the resource pool.
[0074] Sort all resource pools by score, from highest to lowest.
[0075] When a write request is received from a user, data write operations are executed in sequence for the resource pools of the corresponding order according to the current resource pool order, until the data is written successfully or the 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 a binding relationship between the user and the resource pool tags.
[0077] According to the binding relationship, the user is allocated a writable candidate resource pool, and the candidate resource pool is sorted according to the current resource pool sorting to obtain the target resource pool sorting; according to the target resource pool sorting, the data writing operation for the corresponding sorted candidate resource pool is executed in sequence.
[0078] Assign a new resource pool tag to the user and update the binding relationship between the user and the resource pool tag so that the user can access the resource pool corresponding to the resource pool tag according to the updated binding relationship.
[0079] In this embodiment, by scoring and sorting resource pools based on performance indicators, write tasks can be more reasonably allocated to each resource pool, ensuring that the resources of each resource pool can be properly utilized according to its actual performance conditions. In addition, through the changes in various performance indicators and fluctuations in the ranking of resource pools, possible problems in the resource pool can be discovered in a timely manner, and dynamic adjustment of the resource pool load can be achieved, ensuring that data is preferentially stored in resource pools with good performance and sufficient available capacity, thereby improving the utilization rate of the resource pool and ensuring efficient storage and access to data.
[0080] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0081] Based on the same inventive concept, embodiments of the present application also provide a user data management device for implementing the aforementioned user data management method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations in one or more user data management device embodiments provided below can be found in the above-mentioned limitations on the user data management method and will not be further elaborated here.
[0082] In an exemplary embodiment, Figure 5 As shown, a user data management device is provided, comprising: an indicator acquisition module 10, a performance scoring module 20 and a data writing module 30, wherein:
[0083] The indicator acquisition module 10 is used to obtain the performance indicators of each resource pool from the database through the query interface; the performance indicators include read and write settings, response time, available capacity and backlog tasks.
[0084] The performance scoring module 20 is used to score the resource pools according to the performance indicators and sort all the resource pools in descending order of scores.
[0085] The data writing module 30 is used to execute data writing operations for resource pools of corresponding order in sequence according to the current resource pool order when receiving a write request initiated by the user, until the data is written successfully or the data writing operations of all resource pools fail.
[0086] In an exemplary embodiment, the performance scoring module 20 is also used to normalize the response time, available capacity and backlog task volume, and assign different weights to the response time, available capacity and backlog task volume according to the results of the normalization; perform weighted summation of the response time, available capacity and backlog task volume according to all weights; determine the assignment of read and write settings, and use the product of the weighted summation result 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 the assigned value of the read-write setting to be 0 when the read-write setting is disabled or read-only; and to determine the assigned value of the read-write setting to be 1 when the read-write setting is read-write.
[0088] In an exemplary embodiment, the data writing module 30 is also used 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 tag is established based on the business model and the resource pool tags corresponding to each resource pool.
[0089] In an exemplary embodiment, the data writing module 30 is also used to allocate writable candidate resource pools to users based on the binding relationship, 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, the data writing operations for the corresponding sorted candidate resource pools are executed in sequence.
[0090] In an exemplary embodiment, the data writing module 30 is further configured to assign a new resource pool tag to the user and update the binding relationship between the user and the resource pool tag, so that the user can access the resource pool corresponding to the resource pool tag according to the updated binding relationship.
[0091] Each module in the user data management device described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0092] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means, and the wireless means can be implemented via Wi-Fi, a mobile cellular network, near-field communication (NFC), or other technologies. When executed by the processor, the computer program implements a user data management method. The display unit of the computer device 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 a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.
[0093] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0094] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining performance indicators of each resource pool from a database through a query interface; the performance indicators include read and write settings, response time, available capacity and backlog tasks; scoring the resource pools according to the performance indicators, and sorting all resource pools in order from high to low scores; when a write request initiated by a user is received, executing data write operations for the corresponding sorted resource pools in sequence according to the current resource pool sorting, until the data write is successful or the data write operations for all resource pools fail.
[0095] In one embodiment, the processor executes a computer program that involves scoring the performance of a resource pool based on performance indicators, including: normalizing the response time, available capacity, and backlog of tasks, and assigning different weights to the response time, available capacity, and backlog of tasks based on the results of the normalization; performing a weighted summation of the response time, available capacity, and backlog of tasks based on all weights; determining the assignment of read and write settings, and using the product of the weighted summation and the assignment as the score of the resource pool.
[0096] In one embodiment, determining the assignment of a read-write setting involved in executing a computer program by a processor includes: determining the assignment of the read-write setting to 0 when the read-write setting is disabled or read-only; and determining the assignment of the read-write setting to 1 when the read-write setting is read-write.
[0097] In one embodiment, when the processor executes the computer program, it further implements 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 tag 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 also implements the following steps: assigning writable candidate resource pools to users based on the binding relationship, and sorting 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, executing the data writing operations for the corresponding sorted candidate resource pools in sequence.
[0099] In one embodiment, when the processor executes the computer program, it further implements the following steps: assigning a new resource pool tag to the user, and updating the binding relationship between the user and the resource pool tag, so that the user can access the resource pool corresponding to the resource pool tag 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 the computer program is executed by a processor, the following steps are implemented: obtaining performance indicators of each resource pool from a database through a query interface; the performance indicators include read and write settings, response time, available capacity and backlog tasks; scoring the resource pools according to the performance indicators, and sorting all resource pools in descending order of scores; when a write request initiated by a user is received, executing data write operations for the corresponding sorted resource pools in sequence according to the current resource pool sorting, until the data write is successful or the data write operations for all resource pools fail.
[0101] In one embodiment, when a computer program is executed by a processor, the computer program performs a performance score on a resource pool based on performance indicators, including: normalizing the response time, available capacity, and backlog of tasks, and assigning different weights to the response time, available capacity, and backlog of tasks according to the results of the normalization; performing a weighted summation of the response time, available capacity, and backlog of tasks according to all weights; determining the assignment of read and write settings, and using the product of the weighted summation and the assignment as the score of the resource pool.
[0102] In one embodiment, determining the assignment of a read-write setting when the computer program is executed by a processor includes: determining the assignment of the read-write setting to 0 when the read-write setting is disabled or read-only; and determining the assignment of the read-write setting to 1 when the read-write setting is read-write.
[0103] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: 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 tag 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, the following steps are also implemented: a writable candidate resource pool is allocated to the user according to the binding relationship, and the candidate resource pool is sorted according to the current resource pool sorting to obtain the target resource pool sorting; according to the target resource pool sorting, the data writing operation for the corresponding sorted candidate resource pool is executed in sequence.
[0105] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: assigning a new resource pool tag to the user, and updating the binding relationship between the user and the resource pool tag, so that the user can access the resource pool corresponding to the resource pool tag according to the updated binding relationship.
[0106] In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps: obtaining performance indicators of each resource pool from a database through a query interface; the performance indicators include read and write settings, response time, available capacity, and backlog of tasks; scoring the resource pools according to the performance indicators, 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 sorting of resource pools, until the data is successfully written or the data write operations for all resource pools fail.
[0107] In one embodiment, when a computer program is executed by a processor, the computer program performs a performance score on a resource pool based on performance indicators, including: normalizing the response time, available capacity, and backlog of tasks, and assigning different weights to the response time, available capacity, and backlog of tasks according to the results of the normalization; performing a weighted summation of the response time, available capacity, and backlog of tasks according to all weights; determining the assignment of read and write settings, and using the product of the weighted summation and the assignment as the score of the resource pool.
[0108] In one embodiment, determining the assignment of a read-write setting when the computer program is executed by a processor includes: determining the assignment of the read-write setting to 0 when the read-write setting is disabled or read-only; and determining the assignment of the read-write setting to 1 when the read-write setting is read-write.
[0109] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: 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 tag 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, the following steps are also implemented: a writable candidate resource pool is allocated to the user according to the binding relationship, and the candidate resource pool is sorted according to the current resource pool sorting to obtain the target resource pool sorting; according to the target resource pool sorting, the data writing operation for the corresponding sorted candidate resource pool is executed in sequence.
[0111] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: assigning a new resource pool tag to the user, and updating the binding relationship between the user and the resource pool tag, so that the user can access the resource pool corresponding to the resource pool tag according to the updated binding relationship.
[0112] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, 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 various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.
[0113] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, 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 above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A user data management method, characterized in that: The method comprises: Obtaining performance indicators of each resource pool from the database through a query interface; the performance indicators include read and write settings, response time, available capacity, and backlog of tasks; Scoring the resource pools according to the performance indicators, and sorting all resource pools in descending order of scores; When a write request initiated by a user is received, data write operations are performed on resource pools of corresponding order in sequence according to the current resource pool order, until the data is written successfully or the data write operations of all resource pools fail.
2. The method according to claim 1, characterized in that The performing a performance scoring on the resource pool according to the performance indicator comprises: Normalizing the response time, the available capacity, and the backlog of tasks, and assigning different weights to the response time, the available capacity, and the backlog of tasks according to the results of the normalization processing; Taking a weighted sum of the response time, the available capacity and the backlog task amount according to all weights; Determine the assigned value of the read / write setting, and use the product of the weighted sum and the assigned value as the score of the resource pool.
3. The method according to claim 2, characterized in that The determining the assignment of the read-write setting includes: In the case where the read-write setting is disabled or read-only, determining that the assigned value of the read-write setting is 0; In the case where the read-write setting is read-write, it is determined that the assigned value of the read-write setting is 1.
4. The method according to claim 1, characterized in that: The method further comprises: Acquire a business model of the user; the business model is determined according to the historical business needs of the user; A binding relationship between the user and the resource pool tag is established according to the business model and the resource pool tag corresponding to each resource pool.
5. The method according to claim 4, characterized in that The method further comprises: Allocating a writable candidate resource pool for the user according to the binding relationship, and sorting the candidate resource pools according to the current resource pool sorting to obtain a target resource pool sorting; According to the target resource pool sorting, data writing operations are performed on the corresponding sorted candidate resource pools in sequence.
6. The method according to claim 4, characterized in that The method further comprises: A newly added resource pool tag is allocated to the user, and the binding relationship between the user and the resource pool tag is updated, so that the user accesses the resource pool corresponding to the resource pool tag according to the updated binding relationship.
7. A user data management device, characterized in that: The device comprises: An indicator acquisition module is used to obtain performance indicators of each resource pool from the database through a query interface; the performance indicators include read and write settings, response time, available capacity, and backlog of tasks; A performance scoring module is used to score the resource pool according to the performance indicator and sort all resource pools in descending order of the score; The data writing module is used to, upon receiving a write request initiated by a user, sequentially execute data writing operations for resource pools of corresponding sorting according to the current resource pool sorting until the data is written successfully or the data writing operations of all resource pools fail.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system for configurating memory device under hybrid storage environment
CN102388358A
Cross-cloud resource processing system and resource management method
CN112637304A
Cluster resource management scheduling method and device, equipment and readable storage medium
CN112948113A
Resource configuration method and device, electronic equipment and computer readable storage medium
CN113419846A
User level resource control method and device applied to database and terminal device
CN113656171A
Cited By
User tag data processing method and device, computer equipment and storage medium
CN120639656A