CN112015542A - Resource collection method, device and storage medium - Google Patents

Resource collection method, device and storage medium Download PDF

Info

Publication number
CN112015542A
CN112015542A CN201910457581.4A CN201910457581A CN112015542A CN 112015542 A CN112015542 A CN 112015542A CN 201910457581 A CN201910457581 A CN 201910457581A CN 112015542 A CN112015542 A CN 112015542A
Authority
CN
China
Prior art keywords
resource
pool
information
resource pool
resource object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910457581.4A
Other languages
Chinese (zh)
Inventor
潘仲光
李红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201910457581.4A priority Critical patent/CN112015542A/en
Publication of CN112015542A publication Critical patent/CN112015542A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources

Abstract

The embodiment of the application provides a resource collection method, equipment and a storage medium. In this embodiment of the present application, for a resource pool selected by a first resource object in a reference resource object, information of the first resource object and information of the resource pool selected by the first resource object are provided to an auxiliary resource object, and then the auxiliary resource object may select a target resource pool from the resource pools selected by the first resource object according to the information of the first resource object and the information of the resource pool selected by the first resource pool, and provide a free resource to the target resource pool. Therefore, the idle resources of the auxiliary resource object can be collected, conditions are provided for the subsequent reallocation of the idle resources, and the idle resources are reduced, so that the resource flow is promoted, and the resource utilization rate is improved.

Description

