Resource distribution method, device, electronic device and storage medium

By adjusting the resource distribution probability through statistical network status data and machine learning models, the problem of reduced system availability caused by the fixed resource distribution probability in the existing technology is solved, achieving efficient utilization of resources and optimizing the user experience.

CN115499319BActive Publication Date: 2024-09-06BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211137910.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-19
Publication Date
2024-09-06
Estimated Expiration
2042-09-19

AI Technical Summary

Technical Problem

When the amount of resource requests on the existing resource distribution platform exceeds the system's endurance, due to the fixed distribution probability, the overall system availability decreases and resources cannot be effectively utilized, resulting in a poor user experience and resource waste.

Method used

By counting the current status data of the network, the current network environment parameters are generated, and the machine learning model or Markov decision process model is used to determine the dynamic distribution strategy and adjust the resource distribution probability to adapt to the network processing capacity and realize real-time dynamic adjustment of the resource distribution probability.

Benefits of technology

It improves resource utilization, improves user experience, avoids system pressure when traffic is overloaded, and ensures the accuracy and real-time nature of resource distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115499319B
    Figure CN115499319B
Patent Text Reader

Abstract

The present disclosure is about a resource distribution method, device, electronic device and storage medium, belonging to the field of Internet. The resource distribution method is applied to the network side, including: in response to a resource distribution request from a terminal, statistics are collected on the current state data of the network to obtain statistical data; according to the statistical data, current simulated network environment parameters for resource distribution are generated, and based on the current simulated network environment parameters, a distribution strategy for resource distribution is determined, wherein the distribution strategy is a mapping of the simulated network environment parameters to a first parameter for resource distribution; according to the distribution strategy, the distribution probability of the current resource distribution is determined, and resources are distributed according to the probability. The present disclosure realizes real-time dynamic adjustment of the resource distribution probability, and can adapt to the current processing capacity of the network, thereby improving resource utilization and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a resource distribution method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of the Internet, most Internet platforms generally have a resource distribution platform for distributing resources.

[0003] In the distribution process of existing resource distribution platforms, the probability of resource distribution is usually fixed at a base probability. Even if the amount of resource requests exceeds the system's tolerance, the resource distribution platform will still request resources due to the fixed base probability, which will cause the overall availability of the system to decrease. Summary of the invention

[0004] The present application provides a resource distribution method to at least solve the problem in the related art that the distribution probability of resources being distributed is fixed.

[0005] According to a first aspect of an embodiment disclosed in the present application, a method for distributing resources is provided, which is applied to a network side and includes:

[0006] In response to a resource distribution request from a terminal, statistics are collected on current network status data to obtain statistical data;

[0007] Generate a current network environment parameter for resource distribution according to the statistical data, and determine a distribution strategy for resource distribution based on the current network environment parameter, wherein the distribution strategy is a mapping of the current network environment parameter to a first parameter for resource distribution;

[0008] According to the distribution strategy, the distribution probability of the current resource distribution is determined, and the resources are distributed according to the distribution probability.

[0009] As a possible implementation manner, determining a distribution strategy for resource distribution based on the current network environment parameters includes:

[0010] Using a machine learning model, learning the current network environment parameter to obtain the first parameter; determining the first parameter as the distribution strategy;

[0011] in,

[0012] The machine learning model is pre-trained to establish a mapping relationship between the simulated network environment parameters and the first parameter.

[0013] As a possible implementation manner, determining a distribution strategy for resource distribution based on the current simulation network environment parameters includes:

[0014] Constructing a Markov decision process model, the model including: state information for representing parameters of a simulation network environment, a probability coefficient adjustment for representing taking an action, a function that can be obtained in the current simulation network environment state after the probability coefficient adjustment, and a state transition function for representing the probability of state transition between different simulation network environment states corresponding to different probability coefficients;

[0015] Repeatedly adjust the probability coefficient to obtain a state transfer function of the probability coefficient adjusted each time, and according to the state transfer function, transfer to the simulation network environment state corresponding to the probability coefficient after adjustment to obtain a mapping set between the probability coefficient and the simulation network environment state,

