Data storage cluster resource scheduling methods, devices, electronic equipment and media
By obtaining and preprocessing data call information, building a knowledge graph and determining call priority, and optimizing the locust optimization algorithm by combining reverse population and staged updates, the problem of low prediction accuracy and uneven scheduling in data storage cluster resource scheduling is solved. Improved the stability and user experience of data storage clusters.
Patent Information
- Application Number
- CN202410228836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-02-29
AI Technical Summary
Existing time series prediction models and locust optimization algorithms have problems such as low prediction accuracy, unbalanced resource scheduling, and unstable performance in data storage cluster resource scheduling, resulting in reduced processing efficiency and degraded user experience.
By obtaining the user data call information set and the cluster load information set, perform preprocessing and knowledge graph construction, generate the user data call prediction information set, and determine the call priority based on user value and cluster load information, perform resource scheduling, and use reverse population and staged update method to optimize the Locust optimization algorithm.
It improves the prediction accuracy of user data calls and the accuracy of resource scheduling, reduces the loss rate of data storage clusters and improves stability, and avoids local optimal solutions and resource waste.
Smart Images

Figure CN118093097B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a data storage cluster resource scheduling method, device, electronic device, and medium. Background Art
[0002] At present, with the development of network technology, the number of visits to data storage clusters is increasing day by day. A large number of access requests may occur at the same time, which puts huge pressure on the data storage cluster and the stability of the data storage cluster. For the resource scheduling of the data storage cluster, the usual method is: using a time series prediction model, based on historical user data call information, predict the data call volume of the target user to obtain the user data call volume. Then, according to the user data call volume, the data storage cluster is scheduled for resources.
[0003] However, it is found in practice that when the above method is used to schedule resources for the data storage cluster, the following technical problems often occur: the timing prediction model is used to predict the user data call volume. Since the timing prediction model only focuses on the timing information of the call volume and considers relatively single influencing factors, the accuracy of the predicted user data call information set is low, which in turn affects the resource optimization of the data storage cluster, resulting in reduced cluster processing efficiency and a higher damage rate of the data storage cluster.
[0004] In the process of adopting technical solutions to solve the above-mentioned technical problem 1, the following technical problem 2 is often accompanied: Since the locust optimization algorithm uses random initialization to obtain the initial population, there is a lot of randomness, and the locust optimization algorithm is linearly decreasing with the increase in the number of executions when updating locust individuals, and cannot be updated adaptively, it is easy to cause the algorithm's optimization efficiency to be low as the number of executions increases, and fall into a local optimal solution, resulting in unbalanced resource scheduling of the data storage cluster, unstable performance of the data storage cluster, and increased damage to the data storage nodes and reduced user experience. In response to the above-mentioned technical problem 2, the conventional solution is generally: using the locust optimization algorithm to determine the cluster resource scheduling information of the data storage cluster to dynamically adjust the resources of the data storage cluster. However, the above conventional solutions still have the following problems: since the locust optimization algorithm uses random initialization to obtain the initial population, there is a lot of randomness, and the locust optimization algorithm updates the locust individuals in a linearly decreasing manner as the number of executions increases, and cannot perform adaptive updates. This can easily cause the algorithm's optimization efficiency to be low as the number of executions increases, and it may fall into a local optimal solution, resulting in unbalanced resource scheduling of the data storage cluster, unstable performance of the data storage cluster, and increased damage to the data storage nodes and reduced user experience.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose a data storage cluster resource scheduling method, apparatus, electronic device, and medium to solve one or more of the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide a data storage cluster resource scheduling method, including: obtaining a user data call information set of a data calling user and a cluster load information set of a data storage cluster; preprocessing the above user data call information set to obtain a preprocessed user data call information set; generating a user call knowledge graph of the above data calling user based on the above preprocessed user data call information set; generating a user data call prediction information set of the above data calling user based on the above preprocessed user data call information set and the above user call knowledge graph; performing user value identification on the above preprocessed user data call information set to obtain user value information; inputting the above cluster load information set into a cluster load prediction model to obtain a cluster remaining resource prediction information set; determining the call priority of each user data call prediction information in the above user data call prediction information set based on the above user value information and the above cluster load information set to obtain a call priority set; generating cluster resource scheduling information of the above data storage cluster based on the above call priority set and the above cluster remaining resource prediction information set, and performing resource scheduling on the above data storage cluster based on the above cluster resource scheduling information.
[0009] In a second aspect, some embodiments of the present disclosure provide a data storage cluster resource scheduling device, comprising: an acquisition unit, configured to acquire a user data call information set of a data call user and a cluster load information set of a data storage cluster; a preprocessing unit, configured to preprocess the above user data call information set to obtain a preprocessed user data call information set; a first generation unit, configured to generate a user call knowledge graph of the above data call user based on the above preprocessed user data call information set; a second generation unit, configured to generate a user data call prediction information set of the above data call user based on the above preprocessed user data call information set and the above user call knowledge graph; a user value identification unit, The system is configured to perform user value identification on the above-mentioned preprocessed user data call information set to obtain user value information; the input unit is configured to input the above-mentioned cluster load information set into the cluster load prediction model to obtain the cluster remaining resource prediction information set; the determination unit is configured to determine the call priority of each user data call prediction information in the above-mentioned user data call prediction information set according to the above-mentioned user value information and the above-mentioned cluster load information set to obtain a call priority set; the resource adjustment unit is configured to generate cluster resource scheduling information of the above-mentioned data storage cluster according to the above-mentioned call priority set and the above-mentioned cluster remaining resource prediction information set, and perform resource scheduling on the above-mentioned data storage cluster according to the above-mentioned cluster resource scheduling information.
[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.
[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the data storage cluster resource scheduling method of some embodiments of the present disclosure can improve the prediction accuracy of user data calls and the accuracy of the generated cluster resource scheduling information, reduce the loss rate of the cluster, and improve the stability of the data storage cluster. Specifically, the reason for the reduction of the relevant cluster processing efficiency and the high damage rate of the data storage cluster is that the time series prediction model is used to predict the user data call volume. Since the time series prediction model only focuses on the time series information of the call volume, the influencing factors considered are relatively single, resulting in a low accuracy rate of the predicted user data call information set, which in turn affects the resource optimization of the data storage cluster, resulting in a reduction in cluster processing efficiency and a high damage rate of the data storage cluster. Based on this, the data storage cluster resource scheduling method of some embodiments of the present disclosure can first obtain the user data call information set of the data call user and the cluster load information set of the data storage cluster. Here, the user data call information set and the cluster load information set are convenient for subsequent prediction and resource scheduling of the data storage cluster. Secondly, the above-mentioned user data call information set is preprocessed to obtain the preprocessed user data call information set. Here, the quality of the user data call information set can be improved and the amount of data to be processed later can be reduced. Again, based on the above-mentioned preprocessed user data call information set, a user call knowledge graph of the above-mentioned data call user is generated. Here, constructing a user call knowledge graph can increase the influence of the data call user with an associated relationship on the data call user, and improve the accuracy of the subsequent prediction of the call information set of the user call user. Next, based on the above-mentioned preprocessed user data call information set and the above-mentioned user call knowledge graph, a user data call prediction information set of the above-mentioned data call user is generated. Here, by increasing the spatial factor of the user call knowledge graph and the call information factor of the preprocessed user data call information set, the accuracy of the user data call prediction information set can be improved. Subsequently, the user value identification of the above-mentioned preprocessed user data call information set is performed to obtain user value information. Here, the identification of user value can determine the value information of the data call user, which is convenient for the subsequent determination of the priority of the user data call prediction information. Afterwards, the above-mentioned cluster load information set is input into the cluster load prediction model to obtain the cluster remaining resource prediction information set. Here, the prediction of the cluster remaining resources facilitates the subsequent determination of the data storage cluster's processing of the user data call prediction information set and the scheduling of cluster resources. Then, according to the user value information and the cluster load information set, the call priority of each user data call prediction information in the user data call prediction information set is determined to obtain a call priority set. Here, the determination of the call priority facilitates the processing of the user data call prediction information set according to the priority when the load of the data storage cluster is high or the remaining resources of the cluster cannot load the user data call prediction information set, which can improve the user experience.Finally, according to the above-mentioned call priority set and the above-mentioned cluster remaining resource prediction information set, the cluster resource scheduling information of the above-mentioned data storage cluster is generated, and according to the above-mentioned cluster resource scheduling information, the above-mentioned data storage cluster is scheduled for resources. Here, by scheduling the data storage cluster for resources with a more accurate call priority set and cluster remaining resource prediction information set, the accuracy of the cluster resource scheduling information and the optimal resource scheduling for the data storage cluster can be improved, the loss rate of the data storage cluster can be reduced, the stability of the cluster can be improved, and the processing efficiency of the user data call prediction information set can be improved. It can be obtained that the data storage cluster resource scheduling method can improve the prediction accuracy of user data calls and the accuracy of the generated cluster resource scheduling information, reduce the loss rate of the cluster, and improve the stability of the data storage cluster. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0014] Figure 1 is a flow chart of some embodiments of the data storage cluster resource scheduling method according to the present disclosure;
[0015] Figure 2 It is a structural schematic diagram of some embodiments of the data storage cluster resource scheduling device according to the present disclosure;
[0016] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0022] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0023] Figure 1 The process 100 of some embodiments of the data storage cluster resource scheduling method according to the present disclosure is shown. The data storage cluster resource scheduling method includes the following steps:
[0024] Step 101 : obtaining a user data calling information set of a data calling user and a cluster load information set of a data storage cluster.
[0025] In some embodiments, the execution subject (e.g., electronic device) of the data storage cluster resource scheduling method can obtain the user data call information set of the data call user and the cluster load information set of the data storage cluster through a wired connection or a wireless connection. Among them, the data call user can be a user who calls the data stored in the data storage cluster. The user data call information in the user data call information set can be request information that records the data call user calling the data. The data storage cluster can be a storage distributed system for user storage data resources. The cluster load information in the cluster load information set can be information obtained through a query statement that characterizes the operating status of each data storage node included in the data storage cluster. The cluster load information can include, but is not limited to, at least one of the following: CPU (Central Processing Unit) utilization, memory utilization, disk utilization, and network bandwidth utilization of the data storage node.
[0026] Step 102: pre-process the user data call information set to obtain a pre-processed user data call information set.
[0027] In some embodiments, the execution subject may preprocess the user data call information set to obtain a preprocessed user data call information set. The preprocessed user data call information in the preprocessed user data call information set may be a call information set after missing values are filled and noise is removed by filtering. In practice, the execution subject may first, in response to determining that there are missing values in the user data call information set, interpolate the missing values using cubic spline interpolation to obtain an interpolated user data call information set. Then, filter the interpolated user data call information set using sliding filtering to obtain a preprocessed user data call information set.
[0028] Step 103, generating a user call knowledge graph of the data calling user according to the preprocessed user data call information set.
[0029] In some embodiments, the execution subject may generate a user call knowledge graph of the data call user based on the preprocessed user data call information set. The user call knowledge graph may represent the associated topological information of the data call user and other data call user sets, as well as the graph relationship network of attribute information such as the call type, access address, and call resource of the user data call information of the data call user.
[0030] As an example, the execution subject may first input the preprocessed user data call information set into the entity relationship joint extraction model to obtain the user entity information set, the data call entity information set and the entity relationship set. The entity relationship joint extraction model may be a deep neural network model that takes the preprocessed user data call information set as input and takes the user entity set, the data call entity information set and the entity relationship set as output. For example, the entity relationship joint extraction model may be a convolutional neural network model. Then, the user entity information set, the book call entity information set and the entity relationship set are associated and matched to obtain the user call triple set. Then, the user call triple set is input into the graph database to obtain the user call knowledge graph.
[0031] In some optional implementations of some embodiments, generating a user call knowledge graph of the data call user according to the preprocessed user data call information set may include the following steps:
[0032] The first step is to perform word segmentation processing on the associated user information set included in the above-mentioned pre-processed user data call information set to obtain a user data call word segmentation set. The above-mentioned associated user information set can be an information set consisting of data call users and users of the data call user set with an associated relationship. The above-mentioned data call user set with an associated relationship can be a user set that calls the same data resource type. The user data call word segmentation in the above-mentioned user data call word segmentation set can be a word about each data call user obtained by performing word segmentation processing on the associated user information set based on Jieba word segmentation.
[0033] The second step is to represent the user data call word segmentation set with word vectors to obtain the user data call word segmentation vector set. The user data call word segmentation vectors in the user data call word segmentation vector set can represent the vector representation of the semantic information, grammatical information and position information of the user data call word segmentation. In practice, the execution subject can use the GloVe (Global Vectors for Word Representation) model to represent the user data call word segmentation set with word vectors to obtain the user data call word segmentation vector set.
[0034] The third step is to determine the part-of-speech information of each user data call segmentation in the above user data call segmentation set to obtain a call segmentation part-of-speech information set.
[0035] The fourth step is to perform embedded representation on the user data call word segmentation vector set according to the call word part-of-speech information set to obtain a call word segmentation feature vector set. The call word segmentation feature vector in the call word segmentation feature vector set can represent the semantic features and part-of-speech features of the user data call word segmentation vector.
[0036] As an example, the execution subject may first encode the call segmentation part-of-speech information set to obtain a part-of-speech vector set, and then concatenate the part-of-speech vector set with the user data call segmentation vector set to obtain a call segmentation feature vector set.
[0037] Step 5: Generate a user data call triple set based on the call word segmentation feature vector set and the preprocessed user data call information set. The user data call triples in the user data call triple set can represent triples of the associated topological relationship between data call users.
[0038] As an example, the execution subject may use a relation extraction model to generate a user relationship feature vector set based on the call word segmentation feature vector set and the preprocessed user data call information set. The relation extraction model may be a recurrent neural network that takes the call word segmentation feature vector set and the preprocessed user data call information set as input and takes the association relationship between any two call word segmentation feature vectors in the call word segmentation feature vector set as output. Then, the call word segmentation feature vector set and the user relationship feature vector set are subjected to association mapping processing to generate a user data call triple set.
[0039] Step 6: Input the user data call triple set into the graph database to obtain the initial call knowledge graph. The graph database may be a database that performs data query in the form of a graph and represents and stores data in the form of nodes, edges, and attributes. For example, the graph database may be a Neo4j database. The initial knowledge graph may represent the association network of the association topology information between the data call user and other data call user sets.
[0040] The seventh step is to perform knowledge reasoning on the initial call knowledge graph to obtain the user call knowledge graph. The knowledge reasoning can be a reasoning of the relationship between the nodes included in the initial call knowledge graph based on the initial call knowledge graph. The knowledge reasoning can be a path-based reasoning. In practice, the execution subject can use a path sorting algorithm to perform knowledge reasoning on the initial call knowledge graph to obtain the user call knowledge graph.
[0041] In some optional implementations of some embodiments, generating the user data call triplet set according to the call word segmentation feature vector set and the pre-processed user data call information set may include the following steps:
[0042] The first step is to extract semantic features from the above-mentioned call segmentation feature vector set to obtain a call segmentation semantic feature vector set. Among them, the call segmentation semantic feature vector in the above-mentioned call segmentation semantic feature vector set can represent the sequence characteristics of the user data call segmentation vector. In practice, the above-mentioned execution entity can input the above-mentioned call segmentation part-of-speech information set and the above-mentioned user data call segmentation vector set into a bidirectional long short-term memory neural network to obtain a call segmentation feature vector set.
[0043] The second step is to perform entity boundary detection on each call word segmentation semantic feature vector in the above call word segmentation semantic feature vector set to obtain a call word segmentation boundary feature vector set. The call word segmentation boundary feature vector in the above call word segmentation boundary feature vector set can represent the position information of each single Chinese character included in the call word segmentation semantic feature vector in the call word segmentation semantic feature vector. In practice, the above execution entity can use the BIMESO standard method to perform entity boundary detection on each call word segmentation semantic feature vector in the above call word segmentation semantic feature vector set to obtain a call word segmentation boundary feature vector set.
[0044] The third step is to perform a linear transformation on the above call segmentation boundary feature vector set to obtain a call segmentation linear feature vector set. The call segmentation linear feature vector in the above call segmentation linear feature vector set can represent the linear features and weight values of the call segmentation semantic feature vector.
[0045] The fourth step is to perform syntactic analysis on the preprocessed user data call information set to obtain a data call syntactic dependency graph. The data call syntactic dependency graph may be an association relationship graph that represents the grammatical dependency relationship between the call participles included in the preprocessed user data call information set in the form of a graph. The grammatical dependency relationship may include but is not limited to at least one of the following: subject-predicate relationship, verb-object relationship, and adverbial modification relationship.
[0046] The fifth step is to transform the data call syntactic dependency graph to obtain a data call syntactic dependency matrix. The data call syntactic dependency matrix can be a matrix that represents the grammatical dependency relationship between call participles.
[0047] The sixth step is to perform graph attention weighted processing on the above-mentioned call word segmentation linear feature vector set and the above-mentioned data call syntactic dependency matrix to obtain a sentence sequence feature vector set and a word segmentation dependency feature vector set. Among them, the sentence sequence feature vectors in the above-mentioned sentence sequence feature vector set can characterize the sequence characteristics of the call sentences in the user data call information set after preprocessing. The word segmentation dependency feature vectors in the above-mentioned word segmentation dependency feature vector set can characterize the local dependency characteristics between call segmentations. In practice, the above-mentioned execution entity can input the above-mentioned call word segmentation linear feature vector set and the above-mentioned data call syntactic dependency matrix into the graph attention network to obtain a sentence sequence feature vector set and a word segmentation dependency feature vector set.
[0048] In the seventh step, the sentence sequence feature vector set and the word segmentation dependency feature vector set are predicted to obtain a user data call triple set. The word segmentation relationship prediction can be performed by inputting the sentence sequence feature vector set and the word segmentation dependency feature vector set into a sigmoid layer to perform word segmentation relationship prediction.
[0049] Step 104: Generate a user data call prediction information set of the data calling user based on the preprocessed user data call information set and the user call knowledge graph.
[0050] In some embodiments, the execution subject may generate a user data call prediction information set of the data call user according to the preprocessed user data call information set and the user call knowledge graph. The user data call prediction information in the user data call prediction information set may be information predicting the call type, call resource, access address, etc. of the call information of the data call user in a future period. The future period may be a future day.
[0051] As an example, the execution subject may first input the preprocessed user data call information set into a long short-term memory neural network to obtain a user data call time feature vector set. Then, the user call knowledge graph is input into a graph convolutional neural network to obtain a user space feature vector set. Finally, the user data call time feature vector set and the user space feature vector set are input into a fully connected layer to obtain a user data call prediction information set.
[0052] In some optional implementations of some embodiments, generating the user data call prediction information set of the data call user according to the preprocessed user data call information set and the user call knowledge graph may include the following steps:
[0053] The first step is to extract the user topological spatial features of the user call knowledge graph to obtain a user topological feature vector set. The user topological feature vectors in the user topological feature vector set can represent the association information between data call users. In practice, the execution subject can input the user call knowledge graph into a graph convolutional neural network to obtain a user topological feature vector set.
[0054] The second step is to extract the time series features of the historical data call information set included in the above-mentioned preprocessed user data call information set to obtain a call time series feature vector set. Among them, the call time series feature vector in the above-mentioned call time series feature vector set can represent the time series feature information of the historical data call information. The historical data call information in the above-mentioned historical data call information set can be the access call information of the data resources in the data storage cluster accessed by the data calling user before the current time. In practice, Time2Vec is used to represent the time vector of the above-mentioned preprocessed user data call information set to obtain a user call time vector set. Then, the above-mentioned user call time vector set is input into the attention mechanism that represents time in the multi-head attention mechanism to obtain a call time series feature vector set.
[0055] The third step is to extract the frequency features of the historical data call information set to obtain a call frequency feature vector set. The call frequency feature vector in the call frequency feature vector set can represent the frequency feature information of the historical data call information set. In practice, the execution subject can input the historical data call information set into the attention mechanism representing the frequency in the multi-head attention mechanism to obtain the call frequency feature vector set.
[0056] The fourth step is to extract data call features from the above historical data call information set to obtain a data call feature vector set. The data call feature vector in the above data call feature vector set can represent the feature information of the call information such as the call resource and call type of the historical data call information set. In practice, the above execution subject can input the above historical data call information set into the attention mechanism that represents the data call features in the multi-head attention mechanism to obtain a call frequency feature vector set.
[0057] The fifth step is to perform feature fusion processing on the call time series feature vector set, the call frequency feature vector set and the data call feature vector set to obtain a call fusion feature vector set. The feature fusion processing can be a channel feature vector fusion of the call time series feature vector set, the call frequency feature vector set and the data call feature vector set.
[0058] Step 6: Perform regression prediction processing on the call fusion feature vector set and the user topology feature vector set to obtain a user data call prediction information set. The regression prediction processing may be inputting the call fusion feature vector set and the user topology feature vector set into a fully connected layer for regression prediction processing.
[0059] Step 105, performing user value identification on the pre-processed user data call information set to obtain user value information.
[0060] In some embodiments, the execution subject may perform user value identification on the pre-processed user data call information set to obtain user value information. The user value information may represent information about the importance of the data call user. As an example, the execution subject may use a CLV (Customer Lifetime Value) model to perform user value identification on the pre-processed user data call information set to obtain user value information.
[0061] Step 106: input the cluster load information set into the cluster load prediction model to obtain the cluster remaining resource prediction information set.
[0062] In some embodiments, the above-mentioned execution entity may input the above-mentioned cluster load information set into the cluster load prediction model to obtain a cluster remaining resource prediction information set. Among them, the cluster remaining resource prediction information in the above-mentioned cluster remaining resource prediction information set may be resource information obtained by the difference between the resource information set used by the data storage cluster and the above-mentioned cluster load information set. The above-mentioned cluster remaining resource prediction information set may include but is not limited to at least one of the following: CPU remaining resource information, network bandwidth remaining resource information, memory remaining resource information, and disk remaining resource information. The above-mentioned cluster load prediction model may be a deep neural network model that takes the cluster load information set as input and the remaining resource information of the data storage cluster in the future period as output. The above-mentioned cluster load prediction model may include a model composed of ARMA (Autoregressive moving average model) and BP (Back Propagation neural network) neural networks.
[0063] As an example, the execution subject may first decompose the cluster load information set to obtain a linear load information set and a nonlinear load information set. Then, the linear load information set and the nonlinear load information set are input into ARMA to obtain a linear time feature vector set and a nonlinear time feature vector set. Finally, the linear time feature vector set and the nonlinear time feature vector set are input into a BP neural network to obtain a cluster remaining resource prediction information set.
[0064] Step 107 , determining the calling priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set, and obtaining a calling priority set.
[0065] In some embodiments, the execution subject may determine the call priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set to obtain a call priority set. The call priority may represent the information of the order in which the data storage resource calls the user data call prediction information when it receives the user data call prediction information.
[0066] As an example, the execution subject may input the user value information and the cluster load information set into a priority evaluation model to obtain the call priority of each user data call prediction information in the user data call prediction information set, and obtain a call priority set. The finite set evaluation model may be a model that takes the user value information and the cluster load information set as input and takes the priority of the user data call prediction information as output. For example, the priority evaluation model may be a convolutional neural network.
[0067] In some optional implementations of some embodiments, determining the calling priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set to obtain the calling priority set may include the following steps:
[0068] The first step is to determine the cluster remaining resource information set of the data storage cluster according to the cluster load information set, wherein the cluster remaining resource information in the cluster remaining resource information set may be resource information corresponding to the difference between the storage resources of the data storage cluster and the cluster load information set.
[0069] As an example, the execution entity may perform difference processing between the cluster resources corresponding to the data storage cluster and the cluster load information set to obtain a cluster remaining resource information set.
[0070] The second step is to determine the number of resource peak call tokens included in the preset resource peak call container as the number of resource peak tokens. The preset resource peak call container may be a container that generates peak call tokens at a first preset rate. The preset resource peak call container may be a container for comparing a large amount of user data call information instantly received by the data storage cluster. The capacity of the preset resource peak call container may represent the maximum number of data call information that the data storage cluster can process. The resource peak call token may represent the maximum number of data source call information that the instantaneous data storage resource can process. The first preset rate may be a pre-set speed at which resource peak call tokens are generated. The first preset rate may represent the maximum rate at which the data storage cluster processes user data call information.
[0071] The third step is to determine the number of resource average call tokens included in the preset resource average call container as the resource average token number, wherein the preset resource average call container can be a container that generates average call tokens at a second preset rate. The preset resource average call container can be a container for comparing a large amount of user data call information instantly received by the data storage cluster. The capacity of the preset resource average call container can represent the minimum number of data call information that the data storage cluster can process. The resource average call token can represent the minimum number of data source call information that the instantaneous data storage cluster can process. The second preset rate can be a pre-set speed for generating resource average call tokens. The second preset rate can represent the minimum rate for processing user data call information in the data storage cluster.
[0072] Step 4: For each user data call prediction information in the above user data call prediction information set, perform the following priority determination steps:
[0073] Sub-step 1, in response to determining that the above-mentioned cluster remaining resource information set meets the condition of loading the above-mentioned user data call prediction information set, and the above-mentioned user value information is the first-level user value information, the number of data call bytes corresponding to the above-mentioned user data call prediction information and the number of resource peak tokens are compared to obtain a first peak comparison result. Among them, the above-mentioned first-level user value information may be high-value user information. The above-mentioned number of data call bytes may be the number of bytes included in the request data packet obtained after encapsulating the above-mentioned user data call prediction information into a data packet.
[0074] Sub-step 2: in response to determining that the first peak comparison result indicates that the number of bytes of the data call is less than or equal to the number of resource peak tokens, determining the first priority as the call priority. The first priority may be a high priority.
[0075] Sub-step 3, in response to determining that the first peak comparison result indicates that the data call byte number is greater than or equal to the resource peak token number, the remaining call byte number is compared with the resource average token number to obtain a first average comparison result. The remaining call byte number can be the difference between the data call byte number and the resource peak token number.
[0076] Sub-step 4: in response to determining that the first average comparison result indicates that the remaining number of call bytes is greater than or equal to the average number of resource tokens, determining the first priority as the call priority.
[0077] Sub-step 5: in response to determining that the first average comparison result indicates that the remaining call bytes are less than the resource average token quantity, determining the second priority as the call priority. The second priority may be a medium priority.
[0078] In some optional implementations of some embodiments, after determining the second priority as the call priority in response to determining that the first average comparison result indicates that the number of remaining call bytes is less than the average number of resource tokens, the method may further include the following steps:
[0079] In the first step, in response to determining that the cluster remaining resource information set meets the load condition of the user data call prediction information set, and the user value information is the second-level user value information, the data call byte quantity and the resource peak token quantity are compared to obtain a second peak comparison result. The second-level user value information may be low-level user value information.
[0080] In the second step, in response to determining that the second peak comparison result indicates that the data call byte quantity is greater than or equal to the resource peak token quantity, the remaining call byte quantity is compared with the resource average token quantity to obtain a second average comparison result.
[0081] In a third step, in response to determining that the second average comparison result indicates that the remaining call byte quantity is greater than or equal to the resource average token quantity, the second priority is determined as the call priority.
[0082] In step 4, in response to determining that the second average comparison result indicates that the remaining call bytes are less than the resource average token quantity, the third priority is determined as the call priority, wherein the third priority may be a low priority.
[0083] Step 108: Generate cluster resource scheduling information of the data storage cluster according to the call priority set and the cluster remaining resource prediction information set, and perform resource scheduling on the data storage cluster according to the cluster resource scheduling information.
[0084] In some embodiments, the execution subject may generate cluster resource scheduling information of the data storage cluster according to the call priority set and the cluster remaining resource prediction information set, and perform resource scheduling on the data storage cluster according to the cluster resource scheduling information. The cluster resource scheduling information may be information used for resource scheduling of the data storage cluster. The resource scheduling of the data storage cluster may be scheduling to increase or reduce the resources of each data storage node through the scheduling information of each data storage node included in the data storage cluster.
[0085] As an example, the execution entity may utilize a round-robin scheduling algorithm to generate cluster resource scheduling information of the data storage cluster according to the call priority set and the cluster resource prediction information set, and perform resource scheduling for the data storage cluster according to the cluster resource scheduling information.
[0086] Considering the above conventional solution uses locust optimization algorithm to determine the cluster resource scheduling information of the data storage cluster to dynamically adjust the resources of the data storage cluster, facing the above technical problem 2: Since the locust optimization algorithm uses random initialization to obtain the initial population, there is a lot of randomness, and the locust optimization algorithm is linearly decreasing with the increase of the number of executions when the locust individuals are updated, and it is impossible to perform adaptive updates, which easily causes the algorithm's optimization efficiency to be low as the number of executions increases, and falls into the local optimal solution, resulting in unbalanced resource scheduling of the data storage cluster, unstable performance of the data storage cluster, and increased damage to the data storage nodes and reduced user experience. Combined with the current technical status, it can be decided to adopt the following solution.
[0087] In some optional implementations of some embodiments, the generating of cluster resource scheduling information of the data storage cluster according to the calling priority set and the cluster remaining resource prediction information set, and performing resource scheduling on the data storage cluster according to the cluster resource scheduling information may include the following steps:
[0088] The first step is to generate an initial population of the data storage node set included in the data storage cluster according to the above-mentioned call priority set and the above-mentioned cluster remaining resource prediction information set. The above-mentioned initial population can be a feasible resource scheduling information set corresponding to the CPU remaining resources, memory remaining resources, disk remaining resources and network bandwidth remaining resources of each data storage node in the above-mentioned data storage node set. The above-mentioned resource scheduling information set can be the scheduling information of resource increase or reduction of the CPU remaining resources, memory remaining resources, disk remaining resources and network bandwidth remaining resources between each data storage node.
[0089] As an example, the execution subject may randomly generate an initial population of the data storage node set included in the data storage cluster according to the call priority set and the remaining resource range of each cluster remaining resource prediction information in the cluster remaining resource prediction information set. The remaining resource range may refer to the range between the maximum remaining resource and the minimum remaining resource of the data storage node.
[0090] The second step is to generate a reverse population of the above-mentioned initial population. The above-mentioned reverse population can be a population composed of the reverse solutions of each initial individual in the above-mentioned initial population. In practice, the above-mentioned execution subject can first determine the remaining resource range of the initial individual corresponding to the above-mentioned reverse individual for each reverse individual in the above-mentioned reverse population. Then, the sum of the maximum value and the minimum value of the above-mentioned remaining resource range and the difference with the remaining resources corresponding to the above-mentioned initial individual are determined as the reverse individual.
[0091] The third step is to set a population fitness function for the initial population and the reverse population. The population fitness function can characterize the ability of the data storage node to process the user data call prediction information. The population fitness function can be a function that each data storage node consumes the least remaining resources to complete the processing of the user data call prediction information set.
[0092] In the fourth step, the initial population and the reverse population are input into the population fitness function to obtain an initial fitness value set and a reverse fitness value set. The initial fitness value in the initial fitness value set can represent the remaining resources of the data storage cluster consumed by the randomly generated cluster resource scheduling information. The reverse fitness value in the reverse fitness value set can represent the remaining resources of the data storage cluster consumed by the reverse solution of the randomly generated cluster resource scheduling information.
[0093] The fifth step is to screen the initial population and the reverse population according to the initial fitness value set and the reverse fitness value set to obtain an initial fitness population. The initial fitness population can be a population formed by the number of initial individuals and reverse individuals included in the previous initial population with the largest initial fitness value and reverse fitness value.
[0094] As an example, the execution subject may first sort the initial fitness value set and the reverse fitness value set from small to large to obtain a fitness value sequence. Then, the fitness values of the number of initial individuals included in the previous initial population are selected from the fitness value sequence to obtain a target fitness value sequence. Finally, the initial individuals and reverse individuals corresponding to the target fitness value sequence are determined as the initial fitness population.
[0095] Step 6: Based on the initial fitness population, perform the following scheduling information determination steps:
[0096] Sub-step 1, determining the number of times the above scheduling information determination step has been executed.
[0097] Sub-step 2, in response to determining that the number of executions is less than a first preset execution threshold, based on the initial fitness population, performing the following first individual update step:
[0098] The first sub-step is to select the initial fitness individual with the largest initial fitness value corresponding to the initial fitness individual from the initial fitness population as the target initial fitness individual. The first preset execution threshold may be a threshold of half of the maximum number of executions preset in the scheduling information determination step. The initial fitness value may be a value obtained by inputting the initial fitness individual into the population fitness function.
[0099] In the second sub-step, an initial fitness individual is randomly selected from the initial fitness population as a random initial fitness individual.
[0100] The third sub-step is to compare the individual initial fitness value and the random initial fitness value to obtain a fitness comparison result. The individual initial fitness value may be the initial fitness value corresponding to the target initial fitness individual. The random initial fitness value may be the initial fitness value corresponding to the random initial fitness individual.
[0101] The fourth sub-step is to update each initial fitness individual in the initial fitness population according to the target initial fitness individual, the random initial fitness individual and the fitness comparison result to obtain a first updated individual.
[0102] As an example, the execution subject may update each initial fitness individual in the initial fitness population by using the first update formula according to the target initial fitness individual, the random initial fitness individual and the fitness comparison result to obtain a first updated individual. The first update formula may be
[0103]
[0104]
[0105]
[0106] Where X1 represents the first update formula. α1 represents the communication coefficient between the initial fitness individuals, which is set to 1. C represents the search step of the initial fitness individuals. α2 represents the victory factor of the initial fitness individuals with the largest fitness value in the fitness comparison result, which is set to any value between [0.6, 0.9]. win Indicates the initial fitness individual with the largest initial fitness value in the fitness comparison result. X i represents the initial fitness individual. α3 represents the failure factor of the initial fitness individual with a small fitness value in the fitness comparison result, which is set to any value between [0.1, 0.4]. loss Indicates the initial fitness individual with the smallest initial fitness value in the fitness comparison result. max Indicates the maximum execution threshold of the scheduling information determination step. best represents the target initial fitness individual. N represents the number of initial fitness individuals included in the initial fitness population. c represents the update submission coefficient. ub represents the maximum value of the remaining resources. lb represents the minimum value of the remaining resources. s() represents the social influence between the initial fitness individuals. x j Represents the location information of the jth initial fitness individual. i Represents the location information of the i-th initial fitness individual. ijrepresents the Euclidean distance between the initial fitness individuals and the initial fitness individuals. t represents the number of executions. c max Indicates the maximum value of the update decrement coefficient. min Indicates the minimum value of the update decrement coefficient.
[0107] Sub-step 3, in response to determining that the number of executions is greater than or equal to the first preset execution threshold, based on the obtained first updated population, executing the following second individual update step:
[0108] The first sub-step is to screen the first updated population to obtain a target updated population, wherein the target updated population may be a population formed by randomly selecting from the first updated population one half of the number of first updated individuals included in the first updated population.
[0109] In the second sub-step, the target updated population is input into the above population fitness function to obtain an updated fitness value set of the target updated population.
[0110] In the third sub-step, the target update individual corresponding to the update fitness value with the largest value is selected from the update fitness value set to obtain the selected target update individual.
[0111] The fourth sub-step is to randomly select a target update individual from the target update population to obtain a random update individual.
[0112] In the fifth sub-step, for each target update individual in the target update population, the target update individual is updated according to the screened target update individuals and the random update individuals to obtain an updated update individual.
[0113] As an example, the execution subject may use the second update formula to update each target update individual in the target update population according to the screened target update individual and the random update individual to obtain an updated update individual. The second update formula may be:
[0114]
[0115] Wherein, X2 represents the second update formula. Cauchy(0,1) represents the one-dimensional standard Cauchy distribution probability density function. Indicates loudness multiplication. X best Represents the target updated individual after screening. X rand represents a random update individual. k Represents the target update individual.
[0116] The sixth sub-step is to remove the target updated population from the first updated population to obtain the remaining population.
[0117] The seventh sub-step is to determine the remaining population as the initial fitness population, and to execute the first individual update step to obtain updated individuals as the remaining updated individuals.
[0118] In an eighth sub-step, the obtained updated updated population and the obtained remaining updated population are determined as a second updated population.
[0119] Sub-step 4, in response to determining that the number of executions has reached a second preset execution threshold, determining the second updated population as cluster resource scheduling information, and performing resource scheduling on the data storage cluster according to the cluster resource scheduling information. The second preset execution threshold may be a preset maximum number of executions of the scheduling information determination step. For example, the second preset execution threshold may be 100. The second preset execution threshold may be twice the first preset execution threshold. The resource scheduling may be a scheduling to increase or decrease the resources of each data storage node.
[0120] In the seventh step, in response to determining that the number of executions has not reached the second preset execution threshold, the first updated population or the second updated population is determined as the initial fitness population or the first updated population, and the sum of the number of executions and the preset threshold is determined as the number of executions, so as to perform the above-mentioned scheduling information determination step again. Wherein, when the above-mentioned number of executions is less than the above-mentioned first preset execution threshold, the first updated population may be determined as the initial fitness population. When the number of executions is equal to the first preset execution threshold, the first updated population may be determined as the first updated population. When the number of executions is greater than the first preset execution threshold, the second updated population may be determined as the first updated population. The above-mentioned preset threshold may be a preset value. For example, the above-mentioned preset threshold may be 1.
[0121] The above technical scheme and its related contents, as an inventive point of the embodiment of the present disclosure, solve the second technical problem mentioned in the background technology: "Since the locust optimization algorithm uses random initialization to obtain the initial population, there is a lot of randomness, and the locust optimization algorithm is linearly decreasing with the increase of the number of executions when the locust individuals are updated, and it is impossible to perform adaptive updates, which easily causes the algorithm's optimization efficiency to be low as the number of executions increases, and falls into the local optimal solution, resulting in unbalanced resource scheduling of the data storage cluster, unstable performance of the data storage cluster, and increased damage to the data storage nodes and reduced user experience." The factors that cause unbalanced resource scheduling of the data storage cluster, unstable performance of the data storage cluster, increased damage to the data storage nodes and reduced user experience are often as follows: Since the locust optimization algorithm uses random initialization to obtain the initial population, there is a lot of randomness, and the locust optimization algorithm is linearly decreasing with the increase of the number of executions when the locust individuals are updated, and it is impossible to perform adaptive updates, which easily causes the algorithm's optimization efficiency to be low as the number of executions increases, and falls into the local optimal solution. If the above factors are solved, the resource scheduling balance of the data storage cluster and the stability of the data storage cluster can be improved, and the damage to the data storage nodes can be reduced and the user experience can be improved. In order to achieve this effect, the present invention firstly performs reverse learning on the initial population to obtain the reverse population, and screens the initial population and the reverse population according to the above-mentioned initial fitness value set and the above-mentioned reverse fitness value set to obtain the initial fitness population, which can improve the quality of the initial fitness population, so that the initial fitness population is distributed as evenly as possible in the search space, which is convenient for improving the convergence rate of the initial fitness population and reducing the number of subsequent executions. Secondly, each initial fitness individual in the initial fitness population is updated in stages, and when the number of executions is less than the first preset execution threshold, the initial fitness individual is updated according to the target initial fitness individual, the random initial fitness individual and the fitness comparison result to obtain the first updated individual, and the nonlinear update decreasing coefficient can be designed by the cosine function to better improve the global search ability of the initial fitness population in the early stage and the local search ability in the later stage, avoid being limited to the local optimal solution, and the influence of the target initial fitness individual and the random initial fitness individual in the first update formula, which can expand the search range and ensure that each initial fitness individual searches in the direction of the target initial fitness individual. Then, when the number of executions is greater than or equal to the first preset execution threshold, the first updated population is randomly selected to obtain the target update population and the remaining population, the target update population is updated based on the Cauchy operator and the screened target update individuals, and the remaining population is updated with the first update formula, which can improve the ability of the first updated individuals to jump out of the local optimal solution and enhance the global search capability.Finally, the second updated population obtained is determined as the cluster resource scheduling information, and the above-mentioned data storage cluster is scheduled according to the cluster resource scheduling information. This can improve the accuracy of the cluster resource scheduling information, reduce the waste of resources of the data storage cluster and the processing rate of user data call information, and improve the stability of the data storage cluster and the user experience.
[0122] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the data storage cluster resource scheduling method of some embodiments of the present disclosure can improve the prediction accuracy of user data calls and the accuracy of the generated cluster resource scheduling information, reduce the loss rate of the cluster, and improve the stability of the data storage cluster. Specifically, the reason for the reduction of the relevant cluster processing efficiency and the high damage rate of the data storage cluster is that the time series prediction model is used to predict the user data call volume. Since the time series prediction model only focuses on the time series information of the call volume, the influencing factors considered are relatively single, resulting in a low accuracy rate of the predicted user data call information set, which in turn affects the resource optimization of the data storage cluster, resulting in a reduction in cluster processing efficiency and a high damage rate of the data storage cluster. Based on this, the data storage cluster resource scheduling method of some embodiments of the present disclosure can first obtain the user data call information set of the data call user and the cluster load information set of the data storage cluster. Here, the user data call information set and the cluster load information set are convenient for subsequent prediction and resource scheduling of the data storage cluster. Secondly, the above-mentioned user data call information set is preprocessed to obtain the preprocessed user data call information set. Here, the quality of the user data call information set can be improved and the amount of data to be processed later can be reduced. Again, based on the above-mentioned preprocessed user data call information set, a user call knowledge graph of the above-mentioned data call user is generated. Here, constructing a user call knowledge graph can increase the influence of the data call user with an associated relationship on the data call user, and improve the accuracy of the subsequent prediction of the call information set of the user call user. Next, based on the above-mentioned preprocessed user data call information set and the above-mentioned user call knowledge graph, a user data call prediction information set of the above-mentioned data call user is generated. Here, by increasing the spatial factor of the user call knowledge graph and the call information factor of the preprocessed user data call information set, the accuracy of the user data call prediction information set can be improved. Subsequently, the user value identification of the above-mentioned preprocessed user data call information set is performed to obtain user value information. Here, the identification of user value can determine the value information of the data call user, which is convenient for the subsequent determination of the priority of the user data call prediction information. Afterwards, the above-mentioned cluster load information set is input into the cluster load prediction model to obtain the cluster remaining resource prediction information set. Here, the prediction of the cluster remaining resources facilitates the subsequent determination of the data storage cluster's processing of the user data call prediction information set and the scheduling of cluster resources. Then, according to the user value information and the cluster load information set, the call priority of each user data call prediction information in the user data call prediction information set is determined to obtain a call priority set. Here, the determination of the call priority facilitates the processing of the user data call prediction information set according to the priority when the load of the data storage cluster is high or the remaining resources of the cluster cannot load the user data call prediction information set, which can improve the user experience.Finally, according to the above-mentioned call priority set and the above-mentioned cluster remaining resource prediction information set, the cluster resource scheduling information of the above-mentioned data storage cluster is generated, and according to the above-mentioned cluster resource scheduling information, the above-mentioned data storage cluster is scheduled for resources. Here, by scheduling the data storage cluster for resources with a more accurate call priority set and cluster remaining resource prediction information set, the accuracy of the cluster resource scheduling information and the optimal resource scheduling for the data storage cluster can be improved, the loss rate of the data storage cluster can be reduced, the stability of the cluster can be improved, and the processing efficiency of the user data call prediction information set can be improved. It can be obtained that the data storage cluster resource scheduling method can improve the prediction accuracy of user data calls and the accuracy of the generated cluster resource scheduling information, reduce the loss rate of the cluster, and improve the stability of the data storage cluster.
[0123] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a data storage cluster resource scheduling device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the data storage cluster resource scheduling device can be specifically applied to various electronic devices.
[0124] like Figure 2As shown, a data storage cluster resource scheduling device 200 includes: an acquisition unit 201, a preprocessing unit 202, a first generation unit 203, a second generation unit 204, a user value identification unit 205, an input unit 206, a determination unit 207 and a resource adjustment unit 208. Among them, the acquisition unit 201 is configured to: acquire a user data call information set of a data call user and a cluster load information set of a data storage cluster. The preprocessing unit 202 is configured to: preprocess the above user data call information set to obtain a preprocessed user data call information set. The first generation unit 203 is configured to: generate a user call knowledge graph of the above data call user according to the above preprocessed user data call information set. The second generation unit 204 is configured to: generate a user data call prediction information set of the above data call user according to the above preprocessed user data call information set and the above user call knowledge graph. The user value identification unit 205 is configured to: perform user value identification on the above preprocessed user data call information set to obtain user value information. The input unit 206 is configured to: input the above cluster load information set into the cluster load prediction model to obtain the cluster remaining resource prediction information set. The determination unit 207 is configured to: determine the call priority of each user data call prediction information in the above user data call prediction information set according to the above user value information and the above cluster load information set to obtain a call priority set. The resource adjustment unit 208 is configured to: generate the cluster resource scheduling information of the above data storage cluster according to the above call priority set and the above cluster remaining resource prediction information set, and perform resource scheduling on the above data storage cluster according to the above cluster resource scheduling information.
[0125] It can be understood that the units recorded in the data storage cluster resource scheduling device 200 are similar to the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the data storage cluster resource scheduling device 200 and the units included therein, and will not be described in detail here.
[0126] Reference below Figure 3 , which shows a structural schematic diagram of an electronic device (eg, an electronic device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0127] like Figure 3As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0128] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0129] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0130] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0131] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0132] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a user data call information set of a data call user and a cluster load information set of a data storage cluster; preprocesses the user data call information set to obtain a preprocessed user data call information set; generates a user call knowledge graph of the data call user based on the preprocessed user data call information set; generates a user data call prediction information set of the data call user based on the preprocessed user data call information set and the user call knowledge graph; performs user value identification on the preprocessed user data call information set to obtain user value information; inputs the cluster load information set into a cluster load prediction model to obtain a cluster remaining resource prediction information set; determines the call priority of each user data call prediction information in the user data call prediction information set based on the user value information and the cluster load information set to obtain a call priority set; generates cluster resource scheduling information of the data storage cluster based on the call priority set and the cluster remaining resource prediction information set, and performs resource scheduling on the data storage cluster based on the cluster resource scheduling information.
[0133] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0135] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a query unit and a segmentation unit. The names of these units do not constitute a limitation on the unit itself in some cases, for example, the acquisition unit may also be described as "a unit for acquiring a user data call information set of a data call user and a cluster load information set of a data storage cluster".
[0136] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0137] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A data storage cluster resource scheduling method, include: Obtain a user data calling information set of a data calling user and a cluster load information set of a data storage cluster; Preprocessing the user data call information set to obtain a preprocessed user data call information set; Generating a user call knowledge graph of the data calling user according to the preprocessed user data call information set; Generating a user data call prediction information set of the data calling user according to the preprocessed user data call information set and the user call knowledge graph; Performing user value identification on the preprocessed user data call information set to obtain user value information, wherein the user value information represents information about the importance of the data call user; Inputting the cluster load information set into a cluster load prediction model to obtain a cluster remaining resource prediction information set; Determining the calling priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set to obtain a calling priority set, wherein determining the calling priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set to obtain the calling priority set includes: Determining a cluster remaining resource information set of the data storage cluster according to the cluster load information set; Determine the number of resource peak call tokens included in a preset resource peak call container as the number of resource peak tokens, wherein the preset resource peak call container is a container that generates peak call tokens at a first preset rate; Determine the number of resource average call tokens included in a preset resource average call container as the resource average token number, wherein the preset resource average call container is a container that generates average call tokens at a second preset rate; For each user data call prediction information in the user data call prediction information set, the following priority determination steps are performed: In response to determining that the cluster remaining resource information set meets the condition of loading the user data call prediction information set, and the user value information is first-level user value information, comparing the number of data call bytes corresponding to the user data call prediction information and the number of resource peak tokens to obtain a first peak comparison result, wherein the first-level user value information is high-value user information; In response to determining that the first peak comparison result indicates that the number of data call bytes is less than or equal to the number of resource peak tokens, determining a first priority as the call priority, wherein the first priority is a high priority; In response to determining that the first peak comparison result indicates that the number of data call bytes is greater than or equal to the number of resource peak tokens, the number of remaining call bytes is compared with the average number of resource tokens to obtain a first average comparison result, wherein the number of remaining call bytes is the difference between the number of data call bytes and the number of resource peak tokens; In response to determining that the first average comparison result indicates that the number of remaining call bytes is greater than or equal to the average number of resource tokens, a first priority is determined as the call priority; in response to determining that the first average comparison result indicates that the number of remaining call bytes is less than the average number of resource tokens, a second priority is determined as the call priority, wherein the second priority is a medium priority; Cluster resource scheduling information of the data storage cluster is generated according to the call priority set and the cluster remaining resource prediction information set, and resources of the data storage cluster are scheduled according to the cluster resource scheduling information.
2. The method according to claim 1, in, The step of generating a user call knowledge graph of the data call user according to the preprocessed user data call information set includes: Performing word segmentation processing on the associated user information set included in the preprocessed user data call information set to obtain a user data call word segmentation set; Performing word vector representation on the user data call word segmentation set to obtain a user data call word segmentation vector set; Determine the call segmentation part-of-speech information of each user data call segmentation in the user data call segmentation set to obtain a call segmentation part-of-speech information set; According to the call segmentation part-of-speech information set, the user data call segmentation vector set is embeddedly represented to obtain a call segmentation feature vector set; Generate a user data call triple set according to the call word segmentation feature vector set and the preprocessed user data call information set; Input the user data call triple set into the graph database to obtain an initial call knowledge graph; Knowledge reasoning is performed on the initial call knowledge graph to obtain a user call knowledge graph.
3. The method according to claim 2, in, The step of generating a user data call triple set according to the call word segmentation feature vector set and the preprocessed user data call information set includes: Extracting semantic features from the call word segmentation feature vector set to obtain a call word segmentation semantic feature vector set; Performing entity boundary detection on each call word segmentation semantic feature vector in the call word segmentation semantic feature vector set to obtain a call word segmentation boundary feature vector set; Performing a linear transformation on the call word segmentation boundary feature vector set to obtain a call word segmentation linear feature vector set; Performing syntactic analysis on the preprocessed user data call information set to obtain a data call syntactic dependency graph; Transforming the data call syntax dependency graph to obtain a data call syntax dependency matrix; Performing graph attention weighted processing on the call word segmentation linear feature vector set and the data call syntactic dependency matrix to obtain a sentence sequence feature vector set and a word segmentation dependency feature vector set; The sentence sequence feature vector set and the word segmentation dependency feature vector set are predicted to obtain a user data call triple set.
4. The method according to claim 1, in, The step of generating a user data call prediction information set of the data call user according to the preprocessed user data call information set and the user call knowledge graph includes: Extracting user topological spatial features from the user call knowledge graph to obtain a user topological feature vector set; Extracting time series features from the historical data call information set included in the preprocessed user data call information set to obtain a call time series feature vector set; Extracting frequency features from the historical data call information set to obtain a call frequency feature vector set; Extracting data call features from the historical data call information set to obtain a data call feature vector set; Performing feature fusion processing on the call timing feature vector set, the call frequency feature vector set and the data call feature vector set to obtain a call fusion feature vector set; Regression prediction processing is performed on the call fusion feature vector set and the user topology feature vector set to obtain a user data call prediction information set.
5. The method according to claim 1, in, After determining the second priority as the call priority in response to determining that the first average comparison result indicates that the number of remaining call bytes is less than the average number of resource tokens, the method further includes: In response to determining that the cluster remaining resource information set meets the condition of loading the user data call prediction information set, and the user value information is the second-level user value information, the number of data call bytes and the number of resource peak tokens are compared to obtain a second peak comparison result, wherein the second-level user value information is low-level user value information; In response to determining that the second peak comparison result indicates that the data call byte quantity is greater than or equal to the resource peak token quantity, comparing the remaining call byte quantity with the resource average token quantity to obtain a second average comparison result; In response to determining that the second average comparison result indicates that the number of remaining call bytes is greater than or equal to the average number of resource tokens, determining the second priority as the call priority; In response to determining that the second average comparison result indicates that the remaining call byte quantity is less than the resource average token quantity, a third priority is determined as the call priority, wherein the third priority is a low priority.
6. A data storage cluster resource scheduling device, include: An acquisition unit is configured to acquire a user data call information set of a data call user and a cluster load information set of a data storage cluster; A preprocessing unit, configured to preprocess the user data call information set to obtain a preprocessed user data call information set; A first generating unit is configured to generate a user calling knowledge graph of the data calling user according to the preprocessed user data calling information set; A second generating unit is configured to generate a user data call prediction information set of the data calling user according to the preprocessed user data call information set and the user call knowledge graph; A user value identification unit is configured to perform user value identification on the preprocessed user data call information set to obtain user value information, wherein the user value information represents information about the importance of the data call user; An input unit, configured to input the cluster load information set into a cluster load prediction model to obtain a cluster remaining resource prediction information set; A determination unit is configured to determine the call priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set, and obtain a call priority set, wherein the determination of the call priority of each user data call prediction information in the user data call prediction information set according to the user value information and the cluster load information set to obtain the call priority set includes: determining the cluster remaining resource information set of the data storage cluster according to the cluster load information set; determining the number of resource peak call tokens included in the preset resource peak call container as the number of resource peak tokens, wherein the preset resource peak call container is a container for generating peak call tokens at a first preset rate; determining the number of resource average call tokens included in the preset resource average call container as the number of resource average tokens, wherein the preset resource average call container is a container for generating average call tokens at a second preset rate; for each user data call prediction information in the user data call prediction information set, performing the following priority determination steps: in response to determining that the cluster remaining resource information set meets the load condition of the user data call prediction information set, and the user value The information is user value information of the first level, the number of data call bytes corresponding to the user data call prediction information is compared with the number of resource peak tokens to obtain a first peak comparison result, wherein the user value information of the first level is high-value user information; in response to determining that the first peak comparison result indicates that the number of data call bytes is less than or equal to the number of resource peak tokens, the first priority is determined as the call priority, wherein the first priority is a high priority; in response to determining that the first peak comparison result indicates that the number of data call bytes is greater than or equal to the number of resource peak tokens, the remaining number of call bytes is compared with the average number of resource tokens to obtain a first average comparison result, wherein the remaining number of call bytes is the difference between the number of data call bytes and the number of resource peak tokens; in response to determining that the first average comparison result indicates that the remaining number of call bytes is greater than or equal to the average number of resource tokens, the first priority is determined as the call priority; in response to determining that the first average comparison result indicates that the remaining number of call bytes is less than the average number of resource tokens, the second priority is determined as the call priority, wherein the second priority is a medium priority; The resource adjustment unit is configured to generate cluster resource scheduling information of the data storage cluster according to the call priority set and the cluster remaining resource prediction information set, and perform resource scheduling on the data storage cluster according to the cluster resource scheduling information.
7. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