Resource collection method, device and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a resource collection method, device, and storage medium.
Background
With the development of internet technology, network resources are more and more abundant, and in order to enable users to have better network experience, the network resources need to be reasonably distributed. For example, in network communication, in order to enable a user to have a better internet experience, bandwidth resources need to be reasonably allocated.
In the existing network resource allocation mode, a specific resource is authorized to a specific user, and other users cannot use the specific resource, so that the authorized resource is easily in an idle state, the waste of network resources is caused, and the utilization rate of the network resources is low.
Disclosure of Invention
Aspects of the present application provide a resource collection method, device, and storage medium for collecting idle resources, which provide conditions for subsequently redistributing the idle resources, and further contribute to improving resource utilization.
The embodiment of the application provides a resource collection method, which comprises the following steps:
receiving information of a first resource object sent by the first resource object and identification information of at least one resource pool selected by the first resource object; the first resource object is any one of the reference resource objects;
determining the information of the at least one resource pool according to the identification information of the at least one resource pool;
providing information of the first resource object and information of the at least one resource pool to an auxiliary resource object to collect free resources from the auxiliary resource object;
receiving idle resources provided by a second resource object to a target resource pool according to the information of the selected target resource pool; the second resource object is one or more of the auxiliary resource objects; the target resource pool selected by each second resource object is one or more of the at least one resource pool.
An embodiment of the present application further provides a computer device, which includes: a memory, a processor, and a communications component; wherein the content of the first and second substances,
the memory for storing a computer program;
the processor is coupled to the memory for executing the computer program for:
receiving, by the communication component, information of a first resource object sent by the first resource object and identification information of at least one resource pool selected by the first resource object; the first resource object is any one of the reference resource objects;
determining the information of the at least one resource pool according to the identification information of the at least one resource pool;
providing, by the communication component, information of the first resource object and information of the at least one resource pool to a secondary resource object to collect free resources from the secondary resource object;
receiving, by the communication component, free resources provided by a second resource object to the target resource pool according to information of the selected target resource pool; the second resource object is one or more of the auxiliary resource objects; the target resource pool selected by each second resource object is one or more of the at least one resource pool.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method.
In this embodiment of the present application, for a resource pool selected by a first resource object in a reference resource object, information of the first resource object and information of the resource pool selected by the first resource object are provided to an auxiliary resource object, and then the auxiliary resource object may select a target resource pool from the resource pools selected by the first resource object according to the information of the first resource object and the information of the resource pool selected by the first resource pool, and provide a free resource to the target resource pool. Therefore, the idle resources of the auxiliary resource object can be collected, conditions are provided for the subsequent reallocation of the idle resources, and the idle resources are reduced, so that the resource flow is promoted, and the resource utilization rate is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1a is a schematic structural diagram of a resource collection system according to an embodiment of the present disclosure;
fig. 1b is a schematic structural diagram of a resource interface according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a resource collection method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a resource processing method according to an embodiment of the present application;
fig. 4a is a schematic flowchart of another resource processing method according to an embodiment of the present application;
fig. 4b is a flowchart illustrating a method for determining resource reallocation qualification of a resource pool according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another resource processing method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
To the technical problem that the existing resource utilization rate is low, the embodiment of the application provides a solution, and the basic idea is as follows: and aiming at the resource pool selected by the first resource object in the reference resource object, providing the information of the first resource object and the information of the resource pool selected by the first resource object to the auxiliary resource object, and then the auxiliary resource object can select a target resource pool from the resource pool selected by the first resource object and provide free resources for the target resource pool according to the information of the first resource object and the information of the resource pool selected by the first resource pool. Therefore, the idle resources of the auxiliary resource object can be collected, conditions are provided for the subsequent reallocation of the idle resources, and the idle resources are reduced, so that the resource flow is promoted, and the resource utilization rate is improved.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1a is a schematic structural diagram of a resource collection system according to an embodiment of the present disclosure. As shown in fig. 1a, the system comprises: a server device 10a and at least one terminal device 10 b.
The server device 10a and each terminal device 10b may be connected wirelessly or by wire. Alternatively, the server device 10a may be communicatively connected to the terminal device 10b through a mobile network, and accordingly, the network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G, WiMax, or other formats appearing in the future. Alternatively, the server device 10a may also be communicatively connected to each terminal device 10b through bluetooth, WiFi, infrared, or the like.
In this embodiment, the server device 10a is a computer device capable of performing resource management and providing a service related to resource processing to a resource object in response to a request from the terminal device 10b, and generally has the capability of undertaking and securing the service. The server device 10a may be a single server device, a cloud server array, or a Virtual Machine (VM) running in the cloud server array. In addition, the server device may also refer to other computing devices with corresponding service capabilities, such as a terminal device (running a service program) such as a computer.
In this embodiment, the terminal device 10b is a computer device used by a resource object and having functions required by the resource object, such as computing, networking, and communication, and may be, for example, a smart phone, a tablet computer, a personal computer, and a wearable device. The terminal device 10b typically comprises at least one processing unit and at least one memory. The number of processing units and memories depends on the configuration and type of terminal device 10 b. The Memory may include volatile, such as RAM, non-volatile, such as Read-Only Memory (ROM), flash Memory, etc., or both. The memory typically stores an Operating System (OS), one or more application software, such as instant messaging software corresponding to the server 10a, and program data. In addition to the processing unit and the memory, the terminal device 10b may also include a network card chip, an IO bus, an audio/video component, and other basic configurations. Optionally, depending on the implementation of the terminal device 10b, the terminal device 10b may also include some peripheral devices, such as a keyboard, a mouse, a stylus, a printer, etc. These peripheral devices are well known in the art and will not be described in detail herein.
In this embodiment, each resource object may include: a reference resource object and an auxiliary resource object. For each resource object, the number of the reference resource objects is 1, and the number of the auxiliary resource objects may be 1 or more. Wherein, a plurality means 2 or more. Furthermore, the reference resource object is mainly used for selecting a resource pool, and the auxiliary resource object is mainly used for providing idle resources with corresponding limits for the resource pool selected by the reference resource object. Optionally, the reference resource object may also provide free resources to its selected resource pool, in which case the reference resource object acts as a secondary resource object in addition to the selected resource pool.
In the present embodiment, the terminal device 10b1 of the reference resource object may install an APP or a client related to the resource reallocation information. Accordingly, the reference resource object may provide the resource reallocation information through the APP or client access server device 10a associated with the resource reallocation information on its 10b 1. Alternatively, the reference resource object may access the server device 10a through a web page or a website provided by the server device 10 a. Further, in the case where the reference resource object accesses the server apparatus 10a through its terminal apparatus 10b1, the server apparatus 10a provides the reference resource object with the resource reallocation information. Wherein the resource reallocation information comprises a plurality of resource pools and information for each resource pool.
Accordingly, as shown in FIG. 1b, a resource interface may be exposed on the terminal device 10b1 of the reference resource object. The resource interface comprises: a plurality of resource pools, and information for each resource pool. The information of each resource pool is used for introducing the condition of each resource pool, so that the reference resource object can determine whether to select the corresponding resource pool. Further, the reference resource object may select a resource pool by its terminal device. In the embodiment of the present application, for convenience of description and distinction, a reference resource object of a currently selected resource pool is defined as a first resource object, where the first resource object is any one of the reference resource objects. Further, the first resource object may select one or more resource pools from a plurality of resource pools. Accordingly, the terminal device of the first resource object may determine at least one resource pool selected by the first resource object in response to the selection operation of the first resource object on the plurality of resource pools. Further, the terminal device 10b1 of the first resource object may send the identification information of the at least one resource pool selected by the first resource object and the information of the first resource object to the server device 10 a. Wherein the information of the first resource object may be provided by the first resource object through its terminal device 10b 1. For example, the first resource object may enter its information through its terminal device 10b1, and so on. In this embodiment, the information of the first resource object is different due to different application scenarios to which the resource collection method provided by this embodiment is applicable. This part will be explained in the following method embodiments, and will not be described herein again.
Alternatively, the terminal device 10b1 of the first resource object may send, in response to the selection operation of the first resource object on the multiple resource pools, information of the first resource object and identification information of at least one resource pool selected by the first resource object to the server device 10 a. . Or, a determination control is arranged on the resource interface, and the first resource object can trigger the determination control. Accordingly, the terminal device 10b1 of the first resource object may send, in response to the triggering operation of the determination control by the first resource object, the information of the first resource object and the identification information of the at least one resource pool selected by the first resource object to the server device 10 a. Further, the server device 10a receives the information of the first resource object and the identification information of the at least one resource pool selected by the first resource object, determines the information of the at least one resource pool according to the identification information of the at least one resource pool selected by the first resource object, and provides the information of the first resource object and the information of the at least one resource pool selected by the first resource object to the terminal device 10b2 of the auxiliary resource object, so as to collect the free resources to the auxiliary resource object 10b 2. Optionally, the server device 10a may directly provide the information of the first resource object and the information of the first resource pool to the auxiliary resource object, or may forward the information of the first resource object to the auxiliary resource object. When the information of the first resource object and the information of the first resource pool are forwarded to the auxiliary resource object by the first resource object, the server device 10a may send the information of the first resource object and the information of the first resource pool to the terminal device 10b1 of the first resource object. Accordingly, the first resource object may forward this information to the auxiliary resource object via its terminal device 10b 1.
Further, the auxiliary resource object may determine whether to assist the first resource object and which resource pool the first resource object participates in by information of the first resource object and information of the at least one resource pool. If a second resource object of the auxiliary resource objects determines that the auxiliary first resource object participates in a target resource pool of the at least one resource pool, free resources may be provided to the target resource pool by its terminal device 10b 2. Accordingly, the server device 10a receives the idle resources provided by the second resource object, i.e. implements the collection of the idle resources. Wherein the second resource object may be one or more of the auxiliary resource objects, and the target resource pool selected by each second resource object is one or more of the at least one resource pool selected by the first resource object.
It should be noted that, in the embodiment of the present application, the reference resource object may also directly provide free resources to at least one resource pool selected by the reference resource object. In this case, the reference resource object is also the auxiliary resource object, that is, the terminal device 10b1 of the reference resource object and the terminal device 10b2 of the auxiliary resource object may be the same device.
The resource collection system provided in this embodiment is implemented by a server device and a terminal device, where the server device provides, for a resource pool selected by a first resource object in a reference resource object, information of the first resource object and information of the resource pool selected by the first resource object to an auxiliary resource object, and the auxiliary resource object may select a target resource pool from the resource pool selected by the first resource object and provide a free resource to the target resource pool according to the information of the first resource object and the information of the resource pool selected by the first resource pool. Therefore, the idle resources of the auxiliary resource object can be collected, conditions are provided for the subsequent reallocation of the idle resources, and the idle resources are reduced, so that the resource flow is promoted, and the resource utilization rate is improved.
It should be noted that the resource collection system provided in this embodiment is only exemplified by the system architecture of the client/server, and is not limited thereto.
In addition to the resource collection system provided in the foregoing embodiment, an embodiment of the present application also provides a resource collection method, and the resource collection method provided in the embodiment of the present application is exemplarily described below from the perspective of a server device that collects resources.
Fig. 2 is a flowchart illustrating a resource processing method according to an embodiment of the present application. As shown in fig. 2, the method includes:
201. and receiving the information of the first resource object sent by the first resource object and the identification information of at least one resource pool selected by the first resource object. The first resource object is any one of the reference resource objects.
202. And determining the information of at least one resource pool according to the identification information of at least one resource pool selected by the first resource object.
203. Information of the first resource object and information of the at least one resource pool are provided to the auxiliary resource object to collect free resources from the auxiliary resource object.
204. And receiving idle resources provided by the second resource object to the target resource pool according to the information of the selected target resource pool. Wherein the second resource object is one or more of the auxiliary resource objects; the target resource pool selected by each second resource object is one or more of the at least one resource pool.
In this embodiment, each resource object may include: a reference resource object and an auxiliary resource object. For each resource object, the number of the reference resource objects is 1, and the number of the auxiliary resource objects may be 1 or more. Wherein, a plurality means 2 or more. Furthermore, the reference resource object is mainly used for selecting a resource pool, and the auxiliary resource object is mainly used for providing idle resources with corresponding limits for the resource pool selected by the reference resource object. Optionally, the reference resource object may also provide free resources to its selected resource pool, in which case the reference resource object acts as a secondary resource object in addition to the selected resource pool.
In this embodiment, the reference resource object may select a resource pool from a plurality of resource pools. The generation manner of the multiple resource pools will be described in the following embodiments, and will not be described herein again. For convenience of expression and distinction, a reference resource object that selects a resource pool from a plurality of resource pools is defined as a first resource object, wherein the first resource object may be any one of the reference resource objects. In this embodiment, the first resource object may select one or more resource pools from a plurality of resource pools. Accordingly, for the computer device used when the first resource object selects the resource pool, the information of the first resource object and the identification information of the at least one resource pool selected by the first resource object may be sent to the server device in response to the operation of the first resource object to select the at least one resource pool from the plurality of resource pools. In some embodiments of the present application, for convenience of description, the at least one resource pool selected by the first resource object is abbreviated as at least one resource pool. Correspondingly, in step 201, the server device receives the information of the first resource object and the identification information of the at least one resource pool selected by the first resource object, and in step 202, determines the information of the at least one resource pool according to the identification information of the at least one resource pool selected by the first resource object. Next, in step 203, information of the first resource object and information of the at least one resource pool are provided to the auxiliary resource object. The identification information of each resource pool is information uniquely characterizing the resource pool, and may be, for example, a serial number, an ID, a name, or the like of the resource pool, but is not limited thereto. The information of each resource pool is information describing the situation of the resource pool. Alternatively, it may be a threshold amount of resources corresponding to the resource pool, and so on.
Further, the auxiliary resource object may determine whether to assist the first resource object and which resource pool the first resource object participates in by information of the first resource object and information of the at least one resource pool. If the second resource object in the auxiliary resource objects determines that the auxiliary first resource object participates in the target resource pool in the at least one resource pool, the computer equipment can provide free resources for the target resource pool. Accordingly, in step 204, the server device receives the idle resources provided by the second resource object, that is, the collection of the idle resources is realized. Wherein the second resource object may be one or more of the auxiliary resource objects, and the target resource pool selected by each second resource object is one or more of the at least one resource pool selected by the first resource object.
It should be noted that, the second resource object is information corresponding to the first resource pool through the first resource object, and the server device may determine that the free resource provided by the second resource object to the first resource pool is auxiliary to the first resource object according to the information.
It should be noted that, in the embodiment of the present application, the reference resource object may also directly provide free resources to at least one resource pool selected by the reference resource object. In this case, the reference resource object is also an auxiliary resource object, that is, the computer device of the reference resource object and the computer device of the auxiliary resource object may be the same device. The implementation forms of the server device and the computer device will be exemplified below with reference to different application scenarios, which are not repeated herein.
In this embodiment of the present application, for a resource pool selected by a first resource object in a reference resource object, information of the first resource object and information of the resource pool selected by the first resource object are provided to an auxiliary resource object, and then the auxiliary resource object may select a target resource pool from the resource pools selected by the first resource object according to the information of the first resource object and the information of the resource pool selected by the first resource pool, and provide a free resource to the target resource pool. Therefore, the idle resources of the auxiliary resource object can be collected, conditions are provided for the subsequent reallocation of the idle resources, and the idle resources are reduced, so that the resource flow is promoted, and the resource utilization rate is improved.
In this embodiment, before step 201, the server device may issue a plurality of resource pools for collecting idle resources according to a resource reallocation trigger event. Optionally, the server device may further generate and distribute resource reallocation information. Fig. 3 is a flowchart illustrating a resource processing method according to an embodiment of the present application. The method mainly describes an implementation of generating and issuing resource redistribution information. As shown in fig. 3, the method includes:
301. and generating resource reallocation information according to the resource reallocation trigger event, wherein the resource reallocation information comprises a plurality of resource pools, and each resource pool corresponds to a threshold resource amount.
302. And issuing resource reallocation information to allow the potential resource object to select the resource pool according to the threshold resource amount corresponding to each resource pool and submit the idle resources of the corresponding amount to the selected resource pool so as to perform resource reallocation under the selected resource pool.
In this embodiment, in order to improve the utilization rate of resources, a plurality of resource pools may be provided. In the embodiments of the present application, a plurality means 2 or more. The threshold resource amounts corresponding to different resource pools may be different or the same. Further, the threshold resource amount may be different for each resource pool. There may also be a resource pool of the same threshold amount of resources among the plurality of resource pools. The number of fund pools with the same threshold resource amount is not limited, but is less than or equal to the number of resource pools included in the resource reallocation information. In step 302, the resource reallocation information includes a plurality of resource pools and a threshold resource amount corresponding to each resource pool, that is, the resource reallocation information is issued, that is, a plurality of resource pools for collecting free resources are issued.
In this embodiment, the amount of the free resource submitted by the potential resource object to the selected resource pool is greater than or equal to the threshold resource amount corresponding to the selected resource pool. Preferably, the potential resource object submits the quota of the free resource to the selected resource pool equal to the threshold resource quota corresponding to the selected resource pool. Optionally, if the amount of the free resource submitted by the potential resource object to the selected resource pool is greater than the threshold resource amount corresponding to the selected resource pool, the part of the resource pool where the amount of the free resource is greater than the threshold resource amount of the resource pool may not participate in the resource reallocation of the resource pool.
Furthermore, the resource pool is mainly selected in consideration of a reference resource object in the potential resource objects, and the auxiliary resource object in the potential resource objects is mainly used for providing the resource pool selected by the reference resource object with free resources of corresponding quota. Based on this, an optional implementation manner of the step 302 of issuing the resource reallocation information is as follows: and sending the access address of the resource reallocation information to a reference resource object in the potential resource objects. Further, the reference resource object may trigger the access address, enter a page of the resource reallocation information, and read a plurality of resource pools included in the resource reallocation information and a threshold resource amount corresponding to each resource pool from the page. Accordingly, for the resource reallocation information distribution device, in response to the triggering operation of the first resource object on the access address, the resource reallocation information may be provided to the first resource object by the resource pool and the threshold resource amount corresponding to each resource pool. Optionally, the barcode of the resource reallocation information may also be sent to a reference resource object among the potential resource objects. Further, in response to the scanning operation of the first resource object on the barcode, the resource reallocation information including the plurality of resource pools and the threshold resource amount corresponding to each resource pool is provided for the first resource object. The first resource object is any one of the reference resource objects.
It should be noted that: the bar code in the embodiment of the application is a group of bar and empty symbols arranged according to a certain coding rule, is used for expressing information consisting of certain characters, numbers and symbols, and is generally a graphical information carrier. From the aspect of the dimension of carrying information, the barcode in the embodiment of the present application may include a one-dimensional code (or barcode), a two-dimensional code, or a three-dimensional code. One-dimensional codes may include, but are not limited to: EAN Code, UPC Code, Code 39, Code 93, etc. The two-dimensional code may include, but is not limited to: PDF417 two-dimensional Code, QR Code two-dimensional bar Code, etc.
In this embodiment, according to the resource reallocation trigger event, resource reallocation information including a plurality of resource pools and a threshold resource amount corresponding to each resource pool may be generated, and the resource reallocation information is distributed, so that the potential resource object may select a resource pool according to the threshold resource amount corresponding to each resource pool, and submit an idle resource of a corresponding amount to the selected resource pool, where the idle resource may be reallocated under the selected resource pool. Therefore, the reallocation of the idle resources of the potential resource objects can be realized, the idle of the resources is reduced, the resource flow is promoted, and the resource utilization rate is improved.
In the embodiment of the application, for the resource reallocation information, the resource reallocation information may be randomly generated according to the resource reallocation trigger event, or a certain generation strategy may be set.
For example, in some embodiments, the device generating the resource reallocation information stores historical resource reallocation information corresponding to resource reallocation events, and the historical resource reallocation information has reference value to the current resource reallocation information. Accordingly, an alternative implementation of step 301 is: acquiring historical resource reallocation information corresponding to the resource reallocation event according to the resource reallocation trigger event; and generating current resource reallocation information according to the historical resource reallocation information.
For another example, in some embodiments, the potential resource objects include: a reference resource object and an auxiliary resource object. The reference resource object can provide the resource reallocation information generation equipment with the predicted available resource amount which can be submitted, and the available resource amounts have guiding significance for the number of the resource pools in the resource reallocation information and the setting of the threshold resource amount of each resource pool. Accordingly, another alternative implementation of step 301 is: acquiring a plurality of idle resource amounts which are expected to be provided by a plurality of reference resource objects according to the resource redistribution triggering event; and generating resource reallocation information according to the plurality of free resource amounts. Wherein, one reference resource object can provide one free resource amount, or provide a plurality of free resource amounts, and the amount of each free resource amount is different. For a plurality of free resource amounts provided by one reference resource object, when the resource reallocation information is generated, each free resource amount is divided into different resource pools.
Further, when the resource reallocation information is generated according to a plurality of free resource amounts, the free resource amounts can be divided into a plurality of resource groups according to the range to which the free resource amounts belong, wherein the range of the free resource amounts in each resource group is not overlapped. For a plurality of free resource amounts provided by one reference resource object, each free resource amount is divided into different resource groups. Further, the number of resource pools may be determined according to the number of resource groups, where one resource group corresponds to one resource pool, i.e., the number of resource pools is equal to the number of resource groups. Furthermore, the threshold resource amount under the corresponding resource pool can be calculated according to the free resource amount in each resource group. Optionally, the average value of the free resource amount in each resource group may be used as the threshold resource amount under the corresponding resource pool; or, the idle resource with the largest occurrence number in each resource group may be used as the threshold resource amount in the corresponding resource pool, and so on.
The resource processing method provided by the embodiment can be applied to various application scenarios, and the content of the resource reallocation trigger event and the resource reallocation information is different for different application scenarios. The following is an exemplary description of several common application scenarios.
Application scenario 1: in the technical field of network communication, in order to improve the utilization rate of bandwidth, the bandwidth resources can be reallocated. In this application scenario, the resource reallocation trigger event may be the occurrence of network congestion. Accordingly, the resource reallocation information may be bandwidth reallocation information. The resource reallocation information may include a plurality of flow control queues, and each flow control queue corresponds to a committed bandwidth. That is, in application scenario 1, the resource pools are flow control queues, and the threshold resource amount of each resource pool is the committed bandwidth of each flow control queue.
In the application scenario 1, when network congestion occurs, corresponding bandwidth reallocation information may be generated according to the degree of network congestion, and the bandwidth reallocation information may be distributed. The bandwidth reallocation information distribution device may be a network device in which network congestion occurs. Further, other network devices can select the flow control queue providing the idle bandwidth according to the committed bandwidth of each flow control queue, and provide the corresponding idle bandwidth for the selected flow control queue, so as to reallocate the idle bandwidth under the selected flow control queue.
Further, in application scenario 1, the server device may be a network device that manages bandwidth resources; the computer equipment of the reference resource object is network equipment with network congestion, and the computer equipment of the auxiliary resource object is other network equipment without network congestion and with idle bandwidth.
Application scenario 2: in the field of data storage technology, storage space may be reallocated in order to increase the utilization of storage space. In this application scenario, the resource reallocation trigger event may be insufficient storage space. Accordingly, the resource reallocation information may be storage space reallocation information. The storage space reallocation information may include a plurality of storage pools, each storage pool corresponding to a threshold capacity. That is, in application scenario 2, the resource pools are storage pools, and the threshold resource amount of each resource pool is the threshold capacity of each storage pool.
In application scenario 2, the bandwidth reallocation information distribution device may be a computer device with insufficient storage space. When the storage space is insufficient, the corresponding storage space reallocation information can be generated according to the insufficient degree of the storage space, and the storage space reallocation information is distributed. Further, other storage media may select the storage pool providing the free storage space according to the threshold capacity of each storage pool, and provide the corresponding free storage space to the selected storage pool, so as to prepare for reallocation of the free storage space under the selected storage pool.
In application scenario 2, the server device may be a device that manages a storage space, such as a server, a server array, or the like; the computer device of the reference resource object can be a computer device (a mobile phone, a computer or a wearable device, etc.) with insufficient storage space; the computer device of the auxiliary resource object can be other computer devices (mobile phones, computers or wearable devices and the like) with residual storage space.
Application scenario 3: in the financial field, funds may be reallocated in order to increase the utilization of free funds. In the application scenario, the resource reallocation trigger event may be a monetary amount ratio required by a financial product. Accordingly, the resource reallocation information may be fund reallocation information. The fund redistribution information may include a plurality of fund pools, each fund pool corresponding to a threshold amount. That is, in application scenario 3, the resource pools are fund pools, and the threshold resource amount of each resource pool is the threshold amount of each fund pool.
In application scenario 3, the fund redistribution information issuing device may be a server device of a financial product. When a financial product is formed, fund redistribution information can be generated according to the amount proportion required by the financial product. Further, the sponsor may select a fund pool to provide free funds based on the threshold amount for each fund pool and provide the selected fund pool with corresponding free funds for reallocation of the free funds under the selected fund pool.
Further, in application scenario 3, the server device may be a server device of a financial product. The computer devices of the reference resource object and the auxiliary resource object may be terminal devices. The implementation forms of the server device and the terminal device may refer to the related contents of the above system embodiment, and are not described herein again.
Application scenario 4: in competitive sports, funds may be reallocated in order to increase the utilization of free funds. In this application scenario, the resource reallocation trigger event may be a required fund allocation for a certain event. Accordingly, the resource reallocation information may be fund reallocation information. The fund redistribution information may include a plurality of fund pools, each fund pool corresponding to a threshold amount. That is, in application scenario 4, the resource pools are fund pools, and the threshold resource amount of each resource pool is the threshold amount of each fund pool.
In application scenario 4, the fund redistribution information distribution apparatus may be a server side apparatus of the event organization department. When a certain event is staged, fund redistribution information can be generated according to the amount proportion required by the event. Further, the sponsor may select a fund pool to provide free funds based on the threshold amount for each fund pool and provide the selected fund pool with corresponding free funds for reallocation of the free funds under the selected fund pool.
In the application scenario 4, the implementation form of the event is not limited. Alternatively, the event may be, but is not limited to, a golf game, a table tennis game, a badminton game, a gymnastics game, and the like.
Further, in application scenario 4, the server device may be a server device of the event organization side. The computer devices of the reference resource object and the auxiliary resource object may be terminal devices of the participating entities and sponsors. The implementation forms of the server device and the terminal device may refer to the related contents of the above system embodiment, and are not described herein again.
Application scenario 5: in commercial bidding, when a bidding party has a bidding demand, the bidding party can generate corresponding bidding information according to the demand of products of each specification. In the application scenario, the resource reallocation trigger event may be that the bidding party needs to bid, and accordingly, the resource reallocation information is bidding information. The bid inviting information issuing device can be a server device of the bid inviting party. The bidding information includes: multiple sizes of product and the amount of material required for each size of product. That is, in the application scenario 5, the threshold resource amount of each specification of the product is the required amount of the corresponding material.
Further, in application scenario 5, the server device may be a server device of the tenderer. The computer devices of the reference resource object and the auxiliary resource object may be terminal devices. The implementation forms of the server device and the terminal device may refer to the related contents of the above system embodiment, and are not described herein again.
Based on the resource reallocation information, it can be known that the information of each resource pool includes the threshold resource amount and the resource interface information corresponding to the resource pool. Accordingly, an alternative implementation of step 202 is: the server-side equipment provides the information of the first resource object and the threshold resource amount of at least one resource pool selected by the first resource object to the auxiliary resource object so that the auxiliary resource object can select a target resource pool to be provided with free resources. Accordingly, the auxiliary resource object determines whether it assists the first resource object and which resource pool or pools the first resource object participates in based on the information of the first resource object and the threshold resource amount of each resource pool selected by the first resource object. For convenience of description and distinction, in the embodiment of the present application, the auxiliary resource object decides to assist the first resource object to join the resource pool, and is defined as a target resource pool. Wherein the target resource pool may be one or more of the at least one resource pool selected for the first resource object, the number of which is determined by the auxiliary resource object. Further, the target resource pool is selected if a second resource object of the auxiliary resource objects decides to assist the first resource object to join the target resource pool. Accordingly, the computer device of the second resource object may send the identification information of the target resource pool to the server device in response to the operation of the auxiliary resource object to select the target resource pool. And the server equipment receives the identification information of the target resource pool and determines the resource interface information of the target resource pool according to the identification information. And then, the server-side equipment provides the resource interface information to the second resource object so that the second resource object provides the target resource pool with free resources through the resource interface information of the target resource pool. And the second resource object is one or more resource objects in the auxiliary resource objects.
Further, the information of the first resource object is all different in different application scenarios. For example, in the application scenario 1, the information of the first resource object may be information such as a model of a network device in which network congestion occurs, a size of a bandwidth of the network device, an IP address, or a MAC address. For another example, in the application scenario 2, the information of the first resource object may be information such as a model of the computer device with insufficient storage space, a size of the storage space, an IP address, or a MAC address. For another example, in the application scenario 4, the information of the first resource object may be profile information of a contestant (name, professional age, historical contest, or winning award), and the like.
In the embodiment of the present application, the implementation form of the resource interface information is not limited. Optionally, the resource interface information may provide a network address of an interface for a resource allocated to the first resource object by the first resource pool, or may also provide a barcode of the interface for the resource. The barcode may include a one-dimensional code (or called barcode), a two-dimensional code, or a three-dimensional code.
Further, the server device may directly provide the information of the first resource object, the threshold resource amount of the at least one resource pool selected by the first resource object, and the resource interface information to the auxiliary resource object, or may forward the information of the first resource object to the auxiliary resource object. When the information of the first resource object and the threshold resource amount and the resource interface information respectively corresponding to the at least one resource pool selected by the first resource object are forwarded to the auxiliary resource object by the first resource object, the information of the first resource object and the threshold resource amount and the resource interface information respectively corresponding to the at least one resource pool selected by the first resource object may be sent to the first resource object. Accordingly, the first resource object forwards this information to the auxiliary resource object.
Optionally, the first resource object may also provide free resources to the first resource pool through resource interface information respectively corresponding to the at least one resource pool selected by the first resource object. The amount of the free resources provided by the first resource object may be set autonomously, but is not limited thereto. For example, the first resource object may provide free resources to at least one resource pool equal to the threshold amount of resources for each resource pool or provide free resources to at least one resource pool that is less than the threshold amount of resources for each resource pool via the resource interface information.
Further, if the resource interface information is the two-dimensional code of the resource providing interface, the resource providing interface can be encoded to generate a corresponding two-dimensional code; and sending the two-dimension code to the first resource object for the first resource object to forward the two-dimension code to the auxiliary resource object. Correspondingly, the second resource object in the auxiliary resource object can provide the idle resource with the corresponding quota to the first resource pool by scanning the two-dimensional code.
Optionally, the resource submission time may also be set, and after the server device sends the resource interface information to the first resource object or the auxiliary resource object, the resource submission time may be counted down, and after the resource submission time is counted down, the resource interface information is automatically invalidated. The resource submission time can be flexibly set according to actual business requirements, and is not limited herein. For example, in the application scenario 1, the resource submission time can be flexibly set according to the requirement of the network data transmission rate. In application scenario 1, the resource commit time may be, but is not limited to, 1min, 30s, etc. In the application scenario 4, the resource submission time may be flexibly set according to the actual event handling time, and may be, for example, one week, one month, two months, or the like, but is not limited thereto.
In the above embodiment, the number of the second resource objects is 1 or more. In some application scenarios, the number of second resource objects is 1; in other application scenarios, the number of the second resource objects is multiple, but for a certain resource pool of the at least one resource pool selected by the first resource object, only one second resource object triggers resource interface information of the resource pool at a time. For convenience of description and distinction, in the embodiment of the present application, a first resource pool of the at least one resource pool selected by the first resource object is taken as an example, where the first resource pool is any resource pool of the at least one resource pool selected by the first resource object. That is, for the first resource pool, only one second resource object each triggers resource interface information of the first resource pool. Based on the application scenes, aiming at the first resource pool, the server-side equipment can respond to the triggering operation of the second resource object on the resource interface information, obtain the version number of the resource interface information used by the second resource object, and judge whether the version number of the resource interface information used by the second resource object is the same as the version number of the resource interface information of the locally stored first resource pool or not; and if so, providing a resource providing page corresponding to the first resource pool to the second resource object. Further, the second resource object may provide free resources to the first resource pool as required by the resource providing page. Accordingly, the resource reallocation information distribution apparatus updates the version number of the resource interface information of the first resource pool stored locally. For example, add 1 to the version number of the resource interface information of the first resource pool stored locally, and so on.
In practical applications, there may be a case where a plurality of second resource objects simultaneously trigger resource interface information of the first resource pool, and in this case, a system crash may be caused because a plurality of resource objects simultaneously trigger resource interface information of the first resource pool. In order to prevent this, the server device may count the number of second resource objects in which the version number of the used resource interface information is the same as the version number of the locally stored resource interface information; if the number is more than one, sending a confirmation request whether to provide the idle resources to the plurality of second resource objects for the second resource objects to perform confirmation response.
Accordingly, these second resource objects can acknowledge the response to the acknowledgement request of whether to provide free resources through the respective terminal device. Correspondingly, the server-side device may determine, according to the received condition of the acknowledgement response, a third resource object that returns the acknowledgement response first, and provide the third resource object with the resource providing page of the first resource pool, so that the third resource object provides the first resource pool with the free resources. The third resource object is a resource object which firstly confirms the confirmation request in the plurality of second resource objects which receive the confirmation request whether to provide the idle resources.
In the embodiment of the application, for convenience of description and distinction, the total amount of the free resources provided by the second resource object to the target resource pool is defined as the first amount. Considering that the first amount may not reach the threshold resource amount of the target resource pool, after receiving the free resource amount of the first amount submitted by the second resource object, it may also be determined whether the first amount is smaller than the threshold resource amount of the target resource pool. If the judgment result is that the first limit is equal to the threshold resource amount of the target resource pool, determining that the first resource object successfully selects the target resource pool; if the judgment result is that the first quota is larger than the threshold resource quota of the target resource pool, determining that the first resource object successfully selects the target resource pool, and taking the quota of which the first quota is higher than the threshold resource quota of the target resource pool as the reserved resource quota of the first resource object, wherein the reserved resource quota does not account for the total resource quota provided by the resource object related to the target resource pool; if the judgment result is that the first amount is smaller than the threshold resource amount of the target resource pool, sending a prompt message to the first resource object before the set resource submission time is ended to prompt the first resource object to increase the amount of the lacking resource, wherein the amount of the lacking resource is equal to the difference value of the first amount and the threshold resource amount of the target resource pool. Optionally, the hint information may include information such as the amount of resources that have been scarce and/or the effective duration of the hint information.
Further, the first resource object may be responsive to the hint information to determine whether to increase the amount of resources that are not yet available. If the first resource object decides to increase the amount of resources that are not yet available, a determination may be made regarding the hint information. Accordingly, the server device may provide the resource interface information to the first resource object in response to the determination operation of the first resource object on the prompt, and the first resource object may provide the resource amount that is not yet available through the resource interface information. Further, the server device receives the amount of the resource provided by the first resource object and is not yet available, and determines that the first resource object successfully selects the target resource pool.
If the first resource object decides not to increase the amount of the resource that is not yet available, the prompt may be negated, for example, the first resource object may trigger a corresponding negation control or reply with a negative answer through the terminal device used by the first resource object. Correspondingly, the resource reallocation information issuing equipment can respond to the negative operation of the first resource object on the prompt, and return the free resources of the first quota submitted by the second resource object to the second resource object, namely the first resource object does not successfully select the target resource pool.
Furthermore, the effective duration of the resource amount which can be submitted by the first resource object and is not lacked can be set, namely the effective time of the specified duration is set for the prompt message, and if the lacked resource amount is not received in the specified duration, the free resource of the first amount provided by the second resource object is returned to the second resource object, namely the target resource pool is not successfully selected by the first resource object. The specified duration comprises the time before the specified duration arrives and the time when the specified duration arrives. Further, the specific value of the specified duration can be flexibly set according to actual requirements, and is not limited herein. For example, in the application scenario 4 described above, the specified time period may be 5min, 10min, half an hour, and the like, but is not limited thereto.
Further, in the embodiment of the present application, in order to make as many auxiliary resource objects as possible provide free resources, after the expiration date of the selected resource pool is over, it may be determined whether the number of reference resource objects selected for each resource pool is greater than or equal to the number threshold corresponding to each resource pool. If the resource pool with the positive judgment result exists, the resource interface information corresponding to the resource pool with the positive judgment result is provided for the auxiliary resource object; if the resource pool with the negative judgment result exists, the resource pools with the negative judgment results can be combined to form a new resource pool again, so that more auxiliary resource objects can provide idle resources. The following still takes the first resource pool as an example for illustration.
For the first resource pool, the server device may determine, after the selected validity period of the first resource pool is ended, whether the number S of the reference resource objects of the selected first resource pool is greater than or equal to a set number threshold N, where N is determined by the object ratio corresponding to the first resource pool. Further, N is larger than or equal to the reciprocal of the object proportion corresponding to the first resource pool. Preferably, N is equal to the inverse of the object fraction corresponding to the first resource pool. Further, if S is larger than or equal to N, the information of the first resource object, the threshold resource amount corresponding to the first resource pool and the resource interface information are provided for the auxiliary resource object. Correspondingly, if S is less than N, determining candidate resource pools from which the number of the reference resource objects corresponding to the selected first resource pool is greater than or equal to the number threshold R corresponding to the respective resource pool after the reference resource objects of the selected first resource pool are added to the other resource pools. And the other resource pools are the resource pools except the first resource pool in the plurality of resource pools contained in the resource reallocation information. Further, the quantity threshold R corresponding to each of the other resource pools is determined according to the reciprocal of the target proportion that can be reallocated to the resource corresponding to each of the resource pools. Further, R of each resource pool in other resource pools is larger than or equal to the reciprocal of the object proportion which can be allocated to the resource and corresponds to the resource pool. Further, a second resource pool may be selected from the candidate resource pools and the first resource pool may be merged into the second resource pool. Thereafter, information of the first resource object and information of the second resource pool are provided to the auxiliary resource object. Wherein the information of the second resource pool includes: and the threshold resource amount and the resource interface information corresponding to the second resource pool.
Further, when a second resource pool is selected from the candidate resource pools, one resource pool can be selected from the candidate resource pools as the second resource pool; or selecting the resource pool with the minimum difference between the threshold resource amount and the threshold resource amount of the first resource pool from the candidate resource pools as the second resource pool.
Optionally, in some embodiments, if S < N, the reference resource object of the first resource pool may be directly added to the second resource pool.
Or, before adding the reference resource object of the first resource pool into the second resource pool, sending a scheduling notification to the reference resource object of the selected first resource pool, so that the reference resource object of the first resource pool can determine whether to add into the second resource pool. Accordingly, the reference resource object of the first resource pool may respond to the scheduling notification by its terminal device. If the reference resource object of the first resource pool decides to join the second resource pool, the terminal equipment can make a confirmation response to the scheduling notification to the resource reallocation information issuing equipment, and a confirmation message is returned, wherein the confirmation message indicates that the reference resource object of the first resource pool agrees to join the second resource pool. Correspondingly, if the reference resource object of the first resource pool determines not to join the second resource pool, the terminal device can perform negative response to the scheduling notification to the resource reallocation information issuing device, and return a negative message, wherein the negative message indicates that the reference resource object of the first resource pool is not approved to join the second resource pool. Further, if the reference resource object of the first resource pool is within the preset duration and no confirmation message is returned, it is determined that the reference resource object of the first resource pool is not approved to be added into the second resource pool. The preset time duration comprises a preset time duration arrival time and a time before the preset time duration arrival.
Further, the server-side device may receive a determination message returned from the reference resource object of the selected first resource pool, and add the reference resource object of the returned determination message to the second resource pool.
For example, in application scenario 4 described above, it is assumed that the winning ratios of sub-event 1, sub-event 2, and sub-event 3 are 110, 1/8, and 1/12, respectively; the threshold amount for sub-event 1 is 1000 yen, the threshold amount for sub-event 2 is 1050 yen, and the threshold amount for sub-event 3 is 1100 yen. After the entry of the secondary event is finished, counting 6 entry units for entering the secondary event 1; the number of the participating units for registering the secondary event 2 is 10; the number of entries in sub-event 3 is 13. Then, it may be determined that the entry for event 1 is less than the inverse 10 of its prize-winning ratio, and further, it may be assumed that 6 entries for event 1 are added to events 2 and 3, respectively, and that the entry for subsequent event 2 will be 16 entries, which is greater than the inverse 8 of the prize-winning ratio for event 2; the number of entries for sub-event 3 would be 19 and also greater than the inverse 12 of the prize draw for sub-event 3, so that both sub-events 2 and 3 are candidate sub-events. Further, since the difference between the threshold amount for sub-event 2 and the threshold amount for sub-event 1 is 50 yen, and the difference between the threshold amount for sub-event 3 and the threshold amount for sub-event 1 is 100 yen, 6 entries for sub-event 1 are added to sub-event 2.
Further, for each resource pool selected by the first resource object, after the resource collection is finished, the free resources in each resource pool can be reallocated. And the re-allocation process of the free resources in each resource pool is the same. Taking the first resource pool as an example, the following describes an exemplary re-allocation process of the free resources in each resource pool. The first resource pool is any one of a plurality of resource pools included in the resource reallocation information. Further, the resource reallocation information further includes: the objects participating in each resource pool are subject to reallocation to resources.
Fig. 4a is a flowchart illustrating another resource processing method according to an embodiment of the present application. As shown in fig. 4a, the method comprises:
401. and aiming at the first resource pool, acquiring the idle resources of the corresponding limit submitted by the resource object of the first resource pool successfully selected so as to realize resource integration.
402. And under the condition of meeting the resource reallocation condition, determining the resource objects with the qualified ranking according to the object proportion which can be reallocated to the resources and corresponds to the first resource pool according to the ranking among the resource objects of the first resource pool.
403. Allocable resources of the first resource pool are allocated to the resource objects which are ranked up to the standard.
In this embodiment, the ratio of the objects that can be reallocated to resources corresponding to the first resource pool refers to a ratio of the objects that can be reallocated to resources in the first resource pool to all resource objects of the first resource pool. The resource objects of the first resource pool are resource objects of the potential resource objects, wherein the number of the resource objects is a plurality of resource objects, and the resource objects are used for successfully selecting the first resource pool and/or providing free resources for the first resource pool. In the present embodiment, a plurality means 2 or more. In some embodiments of the present application, for convenience of description, the object ratio that can be reallocated to resources corresponding to the first resource pool is referred to as the object ratio corresponding to the first resource pool.
In the present embodiment, the condition for performing the operations in step 402 and step 403 is that the first resource pool is qualified for resource reallocation. If the first resource pool is not eligible for resource reallocation, the first resource pool is cancelled. For different application scenarios, the conditions for the first resource pool to have the resource reallocation qualification are different, and this part will be described below, which is not repeated herein.
Further, in the case that the first resource pool is eligible for reallocation, the number W of resource objects in the first resource pool that are reallocated to resources may be determined according to the proportion of objects in the first resource pool that are reallocated to resources. Further, according to the ranking among the resource objects associated with the first resource pool, W resource objects with up-to-standard ranking are determined, and the allocable resources of the first resource pool are allocated to the W resource objects with up-to-standard ranking. Wherein, W is a positive integer, and the specific value thereof can be determined according to the proportion of the objects which can be reallocated to the resources and the number of the resource objects of the first resource pool corresponding to the first resource pool.
Optionally, the ranking between resource objects associated with the first resource pool may be calculated according to the business capabilities of the resource objects of the first resource pool. The resource object with stronger service capability is ranked higher, and the priority assigned to the resource object is higher. Further, in different application scenarios, the evaluation criteria of the service capabilities of the resource objects are different. For example, in the application scenario 1, the service capability of the network device can be evaluated according to the level of the forwarding capability of the network device on the data. For another example, in the application scenario 2, the service capability can be evaluated according to the data reading and writing rate of the storage medium. For another example, in the application scenario 4, the business capability can be evaluated according to the match score of the match unit. Wherein, for the personal match, one match player is used as a match unit; for a team competition, a team may be considered as a unit for competition. For another example, in the application scenario 5, the business capability of a product manufactured by a product manufacturing plant may be evaluated according to the quality of the product. For example, if the product is a drain pipe, the service capability of each processing plant can be evaluated according to the ratio of the water discharge amount and the soil discharge amount of the drain pipe produced by each processing plant, wherein the larger the ratio is, the stronger the service capability is.
In this embodiment, for the free resources in each resource pool, the resource objects whose ranks meet the standard in each resource pool can be determined according to the ranks between the resource objects associated with the resource pool and the object occupation ratios, which correspond to the resource pools and can be reallocated to the resources, and the allocable resources in each resource pool are allocated to the resource objects whose ranks meet the standard, so that the free resources corresponding to each resource pool are reallocated, the idleness of the resources is reduced, the resource flow can be promoted, and the resource utilization rate is further improved.
In some embodiments, before step 403, the total amount of resources provided by the resource object of the first resource pool may be obtained and used as the allocable resources of the first resource pool. Or, after the set reserved resource amount is deducted from the total resource amount of the first resource pool, the remaining resource amount is used as the allocable resource of the first resource pool. For example, in application scenario 1, a part of bandwidth may be reserved for the total bandwidth acquired by each flow control queue, and the remaining bandwidth obtained by deducting the reserved bandwidth is used as the allocable bandwidth of the flow control queue. For another example, in the application scenario 4, for the total amount obtained from each fund pool, the amounts in the corresponding proportion may be reserved according to the agreed proportion as the tournament expenditure of the tournament unit and the organization expenditure of the event host, respectively, and the remaining part may be the allocable fund of the fund pool. The competition fee of the competition unit in each fund pool can be set by the competition sponsor, or can be set by the competition unit, and is not limited herein. The organization expenses of the event sponsor can be flexibly set by the event sponsor. Wherein, the contest host, the contest unit and the sponsor need to reach an agreement about the agreed proportion.
Further, under each resource pool, the resource objects with qualified ranking are 1 or more. The number of resource objects with the qualified ranking can be determined by the total number of resource objects of each resource pool and the proportion of the objects participating in the resource pool that can be reallocated to resources. Further, when the number of resource objects reaching the standard in the ranking in the first resource pool is multiple, the allocable resources of the first resource pool can be allocated to each resource object reaching the standard in the ranking according to the resource allocation proportion among the set ranking. That is, the amount of resources allocable to each resource object with the qualified rank is determined from the allocable resources of the first resource pool according to the resource allocation proportion between the set ranks.
The resource allocation proportion between the set ranks can be flexibly set. For example, the resource allocation proportion between the ranks is equal division, that is, the allocable resources of the first resource pool are averagely allocated to each resource object with the rank reaching the standard. For another example, the resource object with the qualified rank is set according to the rank of the resource object, wherein the resource object with the higher rank has more resources. For example, the resource object ranked first scores 40% of the allocable resources of the first resource pool; the resource object ranked second has a resource score of 20% of the allocable resources of the first resource pool, and so on, but is not limited thereto.
And considering that the resource objects with qualified ranking may have the same service capability, the resource objects with the same service capability are ranked the same. Assuming that the number of resource objects ranked up to the standard in the first resource pool is X, that is, X represents the last ranking, where X may be determined according to the product of the number of resource objects in the first resource pool and the object ratio corresponding to the first resource pool. Alternatively, the product may be rounded up, rounded down, or approximated by rounding to the nearest integer X. Further, if Y resource objects which are ranked at the ith position in parallel exist in the resource objects which are ranked up to the standard, wherein i is 1,2., (X-1); that is, the parallel ranking is not the last ranking, the total number Z of resource objects ranked at the top i is less than X, Y is greater than or equal to 2 and less than or equal to Z, and both Y and Z are integers, the total amount of resources allocable to the Y ranks from the (Z-Y +1) th rank set in the allocable resources of the first resource pool can be determined according to the resource allocation proportion among the set ranks; and the total amount of the resources which can be allocated to the Y ranks from the (Z-Y +1) th rank is equally distributed to the Y resource objects which are ranked at the ith rank in parallel. It should be noted that the resource object ranked i-first means: resource objects ranked from 1 st bit to ith bit. For example, assuming that X is 10, i is 4, Y is 3, and the resource objects ranked at the first 3 ranks are 4, that is, there are 3 resource objects ranked at the 4 th rank in parallel, and the total number of the resource objects ranked at the first 4 ranks is Z is 7, which is less than 10, the total amount of the resources that should be allocated to the previously set resource objects ranked at the 5 th, 6 th and 7 th ranks may be determined according to the resource allocation ratio between the set ranks; and the total amount of resources ranked at 5 th, 6 th and 7 th, which should be allocated to the previous setting, is averagely allocated to the 3 resource objects actually ranked at 4 th in parallel.
Further, for other resource objects with the rank meeting the standard on the rank without the parallel rank, the remaining resource amount in the allocable resources of the first resource pool can be allocated to the resource object on the rank without the parallel rank in the resource objects with the rank meeting the standard according to the set resource allocation proportion between the ranks.
Optionally, Y resource objects ranked in the ith position in parallel exist in the resource objects ranked up to the standard, and the total number of the resource objects ranked in the first i position is greater than or equal to X, according to a resource allocation proportion between the set ranks, the total amount of resources allocable from the set (Z-Y +1) th position to the set X position in the allocable resources of the first resource pool is determined according to the resource allocation proportion between the set ranks, and the total amount of resources allocable from the set (Z-Y +1) th position to the X th position is equally divided to the Y resource objects ranked in the ith position in parallel. For example, also assuming that X is 10, i is 7, Y is 3, and the number of resource objects ranked at the top 6 ranks is 8, that is, there are 3 resource objects ranked at the 7 th rank in parallel, and the total number Z of resource objects ranked at the top 7 ranks is 11, which is greater than 10, where Z-Y +1 is 9, the total amount of resources that should be allocated to the previously set 9 th and 10 th ranks may be determined according to the resource allocation ratio between the set ranks; and the total amount of resources ranked at the 9 th and 10 th positions, which should be allocated to the previous setting, is averagely allocated to the 3 resource objects actually ranked at the 7 th position in parallel.
Optionally, if the parallel ranking appears on the last ranking, that is, Y resource objects ranked at the X-th position in parallel exist in the resource objects ranked up to the standard, determining the total amount of resources that can be allocated to the resource object ranked at the X-th position in the allocable resources of the first resource pool according to the resource allocation proportion between the set rankings; and the total amount of resources which can be allocated to the resource object ranked at the X-th position is uniformly distributed to the Y resource objects ranked at the X-th position in parallel. For example, if X is 10 and Y is 3, the total amount of resources that should be allocated to the resource object ranked at 10 th among the allocable resources in the first resource pool may be determined according to the resource allocation ratio between the set ranks, and the total amount of resources that should be allocated to the resource object ranked at 10 th may be averagely allocated to the 3 resource objects ranked at the ranks.
It should be noted that the number of resource objects in different ranks depends on the actual situation, that is, the value of Y is determined by the actual service capability of the resource object.
For the case where the potential resource objects include a reference resource object and an auxiliary resource object, each resource object may include: a reference resource object and an auxiliary resource object. For each resource object, the number of the reference resource objects is 1, and the number of the auxiliary resource objects may be 1 or more. The reference resource object is mainly used for selecting a resource pool, and the auxiliary resource object is mainly used for providing idle resources with corresponding limits for the resource pool selected by the reference resource object. Optionally, the reference resource object may also provide free resources to its selected resource pool, in which case the reference resource object acts as a secondary resource object in addition to the selected resource pool.
In different application scenes, the reference resource object and the auxiliary resource object have different implementation forms. For example, in application scenario 4 described above, the reference resource object may be a participating unit qualified for a competition, and the auxiliary resource object may be a sponsor who provides sponsorship to each participating unit or an investor who invests in each participating unit. For another example, in the application scenario 5 described above, the reference resource object may be a bidding qualified product process plant, and the auxiliary resource object may be a supplier providing materials to each process plant.
Further, when the number of the secondary resource objects is 1 or more, each resource object includes at least two resource accounts, i.e. 1 reference resource account of the reference resource object and 1 or more secondary resource accounts of the secondary resource objects. Accordingly, when the allocable resources of the first resource pool are allocated to each resource object with the qualified ranking, the amount of the resources which can be allocated to each resource object with the qualified ranking can be determined from the allocable resources of the first resource pool according to the resource allocation proportion between the set ranks. Further, for potential resource objects, include: in the case of the reference resource object and the auxiliary resource object, the ranking between the reference resource objects in the first resource pool can be calculated according to the service capability of the reference resource object, and the ranking of each reference resource object is used as the ranking of the corresponding resource object.
Further, for a resource object which reaches the standard in rank and includes at least two resource accounts, the resource amount which can be allocated to the resource object can be distributed to each resource account of the resource object according to the resource proportion between the at least two resource accounts corresponding to the resource object. The resource proportion between at least two resource accounts corresponding to the resource object refers to the proportion of the resource which can be allocated to each resource account in the resource allocated to the resource object. Further, the resource allocation ratio between at least two resource accounts corresponding to each resource object may be determined according to the contribution of each resource account to the successful selection of the first resource pool by the resource object. The contribution proportion of the selected resource pool can be preset for the reference resource object, and the contribution proportion of the auxiliary resource object can be determined according to the amount of free resources provided to the selected resource pool by the auxiliary resource object. For example, the contribution of the selected resource pool of the reference resource object may be set to 30% in advance, and the contribution ratio of the auxiliary resource object may be determined by multiplying 70% by the ratio of the free resources each provided to the selected resource pool to the total amount of resources obtained by the first resource pool.
It should be noted that, in the case that the reference resource object provides free resources to the selected resource pool, the reference resource object is also used as an auxiliary resource object in addition to the selected resource pool, and the calculation manner of the contribution ratio when the reference resource object is used as the auxiliary resource object is the same as the calculation manner of the contribution ratio of other auxiliary resource objects, which is not described herein again. In this case, the primary resource account and the secondary resource account corresponding to the primary resource object may be the same.
It should be further noted that, in this embodiment of the present application, the amount of the free resource provided by the resource pool selected by the auxiliary resource object to the reference resource object may be greater than the threshold resource amount corresponding to the resource pool, and a portion of the amount of the free resource provided by the resource pool selected by the auxiliary resource object to the reference resource object, which exceeds the threshold resource amount corresponding to the resource pool, may be reserved by the reference resource object. For example, in the application scenario 4, if the threshold amount of the event 1 is 1000 dollars, and a certain contestant unit enters the event 1 and the contestant unit obtains 1500 dollars of sponsorship, 500 dollars exceeding the threshold amount of the event 1 may be reserved for the contestant unit.
Optionally, in the application scenario 4, in the step of issuing the resource amount allocable to the resource object to each resource account of the resource object, the fund to be allocated to each resource account may be deducted by the tax payment and then issued to the corresponding resource account.
Further, for the first resource pool in the above embodiment, before performing the operations of the above steps 202 and 203, it is further determined whether the first resource pool qualifies for resource reallocation, and only if the first resource pool qualifies for resource reallocation, the steps 202 and 203 are performed. Further, the following describes an embodiment of whether the first resource pool qualifies for resource reallocation with reference to fig. 4 b. In fig. 4b, whether the number M of the resource objects successfully selected from the first resource pool meets the preset number threshold N is used as a condition for determining whether the first resource pool is qualified for resource reallocation. The preset number threshold value N is determined according to the object proportion corresponding to the first resource pool. Preferably, the preset number threshold N is greater than or equal to the inverse of the object proportion corresponding to the first resource pool. The method mainly comprises the following steps:
s1: and counting the number M of the resource objects successfully selected from the first resource pool within the resource submission time corresponding to the first resource pool.
S2: and judging whether the number M of the resource objects successfully selected from the first resource pool is greater than or equal to a set number threshold value N. If the judgment result is that M is larger than or equal to N, executing the step S9; if the determination result is that M is less than N, step S3 is executed.
Optionally, in some embodiments, if the determination result is that M is less than N, the second resource pool may also be directly cancelled.
S3: judging whether the quantity Q of other resource objects is greater than or equal to (N-M), wherein the other resource objects refer to the submitted limit of the free resources which is greater than or equal to the threshold resource amount of the first resource pool and the resource objects of the other resource pools can not be selected successfully; if yes, go to step S4; if the determination result is negative, step S10 is executed.
S4: at least (N-M) candidate resource objects are selected from the other resource objects.
Optionally, further, for the case that the number of other resource objects is greater than or equal to (N-M), all of the other resource objects may be taken as candidate resource objects. Or selecting resource objects, of which the difference between the submitted free resource limit and the threshold resource limit of the first resource pool belongs to a preset difference range, from other resource objects as candidate resource objects. Further, in step S4, if the number of other resource objects is greater than or equal to (N-M), but the number of resource objects whose difference between the amount of free resources submitted in other resource objects and the threshold resource amount of the first resource pool is within the preset difference range is less than (N-M), the first resource pool is cancelled.
S5: a query message is sent to the at least (N-M) candidate resource objects for the at least (N-M) candidate resource objects to determine whether to join the first resource pool.
The candidate resource object may respond to the query message by its terminal device. If the candidate resource object decides to join the first resource pool, the terminal device can make a confirmation response to the inquiry message to the resource reallocation information distribution device, and a confirmation message is returned, wherein the confirmation message indicates that the candidate resource object agrees to join the first resource pool. Correspondingly, if the candidate resource object candidate is determined not to join the first resource pool, the terminal device can carry out negative response to the inquiry message to the resource reallocation information issuing device, and return a negative message, wherein the negative message indicates that the candidate resource object agrees to join the first resource pool. Further, if the candidate resource object does not return a confirmation message when the preset duration arrives, it is determined that the candidate object is not approved to be added into the first resource pool.
S6: and receiving a confirmation message returned by the candidate resource object which is confirmed to join the first resource pool, and counting the number K of the candidate resource objects which return the confirmation message.
S7: judging whether the number K of the target resource objects returning the confirmation message is greater than or equal to (N-M); if yes, go to step S8; if the determination result is negative, step S10 is executed.
S8: and taking the K candidate resource objects returning the confirmation message as K target resource objects, adding the K candidate resource objects into the first resource pool, and executing the step S9.
Accordingly, in step S8, the free resources provided by the K target resource objects to the other resource pools are added to the first resource pool.
S9: it is determined that the first resource pool qualifies to participate in the reallocation of resources.
S10: the first resource pool is cancelled, and the free resources provided by the resource objects successfully selected from the first resource pool in step S1 are returned to these resource objects, and the free resources provided by the above-mentioned at least (N-M) candidate resource objects to other resource pools are returned to these at least (N-M) candidate resource objects.
In some embodiments, after step S3, K target resource objects may also be selected from other resource objects and added directly to the first resource pool. Accordingly, free resources provided by each target resource object to the other resource pools are transferred to the first resource pool. In this embodiment, Q ≦ K ≦ (N-M), i.e., the target resource object may be all of the other resource objects or a portion of the other resource objects, but the number of the portion is at least (N-M). For the selection manner of the K target resource objects in this embodiment, reference may be made to the selection manner of the at least (N-M) candidate resource objects, which is not described herein again.
In order to facilitate understanding of the resource processing method provided in the foregoing embodiment, the following takes the foregoing application scenario 4 as an example to exemplarily explain the resource processing method provided in the embodiment of the present application.
Fig. 5 is a flowchart illustrating another resource processing method according to an embodiment of the present application. The method is suitable for the server equipment of the event host. The server device refers to a computer device that can perform resource management, respond to a service request of the terminal device, and provide a service related to resource processing for a user, and generally has the capability of undertaking and guaranteeing the service. The server device may be a single server device, a cloud server array, or a Virtual Machine (VM) running in the cloud server array. In addition, the server device may also refer to other computing devices with corresponding service capabilities, such as a terminal device (running a service program) such as a computer. As shown in fig. 5, the method includes:
501. and generating fund redistribution information according to the fund proportioning information required by the event. The fund redistribution information comprises: a plurality of sub-events, each sub-event corresponding to a fund pool, and each fund pool corresponding to a threshold amount.
The threshold amount corresponding to different events may be the same or different. The funds reallocation information may be used as an event notification.
502. The funds reallocation information is sent to a benchmark resource object registered with the event sponsor.
In this embodiment, the reference resource object is a unit participating in the event, i.e., a unit registered at the event host that is likely to participate in the event. For example, if the event is a golf game, the reference resource object is a golfer registered with the golf game host.
503. In response to the selection operation of the first competition unit for the plurality of events, the event selected by the first competition unit is determined as a first event, and a fund pool corresponding to the first event is used as a first fund pool.
Wherein the first unit is any unit.
504. And providing the information of the first competition unit, the threshold amount corresponding to the first fund pool and the resource interface information to the auxiliary resource object.
In this embodiment, the auxiliary resource object is a sponsor or investor who may sponsor the first contestant entity. For step 504, optionally, the event host may directly push the resource interface information corresponding to the first fund pool to each auxiliary resource object, or the event host may send the resource interface information corresponding to the first fund pool to the first participating unit, and the first participating unit forwards the resource interface information to the auxiliary resource object.
Further, for the implementation mode that the event host sends the resource interface information corresponding to the first fund pool to the first participating unit, and the first participating unit forwards the resource interface information to the auxiliary resource object, the terminal device of the first participating unit can also submit the fund to the first fund pool when receiving the resource interface information, and if the fund submitted by the first participating unit is greater than or equal to the threshold amount corresponding to the first fund pool, the first participating unit is determined to successfully register the first event; if the fund submitted by the first participating unit is less than the threshold amount corresponding to the first fund pool, the first participating unit can forward the resource interface information to the auxiliary resource object. Accordingly, the terminal device of the auxiliary resource object receives the resource interface information, and can provide idle funds to the first fund pool through the resource interface information. In the following steps, the case of providing idle funds with the assistance of the auxiliary resource object is exemplarily described.
505. And receiving idle funds provided by the second resource object to the first fund pool within the resource submission time.
506. And judging whether the total amount of the idle funds provided by the second resource object to the first fund pool in the resource submission time is greater than or equal to the threshold amount corresponding to the first fund amount. If yes, go to step 509; if the determination result is negative, go to step 507.
Wherein, if the total amount of the free funds provided by the second resource object to the first fund pool is greater than the threshold amount corresponding to the first fund amount, not only the step 509 is executed, but also the difference between the total amount of the free funds provided by the first fund pool and the threshold amount corresponding to the first fund amount is reserved to the first contestant unit according to the convention by the second resource object, that is, the difference does not participate in the resource reallocation in the subsequent step 520-
507. And sending prompt information to the first competition unit to prompt the first competition unit to increase the amount of money which is lacked. Wherein the amount that is not yet lacked is equal to the difference between the total amount of the idle funds provided by the second resource object to the first fund pool and the threshold amount corresponding to the first fund amount.
508. If the amount of money submitted by the first contesting unit that is not yet available is received within the specified length of time, step 509 is performed. If the amount submitted by the first gaming unit that is not yet insufficient is not received within the specified duration, step 510 is performed.
509. It is determined that the first participating unit successfully enrolled the first event and execution continues at step 511.
510. It is determined that the first participating unit did not successfully register the first event and execution continues at step 511.
Optionally, upon determining that the first gaming unit did not successfully register the first event, the free funds provided by the respective second resource object funded by the first gaming unit may be returned to the second resource object.
511. And counting the number M of the participating units successfully registering the first event within the effective duration of the fund redistribution information.
512. And when the effective duration of the fund redistribution information is over, judging whether the number M of the participating units successfully registering the first event is larger than or equal to a set number threshold value N, wherein N is determined according to the prize winning proportion of the first event. Effectively, the set number threshold N is greater than or equal to the inverse of the winning proportion of the first event. If the judgment result is that M is larger than or equal to N, executing step 519; if the judgment result is that M is less than N, go to step 513.
513: and judging whether the number Q of other competition units is greater than or equal to (N-M), wherein the other competition units are competition units which acquire a sponsorship amount greater than or equal to the threshold resource amount of the first fund pool and are not successful in registering other events. If yes, go to step 514; if the determination result is negative, step 520 is executed.
514: at least (N-M) candidate entries are selected from the other entries.
515: a query message is sent to the at least (N-M) candidate entries for the at least (N-M) candidate entries to determine whether to participate in the first event.
516: and receiving the confirmation message returned by the candidate competition units, and counting the number K of the candidate competition units returning the confirmation message.
517: judging whether the number K of the candidate competition units returning the confirmation message is greater than or equal to (N-M); if yes, go to step 518; if the determination result is negative, step 520 is executed.
518: the successful registration of the first event by the K candidate entries returning the confirmation message is determined and step 519 is performed.
Accordingly, in step 518, the K candidate entries are added to the first fund pool for free resources provided by other events.
519: it is determined that the first event is developing and the first fund pool is eligible to participate in the reallocation of resources and execution continues at step 521.
520: the first event is cancelled, the free resources provided by the second resource objects corresponding to the respective participating units successfully registering the first event in step 510 are returned to these resource objects, and the free resources provided by the K candidate participating units to the other fund pool in step 518 are returned to the K candidate participating units and their respective corresponding second resource objects.
Optionally, for the Q other contestants in step 515, if one or some of the contestants finally fail to register any event, the free funds provided to the resource objects corresponding to these contestants are returned to the corresponding resource objects.
521. And aiming at a first fund pool corresponding to the first event, obtaining the total amount of the first fund pool.
522. And deducting the set reserved amount from the total resource amount of the first fund pool to obtain the allocable fund of the first fund pool.
523. After the event is finished, the ranking between the competition units corresponding to the first event is calculated according to the competition scores of the competition units successfully registering the first event.
524. And determining the competition units with the qualified ranks according to the ranks among the competition units corresponding to the first time of the competition, and by combining the prize winning proportion of the first time of the competition and the number of the competition units successfully registering the first time of the competition.
If the product of the prize winning proportion of the first event and the number of the participating units successfully registering the first event is not an integer, the product can be rounded up, rounded down or rounded up and rounded down to obtain the number of the participating units capable of winning prizes.
525. And evenly distributing the allocable funds of the first fund pool to each participating unit with the rank reaching the standard.
526. And for the funds obtained by each participating unit, distributing the funds obtained by the participating unit to the participating unit and the corresponding second resource object according to the fund ratio of the participating unit and the corresponding second resource object.
The fund ratio of the participating units can be preset, and the fund ratio of each second resource object can distribute the fund ratio after deducting the fund ratio of the participating units according to the ratio of the provided fund amount to the threshold amount of the first fund pool. For example, a 30% funding proportion may be predetermined for the participating units, and the second resource objects funded to the participating units allocate the remaining 70% of the funded credits in proportion to the threshold credit of the first fund pool.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subject of steps 101 and 102 may be device a; for another example, the execution subject of step 101 may be device a, and the execution subject of step 102 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer apparatus includes: a memory 60a, a processor 60b and a communication component 60 c.
The memory 40a is used for storing a computer program.
The processor 40b is coupled to the memory 40a for executing a computer program for: receiving, by the communication component 60c, the information of the first resource object sent by the first resource object and the identification information of the at least one resource pool selected by the first resource object; determining the information of at least one resource pool according to the identification information of at least one resource pool selected by the first resource object; the first resource object is any one of the reference resource objects; providing, by the communication component 60c, the information of the first resource object and the information of the at least one resource pool to the secondary resource object to collect free resources from the secondary resource object; and receiving, by the communication component 60c, free resources provided by the second resource object to the target resource pool according to the information of the target resource pool selected by the second resource object; wherein the second resource object is one or more of the auxiliary resource objects; the target resource pool selected by each second resource object is one or more of the at least one resource pool.
In some embodiments, the information for each resource pool includes: the threshold resource amount and the resource interface information corresponding to the resource pool. Accordingly, the processor 60b, when providing the information of the first resource object and the information of the at least one resource pool to the auxiliary resource object, is specifically configured to: providing, by the communication component 60c, the information of the first resource object and the threshold resource amount of the at least one resource pool selected by the first resource object to the auxiliary resource object for the auxiliary resource object to select the target resource pool; receiving, by the communication component 60c, identification information of the target resource pool sent by the second resource object; generating resource interface information of the target resource pool according to the identification information of the target resource pool; and provides the resource interface information of the target resource pool to the second resource object via the communication component 60c, so that the second resource object provides the free resource to the target resource pool via the resource interface information of the target resource pool.
Optionally, the processor 60b, before receiving the information of the first resource object sent by the first resource object and the identification information of the at least one resource pool selected by the first resource object through the communication component 60c, is further configured to: issuing a plurality of resource pools for collecting idle resources according to the resource reallocation trigger event; each resource pool corresponds to a threshold resource amount for the reference resource object to determine whether to select the resource pool.
In other embodiments, the processor 60b, prior to providing the information of the first resource object and the information of the at least one resource pool to the auxiliary resource object via the communication component 60c, is further configured to: for the first resource pool, judging whether the number S of the reference resource objects of the selected first resource pool is greater than or equal to a set number threshold N; the set quantity threshold value N is determined according to the proportion of the objects which can be reallocated to the resources and correspond to the first resource pool; if S is larger than or equal to N, executing the operation of providing the information of the first resource object, the threshold resource amount corresponding to the first resource pool and the resource interface information to the auxiliary resource object; the first resource pool is any one of at least one resource pool. Preferably, N is greater than or equal to the inverse of the proportion of objects that are reallocated to resources corresponding to the first resource pool.
Correspondingly, if S is less than N, the processor 60b determines, from the other resource pools, a candidate resource pool in which the number of the reference resource objects corresponding to the selected first resource pool is greater than or equal to the number threshold R corresponding to the selected first resource pool after the reference resource objects are added to the other resource pools; wherein R is determined according to the respective corresponding object proportions which can be reallocated to resources of other resource pools; selecting a second resource pool from the candidate resource pools, and merging the first resource pool into the second resource pool; and provide the information of the first resource object and the information of the second resource pool to the auxiliary resource object through the communication component 60 c; and the other resource pools are the resource pools except the first resource pool in the plurality of resource pools.
Further, when the processor 60b selects the second resource pool from the candidate resource pools, it is specifically configured to: and selecting the resource pool with the minimum difference between the threshold resource amount and the threshold resource amount of the first resource pool from the candidate resource pools as a second resource pool.
Optionally, when the processor 60b merges the first resource pool into the second resource pool, it is specifically configured to: sending a scheduling notification to the reference resource object of the selected first resource pool through the communication component 60c for the reference resource object of the selected first resource pool to determine whether to join the second resource pool; and if a confirmation message returned by the reference resource object which is confirmed to be added into the second resource pool is received, adding the reference resource object which returns the confirmation message into the second resource pool, and canceling the first resource pool.
In still other embodiments, the processor 60b, prior to receiving, by the communication component 60c, free resources provided by the second resource object to the target resource pool according to the information of its selected target resource pool, is further configured to: responding to the triggering operation of the second resource object on the resource interface information, and acquiring the version number of the resource interface information used by the second resource object; judging whether the version number of the resource interface information used by the second resource object is the same as the version number of the locally stored resource interface information; if the result of the determination is yes, the communication component 60c provides a resource providing page to the second resource object, so that the second resource object provides free resources to the first resource pool, and updates the version number of the locally stored resource interface information.
Further, the processor 60b, when providing the resource provision page to the second resource object via the communication component 60c, is specifically configured to: counting the number of second resource objects with the version number of the used resource interface information being the same as the version number of the locally stored resource interface information; if the number of the second resource objects is multiple, sending a confirmation request for whether to provide the idle resources to the second resource objects so as to allow the second resource objects to perform confirmation response; according to the received confirmation response, the third resource object which returns the confirmation response first is determined, and the resource providing page is provided to the third resource object through the communication component 60c, so that the third resource object provides the free resource to the first resource pool.
In some other embodiments, the processor 60b, before receiving, by the communication component 60c, the free resources provided by the second resource object to the target resource pool according to the information of its selected target resource pool, is further configured to: receiving, via the communication component 60c, the first quota of free resources submitted by the second resource object; if the first amount is smaller than the threshold resource amount corresponding to the target resource pool, sending a prompt message to the first resource object through the communication component 60c to prompt the first resource object to increase the resource amount which is still lacking; the resource amount which is still lacking is equal to the difference value of the first amount and the threshold resource amount corresponding to the target resource pool; and in response to the determination of the hint information by the first resource object, providing, by the communication component 60c, resource interface information for the target resource pool to the first resource object for the first resource object to submit the amount of resources that have not yet been lacked.
Further, the processor 60b is further configured to: and if the resource amount which is not lacked is not received in the specified duration, returning the idle resource of the first quota submitted by the second resource object to the second resource object.
In some optional embodiments, as shown in fig. 6, the computer device may further include: power components 60d, display 60e, audio components 60f, and the like. Only some of the components shown in fig. 6 are schematically shown, and it is not meant that the computer device must include all of the components shown in fig. 6, nor that the computer device only includes the components shown in fig. 6.
The memory 60a is used for storing computer programs and may be configured to store other various data to support operations on the computer device. Wherein the processor 60b may execute computer programs stored in the memory 60a to implement the corresponding control logic. The memory 60a may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Wherein the communication component 60c is configured to facilitate wired or wireless communication between the computer device and other devices. The computer device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The power supply component 60d is configured to provide power to the various components of the computer device. The power components 60d may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
The display 60e may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 60f may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via the communication component 60 c. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals. For example, for a computer device with language interaction functionality, voice interaction with a user or the like may be enabled through the audio component 60 f.
The computer device provided in this embodiment provides, for the resource pool selected by the first resource object in the reference resource object, the information of the first resource object and the information of the resource pool selected by the first resource object to the auxiliary resource object, and the auxiliary resource object may further provide a target resource pool selected from the resource pool selected by the first resource object and a free resource to the target resource pool according to the information of the first resource object and the information of the resource pool selected by the first resource pool. Therefore, the idle resources of the auxiliary resource object can be collected, conditions are provided for the subsequent reallocation of the idle resources, and the idle resources are reduced, so that the resource flow is promoted, and the resource utilization rate is improved.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (13)

