CN110781000B - Multi-application resource allocation method and device - Google Patents

Multi-application resource allocation method and device Download PDF

Info

Publication number
CN110781000B
CN110781000B CN201910986523.0A CN201910986523A CN110781000B CN 110781000 B CN110781000 B CN 110781000B CN 201910986523 A CN201910986523 A CN 201910986523A CN 110781000 B CN110781000 B CN 110781000B
Authority
CN
China
Prior art keywords
resource
application
label
association
tag
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.)
Active
Application number
CN201910986523.0A
Other languages
Chinese (zh)
Other versions
CN110781000A (en
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201910986523.0A priority Critical patent/CN110781000B/en
Publication of CN110781000A publication Critical patent/CN110781000A/en
Application granted granted Critical
Publication of CN110781000B publication Critical patent/CN110781000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The invention provides a resource allocation method and device for multiple applications. The method comprises the following steps: establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table; determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table; traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated; and determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy. The invention distributes limited resources to complicated business application, and the company business department does not need to care about the specific configuration and quantity of the resources, and only needs to put forward specific requirements as a user, so long as the whole resource pool has idle equipment, the proper resources can be found from all the idle resources for the business department to use, and the matching time is short.

Description

Multi-application resource allocation method and device
Technical Field
The present invention relates to the field of resource allocation technologies, and in particular, to a method and an apparatus for allocating resources for multiple applications.
Background
A company needs to maintain hundreds of machines, and even more so, there are large enterprises where the number of machines is kept in the tens of thousands. These machines are distributed to tens of departments, each of which requires a different operating environment. Often, there are tens of business departments of a company, and there may be tens of business lines for each business department. Taking the financial science and technology field as an example, Excel is needed as the operation environment needed by the automatic application for anti-money laundering and reimbursement, and mailbox is needed as the operation environment needed by the automatic application for transaction purpose investigation of the credit card center. The inability to allocate limited resources to intricate business applications is a problem with the prior art.
Disclosure of Invention
In order to solve the above problem, an embodiment of the present invention provides a resource allocation method for multiple applications, where the method includes:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
and determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy.
Optionally, in an embodiment of the present invention, the application table includes an application number, an application name, an application organization number, an application entity number, and an application type; the application tag table includes an application number and an application tag number.
Optionally, in an embodiment of the present invention, the resource table includes a resource number, a resource name, a resource organization number, a resource entity number, a resource type, a resource IP address, and a resource MAC address; the resource tag table includes a resource number and a resource tag number.
Optionally, in an embodiment of the present invention, the application resource association table includes an application number, a resource type, a resource IP address, and a resource MAC address.
Optionally, in an embodiment of the present invention, the establishing an application resource association table by using the application table, the application tag table, the resource table, and the resource tag table includes: judging whether the application label number is a subset of the resource label number; if yes, establishing an application resource association table according to the application table, the application label table, the resource table and the resource label table.
Optionally, in an embodiment of the present invention, the setting the state of the available free resource to busy includes: according to the CAS principle, the state of the available free resources is changed from free to busy.
An embodiment of the present invention further provides a multi-application resource allocation apparatus, where the apparatus includes:
the association table module is used for establishing an application resource association table by utilizing the application table, the application tag table, the resource table and the resource tag table;
the application numbering module is used for determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
the resource numbering module is used for traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
and the resource allocation module is used for determining the resource label number corresponding to the available free resource according to the resource table and the resource label table and setting the state of the available free resource to be busy.
Optionally, in an embodiment of the present invention, the application table includes an application number, an application name, an application organization number, an application entity number, and an application type; the application tag table includes an application number and an application tag number.
Optionally, in an embodiment of the present invention, the resource table includes a resource number, a resource name, a resource organization number, a resource entity number, a resource type, a resource IP address, and a resource MAC address; the resource tag table includes a resource number and a resource tag number.
Optionally, in an embodiment of the present invention, the application resource association table includes an application number, a resource type, a resource IP address, and a resource MAC address.
Optionally, in an embodiment of the present invention, the association table module includes: a judging unit configured to judge whether the application tag number is a subset of the resource tag number; and the association table unit is used for establishing an application resource association table according to the application table, the application label table, the resource table and the resource label table if the application resource association table is the application resource association table.
Optionally, in an embodiment of the present invention, the resource allocation module includes: a resource allocation unit for changing the state of available free resources from free to busy according to the CAS (Compare and set) principle.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the following steps are implemented:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
and determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
and determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy.
The invention can allocate limited resources to complicated business application, the company business department does not need to care about the specific configuration and quantity of the resources, the company business department only needs to put forward specific requirements as a user, as long as the whole resource pool has idle equipment, appropriate resources can be found from all the idle resources for the business department to use, and the matching time is short.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a resource allocation method for multiple applications according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating the establishment of an application resource association table according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a resource allocation apparatus for multiple applications according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a resource allocation method and device for multiple applications.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
When the colleagues in the company business department apply for the resources for the applications, the following dilemma can be met: it is very difficult to apply for appropriate resources in a large number of machines. Colleagues in the traffic segment may not have the ability to differentiate. For example, a Windows system includes: windows7, Windows 10, Windows Server 2003, Windows Server 2008, Windows Server 2012, etc., the Linux system including: RedHat, CentOs, Darwin, Fedora, Ubuntu, etc. There is not enough data support to decide how much resources should be applied. When new resources or new applications are added, colleagues needing to be informed to a business department perform manual association, and errors are easy to occur.
The invention respectively manages a group of labels for the application and the resource, the application and the resource are automatically matched with each other, and the most matched resource is dynamically allocated for the application in 0(n) time. Fig. 1 is a flowchart of a resource allocation method for multiple applications according to an embodiment of the present invention, where the method includes:
and step S1, establishing an application resource association table by using the application table, the application label table, the resource table and the resource label table.
In step S1, the application means that the business department needs a business scenario, and taking the field of financial technology as an example, the application includes the steps of money reverse washing, money complement, credit card stop, credit card amount reduction, regular reporting and making of the debt, and the like. Each application corresponds to an application number, which can be represented by numbers 1, 2, 3, etc., each application corresponds to at least one application tag, which can be Word, Email, Excel, etc.
And recording the information corresponding to the application in the application table and the application label table. The resource refers to equipment or a machine, each resource corresponds to a resource number and can be represented by numbers 1, 2, 3 and the like, each resource corresponds to at least one resource label, and the resource label can be Word, Email, Excel and the like. The information corresponding to the resource is recorded in the resource table and the resource tag table. The application resource association table records an association relationship between an application and a resource, wherein the application and the resource are in a many-to-one relationship.
And step S2, determining the application number corresponding to the application of the resource to be distributed according to the application table and the application label table.
In step S2, when an application starts to execute, the application number corresponding to the application can be determined using the application table and the application tag table.
Step S3, according to the application number corresponding to the application of the resource to be allocated, traversing the application resource association table, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated.
In step S3, the application resource association table is traversed to find the application number consistent with the application of the resource to be allocated, so that the resource number corresponding to the application number can be determined, where only the resource number corresponding to the resource in the idle state is selected.
And step S4, according to the resource table and the resource label table, determining the resource label number corresponding to the available free resource, and setting the state of the available free resource as busy.
In step S4, using the resource table and the resource label table, the resource number of the available free resource, the corresponding resource label number, and the resource label number may be an abbreviation of a number, a letter, or a label, and the status of the resource is modified to be busy to occupy the resource.
In this embodiment, by establishing the application resource association table, according to the application and the number and the label corresponding to the resource, the idle resource available to the application is quickly determined and occupied, so that the quick allocation of the resource of the application is completed, and the process is convenient and accurate.
As an embodiment of the present invention, the application table includes an application number, an application name, an application organization number, an application entity number, and an application type; the application tag table includes an application number and an application tag number. Wherein, the application label number can be a number, a letter, or an abbreviation of a label.
In this embodiment, the resource table includes a resource number, a resource name, a resource organization number, a resource entity number, a resource type, a resource IP address, and a resource MAC address; the resource tag table includes a resource number and a resource tag number.
In this embodiment, the application resource association table includes an application number, a resource type, a resource IP address, and a resource MAC address.
The establishing of the application resource association table by using the application table, the application tag table, the resource table and the resource tag table comprises the following steps: judging whether the application label number is a subset of the resource label number; if yes, establishing an application resource association table according to the application table, the application label table, the resource table and the resource label table.
As an embodiment of the present invention, setting the status of available free resources to busy includes: according to the CAS (Compare and set) principle, the state of the available free resources is changed from free to busy.
In one embodiment of the present invention, the data structure of the application table is shown in table 1.
TABLE 1
Figure BDA0002236866290000061
The data structure of the application tag table is shown in table 2.
TABLE 2
Figure BDA0002236866290000062
The data structure of the resource table is shown in table 3.
TABLE 3
Figure BDA0002236866290000063
The data structure of the resource tag table is shown in table 4.
TABLE 4
Figure BDA0002236866290000064
Figure BDA0002236866290000071
In order to dynamically allocate the best matching resource for the application in the o (n) time, the present invention introduces an application resource association table, and the data structure of the application resource association table is shown in table 5.
TABLE 5
Figure BDA0002236866290000072
The application resource association table is not manually maintained, but is automatically generated by the system. One record of the application resource association table is an association relationship between one application and one resource. Therefore, in the invention, an association function is defined, and the association function can automatically maintain the association relationship between an application and a resource. The process of applying the association function to create the application resource association table is shown in fig. 2.
When adding and modifying the application, constructing an application resource association table according to the application, and specifically comprising the following steps:
1) obtaining a tag list of the application;
2) acquiring all resources;
3) setting a correlation function for each resource;
4) and executing the association function in parallel to build an application resource association table for the application.
When adding and modifying resources, establishing an application resource association table according to the resources, and specifically comprising the following steps:
1) obtaining a tag list of the resource;
2) acquiring all applications;
3) setting a correlation function for each application;
4) and executing the association function in parallel, and constructing an application resource association table for the resource.
When an application is deleted or a resource is deleted, all records in the application resource association table can be directly deleted.
With the application table, application label table, resource label table, application resource association table, we next describe how to dynamically allocate the best matching resource for the application in o (n) time.
1. When an application is to begin execution, the present invention utilizes an inner join operation to obtain a list of resources that are free to execute the application.
The inner join operation involves three tables: an application table, a resource table and an application resource association table.
The conditions for inner join (inner join) association are:
(1) the application number of the application resource association table is equal to the application number of the application table.
(2) And applying the resource number of the resource association table to log in the resource number of the resource table.
The conditions for the inner join (inner join) operation are:
(1) the application number of the application table is equal to a target application number, such as an anti-money laundering application number.
(2) The state of the resource table is equal to idle.
This way, a list of resources that can execute the application and are free can be obtained. The specific execution SQL statement is shown in table 6.
TABLE 6
Figure BDA0002236866290000081
2. Traversing the free resource list, and changing the state of the resource from free to busy by using the principle of Compare and Set, thereby ensuring that the resource is really occupied.
According to the free resource list acquired in the first step, a resource needs to be further selected to execute the application, and the state of the resource is changed from free to busy, so that the resource is prevented from being reused.
But in changing a resource from idle to busy, the resource may already be occupied. To avoid this, Compare and Set operation is required.
The conditions for the Compare and Set operation are:
(1) the resource number of the resource table is equal to the target resource number.
(2) The state of the resource table is equal to idle.
If the update is successful, the operation returns a 1, and if the change fails, the operation returns a 0.
The specific execution SQL statement is shown in table 7.
TABLE 7
Figure BDA0002236866290000091
Through the two steps, the invention realizes the dynamic allocation of the best matching resource for the application in O (n) time.
The invention can allocate limited resources to complicated service application, and the colleagues in the service department do not need to care about the specific configuration of the resources, and only need to put forward specific requirements as a user. The specific requirements are also very convenient to put forward in the invention, namely the labeling is realized, for example, Excel 2013, IBM Notes9 and the like can be used as a label. The colleagues of the business department do not need to relate to the quantity of resources, and as long as the whole resource pool has idle equipment, the invention can find the proper resources in all the idle resources for the business department to use. The matching time is fast, and a matching scheme of optimal resources can be found for the application in the time of O (n).
Fig. 3 is a schematic structural diagram of a resource allocation apparatus for multiple applications according to an embodiment of the present invention, where the apparatus includes:
the association table module 10 is configured to establish an application resource association table by using the application table, the application tag table, the resource table, and the resource tag table;
an application numbering module 20, configured to determine, according to the application table and the application tag table, an application number corresponding to an application of the resource to be allocated;
the resource numbering module 30 is configured to traverse the application resource association table according to an application number corresponding to an application of a resource to be allocated, and determine a resource number of an available idle resource corresponding to the application of the resource to be allocated;
and the resource allocation module 40 is configured to determine a resource tag number corresponding to the available idle resource according to the resource table and the resource tag table, and set the state of the available idle resource as busy.
As an embodiment of the present invention, the application table includes an application number, an application name, an application organization number, an application entity number, and an application type; the application tag table includes an application number and an application tag number.
In this embodiment, the resource table includes a resource number, a resource name, a resource organization number, a resource entity number, a resource type, a resource IP address, and a resource MAC address; the resource tag table includes a resource number and a resource tag number.
In this embodiment, the application resource association table includes an application number, a resource type, a resource IP address, and a resource MAC address.
Wherein, the correlation table module includes: a judging unit configured to judge whether the application tag number is a subset of the resource tag number; and the association table unit is used for establishing an application resource association table according to the application table, the application label table, the resource table and the resource label table if the application resource association table is in the first state.
As an embodiment of the present invention, a resource allocation module includes: a resource allocation unit for changing the state of available free resources from free to busy according to the CAS principle.
Based on the same application concept as the multi-application resource allocation method, the invention also provides the multi-application resource allocation device. Since the principle of the multi-application resource allocation apparatus for solving the problem is similar to that of the multi-application resource allocation method, the implementation of the multi-application resource allocation apparatus may refer to the implementation of the multi-application resource allocation method, and repeated details are not repeated.
The invention can allocate limited resources to complicated business application, the company business department does not need to care about the specific configuration and quantity of the resources, the company business department only needs to put forward specific requirements as a user, as long as the whole resource pool has idle equipment, appropriate resources can be found from all the idle resources for the business department to use, and the matching time is short.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the following steps are implemented:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
and determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
and determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy.
The invention also provides the computer equipment and a computer readable storage medium based on the same application concept as the multi-application resource allocation method. Since the principle of solving the problem of the computer device and the computer-readable storage medium is similar to that of the multi-application resource allocation method, the implementation of the computer device and the computer-readable storage medium can refer to the implementation of the multi-application resource allocation method, and repeated details are omitted.
The invention can allocate limited resources to complicated business application, the company business department does not need to care about the specific configuration and quantity of the resources, the company business department only needs to put forward specific requirements as a user, as long as the whole resource pool has idle equipment, appropriate resources can be found from all the idle resources for the business department to use, and the matching time is short.
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.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A method for resource allocation for multiple applications, the method comprising:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy;
wherein, the establishing an application resource association table by using the application table, the application tag table, the resource table and the resource tag table comprises:
when the application is added or modified, acquiring an application tag table corresponding to the updated or modified application by using the application table, executing a preset association function corresponding to each resource, and establishing an application resource association table corresponding to the updated or modified application;
when the resources are added or modified, the resource tag table corresponding to the updated or modified resources is obtained by using the resource table, the preset association function corresponding to each application is executed, and the application resource association table corresponding to the updated or modified resources is established.
2. The method of claim 1, wherein the application table comprises an application number, an application name, an application organization number, an application entity number, and an application type; the application tag table includes an application number and an application tag number.
3. The method of claim 2, wherein the resource table comprises a resource number, a resource name, a resource organization number, a resource entity number, a resource type, a resource IP address, and a resource MAC address; the resource tag table includes a resource number and a resource tag number.
4. The method of claim 3, wherein the application resource association table comprises an application number, a resource type, a resource IP address, and a resource MAC address.
5. The method of claim 4, wherein the creating an application resource association table using the application table, the application tag table, the resource table, and the resource tag table comprises:
judging whether the application label number is a subset of the resource label number;
if yes, establishing an application resource association table according to the application table, the application label table, the resource table and the resource label table.
6. The method of claim 1, wherein setting the status of available free resources to busy comprises: according to the CAS principle, the status of available free resources is changed from free to busy.
7. An apparatus for resource allocation of multiple applications, the apparatus comprising:
the association table module is used for establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
the application numbering module is used for determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
the resource numbering module is used for traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
the resource allocation module is used for determining a resource label number corresponding to the available free resource according to the resource table and the resource label table and setting the state of the available free resource to be busy;
wherein the association table module is further configured to:
when the application is added or modified, acquiring an application tag table corresponding to the updated or modified application by using the application table, executing a preset association function corresponding to each resource, and establishing an application resource association table corresponding to the updated or modified application;
when the resources are added or modified, the resource tag table corresponding to the updated or modified resources is obtained by using the resource table, the preset association function corresponding to each application is executed, and the application resource association table corresponding to the updated or modified resources is established.
8. The apparatus of claim 7, wherein the application table comprises an application number, an application name, an application organization number, an application entity number, and an application type; the application tag table includes an application number and an application tag number.
9. The apparatus of claim 8, wherein the resource table comprises a resource number, a resource name, a resource organization number, a resource entity number, a resource type, a resource IP address, and a resource MAC address; the resource tag table includes a resource number and a resource tag number.
10. The apparatus of claim 9, wherein the application resource association table comprises an application number, a resource type, a resource IP address, and a resource MAC address.
11. The apparatus of claim 10, wherein the association table module comprises:
a judging unit configured to judge whether the application tag number is a subset of the resource tag number;
and the association table unit is used for establishing an application resource association table according to the application table, the application label table, the resource table and the resource label table if the application resource association table is in the first state.
12. The apparatus of claim 7, wherein the resource allocation module comprises: a resource allocation unit for changing the state of available free resources from free to busy according to the CAS principle.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy;
wherein, the establishing an application resource association table by using the application table, the application tag table, the resource table and the resource tag table comprises:
when the application is added or modified, the application tag table corresponding to the updated or modified application is obtained by using the application table, the preset association function corresponding to each resource is executed, and the application resource association table corresponding to the updated or modified application is established;
when the resources are added or modified, the resource tag table corresponding to the updated or modified resources is obtained by using the resource table, the preset association function corresponding to each application is executed, and the application resource association table corresponding to the updated or modified resources is established.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of:
establishing an application resource association table by utilizing the application table, the application label table, the resource table and the resource label table;
determining an application number corresponding to the application of the resource to be distributed according to the application table and the application label table;
traversing the application resource association table according to the application number corresponding to the application of the resource to be allocated, and determining the resource number of the available idle resource corresponding to the application of the resource to be allocated;
determining a resource label number corresponding to the available free resource according to the resource table and the resource label table, and setting the state of the available free resource to be busy;
wherein, the establishing an application resource association table by using the application table, the application tag table, the resource table and the resource tag table comprises:
when the application is added or modified, acquiring an application tag table corresponding to the updated or modified application by using the application table, executing a preset association function corresponding to each resource, and establishing an application resource association table corresponding to the updated or modified application;
when the resources are added or modified, the resource tag table corresponding to the updated or modified resources is obtained by using the resource table, the preset association function corresponding to each application is executed, and the application resource association table corresponding to the updated or modified resources is established.
CN201910986523.0A 2019-10-17 2019-10-17 Multi-application resource allocation method and device Active CN110781000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910986523.0A CN110781000B (en) 2019-10-17 2019-10-17 Multi-application resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910986523.0A CN110781000B (en) 2019-10-17 2019-10-17 Multi-application resource allocation method and device