[0016] The current network environment parameters are used as given simulated network environment state information, and the probability coefficients are repeatedly adjusted according to the mapping set between the probability coefficients and the simulated network environment states, so as to adjust the probability coefficients as a target to obtain the maximum cumulative function value, wherein the cumulative function value is the accumulation of the function value obtained by each probability coefficient, and the function value is determined according to the total network traffic and the number of error results in the network return result data,

[0017] The mapping between the probability coefficient under which the maximum cumulative function value is obtained and the simulated network environment state corresponding to the probability coefficient is determined as the distribution strategy.

[0018] As a possible implementation manner, the first parameter is a probability coefficient in the distribution strategy.

[0019] The determining, according to the distribution strategy, the distribution probability of the current resource distribution includes:

[0020] According to the probability coefficient in the distribution strategy, the distribution probability of the current resource distribution is calculated,

[0021] The distribution probability of the current resource distribution is the product of a preset reference probability and the probability coefficient.

[0022] As a possible implementation manner, the responding to the resource distribution request from the terminal further includes:

[0023] In response to a resource distribution request from a terminal, obtaining the authority control data of the resource distribution request and the current state data of the network,

[0024] According to the obtained permission control data, filter out the data without permission in the current network status data, and retain the current network status data with permission.

[0025] in,

[0026] The permission control data is associated with the account involved in the resource distribution request,

[0027] The network current status data includes flow data and server current status data, and the flow data comes from gateway reporting.

[0028] As a possible implementation, the collecting statistics of the current network status data includes:

[0029] Statistics of the current state of the network with permissions retained,

[0030] The network current status data is counted according to the reserved network current status data with authority.

[0031] As a possible implementation, the method further includes:

[0032] According to the obtained authority control data, accounts associated with the obtained authority control data are filtered out to prohibit determining the distribution probability of current resource distribution or distribution resources for the filtered accounts.

[0033] According to a second aspect of the present application, a resource distribution device is provided, the device comprising:

[0034] A statistics module is configured to collect statistics on current network status data in response to a resource distribution request from a terminal to obtain statistical data;

[0035] A decision module is configured to generate a current network environment parameter for resource distribution according to the statistical data, and determine a distribution strategy for resource distribution based on the current network environment parameter, wherein the distribution strategy is a mapping of the current network environment parameter to a first parameter for resource distribution;

[0036] The resource distribution module is configured to determine the distribution probability of the current resource distribution according to the distribution strategy, and distribute the resources according to the distribution probability.

[0037] As a possible implementation manner, the decision module is configured to use a machine learning model to learn the current network environment parameter to obtain the first parameter, and determine the first parameter as the distribution strategy;

[0038] in,

[0039] The machine learning model is pre-trained to establish a mapping relationship between the simulated network environment parameters and the first parameter.

[0040] As a possible implementation, the decision module is configured as follows:

[0041] Constructing a Markov decision process model, the model including: state information for representing parameters of a simulation network environment, a probability coefficient adjustment for representing taking an action, a function that can be obtained in the current simulation network environment state after the probability coefficient adjustment, and a state transition function for representing the probability of state transition between different simulation network environment states corresponding to different probability coefficients;

[0042] Repeatedly adjust the probability coefficient to obtain a state transfer function of the probability coefficient adjusted each time, and according to the state transfer function, transfer to the simulation network environment state corresponding to the probability coefficient after adjustment to obtain a mapping set between the probability coefficient and the simulation network environment state,

[0043] The current network environment parameters are used as given simulated network environment state information, and the probability coefficients are repeatedly adjusted according to the mapping set between the probability coefficients and the simulated network environment states, so as to adjust the probability coefficients as a target to obtain the maximum cumulative function value, wherein the cumulative function value is the accumulation of the function value obtained by each probability coefficient, and the function value is determined according to the total network traffic and the number of error results in the network return result data,

[0044] The mapping between the probability coefficient under which the maximum cumulative function value is obtained and the simulated network environment state corresponding to the probability coefficient is determined as the distribution strategy.