1. A method of resource collection, comprising:
receiving information of a first resource object sent by the first resource object and identification information of at least one resource pool selected by the first resource object; the first resource object is any one of the reference resource objects;
determining the information of the at least one resource pool according to the identification information of the at least one resource pool;
providing information of the first resource object and information of the at least one resource pool to an auxiliary resource object to collect free resources from the auxiliary resource object;
receiving idle resources provided by a second resource object to a target resource pool according to the information of the selected target resource pool; the second resource object is one or more of the auxiliary resource objects; the target resource pool selected by each second resource object is one or more of the at least one resource pool.
2. The method of claim 1, wherein the information for each resource pool comprises a threshold amount of resources and resource interface information;
providing information of the first resource object and information of the at least one resource pool to an auxiliary resource object to collect free resources from the auxiliary resource object, comprising:
providing the information of the first resource object and the threshold resource amount of the at least one resource pool to an auxiliary resource object for the auxiliary resource object to select a target resource pool;
receiving identification information of a target resource pool sent by the second resource object;
generating resource interface information of the target resource pool according to the identification information of the target resource pool;
and providing the resource interface information of the target resource pool to the second resource object so that the second resource object provides free resources to the target resource pool through the resource interface information of the target resource pool.
3. The method according to claim 2, further comprising, before receiving the information of the first resource object and the identification information of the at least one resource pool selected by the first resource object, the information of the first resource object sent by the first resource object:
issuing a plurality of resource pools for collecting idle resources according to the resource reallocation trigger event; each resource pool corresponds to a threshold resource amount for the reference resource object to determine whether to select the resource pool.
4. The method of claim 2, further comprising, prior to providing the information for the first resource object and the information for the at least one resource pool to a secondary resource object:
for a first resource pool, judging whether the number S of reference resource objects of the selected first resource pool is greater than or equal to a set number threshold N; the set number threshold value N is determined according to the proportion of the objects which can be reallocated to the resources and correspond to the first resource pool;
if S is larger than or equal to N, executing the operation of providing the information of the first resource object, the threshold resource amount corresponding to the first resource pool and the resource interface information to the auxiliary resource object;
the first resource pool is any resource pool of the at least one resource pool.
5. The method of claim 4, further comprising:
if S is less than N, determining candidate resource pools of which the number of the reference resource objects is greater than or equal to the number threshold value R corresponding to the resource pool after the reference resource objects of the selected first resource pool are added into the other resource pools; wherein R is determined according to the respective corresponding object proportions of the other resource pools that can be reallocated to resources;
selecting a second resource pool from the candidate resource pools and merging the first resource pool into the second resource pool;
providing the information of the first resource object and the information of the second resource pool to the auxiliary resource object;
wherein the other resource pools are resource pools other than the first resource pool in the plurality of resource pools.
6. The method of claim 5, wherein selecting the second resource pool from the candidate resource pools comprises:
and selecting a resource pool with the minimum difference between the threshold resource amount and the threshold resource amount of the first resource pool from the candidate resource pools as the second resource pool.
7. The method of claim 5, wherein the merging the first resource pool into a second resource pool comprises:
sending a scheduling notification to the reference resource object selected from the first resource pool, so that the reference resource object selected from the first resource pool can determine whether to join the second resource pool;
and if a confirmation message returned by the reference resource object which is confirmed to be added into the second resource pool is received, adding the reference resource object which returns the confirmation message into the second resource pool, and canceling the first resource pool.
8. The method of claim 2, wherein prior to receiving free resources provided to the target resource pool by the second resource object according to the information of the target resource pool selected by the second resource object, the method further comprises:
responding to the triggering operation of the second resource object on the resource interface information, and acquiring the version number of the resource interface information used by the second resource object;
judging whether the version number of the resource interface information used by the second resource object is the same as the version number of the locally stored resource interface information;
if the judgment result is yes, a resource providing page is provided for the second resource object, so that the second resource object provides free resources for the first resource pool, and the version number of the locally stored resource interface information is updated.
9. The method of claim 8, wherein providing the resource provisioning page to the second resource object comprises:
counting the number of second resource objects with the version number of the used resource interface information being the same as the version number of the locally stored resource interface information;
if the number is multiple, sending a confirmation request whether to provide idle resources to the second resource objects for the second resource objects to perform confirmation response;
and according to the condition of the received confirmation response, determining a third resource object which returns the confirmation response firstly, and providing the resource providing page for the third resource object so that the third resource object provides free resources for the first resource pool.
10. The method according to claim 2, wherein the receiving the free resources provided by the second resource object to the target resource pool according to the information of the selected target resource pool comprises:
receiving the idle resource of the first quota submitted by the second resource object;
if the first amount is smaller than the threshold resource amount corresponding to the target resource pool, sending a prompt message to the first resource object to prompt the first resource object to increase the resource amount which is lacked; the amount of the lacking resource is equal to the difference value of the first amount and the threshold resource amount corresponding to the target resource pool;
and responding to the determined operation of the first resource object on the prompt message, and providing resource interface information of the target resource pool to the first resource object so that the first resource object submits the amount of the lacking resource.
11. The method of claim 10, further comprising:
and if the resource amount which is not lacked is not received in the specified duration, returning the idle resources of the first quota submitted by the second resource object to the second resource object.
12. A computer device, comprising: a memory, a processor, and a communications component; wherein the content of the first and second substances,
the memory for storing a computer program;
the processor is coupled to the memory for executing the computer program for:
receiving, by the communication component, information of a first resource object sent by the first resource object and identification information of at least one resource pool selected by the first resource object; the first resource object is any one of the reference resource objects;
determining the information of the at least one resource pool according to the identification information of the at least one resource pool;
providing, by the communication component, information of the first resource object and information of the at least one resource pool to a secondary resource object to collect free resources from the secondary resource object;
receiving, by the communication component, free resources provided by a second resource object to the target resource pool according to information of the selected target resource pool; the second resource object is one or more of the auxiliary resource objects; the target resource pool selected by each second resource object is one or more of the at least one resource pool.
13. A computer-readable storage medium having stored thereon computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1-11.
CN201910457581.4A 2019-05-29 2019-05-29 Resource collection method, device and storage medium Pending CN112015542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910457581.4A CN112015542A (en) 2019-05-29 2019-05-29 Resource collection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910457581.4A CN112015542A (en) 2019-05-29 2019-05-29 Resource collection method, device and storage medium