Publications (2)

Publication Number Publication Date
CN110781000A CN110781000A (en) 2020-02-11
CN110781000B true CN110781000B (en) 2022-07-05

Family

ID=69385848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910986523.0A Active CN110781000B (en) 2019-10-17 2019-10-17 Multi-application resource allocation method and device

Country Status (1)

Country Link
CN (1) CN110781000B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103703445A (en) * 2011-08-05 2014-04-02 甲骨文国际公司 Systems and methods for automatic hardware provisioning based on application characteristics
CN108984286A (en) * 2018-06-29 2018-12-11 广东工业大学 A kind of resource regulating method and system of cloud computing platform
CN109981322A (en) * 2017-12-28 2019-07-05 北京京东尚科信息技术有限公司 The method and apparatus of cloud resource management based on label
CN110278257A (en) * 2019-06-13 2019-09-24 中信银行股份有限公司 A kind of method of mobilism configuration distributed type assemblies node label

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006309691A (en) * 2005-03-28 2006-11-09 Hitachi Ltd Resource allocation management device and resource allocation method
CN103259817B (en) * 2012-02-17 2018-04-10 华为技术有限公司 Method for releasing resource and device
CN103365713B (en) * 2012-04-01 2017-06-20 华为技术有限公司 A kind of scheduling of resource and management method and device
CN105607896B (en) * 2015-09-25 2018-10-02 中国铁路总公司 The development approach and system of application program
CN108920278B (en) * 2018-07-02 2021-12-24 中国建设银行股份有限公司 Resource allocation method and device
CN109783229A (en) * 2018-12-17 2019-05-21 平安普惠企业管理有限公司 The method and device of thread resources distribution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103703445A (en) * 2011-08-05 2014-04-02 甲骨文国际公司 Systems and methods for automatic hardware provisioning based on application characteristics
CN109981322A (en) * 2017-12-28 2019-07-05 北京京东尚科信息技术有限公司 The method and apparatus of cloud resource management based on label
CN108984286A (en) * 2018-06-29 2018-12-11 广东工业大学 A kind of resource regulating method and system of cloud computing platform
CN110278257A (en) * 2019-06-13 2019-09-24 中信银行股份有限公司 A kind of method of mobilism configuration distributed type assemblies node label

Also Published As

Publication number Publication date
CN110781000A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
US10528430B2 (en) Optimized backup of clusters with multiple proxy servers
CN109684065B (en) Resource scheduling method, device and system
US8538797B2 (en) Systems and methods for integrating business processes
EP3353672A1 (en) Method and apparatus for transferring data between databases
JP7133647B2 (en) DATA PROCESSING METHOD, APPARATUS AND COMPUTER-READABLE STORAGE MEDIUM
CN107016016B (en) Data processing method and device
CN109726008B (en) Resource allocation method and equipment
US10698767B1 (en) Decentralized management of multi-service workflows
CN110278264B (en) Block chain-based cross-link communication method and device and transaction system
CN112581018B (en) Method, system, device and storage medium for managing process tasks
CN110968565A (en) Database creation method and system
CN109829678B (en) Rollback processing method and device and electronic equipment
CN107147610B (en) Resource processing method and device
CN110781000B (en) Multi-application resource allocation method and device
CN115905151A (en) Method, system and device for querying circulation information based on backup log
CN109614386B (en) Data processing method, device, server and computer readable storage medium
CN113553264A (en) Test data generation method, test data generation device, electronic device and medium
CN109409843B (en) Subject accounting method and subject accounting equipment
CN112463457A (en) Data protection method, device, medium and system for guaranteeing application consistency
US20160140117A1 (en) Asynchronous sql execution tool for zero downtime and migration to hana
CN112131102A (en) Software project management system, equipment and medium in micro-service mode
CN111209283A (en) Data processing method and device
CN111198846A (en) Data exchange method and device based on block chain
US11709807B2 (en) Optimized tenant schema generation
CN110704517B (en) Method and device for generating task, storage medium and processor

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221125

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Patentee after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Patentee before: CHINA CONSTRUCTION BANK Corp.

Patentee before: Jianxin Financial Science and Technology Co.,Ltd.

TR01 Transfer of patent right