[0045] As a possible implementation manner, the first parameter is a probability coefficient in the distribution strategy.

[0046] The resource distribution module is configured to calculate the distribution probability of the current resource distribution according to the probability coefficient in the distribution strategy,

[0047] The distribution probability of the current resource distribution is the product of a preset reference probability and the probability coefficient.

[0048] As a possible implementation, the device further includes:

[0049] The authority control module is configured to obtain the authority control data of the resource distribution request in response to the resource distribution request from the terminal;

[0050] The load balancing module is configured to respond to a resource distribution request from a terminal, send the resource distribution request to the resource distribution module, and send the counted traffic data to the statistics module.

[0051] As a possible implementation, the statistics module is further configured to receive the permission control data from the permission control module, filter out the data with permission in the network current state data according to the obtained permission control data, and retain the network current state data with permission, wherein the network current state data includes the flow data from the load balancing module and the current state data from the resource distribution module;

[0052] The network current status data is counted according to the reserved network current status data with authority.

[0053] As a possible implementation, the resource distribution module is configured to filter out accounts associated with the acquired authority control data according to the acquired authority control data, so as to prohibit determining the distribution probability of the current resource distribution or the distribution resources for the filtered accounts.

[0054] As a possible implementation, the resource distribution module is configured to generate current network environment parameters including at least one of traffic parameters, permission control parameters, average time consumption, system parameters, and return result parameters based on at least one of the traffic data and permission control data in the statistical data.

[0055] According to a third aspect of the embodiments disclosed in the present application, there is provided an electronic device, including:

[0056] processor;

[0057] a memory for storing executable instructions for the processor;

[0058] The processor is configured to execute the executable instructions to implement any of the resource distribution methods.

[0059] According to a fourth aspect of the embodiments disclosed in the present application, a computer-readable storage medium is provided. When at least one instruction in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device can implement the resource distribution method described in any of the above-mentioned implementations.

[0060] According to a fifth aspect of the embodiments disclosed in the present application, a computer program product is provided, including a computer program, which implements the resource distribution method described above when executed by a processor.

[0061] The technical solutions provided by the embodiments disclosed in this application bring at least the following beneficial effects:

[0062] The embodiment of the present application determines the distribution strategy through the statistical data of the current state of the network, and determines the resource distribution probability based on the distribution strategy, thereby realizing real-time dynamic adjustment of the resource distribution probability, and can adapt to the current processing capacity of the network, thereby improving resource utilization and improving the user experience.

[0063] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the disclosure of the present application, and together with the specification are used to explain the principles disclosed in the present application, and do not constitute an improper limitation on the disclosure of the present application.

[0065] Figure 1 is a flow chart of a resource distribution method according to an exemplary embodiment;

[0066] Figure 2 is another flowchart diagram of a resource distribution method according to an exemplary embodiment;

[0067] Figure 3 is a flow chart of a resource distribution device according to an exemplary embodiment;

[0068] Figure 4 The diagram is a schematic diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0069] In order to enable ordinary persons in the art to better understand the technical solutions disclosed in the present application, the technical solutions in the embodiments disclosed in the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0070] It should be noted that the terms "first", "second", etc. in the specification and claims disclosed in the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments disclosed in the present application described here can be implemented in an order other than those illustrated or described here. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the disclosure of the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects disclosed in the present application as detailed in the attached claims.

[0071] During the distribution process, the existing resource distribution platform will request resources from the resource platform after confirming that the terminal has obtained distribution rights. When the number of resource requests exceeds the system's tolerance, the resource distribution platform will still request resource services from the resource platform due to the fixed probability of resource distribution, which will result in a decrease in the overall availability of the system. To avoid this situation, the resource platform will set a single machine or cluster current limiting parameter, which is usually a constant. For requests that are limited, the resource platform will return an error message, resulting in a poor user experience; in addition, the protection measure of setting a single machine or cluster current limiting parameter cannot achieve efficient use of service resources.

[0072] The embodiment of the present application provides a resource distribution method to achieve resource distribution probability adaptive to the processing capability of a resource distribution platform.

[0073] See also Figure 1 As shown, Figure 1 FIG. 1 is a flow chart of a resource distribution method according to an exemplary embodiment. The method includes:

[0074] Step 101, in response to a resource distribution request from a terminal, collect statistics on current network status data to obtain statistical data;

[0075] Step 102: generating a current network environment parameter for resource distribution according to the statistical data, and determining a distribution strategy for resource distribution based on the current network environment parameter, wherein the distribution strategy is a mapping of the current network environment parameter to a first parameter for resource distribution;

[0076] Step 103: Determine the distribution probability of the current resource distribution according to the distribution strategy, and distribute the resources according to the distribution probability.

[0077] This embodiment provides the ability to dynamically adjust the probability control of resource distribution, truly realizing quasi-real-time policy adjustment, and achieving the purpose of optimizing the user experience and improving resource utilization.

[0078] To facilitate understanding of the present application, the following description is given by taking a network composed of a server and a gateway as an example.

[0079] See also Figure 2 As shown, Figure 2 FIG. 1 is a flow chart of a resource distribution method according to an exemplary embodiment. The method includes:

[0080] Step 201: In response to an input operation, a resource distribution request for requesting a target resource is generated and sent to a gateway.

[0081] The requested target resource may be an electronic resource, specifically a virtual resource, or a rights resource, such as an electronic coupon, purchase rights, lottery rights, viewing rights, etc.

[0082] Step 202: The gateway receives the resource distribution request, parses the resource distribution request, and sends it to the resource distribution platform (server) according to the destination address obtained by parsing.

[0083] As an example, the gateway may further count the traffic of current data, and report the currently counted traffic data to the server so that the server can collect the current traffic data of each gateway.

[0084] Step 203: The resource distribution platform on the server side collects current network status data in response to the resource distribution request, wherein the traffic data comes from the gateway report.

[0085] As an example, the permission control data of the resource distribution request is also collected, where the permission control data is used to represent the permission information of the resource distribution request and is associated with the account involved in the resource distribution request;

[0086] The network current status data is used to characterize the current network operation status parameters, including but not limited to traffic parameters, authority control parameters, average time consumption, system parameters, return result parameters, etc.; wherein the authority control parameters may include black and gray account information, the average time consumption may include the average time consumed from receiving a resource distribution request to returning a result to a terminal, and the system parameters may include the CPU operation status, load capacity, computing resource scheduling of the server, etc.

[0087] The resource distribution platform may be carried by a server or a cluster service system. In this case, the resource distribution request may be sent in a load balancing manner.

[0088] Step 204: The resource distribution platform collects statistics on the collected data to obtain statistical data.

[0089] As an example, the current network status data of the unauthorized accounts can be filtered out according to the collected permission control data, and the current network status data of the authorized accounts can be retained. For example, the current network status data of the unauthorized accounts, such as the current network status data of the black and gray accounts, can be filtered out so as to check the collected current network status data;

[0090] In this way, the current state data of the network is counted based on the reserved authorized data, thereby reducing the occupation of computing resources of the resource distribution platform by the authorized data.

[0091] As another example, the current network status data for which the user does not have the permission may not be filtered out, which is helpful to reflect the real network status.

[0092] Step 205: The resource distribution platform generates current network environment parameters for resource distribution based on statistical data to obtain the current operating environment of the network.

[0093] As an example, based on at least one of the traffic data and the authority control data in the statistical data, the current network environment parameters including at least one of the traffic parameters, the authority control parameters, the average time consumption, the system parameters, and the return result parameters are generated.

[0094] Step 206: The resource distribution platform determines a distribution strategy for resource distribution according to the current network environment parameters, wherein the distribution strategy is a mapping between the current network environment parameters and the first parameter for resource distribution.

[0095] As an example, a distribution strategy can be determined in real time according to network environment parameters through a model with machine learning capabilities, or the distribution strategy can be determined by training the model based on historical statistical data, for example, using a machine learning model to learn the current network environment parameters to obtain the first parameter; the first parameter is determined as the distribution strategy; wherein the machine learning model is pre-trained to establish a mapping relationship between the simulated network environment parameters and the first parameter; in addition, the distribution strategy can also be used through a pre-established mapping relationship between the network environment parameters and the probability coefficient.