Publications (1)

Publication Number Publication Date
CN112015542A true CN112015542A (en) 2020-12-01

Family

ID=73501617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910457581.4A Pending CN112015542A (en) 2019-05-29 2019-05-29 Resource collection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112015542A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114843A1 (en) * 2003-11-26 2005-05-26 International Business Machines Corporation Fast detection of the origins of memory leaks when using pooled resources
CN101365103A (en) * 2007-08-06 2009-02-11 中国科学院声学研究所 Interactive service management method for cable television network
US20120113904A1 (en) * 2010-11-08 2012-05-10 Nicholas William Anderson Releasing wireless resources
JP2012181730A (en) * 2011-03-02 2012-09-20 Nec Corp Resource management system, resource management method, and resource management program
US20160095074A1 (en) * 2014-09-25 2016-03-31 Samsung Electronics Co., Ltd. Synchronization procedure and resource control method and apparatus for communication in d2d system
CN105912397A (en) * 2016-03-31 2016-08-31 乐视控股(北京)有限公司 Resources management method and device
WO2017113074A1 (en) * 2015-12-28 2017-07-06 华为技术有限公司 Resource allocation method, device, and system
CN108141905A (en) * 2015-11-06 2018-06-08 华为技术有限公司 The coordination approach and device of area interference between equipment and equipment
CN108848560A (en) * 2018-07-05 2018-11-20 重庆邮电大学 A kind of V2V broadcast resource distribution method divided based on resource pool
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN109710410A (en) * 2018-12-24 2019-05-03 微梦创科网络科技(中国)有限公司 A kind of internet information resource distribution method and device
US20200220924A1 (en) * 2017-11-08 2020-07-09 Huawei Technologies Co., Ltd. Service Deployment Method and Function Management Platform Under Serverless Architecture

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114843A1 (en) * 2003-11-26 2005-05-26 International Business Machines Corporation Fast detection of the origins of memory leaks when using pooled resources
CN101365103A (en) * 2007-08-06 2009-02-11 中国科学院声学研究所 Interactive service management method for cable television network
US20120113904A1 (en) * 2010-11-08 2012-05-10 Nicholas William Anderson Releasing wireless resources
JP2012181730A (en) * 2011-03-02 2012-09-20 Nec Corp Resource management system, resource management method, and resource management program
US20160095074A1 (en) * 2014-09-25 2016-03-31 Samsung Electronics Co., Ltd. Synchronization procedure and resource control method and apparatus for communication in d2d system
CN108141905A (en) * 2015-11-06 2018-06-08 华为技术有限公司 The coordination approach and device of area interference between equipment and equipment
WO2017113074A1 (en) * 2015-12-28 2017-07-06 华为技术有限公司 Resource allocation method, device, and system
CN108293041A (en) * 2015-12-28 2018-07-17 华为技术有限公司 A kind of distribution method of resource, device and system
CN105912397A (en) * 2016-03-31 2016-08-31 乐视控股(北京)有限公司 Resources management method and device
US20200220924A1 (en) * 2017-11-08 2020-07-09 Huawei Technologies Co., Ltd. Service Deployment Method and Function Management Platform Under Serverless Architecture
CN108848560A (en) * 2018-07-05 2018-11-20 重庆邮电大学 A kind of V2V broadcast resource distribution method divided based on resource pool
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN109710410A (en) * 2018-12-24 2019-05-03 微梦创科网络科技(中国)有限公司 A kind of internet information resource distribution method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SACHIN GOYAL等: "A Collective Approach to Harness Idle Resources", 《RESEARCHGATE》, pages 1 - 16 *
郭宁: "基于网格的分布式资源收集与调度的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 02, pages 141 - 45 *

