CN114185688A - Physical resource occupation state correction method, scheduler and readable storage medium - Google Patents

Physical resource occupation state correction method, scheduler and readable storage medium Download PDF

Info

Publication number
CN114185688A
CN114185688A CN202210133559.6A CN202210133559A CN114185688A CN 114185688 A CN114185688 A CN 114185688A CN 202210133559 A CN202210133559 A CN 202210133559A CN 114185688 A CN114185688 A CN 114185688A
Authority
CN
China
Prior art keywords
resource
physical
resource occupation
information
record
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.)
Granted
Application number
CN202210133559.6A
Other languages
Chinese (zh)
Other versions
CN114185688B (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.)
Vita Technology Beijing Co ltd
Original Assignee
Vita Technology Beijing 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 Vita Technology Beijing Co ltd filed Critical Vita Technology Beijing Co ltd
Priority to CN202210133559.6A priority Critical patent/CN114185688B/en
Publication of CN114185688A publication Critical patent/CN114185688A/en
Application granted granted Critical
Publication of CN114185688B publication Critical patent/CN114185688B/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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present disclosure relates to a method, an apparatus, a scheduler and a computer readable storage medium for correcting a physical resource occupation state, wherein the method comprises: responding to a resource scheduling request of a user, scheduling physical resources on a physical node to be occupied by the user through a resource scheduler, and recording resource occupation information of the corresponding physical resources; acquiring first resource occupation information which is periodically reported by a physical node and represents the physical resource occupation condition of the physical node; and comparing the first resource occupation information with second resource occupation information of the corresponding physical node recorded by the resource scheduler, and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information. By using the technical scheme, the accurate and reliable resource occupation information is ensured without deploying middleware of high available message service, and the availability of physical resources is improved.

Description