[0096] The following uses the reinforcement learning model as an example. In this example, a Markov decision process model quadruple {S, A, R, T} is constructed;

[0097] S represents the status information of the simulated network environment, including traffic parameters, permission control parameters, average time consumption, system parameters, and return result parameters.

[0098] A represents the action taken, that is, the adjustment of the probability coefficient, and the probability coefficient ranges from [0,1].

[0099] R represents the feedback that can be obtained in the simulated network environment after taking action, which is called a function in this application, that is, in the current simulated network environment state, the current probability coefficient is adjusted, and the expectation of the corresponding simulated network environment state after the probability coefficient is adjusted. The function value that can be obtained for each probability coefficient is accumulated to obtain the cumulative function value. The function specifically obtains the total network traffic N through the obtained statistical traffic data and the returned result data. total 、The number of error results in the returned result data N error , and according to the total network traffic N total、The number of error results in the returned result data N error To calculate the function value R, the specific calculation can be:

[0100] R=N total 2 / (1+N error )

[0101] T represents the state transfer function from the simulated network environment state corresponding to one probability coefficient to the simulated network environment state corresponding to another probability coefficient, that is, the state transfer function of the state transfer probability between different simulated network environment states corresponding to different probability coefficients. In other words, the change of the probability coefficient will affect the state of the simulated network environment. If the value of any environmental parameter in the simulated network environment state changes, the simulated network environment state is in a new state, and the change of this state is the state transfer. For example, in the current simulated network environment state s0, adjust the current probability coefficient, obtain the function value r0 from the simulated network environment, and the simulated network environment enters the next state s1. The transition from s0 to s1 is the state transfer function t.

[0102] Based on the constructed Markov decision process model, each time the probability coefficient is adjusted, a state transfer occurs, and the simulated network environment corresponding to the probability coefficient adjusted this time is obtained. The probability coefficient is adjusted repeatedly in this way, and then the state transfer function is used to transfer to the simulated network environment state corresponding to the probability coefficient after adjustment, and a mapping set of the probability coefficient and the simulated network environment state is obtained, thereby obtaining an optimized dynamic strategy generated in the simulated network environment;

[0103] The current network environment parameters are used as given simulated network environment state information, and the mapping set of probability coefficients and simulated network environment states is followed to obtain the maximum cumulative function value, and the probability coefficients are repeatedly adjusted to finally achieve real-time decision-making based on the current network environment parameters.

[0104] The mapping between the probability coefficient under which the maximum cumulative function value is obtained and the simulated network environment state corresponding to the probability coefficient is determined as the distribution strategy.

[0105] Step 207: The resource distribution platform determines the distribution probability of the current resource distribution according to the distribution strategy.

[0106] As an example, the resource distribution platform calculates the distribution probability of the current resource distribution according to the probability coefficient in the distribution strategy, and the distribution probability of the current resource distribution is the product of the preset base probability and the probability coefficient. It can be expressed as:

[0107] P 分发 =P 基准 *A

[0108] Among them, A is the probability coefficient.

[0109] Furthermore, after determining the distribution probability of the current resource distribution, the black and gray accounts are filtered out according to the obtained permission control data to prohibit the distribution of resources to the black and gray accounts, thereby avoiding the distribution of resources to illegal accounts;

[0110] In addition, after determining the distribution strategy, the black and gray market accounts may be filtered out according to the obtained permission control data to prohibit determining the distribution probability of the current resource distribution for the black and gray market accounts.

[0111] Step 208: The resource distribution platform queries the resource platform for available resource configurations, and determines whether to distribute the target resource to the resource distribution request based on the resource configurations.

[0112] If yes, apply for the target resource from the resource platform, and distribute the target resource according to the distribution probability of the current resource distribution.

[0113] Otherwise, a prompt not to distribute is returned to the terminal.