Similar Documents

Publication Publication Date Title
CN108112038B (en) Method and device for controlling access flow
CN109428910B (en) Data processing method, device and system
CN110705980A (en) Method, device and storage medium for processing transaction payment operation based on data analysis
CN111415179A (en) User rights information processing method and device and electronic equipment
CN111709777A (en) Payment mode recommendation method, system, terminal device and storage medium
CN111092814A (en) Service handling request message distribution method and equipment
CN113935764A (en) Member sharing method, system and medium
CN112015577B (en) Intelligent contract calling method and device
CN112019453A (en) Resource reallocation method, equipment and storage medium
JP2021117643A (en) Information processing apparatus, program and information processing method
CN112015542A (en) Resource collection method, device and storage medium
JP2023115165A (en) Information processing device and program
CN106657058B (en) Event resource allocation method and device
CN112019454A (en) Resource processing method, device and storage medium
CN109857492A (en) Loan transaction processing method, device, computer equipment and readable storage medium storing program for executing
CN110275769A (en) Business data processing method and its equipment, storage medium, application server
CN110288366B (en) Evaluation method and device of resource distribution model
CN109714381B (en) Consumption tracking based information pushing method, equipment, storage medium and device
CN107798606A (en) Numerical value resources regulation method and apparatus
CN110874331A (en) Storage address allocation method and device and electronic equipment
CN112418670A (en) Case allocation method, device, equipment and medium
CN111583030A (en) Payment routing method and device
CN116074541B (en) Resource processing method, system, device and electronic equipment
CN109670812A (en) Method of payment, device, terminal and storage medium
CN108846702B (en) Electronic pet transaction method and device based on user points

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination