CN111324459A - Calendar-based resource scheduling method and device, electronic equipment and storage medium - Google Patents
Calendar-based resource scheduling method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111324459A CN111324459A CN202010102787.8A CN202010102787A CN111324459A CN 111324459 A CN111324459 A CN 111324459A CN 202010102787 A CN202010102787 A CN 202010102787A CN 111324459 A CN111324459 A CN 111324459A
- Authority
- CN
- China
- Prior art keywords
- resource
- state information
- occupation state
- calendar
- preset condition
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000012163 sequencing technique Methods 0.000 claims abstract description 11
- 238000004590 computer program Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000013468 resource allocation Methods 0.000 abstract description 6
- 238000011084 recovery Methods 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012384 transportation and delivery Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5011—Pool
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/508—Monitor
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application provides a resource scheduling method and device based on a calendar, electronic equipment and a storage medium. The method comprises the following steps: acquiring an order sent by a user for applying for a target resource, wherein the order carries identification information of the target resource; inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition; if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated; and if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information. The method and the device can improve the rationality of resource allocation and simplify the complexity of resource scheduling.
Description
Technical Field
The present application relates to the field of computer network technologies, and in particular, to a method and an apparatus for scheduling resources based on a calendar, an electronic device, and a storage medium.
Background
With the adoption of the cloud computing technical scheme, the production system on the side of a telecommunication operator can take roots on the ground, so that the importance of better managing and planning resources, scheduling resources and using resources and improving the resource utilization rate is increased. The invention introduces a resource calendar concept, designs and realizes a scheduling method and system based on the combination of resource calendar and resource monitoring by constructing a resource calendar associated life cycle model for bottom layer virtualized resources, and achieves the aims of efficient resource application, rapid delivery and high sharing.
In the traditional thought, the cloud computing resource management and scheduling scheme does not support the requirements of prejudgment and resource peak-to-peak use judgment based on time periods for judging the current resource use state (such as availability, current resource allocation occupation condition and the like), and cannot give full play to the maximum utilization value of resources. According to a management scheduling scheme for resources in a cloud computing environment under the traditional thought, aiming at the scenes of frequent resource application, recovery and high concurrency, the scheduling scheme is lack of flexibility and intelligence, meanwhile, the problem of resource creation failure caused by insufficient resources or resource conflict is difficult to avoid, inherent defects also exist in the aspect of operation and maintenance management, and the operation and maintenance management work at the later stage faces huge challenges along with the expansion of the scale of a resource pool, the increase of users and the continuous change of demands.
In view of the above problems, no effective technical solution exists at present.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for scheduling resources based on a calendar, an electronic device, and a storage medium, which can achieve rationality of resource allocation and simplify complexity of resource scheduling.
In a first aspect, an embodiment of the present application provides a method for scheduling resources based on a calendar, including the following steps:
acquiring an order sent by a user for applying for a target resource, wherein the order carries identification information of the target resource;
inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition;
if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated;
and if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information.
Optionally, in the method for scheduling resources based on a calendar according to the embodiment of the present application, the querying a resource calendar module according to the identification information to obtain the occupation state information of the target resource, and determining whether the occupation state information meets a preset condition includes:
inquiring a resource calendar module according to the identification information to acquire the number of orders of the target resource and the total amount of the required resource;
if the order quantity is smaller than a preset value, judging that the occupation state information meets a preset condition;
and if the order quantity is larger than a preset value, judging that the occupation state information does not meet a preset condition.
Optionally, in the method for scheduling resources based on a calendar according to the embodiment of the present application, if the occupancy state information does not satisfy a preset condition, the step of sorting the order and adding the first preemption state corresponding to the target resource to the occupancy state information includes:
if the occupation state information does not meet the preset condition, inquiring the total amount of resources required by the reservation order according to the identification information, and calculating the over-allocation ratio of the resource pool, wherein the over-allocation ratio of the resource pool is equal to the ratio of the total amount of the reserved resources to the total amount of the system resources;
and sequencing the orders according to the resource pool over-allocation ratio, and calculating the reservation time required by sequencing the orders.
Optionally, in the method for scheduling resources based on a calendar according to the embodiment of the present application, the method further includes the following steps:
and when the shutdown of the resources is monitored, sending a message to inform the resource calendar module to update the resource calendar.
Optionally, in the method for scheduling resources based on a calendar according to the embodiment of the present application, the method further includes the following steps:
and when the preset resources are matched, sending a message to inform the resource calendar module to update the resource calendar.
In a second aspect, an embodiment of the present application provides a calendar-based resource scheduling apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an order sent by a user and used for applying for a target resource, and the order carries identification information of the target resource;
the judging module is used for inquiring the resource calendar module according to the identification information to acquire the occupation state information of the target resource and judging whether the occupation state information meets the preset condition or not;
the calling module is used for directly calling the target resource and updating the occupation state information in the resource calendar module if the occupation state information meets the preset condition;
and the ordering module is used for ordering the orders if the occupation state information does not meet the preset condition, and adding a first occupation state corresponding to the target resource into the occupation state information.
Optionally, in the calendar-based resource scheduling apparatus according to an embodiment of the present application, the determining module includes:
the first acquisition unit is used for inquiring the resource calendar module according to the identification information so as to acquire the number of orders of the target resource and the total amount of the required resource;
the first judging unit is used for judging that the occupation state information meets a preset condition if the order quantity is smaller than a preset value;
and the second judging unit is used for judging that the occupation state information does not meet the preset condition if the order quantity is larger than the preset value.
Optionally, in the calendar-based resource scheduling apparatus according to an embodiment of the present application, the sorting module includes:
the first calculation unit is used for inquiring the total amount of resources required by the reservation order according to the identification information and calculating the over-allocation ratio of the resource pool if the occupation state information does not meet the preset condition, wherein the over-allocation ratio of the resource pool is equal to the ratio of the total amount of the reserved resources to the total amount of the system resources;
and the ordering unit is used for ordering the orders according to the resource pool over-allocation ratio and calculating the reservation time required by ordering the orders.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method as provided in the first aspect are executed.
In a fourth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps in the method as provided in the first aspect.
As can be seen from the above, in the embodiment of the present application, an order sent by a user for applying for a target resource is obtained, where the order carries identification information of the target resource; inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition; if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated; if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information; therefore, the calling of the resources based on the calendar state is realized, the rationality of resource allocation can be improved, and the complexity of resource scheduling is simplified.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for scheduling resources based on a calendar according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a calendar-based resource scheduling apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a calendar-based resource scheduling method in some embodiments of the present application, wherein the calendar-based resource scheduling method is integrated in an electronic device such as a server, a terminal, and the like in the form of a computer program. The embodiment of the application provides a resource scheduling method based on a calendar, which comprises the following steps:
s101, obtaining an order sent by a user and used for applying for a target resource, wherein the order carries identification information of the target resource.
S102, inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition.
S103, if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated.
And S104, if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information.
In step S101, the order not only carries the identification information of the target resource, but also carries the time information of the target resource to be used and the name of the application using the target resource. Of course, it is not limited thereto.
Wherein, in the step S102, the occupation state information is stored in the resource calendar module, and the resource calendar module includes: the system comprises a unified message interface, a pre-occupation processor, a pre-recovery processor and a resource occupation processor. The unified message interface is responsible for receiving resource calendar updating messages transmitted by other modules and distributing the messages to corresponding processors for processing; simultaneously, providing a resource query interface to the outside; and the pre-occupation processor is used for processing the resource pre-occupation condition and updating the calendar chart, and for example, after the resource order is submitted, a resource pre-occupation message is sent to inform the processor. The pre-recovery processor is used for processing resources pre-recovery resources, and when one resource is about to expire (due reminding time is automatically set by the system), the system automatically sends a message request to calculate the amount of the pre-recovery resources; the resource occupation processor is used for calculating the current resource usage amount and total amount information of the resource pool in real time, and when a new resource is created or a new host is added to the resource pool, the processor can be automatically or manually informed to recalculate the resource usage condition in the resource pool.
In a specific implementation process, the step S102 includes the following sub-steps: s1021, inquiring a resource calendar module according to the identification information to acquire the number of orders of the target resource and the total amount of the required resource; s1022, if the order quantity is smaller than a preset value, judging that the occupation state information meets a preset condition; and S1023, if the order quantity is larger than a preset value, judging that the occupation state information does not meet a preset condition.
In this step S103, if the occupancy state information does not satisfy the preset condition, the step of sorting the order and adding the first preemption state corresponding to the target resource to the occupancy state information includes: s1031, if the occupation state information does not meet the preset condition, inquiring the total amount of the resources required by the reservation order according to the identification information, and calculating the over-allocation ratio of the resource pool, wherein the over-allocation ratio of the resource pool is equal to the ratio of the total amount of the reserved resources to the total amount of the system resources; s1032, the orders are sorted according to the resource pool over-allocation ratio, and the reservation time required by the order sorting is calculated.
In order to realize a resource calendar model, a calendar-based mode is required to be used as a resource modeling mode, and the resource model in the invention is greatly different from the traditional resource model and is an innovative point of the patent, which is particularly represented by the following three points: firstly, defining a resource state based on the change of resource occupied by a resource object; and secondly, the resource state change is related to the resource calendar information, and the resource calendar information is informed by actively triggering the information. And thirdly, the life cycle of the resource object is closely combined with the order management module, manual modification control can be performed, and management is more flexible.
It is understood that, in some embodiments, after the step S104 is executed, the method further includes the following steps:
and S105, when the fact that the resource is shut down is monitored, sending a message to inform the resource calendar module to update the resource calendar.
It is understood that, in some embodiments, after the step S104 is executed, the method further includes the following steps:
and S106, when the preset resources are matched, sending a message to inform the resource calendar module to update the resource calendar.
Wherein, the resource status packet: pre-occupation, allocated, secondary adjustment, and resource release. Wherein, the pre-occupation is as follows: when the resource order is submitted, the system generates a resource object, and the object state is a pre-occupation state. Has been allocated as: and after the resource order is approved and the resource is successfully created, the resource object state is changed into the allocated state. The secondary adjustment is as follows: in the resource using process, if the resource configuration is adjusted (manually or dynamically), the resource object state is changed to a secondary adjustment state (the secondary adjustment refers to that the resource is changed from the initial configuration, and the number of times of adjustment can be multiple, but is all referred to as secondary adjustment). The resource release is as follows: when the resource object is not used any more and the resource is released, the state of the resource object is changed into a release state, the resource state is changed from 'real' to 'virtual', and the system can automatically archive the resource in the release state.
As can be seen from the above, in the embodiment of the present application, an order sent by a user for applying for a target resource is obtained, where the order carries identification information of the target resource; inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition; if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated; if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information; therefore, the calling of the resources based on the calendar state is realized, the rationality of resource allocation can be improved, and the complexity of resource scheduling is simplified.
Referring to fig. 2, fig. 2 is a block diagram of an apparatus for scheduling resources based on a calendar according to some embodiments of the present application, the apparatus including: a first obtaining module 201, a judging module 202, a calling module 203 and a sorting module 204.
The first obtaining module 201 is configured to obtain an order sent by a user for applying for a target resource, where the order carries identification information of the target resource; the order carries not only the identification information of the target resource, but also the time information of the target resource to be used and the name of the application using the target resource. Of course, it is not limited thereto.
The judging module 202 is configured to query a resource calendar module according to the identification information to obtain the occupation state information of the target resource, and judge whether the occupation state information meets a preset condition; the determining module 202 includes: the device comprises a first acquisition unit, a first judgment unit and a second judgment unit. The first acquisition unit is used for inquiring the resource calendar module according to the identification information so as to acquire the number of orders of the target resource and the total amount of the required resource; the first judging unit is used for judging that the occupation state information meets a preset condition if the order quantity is smaller than a preset value; and the second judging unit is used for judging that the occupation state information does not meet the preset condition if the order quantity is larger than the preset value. Wherein the occupancy state information is stored in the resource calendar module, the resource calendar module comprising: the system comprises a unified message interface, a pre-occupation processor, a pre-recovery processor and a resource occupation processor. The unified message interface is responsible for receiving resource calendar updating messages transmitted by other modules and distributing the messages to corresponding processors for processing; simultaneously, providing a resource query interface to the outside; and the pre-occupation processor is used for processing the resource pre-occupation condition and updating the calendar chart, and for example, after the resource order is submitted, a resource pre-occupation message is sent to inform the processor. The pre-recovery processor is used for processing resources pre-recovery resources, and when one resource is about to expire (due reminding time is automatically set by the system), the system automatically sends a message request to calculate the amount of the pre-recovery resources; the resource occupation processor is used for calculating the current resource usage amount and total amount information of the resource pool in real time, and when a new resource is created or a new host is added to the resource pool, the processor can be automatically or manually informed to recalculate the resource usage condition in the resource pool.
The calling module 203 is configured to directly call the target resource and update the occupation state information in the resource calendar module if the occupation state information meets a preset condition; in order to realize a resource calendar model, a calendar-based mode is required to be used as a resource modeling mode, and the resource model in the invention is greatly different from the traditional resource model and is an innovative point of the patent, which is particularly represented by the following three points: firstly, defining a resource state based on the change of resource occupied by a resource object; and secondly, the resource state change is related to the resource calendar information, and the resource calendar information is informed by actively triggering the information. And thirdly, the life cycle of the resource object is closely combined with the order management module, manual modification control can be performed, and management is more flexible.
The sorting module 204 is configured to, if the occupation state information does not satisfy a preset condition, sort the orders, and add a first occupation state corresponding to the target resource to the occupation state information. The sorting module 204 includes: the first calculation unit is used for inquiring the total amount of resources required by the reservation order according to the identification information and calculating the over-allocation ratio of the resource pool if the occupation state information does not meet the preset condition, wherein the over-allocation ratio of the resource pool is equal to the ratio of the total amount of the reserved resources to the total amount of the system resources; and the ordering unit is used for ordering the orders according to the resource pool over-allocation ratio and calculating the reservation time required by ordering the orders.
As can be seen from the above, in the embodiment of the present application, an order sent by a user for applying for a target resource is obtained, where the order carries identification information of the target resource; inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition; if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated; if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information; therefore, the calling of the resources based on the calendar state is realized, the rationality of resource allocation can be improved, and the complexity of resource scheduling is simplified.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the present disclosure provides an electronic device 3, including: the processor 301 and the memory 302, the processor 301 and the memory 302 being interconnected and communicating with each other via a communication bus 303 and/or other form of connection mechanism (not shown), the memory 302 storing a computer program executable by the processor 301, the processor 301 executing the computer program when the computing device is running to perform the method of any of the alternative implementations of the embodiments described above.
The embodiment of the present application provides a storage medium, and when being executed by a processor, the computer program performs the method in any optional implementation manner of the above embodiment. The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A resource scheduling method based on calendar is characterized by comprising the following steps:
acquiring an order sent by a user for applying for a target resource, wherein the order carries identification information of the target resource;
inquiring a resource calendar module according to the identification information to acquire the occupation state information of the target resource, and judging whether the occupation state information meets a preset condition;
if the occupation state information meets the preset condition, the target resource is directly called, and the occupation state information in the resource calendar module is updated;
and if the occupation state information does not meet the preset condition, sequencing the orders, and adding a first occupation state corresponding to the target resource into the occupation state information.
2. A calendar-based resource scheduling method according to claim 1, wherein the step of querying a resource calendar module according to the identification information to obtain the occupation state information of the target resource and determining whether the occupation state information satisfies a preset condition comprises:
inquiring a resource calendar module according to the identification information to acquire the number of orders of the target resource and the total amount of the required resource;
if the order quantity is smaller than a preset value, judging that the occupation state information meets a preset condition;
and if the order quantity is larger than a preset value, judging that the occupation state information does not meet a preset condition.
3. The method according to claim 1, wherein if the occupancy state information does not satisfy a preset condition, the step of sorting the order and adding the first pre-occupancy state corresponding to the target resource to the occupancy state information comprises:
if the occupation state information does not meet the preset condition, inquiring the total amount of resources required by the reservation order according to the identification information, and calculating the over-allocation ratio of the resource pool, wherein the over-allocation ratio of the resource pool is equal to the ratio of the total amount of the reserved resources to the total amount of the system resources;
and sequencing the orders according to the resource pool over-allocation ratio, and calculating the reservation time required by sequencing the orders.
4. A method for calendar-based resource scheduling as claimed in claim 1, further comprising the steps of:
and when the shutdown of the resources is monitored, sending a message to inform the resource calendar module to update the resource calendar.
5. A method for calendar-based resource scheduling as claimed in claim 1, further comprising the steps of:
and when the preset resources are matched, sending a message to inform the resource calendar module to update the resource calendar.
6. A calendar-based resource scheduling apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an order sent by a user and used for applying for a target resource, and the order carries identification information of the target resource;
the judging module is used for inquiring the resource calendar module according to the identification information to acquire the occupation state information of the target resource and judging whether the occupation state information meets the preset condition or not;
the calling module is used for directly calling the target resource and updating the occupation state information in the resource calendar module if the occupation state information meets the preset condition;
and the ordering module is used for ordering the orders if the occupation state information does not meet the preset condition, and adding a first occupation state corresponding to the target resource into the occupation state information.
7. A calendar-based resource scheduling apparatus as claimed in claim 6, wherein the determining module comprises:
the first acquisition unit is used for inquiring the resource calendar module according to the identification information so as to acquire the number of orders of the target resource and the total amount of the required resource;
the first judging unit is used for judging that the occupation state information meets a preset condition if the order quantity is smaller than a preset value;
and the second judging unit is used for judging that the occupation state information does not meet the preset condition if the order quantity is larger than the preset value.
8. A calendar-based resource scheduling apparatus as claimed in claim 6, wherein the ranking module comprises:
the first calculation unit is used for inquiring the total amount of resources required by the reservation order according to the identification information and calculating the over-allocation ratio of the resource pool if the occupation state information does not meet the preset condition, wherein the over-allocation ratio of the resource pool is equal to the ratio of the total amount of the reserved resources to the total amount of the system resources;
and the ordering unit is used for ordering the orders according to the resource pool over-allocation ratio and calculating the reservation time required by ordering the orders.
9. An electronic device comprising a processor and a memory, said memory storing computer readable instructions which, when executed by said processor, perform the steps of the method of any of claims 1-5.
10. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010102787.8A CN111324459A (en) | 2020-02-19 | 2020-02-19 | Calendar-based resource scheduling method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010102787.8A CN111324459A (en) | 2020-02-19 | 2020-02-19 | Calendar-based resource scheduling method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111324459A true CN111324459A (en) | 2020-06-23 |
Family
ID=71171105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010102787.8A Pending CN111324459A (en) | 2020-02-19 | 2020-02-19 | Calendar-based resource scheduling method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111324459A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113343148A (en) * | 2021-06-18 | 2021-09-03 | 上海哔哩哔哩科技有限公司 | Resource processing method, client, server and system |
CN114185688A (en) * | 2022-02-14 | 2022-03-15 | 维塔科技(北京)有限公司 | Physical resource occupation state correction method, scheduler and readable storage medium |
CN117827453A (en) * | 2023-12-29 | 2024-04-05 | 柏域信息科技(上海)有限公司 | Storage resource ordering method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731657A (en) * | 2013-12-24 | 2015-06-24 | 中国移动通信集团山西有限公司 | Resource scheduling method and system |
CN109657827A (en) * | 2018-12-19 | 2019-04-19 | 口碑(上海)信息技术有限公司 | Service reservation method and device based on resource status |
CN109766186A (en) * | 2019-01-03 | 2019-05-17 | 中国联合网络通信集团有限公司 | Reserve resource distribution method, device, system and readable storage medium storing program for executing |
CN110415077A (en) * | 2019-07-24 | 2019-11-05 | 万翼科技有限公司 | Data processing method, server, terminal and storage medium based on the date |
-
2020
- 2020-02-19 CN CN202010102787.8A patent/CN111324459A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731657A (en) * | 2013-12-24 | 2015-06-24 | 中国移动通信集团山西有限公司 | Resource scheduling method and system |
CN109657827A (en) * | 2018-12-19 | 2019-04-19 | 口碑(上海)信息技术有限公司 | Service reservation method and device based on resource status |
CN109766186A (en) * | 2019-01-03 | 2019-05-17 | 中国联合网络通信集团有限公司 | Reserve resource distribution method, device, system and readable storage medium storing program for executing |
CN110415077A (en) * | 2019-07-24 | 2019-11-05 | 万翼科技有限公司 | Data processing method, server, terminal and storage medium based on the date |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113343148A (en) * | 2021-06-18 | 2021-09-03 | 上海哔哩哔哩科技有限公司 | Resource processing method, client, server and system |
CN113343148B (en) * | 2021-06-18 | 2023-12-01 | 上海哔哩哔哩科技有限公司 | Resource processing method, client, server and system |
CN114185688A (en) * | 2022-02-14 | 2022-03-15 | 维塔科技(北京)有限公司 | Physical resource occupation state correction method, scheduler and readable storage medium |
CN114185688B (en) * | 2022-02-14 | 2023-03-10 | 维塔科技(北京)有限公司 | Physical resource occupation state correction method, scheduler and readable storage medium |
CN117827453A (en) * | 2023-12-29 | 2024-04-05 | 柏域信息科技(上海)有限公司 | Storage resource ordering method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10481935B2 (en) | Management system, overall management node, and management method for managing virtualization resources in a mobile communication network | |
CN108776934B (en) | Distributed data calculation method and device, computer equipment and readable storage medium | |
CN113900767B (en) | Monitoring clusters and container-as-a-service controller implementing auto-scaling policies | |
US10481953B2 (en) | Management system, virtual communication-function management node, and management method for managing virtualization resources in a mobile communication network | |
CN111324459A (en) | Calendar-based resource scheduling method and device, electronic equipment and storage medium | |
CN112256423A (en) | System, apparatus, and process for dynamic tenant fabric adjustment in a distributed resource management system | |
US8949429B1 (en) | Client-managed hierarchical resource allocation | |
CN109152061B (en) | Channel allocation method, device, server and storage medium | |
US8880676B1 (en) | Resource planning for computing | |
CN112272203A (en) | Cluster service node selection method, system, terminal and storage medium | |
JPWO2007072544A1 (en) | Information processing apparatus, computer, resource allocation method, and resource allocation program | |
CN108696571B (en) | Cloud storage service system and method, cloud service intelligent equipment and electronic device | |
CN107665143B (en) | Resource management method, device and system | |
CN101969399A (en) | Routing method and system for clients to call services | |
CN108121599A (en) | A kind of method for managing resource, apparatus and system | |
CN109902919A (en) | Server assets management method, device, equipment and readable storage medium storing program for executing | |
CN113055416B (en) | Management method and device for container cluster node resource pool | |
EP4206915A1 (en) | Container creation method and apparatus, electronic device, and storage medium | |
CN111291018B (en) | Data management method, device, equipment and storage medium | |
CN109542841A (en) | The method and terminal device of data snapshot are created in cluster | |
CN111209333B (en) | Data updating method, device, terminal and storage medium | |
EP2828761A1 (en) | A method and system for distributed computing of jobs | |
CN103491115A (en) | Resource dispatching method, resource dispatching device and resource dispatching system | |
CN112035460A (en) | Identification distribution method, device, equipment and storage medium | |
CN114090201A (en) | Resource scheduling method, device, equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200623 |
|
RJ01 | Rejection of invention patent application after publication |