[0114] This embodiment realizes the ability to adaptively adjust the resource distribution probability based on the currently counted quasi-real-time data, so as to provide the optimal resource distribution probability and truly realize the quasi-real-time distribution strategy adjustment. In this way, when the traffic data is overloaded, the server capacity is fully utilized and distribution is performed with a reasonable distribution probability, so as to adjust the system pressure when the traffic is overloaded, avoid returning a large amount of error information to the terminal, improve the user experience, and improve resource utilization; further, the distribution strategy is dynamically adjusted through autonomous learning, which can adapt to the diversity of the operating status of the resource distribution platform, which is conducive to improving the accuracy and real-time performance of the distribution probability of resource distribution. Figure 3 As shown, Figure 3 1 is a schematic diagram of a resource distribution device according to an exemplary embodiment. The device includes a resource distribution platform, and the resource distribution platform includes:

[0115] The statistics module 31 is configured to collect statistics on the current state data of the network in response to the resource distribution request from the terminal to obtain statistical data;

[0116] A decision module 32, configured to generate current network environment parameters for resource distribution according to the statistical data;

[0117] The resource distribution module 33 is configured to determine a distribution strategy for resource distribution based on the current network environment parameters, wherein the distribution strategy is a mapping of the network environment parameters to the first parameter for resource distribution; according to the distribution strategy, determine the distribution probability of the current resource distribution, and distribute resources according to the distribution probability.

[0118] The decision module 31 is configured to use a machine learning model to learn the current network environment parameter to obtain the first parameter, and determine the first parameter as the distribution strategy;

[0119] in,

[0120] The machine learning model is pre-trained to establish a mapping relationship between the simulated network environment parameters and the first parameter.

[0121] The decision module 31 is configured as follows:

[0122] Constructing a Markov decision process model, the model including: state information for representing parameters of a simulation network environment, a probability coefficient adjustment for representing taking an action, a function that can be obtained in the current simulation network environment state after the probability coefficient adjustment, and a state transition function for representing the probability of state transition between different simulation network environment states corresponding to different probability coefficients;

[0123] Repeatedly adjust the probability coefficient to obtain a state transfer function of the probability coefficient adjusted each time, and according to the state transfer function, transfer to the simulation network environment state corresponding to the probability coefficient after adjustment to obtain a mapping set between the probability coefficient and the simulation network environment state,

[0124] The current network environment parameters are used as given simulated network environment state information, and the probability coefficients are repeatedly adjusted according to the mapping set between the probability coefficients and the simulated network environment states, so as to adjust the probability coefficients as a target to obtain the maximum cumulative function value, wherein the cumulative function value is the accumulation of the function value obtained by each probability coefficient, and the function value is determined according to the total network traffic and the number of error results in the network return result data,

[0125] The mapping between the probability coefficient under which the maximum cumulative function value is obtained and the simulated network environment state corresponding to the probability coefficient is determined as the distribution strategy.

[0126] The resource distribution module 33 is configured to calculate the distribution probability of the current resource distribution according to the probability coefficient in the distribution strategy.

[0127] According to at least one of the traffic data and the authority control data in the statistical data, a current network environment parameter including at least one of the traffic parameter, the authority control parameter, the average time consumption, the system parameter, and the return result parameter is generated.

[0128] The distribution probability of the current resource distribution is the product of the preset base probability and the probability coefficient.

[0129] The device further comprises:

[0130] The authority control module 34 is configured to collect the authority control data of the resource distribution request in response to the resource distribution request from the terminal;

[0131] The load balancing module 35 is configured to respond to a resource distribution request from a terminal, send the resource distribution request to the resource distribution module, and send the counted traffic data to the statistics module.

[0132] The statistical module 31 is further configured to receive the permission control data from the permission control module, filter out the data without permission in the current network status data according to the obtained permission control data, and retain the current network status data with permission, wherein the current network status data includes the traffic data from the load balancing module and the current network status data from the resource distribution module; and count the current network status data according to the retained data with permission.