Physical resource occupation state correction method, scheduler and readable storage medium
Technical Field
The present disclosure relates to a physical resource sharing technology, and in particular, to a method, an apparatus, a scheduler, and a computer-readable storage medium for correcting a physical resource occupation state.
Background
With the increasing development of cloud computing, the pooling of physical resources gradually becomes a big trend. The pooling of the physical resources refers to that all the physical resources of the data center are regarded as a resource pool, and the physical resources in the virtual resource pool are globally and uniformly operated, maintained, managed or randomly used through a scheduler according to the requirements of users.
At present, in order to ensure the accuracy and reliability of physical resource occupation information corresponding to a resource pool, in the related art, a highly available message service middleware is configured between a user and a scheduler to ensure that a scheduling request of the user is not lost, and the scheduling request is certainly and smoothly executed by the scheduler, thereby ensuring the accuracy and reliability of the physical resource occupation information.
However, with the existing method, a part of physical resources need to be reserved in the resource pool to deploy the highly available message service middleware, which results in a low physical resource availability in the resource pool.
Disclosure of Invention
The present disclosure is directed to a method, an apparatus, a scheduler, and a computer-readable storage medium for correcting a physical resource occupation state, and aims to solve the above technical problems.
In order to achieve the above object, in a first aspect, the present disclosure provides a method for correcting a physical resource occupation state, including:
responding to a resource scheduling request of a user, scheduling physical resources on a physical node to be occupied by the user through a resource scheduler, and recording resource occupation information of the corresponding physical resources, wherein the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing high available message service;
acquiring first resource occupation information which is periodically reported by a physical node and represents the physical resource occupation condition of the physical node;
and comparing the first resource occupation information with second resource occupation information of the corresponding physical node recorded by the resource scheduler, and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information.
Optionally, the first resource occupation information is a first resource scheduling record of the physical node itself, and the second resource occupation information includes a second resource scheduling record of the physical node and resource occupation state information of the physical node, which are recorded by the resource scheduler;
correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information, including:
and correcting the second resource scheduling record and the resource occupation state information according to the difference between the first resource scheduling record and the second resource scheduling record.
Optionally, the first resource scheduling record is obtained by performing hash calculation according to an identifier of a user occupying the resource on the physical node and a timestamp of the user when applying for the resource.
Optionally, correcting the second resource scheduling record and the resource occupation state information according to a difference between the first resource scheduling record and the second resource scheduling record, including:
and if the second resource scheduling record has redundant scheduling records compared with the first resource scheduling record, deleting the redundant scheduling records from the second resource scheduling record, and changing the occupation state information of the physical resources corresponding to the redundant scheduling records in the resource occupation state information.
Optionally, correcting the second resource scheduling record and the resource occupation state information according to a difference between the first resource scheduling record and the second resource scheduling record, including:
and if the second resource scheduling record has the missing scheduling record compared with the first resource scheduling record, adding the missing scheduling record into the second resource scheduling record, acquiring the occupation state information of the physical resource corresponding to the missing scheduling record from the physical node, and adding the occupation state information into the resource occupation state information.
In a second aspect, the present disclosure provides an apparatus for correcting a physical resource occupation state, including:
the scheduling module is used for responding to a resource scheduling request of a user, scheduling physical resources on a physical node to be occupied by the user through a resource scheduler, and recording resource occupation information of the corresponding physical resources, wherein the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing high-availability message service;
the system comprises an acquisition module, a resource allocation module and a resource allocation module, wherein the acquisition module is used for acquiring first resource occupation information which is periodically reported by a physical node and represents the physical resource occupation condition of the physical node;
and the correction module is used for comparing the first resource occupation information with second resource occupation information of the corresponding physical node recorded by the resource scheduler and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information.
Optionally, the first resource occupation information is a first resource scheduling record of the physical node itself, and the second resource occupation information includes a second resource scheduling record of the physical node and resource occupation state information of the physical node, which are recorded by the resource scheduler;
and the correction module is specifically used for correcting the second resource scheduling record and the resource occupation state information according to the difference between the first resource scheduling record and the second resource scheduling record.
Optionally, the first resource scheduling record is obtained by performing hash calculation according to an identifier of a user occupying the resource on the physical node and a timestamp of the user when applying for the resource.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the first aspect.
In a fourth aspect, the present disclosure provides a scheduler comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of the first aspect.
By the technical scheme, in response to a resource scheduling request of a user, physical resources on a physical node are scheduled to be occupied by the user through a resource scheduler, and resource occupation information of the corresponding physical resources is recorded, wherein the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing high-availability message service; acquiring first resource occupation information which is periodically reported by a physical node and represents the physical resource occupation condition of the physical node; and comparing the first resource occupation information with second resource occupation information of the corresponding physical node recorded by the resource scheduler, and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information.
By utilizing the technical scheme, the second resource occupation information is corrected according to the difference between the first resource occupation information and the second resource occupation information, the corrected second resource occupation information is accurate and reliable, and the high-availability message service middleware is not required to be deployed to ensure that the resource occupation information is accurate and reliable, so that the physical resources corresponding to the high-availability message service middleware are saved, and the availability of the physical resources is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic flowchart of a method for correcting an occupied state of a physical resource according to an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of an apparatus for correcting a physical resource occupation state according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a scheduler provided in an embodiment of the present disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for correcting a physical resource occupation state according to an embodiment of the present disclosure, where an execution subject of the method for correcting a physical resource occupation state may be a scheduler itself, a control terminal that can implement a function server of the scheduler, or a control terminal that can implement a function of the scheduler, and the method for correcting a physical resource occupation state includes the following steps:
s101: responding to a resource scheduling request of a user, scheduling physical resources on a physical node to be occupied by the user through a resource scheduler, and recording resource occupation information of the corresponding physical resources, wherein the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing a high available message service.
For example, a user may send a resource scheduling request through a client or a mobile terminal, where the resource scheduling request may include information about required physical resources of the user, and the required physical resource information may include, but is not limited to, information about required CPU (central processing unit) computing resources, GPU (graphics processing unit) computing resources, display resources, and memory resources.
The physical node may refer to a physical node in a resource pool, where the resource pool includes at least one physical node, and the physical node has physical resources, and the physical resources may include CPU computational resources, GPU computational resources, video memory resources, and memory resources.
After receiving a resource scheduling request of a user, a scheduler responds to the resource scheduling request, determines a corresponding physical node from a resource pool, then schedules physical resources on the physical node to be occupied by the user according to the resource scheduling request, and simultaneously records resource occupation information of the physical resources.
For example, the resource scheduling request of the a user includes 10% of GPU computational power resources, 100M video memory resources, and 2G memory resources required, the scheduler determines a physical node B in the resource pool, then schedules the 10% of GPU computational power resources, 100M video memory resources, and 2G memory resources of the physical node B for the user to occupy, and the scheduler records the resource occupation information of the a user, which may include that the a user occupies 10% of GPU computational power resources, 100M video memory resources, and 2G memory resources of the B physical node.
After the scheduler receives the resource release request sent by the user, the scheduler may control the physical node to release the corresponding physical resource, so that the physical resource of the physical node may be scheduled again.
In a possible implementation manner, a certain physical resource may be determined in a certain physical node in a resource pool, and the physical resource is configured to obtain the scheduler in the present disclosure, where the scheduler may always occupy the corresponding physical resource, and the scheduler is used as an execution main body of the method for correcting the physical resource occupation state in the present disclosure.
In the embodiment of the disclosure, a middleware of the high available message service does not need to be deployed, so that physical resources corresponding to the middleware of the high available message service are saved, and the availability of the physical resources is improved.
S102: first resource occupation information which is periodically reported by a physical node and represents the physical resource occupation condition of the physical node is obtained.
It should be noted that the physical node may report the first resource occupation information periodically, or the scheduler may acquire the first resource occupation information of the physical node periodically. The reporting period in S12 may be a period set by the user based on the requirement, for example, every 10S.
In an embodiment of the present disclosure, the first resource occupation information may include a first resource scheduling record and resource occupation state information of the physical node. For example, the first resource occupation information reported by the scheduling node C may include two resource scheduling records: c, the user requests physical resource occupation at the moment d and the user requests physical resource occupation at the moment f, and the first resource occupation information can also comprise two pieces of resource occupation state information: and c, occupying g physical resources by the user and occupying h physical resources by the e user.
S103: and comparing the first resource occupation information with second resource occupation information of the corresponding physical node recorded by the resource scheduler, and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information.
The second resource occupation information is resource occupation information recorded in real time when the scheduler schedules physical resources on the physical node to occupy the user after receiving the resource scheduling request of the user; the first resource occupation information is the resource occupation information reported by the physical node, the first resource occupation information is compared with the second resource occupation information so as to determine the difference between the first resource occupation information and the second resource occupation information, and then the second resource occupation information is corrected according to the difference.
By utilizing the technical scheme, the second resource occupation information is corrected according to the difference between the first resource occupation information and the second resource occupation information, the corrected second resource occupation information is accurate and reliable, and the high-availability message service middleware is not required to be deployed to ensure that the resource occupation information is accurate and reliable, so that the physical resources corresponding to the high-availability message service middleware are saved, and the availability of the physical resources is improved.
It can be understood that different users send different resource scheduling requests, and the scheduler schedules the corresponding physical resources on the physical node to be occupied by the different users, so as to obtain corresponding second resource occupation information; the second resource occupation information may represent resource occupation information of the physical node recorded by the scheduler at the current time, and the first resource information may represent resource occupation information reported by the physical node at the current time.
In a possible implementation manner, after the user sends the resource scheduling request, the user does not perform any data processing by using the physical resource of the physical node, the physical node automatically releases the physical resource, and the scheduler does not receive the resource release request, so that the first resource occupation information and the second resource occupation information are different. In another possible implementation manner, a communication failure or a power failure of the scheduler causes the second resource occupation information in the scheduler to be lost, and causes the first resource occupation information and the second resource occupation information to be different.
Optionally, the first resource occupation information is a first resource scheduling record of the physical node itself, and the second resource occupation information includes a second resource scheduling record of the physical node and resource occupation state information of the physical node, which are recorded by the resource scheduler; correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information, including: and correcting the second resource scheduling record and the resource occupation state information according to the difference between the first resource scheduling record and the second resource scheduling record.
It should be noted that the first resource occupation information is an actual first resource scheduling record of the physical node itself, the difference between the first resource scheduling record and the second resource scheduling record is determined by comparing the first resource scheduling record and the second resource scheduling record, and then the resource occupation state information of the physical node recorded by the scheduler is corrected according to the difference between the first resource scheduling record and the second resource scheduling record.
The first resource scheduling information is an actual first resource scheduling record of the physical node, the first resource scheduling information does not include other information, and the first resource scheduling information requires less flow and bandwidth when being uploaded, so that the uploading efficiency of the first resource scheduling information is improved, and the network pressure is reduced.
Optionally, the first resource scheduling record is obtained by performing hash calculation according to an identifier of a user occupying a resource on the physical node and a timestamp of the user when the user applies for the resource, where the identifier of the user may be information such as a Universal Unique Identifier (UUID) of the user, a certificate number of the user, or an account number of the user.
In the disclosure, after determining a difference between a first resource scheduling record and a second resource scheduling record, correcting resource occupation state information recorded by a scheduler according to the difference, the method includes: and if the second resource scheduling record has the redundant scheduling record compared with the first resource scheduling record, deleting the redundant scheduling record from the second resource scheduling record and changing the occupation state information of the physical resources corresponding to the redundant scheduling record in the resource occupation state information, or if the second resource scheduling record has the missing scheduling record compared with the first resource scheduling record, adding the missing scheduling record into the second resource scheduling record, acquiring the occupation state information of the physical resources corresponding to the missing scheduling record from the physical node, and adding the occupation state information into the resource occupation state information.
For example, the actual occupation situation of the physical resources of the physical node F is: user 1 uses 10% of GPU computational power resources, 100M video memory resources, 15% of CPU computational power resources and 200M memory resources; user 2 uses 5% of GPU computing resources, 50M of video memory resources, 10% of CPU computing resources, and 100M of memory resources. The physical node F reports to the scheduler that the first resource scheduling record includes the resource scheduling record for user 1 (uuid of user 1 and timestamp of user 1 applying for physical resource) and the resource scheduling record for user 2 (uuid of user 2 and timestamp of user 2 applying for resource). The resource occupation state information recorded by the scheduler comprises: the user 1 uses 10% of GPU computing power resources, 100M of video memory resources, 15% of CPU computing power resources and 200M of memory resources on the physical node F; user 3 uses 5% of GPU computing resources, 50M of video memory resources, 10% of CPU computing resources, and 100M of memory resources on physical node F. At this time, the second resource scheduling record of the scheduler record includes a resource scheduling record for user 1 (uuid of user 1 and timestamp of user 1 applying for physical resource) and a resource scheduling record for user 3 (uuid of user 3 and timestamp of user 3 applying for resource).
The resource scheduling record and the resource occupation state information of the user 3 to the physical node F recorded by the scheduler, but the resource scheduling record of the user 3 does not exist in the first resource scheduling record reported by the physical node F, which indicates that the record to the user 3 in the scheduler at this point is invalid, and deletes the resource scheduling record and the resource occupation state information of the user 3. The first resource scheduling record reported by the physical node F includes the resource scheduling record of the user 2, which is not recorded in the scheduler and indicates that the scheduler loses the information, at this time, the scheduler sends a request to the physical node F to obtain the occupation state information of the physical resource of the user 2, and adds the occupation state information of the physical resource of the user 2 to the recorded resource occupation state information.
Through the technical scheme, the resource occupation state information is corrected in time, the accuracy of the resource occupation state information is ensured, and the accuracy and the reliability of physical resource scheduling are improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an apparatus for correcting a physical resource occupation state according to an embodiment of the present disclosure, where the apparatus 200 includes:
a scheduling module 201, configured to respond to a resource scheduling request of a user, schedule, by a resource scheduler, a physical resource on a physical node to be occupied by the user, and record resource occupation information of the corresponding physical resource, where the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing a high availability message service;
an obtaining module 202, configured to obtain first resource occupation information, which is periodically reported by a physical node and represents a physical resource occupation situation of the physical node;
the correcting module 203 is configured to compare the first resource occupation information with second resource occupation information of the corresponding physical node recorded by the resource scheduler, and correct the second resource occupation information according to a difference between the first resource occupation information and the second resource occupation information.
Optionally, the first resource occupation information is a first resource scheduling record of the physical node itself, and the second resource occupation information includes a second resource scheduling record of the physical node and resource occupation state information of the physical node, which are recorded by the resource scheduler;
and the correction module is specifically used for correcting the second resource scheduling record and the resource occupation state information according to the difference between the first resource scheduling record and the second resource scheduling record.
Optionally, the correcting module 203 is specifically configured to delete the redundant scheduling record from the second resource scheduling record if the redundant scheduling record exists in the second resource scheduling record compared with the first resource scheduling record, and change the occupation state information of the physical resource corresponding to the redundant scheduling record in the resource occupation state information.
Optionally, the correcting module 203 is specifically configured to, if there is a missing scheduling record in the second resource scheduling record compared to the first resource scheduling record, add the missing scheduling record to the second resource scheduling record, obtain, from the physical node, occupation state information of the physical resource corresponding to the missing scheduling record, and add the occupation state information to the resource occupation state information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a scheduler according to an embodiment of the present disclosure. As shown in fig. 3, the scheduler 700 may include: a processor 701 and a memory 702. The scheduler 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the scheduler 700 to complete all or part of the steps in the above-mentioned method for correcting the physical resource occupation state. The memory 702 is used to store various types of data to support operations at the scheduler 700, such data may include, for example, instructions for any application or method operating on the scheduler 700, as well as application-related data such as contact data, messaging, pictures, audio, video, and so forth. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. A communication component 705 is employed for wired or wireless communication between the scheduler 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 705 may thus include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the scheduler 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, for performing the above-described physical resource occupancy correction method.
In another exemplary embodiment, a computer readable storage medium including program instructions is further provided, which when executed by a processor, implement the steps of the above-mentioned method for remedying the physical resource occupancy state. For example, the computer readable storage medium may be the memory 702 comprising program instructions executable by the processor 701 of the scheduler 700 to perform the method for remedying the physical resource occupancy state described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned method of remedying the physical resource occupancy state when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A method for correcting a physical resource occupation state is characterized by comprising the following steps:
responding to a resource scheduling request of a user, scheduling physical resources on a physical node to be occupied by the user through a resource scheduler, and recording resource occupation information corresponding to the physical resources, wherein the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing a high available message service;
acquiring first resource occupation information which is periodically reported by the physical node and represents the physical resource occupation condition of the physical node;
and comparing the first resource occupation information with second resource occupation information, which is recorded by the resource scheduler and corresponds to the physical node, and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information.
2. The method according to claim 1, wherein the first resource occupation information is a first resource scheduling record of the physical node itself, and the second resource occupation information includes a second resource scheduling record of the physical node recorded by the resource scheduler and resource occupation status information of the physical node;
the correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information includes:
and correcting the second resource scheduling record and the resource occupation state information according to the difference between the first resource scheduling record and the second resource scheduling record.
3. The method of claim 2, wherein the first resource scheduling record is obtained by performing a hash calculation based on an identification of a user occupying the resource on the physical node and a timestamp of when the user applied for the resource.
4. The method of claim 2, wherein said remedying the second resource scheduling record and the resource occupancy state information based on the difference between the first resource scheduling record and the second resource scheduling record comprises:
if the second resource scheduling record has redundant scheduling records compared with the first resource scheduling record, deleting the redundant scheduling records from the second resource scheduling record, and changing the occupation state information of the physical resources corresponding to the redundant scheduling records in the resource occupation state information.
5. The method for correcting physical resource information according to claim 2, wherein the correcting the second resource scheduling record and the resource occupancy status information according to the difference between the first resource scheduling record and the second resource scheduling record comprises:
and if the second resource scheduling record has a missing scheduling record compared with the first resource scheduling record, adding the missing scheduling record into the second resource scheduling record, acquiring the occupation state information of the physical resource corresponding to the missing scheduling record from the physical node, and adding the occupation state information into the resource occupation state information.
6. An apparatus for correcting physical resource occupation status, comprising:
the scheduling module is used for responding to a resource scheduling request of a user, scheduling physical resources on a physical node to be occupied by the user through a resource scheduler, and recording resource occupation information corresponding to the physical resources, wherein the resource scheduling request sent by the user to the resource scheduler does not need to pass through middleware for providing high available message service;
an obtaining module, configured to obtain first resource occupation information, which is periodically reported by the physical node and represents a physical resource occupation situation of the physical node;
and the correction module is used for comparing the first resource occupation information with second resource occupation information, which is recorded by the resource scheduler and corresponds to the physical node, and correcting the second resource occupation information according to the difference between the first resource occupation information and the second resource occupation information.
7. The apparatus according to claim 6, wherein the first resource occupation information is a first resource scheduling record of the physical node itself, and the second resource occupation information includes a second resource scheduling record of the physical node recorded by the resource scheduler and resource occupation status information of the physical node;
the correcting module is specifically configured to correct the second resource scheduling record and the resource occupation state information according to a difference between the first resource scheduling record and the second resource scheduling record.
8. The apparatus of claim 7, wherein the first resource schedule record is obtained by performing a hash calculation based on an identification of a user occupying the resource on the physical node and a timestamp of when the user applied for the resource.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
10. A scheduler, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 5.
CN202210133559.6A 2022-02-14 2022-02-14 Physical resource occupation state correction method, scheduler and readable storage medium Active CN114185688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210133559.6A CN114185688B (en) 2022-02-14 2022-02-14 Physical resource occupation state correction method, scheduler and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210133559.6A CN114185688B (en) 2022-02-14 2022-02-14 Physical resource occupation state correction method, scheduler and readable storage medium

Publications (2)

Publication Number Publication Date
CN114185688A true CN114185688A (en) 2022-03-15
CN114185688B CN114185688B (en) 2023-03-10

Family

ID=80545858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210133559.6A Active CN114185688B (en) 2022-02-14 2022-02-14 Physical resource occupation state correction method, scheduler and readable storage medium

Country Status (1)

Country Link
CN (1) CN114185688B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110072437A1 (en) * 2009-09-23 2011-03-24 International Business Machines Corporation Computer job scheduler with efficient node selection
CN110941481A (en) * 2019-10-22 2020-03-31 华为技术有限公司 Resource scheduling method, device and system
CN111324459A (en) * 2020-02-19 2020-06-23 北京思特奇信息技术股份有限公司 Calendar-based resource scheduling method and device, electronic equipment and storage medium
CN111367679A (en) * 2020-03-31 2020-07-03 中国建设银行股份有限公司 Artificial intelligence computing power resource multiplexing method and device
CN112631764A (en) * 2019-09-24 2021-04-09 中兴通讯股份有限公司 Task scheduling method and device, computer equipment and computer readable medium
CN112650576A (en) * 2021-01-22 2021-04-13 百度在线网络技术(北京)有限公司 Resource scheduling method, device, equipment, storage medium and computer program product
CN113419846A (en) * 2021-02-22 2021-09-21 阿里巴巴集团控股有限公司 Resource allocation method and device, electronic equipment and computer readable storage medium
WO2021243618A1 (en) * 2020-06-03 2021-12-09 北京小米移动软件有限公司 Resource scheduling method and apparatus, and communication device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110072437A1 (en) * 2009-09-23 2011-03-24 International Business Machines Corporation Computer job scheduler with efficient node selection
CN112631764A (en) * 2019-09-24 2021-04-09 中兴通讯股份有限公司 Task scheduling method and device, computer equipment and computer readable medium
CN110941481A (en) * 2019-10-22 2020-03-31 华为技术有限公司 Resource scheduling method, device and system
CN111324459A (en) * 2020-02-19 2020-06-23 北京思特奇信息技术股份有限公司 Calendar-based resource scheduling method and device, electronic equipment and storage medium
CN111367679A (en) * 2020-03-31 2020-07-03 中国建设银行股份有限公司 Artificial intelligence computing power resource multiplexing method and device
WO2021243618A1 (en) * 2020-06-03 2021-12-09 北京小米移动软件有限公司 Resource scheduling method and apparatus, and communication device and storage medium
CN112650576A (en) * 2021-01-22 2021-04-13 百度在线网络技术(北京)有限公司 Resource scheduling method, device, equipment, storage medium and computer program product
CN113419846A (en) * 2021-02-22 2021-09-21 阿里巴巴集团控股有限公司 Resource allocation method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114185688B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
CN108737132B (en) Alarm information processing method and device
KR101871383B1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
US10417062B2 (en) Method and apparatus of unloading out of memory processing flow to user space
CN110022260B (en) Cross-environment receipt message processing method and system
CN111158597A (en) Metadata reading method and device, electronic equipment and storage medium
CN109167819B (en) Data synchronization system, method, device and storage medium
CN102461324A (en) Resource allocation
CN108390914B (en) Service updating method, device and system
CN111338834B (en) Data storage method and device
CN113553178A (en) Task processing method and device and electronic equipment
CN109428926B (en) Method and device for scheduling task nodes
CN110138753B (en) Distributed message service system, method, apparatus, and computer-readable storage medium
CN111385255B (en) Asynchronous call implementation method and device, server and server cluster
CN114328097A (en) File monitoring method and device, electronic equipment and storage medium
CN114185688B (en) Physical resource occupation state correction method, scheduler and readable storage medium
CN111090818B (en) Resource management method, resource management system, server and computer storage medium
CN110233791B (en) Data deduplication method and device
JP2017167675A (en) Information processing system, information processing method, and server
CN113271228B (en) Bandwidth resource scheduling method, device, equipment and computer readable storage medium
CN112737896B (en) Bandwidth data checking method, device, medium and electronic equipment
US11469996B2 (en) Systems for session-based routing
US11386043B2 (en) Method, device, and computer program product for managing snapshot in application environment
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN110474787B (en) Node fault detection method and device

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