[0133] The resource distribution module 33 is configured to obtain permission control data from the permission control module, and filter out accounts associated with the obtained permission control data according to the obtained permission control data, so as to prohibit determining the distribution probability or distribution resources of the current resource distribution for the filtered accounts.

[0134] The device further includes a resource platform, and the resource platform includes:

[0135] The resource configuration module 36 is configured to respond to the query of the currently available resource configuration from the resource distribution module and return the currently available resource configuration to the resource distribution module, so that the resource distribution module determines whether to distribute the target resource to the resource distribution request according to the returned currently available resource configuration, and if so, apply for the target resource, otherwise, return a prompt of not distributing;

[0136] The resource module 37 is configured to return the requested target resource to the resource distribution module in response to the request for the target resource from the resource distribution module.

[0137] Compared with the existing distribution method with fixed resource distribution probability, the resource distribution device of this embodiment can realize dynamic adjustment of resource distribution probability according to current real-time data, provide better resource distribution probability, and improve user experience.

[0138] As another implementation, the decision module 32 may also be an intelligent entity independent of the resource distribution platform and having intelligent decision-making capabilities.

[0139] See also Figure 4 As shown, Figure 4The electronic device includes a processor; a memory for storing executable instructions of the processor;

[0140] The processor is configured to execute the executable instructions to implement any of the resource distribution methods.

[0141] In an exemplary embodiment, a computer-readable storage medium including at least one instruction is also provided, such as a memory including at least one instruction. The at least one instruction can be executed by a processor in a computer device to complete the resource distribution method described in the above embodiment.

[0142] Optionally, the above-mentioned computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may include ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage device, etc.

[0143] In an exemplary embodiment, a computer program product is further provided, including one or more instructions, which can be executed by a processor of a computer device to complete the resource distribution method described in each of the above embodiments.

[0144] Those skilled in the art will readily appreciate other embodiments disclosed in the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation disclosed in the present application, which follows the general principles disclosed in the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0145] It should be understood that the present disclosure is not limited to the precise structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for distributing resources, characterized in that: Applied to the network side, including: In response to the resource distribution request, statistics are collected on the current state data of the network to obtain statistical data; Generating current network environment parameters for resource distribution according to the statistical data; Based on the current network environment parameter, determining a distribution strategy for resource distribution, wherein the distribution strategy is: a mapping of the current network environment parameter to a first parameter for resource distribution; Determine the distribution probability of the current resource distribution according to the distribution strategy, and distribute the resources according to the distribution probability; in, The determining, based on the current network environment parameters, a distribution strategy for resource distribution includes: Constructing a Markov decision process model, the model including: simulated network environment state information for representing the simulated network environment state, a probability coefficient for adjustment, a function for representing feedback that can be obtained in the current simulated network environment state after the probability coefficient is adjusted, and a state transition function for representing the state transition probability between different simulated network environment states corresponding to different probability coefficients; Repeatedly adjust the probability coefficient to obtain a state transfer function of the probability coefficient adjusted each time, and according to the state transfer function, transfer to the simulation network environment state corresponding to the probability coefficient after adjustment to obtain a mapping set between the probability coefficient and the simulation network environment state, Taking the current network environment parameters as given simulated network environment state information, following the mapping set of the probability coefficients and the simulated network environment states, the probability coefficients are adjusted with the goal of obtaining a maximum cumulative function value, wherein the cumulative function value is the accumulation of the function values ​​obtained by each probability coefficient, and the function value is determined according to the total network traffic and the number of error results in the network return result data; Determine the mapping between the probability coefficient under which the maximum cumulative function value is obtained and the simulation network environment state corresponding to the probability coefficient as the distribution strategy; Among them, the probability coefficient belongs to the first parameter; The determining, according to the distribution strategy, the distribution probability of the current resource distribution includes: According to the probability coefficient in the distribution strategy, the distribution probability of the current resource distribution is calculated, The distribution probability of the current resource distribution is the product of a preset reference probability and the probability coefficient.

2. The method according to claim 1, characterized in that: The responding to the resource distribution request further comprises: In response to a resource distribution request from a terminal, obtaining the authority control data of the resource distribution request and the current state data of the network, According to the obtained permission control data, filter out the current status data of the network that does not have permission, and retain the current status data of the network with permission, in, The permission control data is associated with the account involved in the resource distribution request, The network current status data includes flow data and server current status data, and the flow data comes from the gateway report.

3. The method according to claim 2, characterized in that The statistics of the current network status data include: The network current status data is counted according to the reserved network current status data with permission.

4. The method according to claim 1 or 2, characterized in that: The method further comprises: According to the obtained authority control data, accounts associated with the obtained authority control data are filtered out to prohibit determining the distribution probability of current resource distribution or the distribution of resources for the filtered accounts.

5. The method according to claim 1, characterized in that The current network environment parameters for resource distribution are generated based on the statistical data, including: based on the traffic data and authority control data in the statistical data, the current network environment parameters including at least one of the traffic parameters, authority control parameters, average time consumption, system parameters, and return result parameters are generated.

6. A resource distribution device, characterized in that: The device comprises: A statistics module is configured to collect statistics on the current state data of the network in response to the resource distribution request to obtain statistical data; A decision module is configured to generate a current network environment parameter for resource distribution according to the statistical data, and determine a distribution strategy for resource distribution based on the current network environment parameter, wherein the distribution strategy is a mapping of the current network environment parameter to a first parameter for resource distribution; A resource distribution module, configured to determine a distribution probability of current resource distribution according to the distribution strategy, and distribute resources according to the distribution probability; in, The decision module is configured as follows: Constructing a Markov decision process model, the model including: state information for representing parameters of a simulation network environment, a probability coefficient adjustment for representing taking an action, a function that can be obtained in the current simulation network environment state after the probability coefficient adjustment, and a state transition function for representing the probability of state transition between different simulation network environment states corresponding to different probability coefficients; Repeatedly adjust the probability coefficient to obtain a state transfer function of the probability coefficient adjusted each time, and according to the state transfer function, transfer to the simulation network environment state corresponding to the probability coefficient after adjustment to obtain a mapping set between the probability coefficient and the simulation network environment state, The current network environment parameters are used as given simulated network environment state information, and the probability coefficients are adjusted according to the mapping set between the probability coefficients and the simulated network environment states to obtain the maximum cumulative function value, wherein the cumulative function value is the accumulation of the function value obtained by each probability coefficient, and the function value is determined according to the total network traffic and the number of error results in the network return result data. The mapping between the probability coefficient under which the maximum cumulative function value is obtained and the simulated network environment state corresponding to the probability coefficient is determined as the distribution strategy, The first parameter is the probability coefficient in the distribution strategy, The resource distribution module is configured to calculate the distribution probability of the current resource distribution according to the probability coefficient in the distribution strategy, The distribution probability of the current resource distribution is the product of a preset reference probability and the probability coefficient.

7. The device according to claim 6, characterized in that The device further comprises: The authority control module is configured to obtain the authority control data of the resource distribution request in response to the resource distribution request from the terminal; The load balancing module is configured to respond to a resource distribution request from a terminal, send the resource distribution request to the resource distribution module, and send the counted traffic data to the statistics module.

8. The device according to claim 7, characterized in that The statistics module is further configured to receive the permission control data from the permission control module, filter out the network current status data without permission according to the obtained permission control data, and retain the network current status data with permission, wherein the network current status data includes the flow data from the load balancing module and the current status data from the resource distribution module; The network current status data is counted according to the reserved network current status data with permission.

9. The device according to claim 6 or 7, characterized in that The resource distribution module is configured to filter out accounts associated with the obtained authority control data according to the obtained authority control data, so as to prohibit determining the distribution probability of current resource distribution or distribution resources for the filtered accounts.

10. The device according to claim 6, characterized in that The resource distribution module is configured to generate current network environment parameters including at least one of flow parameters, authority control parameters, average time consumption, system parameters, and return result parameters according to flow data and authority control data in statistical data.

11. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the executable instructions to implement the resource distribution method as claimed in any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that: When at least one instruction in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to implement the resource distribution method as claimed in any one of claims 1 to 5.