CN107066336B - Task processing method, electronic equipment and resource management device - Google Patents

Task processing method, electronic equipment and resource management device Download PDF

Info

Publication number
CN107066336B
CN107066336B CN201710204209.3A CN201710204209A CN107066336B CN 107066336 B CN107066336 B CN 107066336B CN 201710204209 A CN201710204209 A CN 201710204209A CN 107066336 B CN107066336 B CN 107066336B
Authority
CN
China
Prior art keywords
resource block
resource
idle state
electronic equipment
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710204209.3A
Other languages
Chinese (zh)
Other versions
CN107066336A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710204209.3A priority Critical patent/CN107066336B/en
Publication of CN107066336A publication Critical patent/CN107066336A/en
Application granted granted Critical
Publication of CN107066336B publication Critical patent/CN107066336B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • 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/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a task processing method, which comprises the following steps: the electronic equipment receives processing operation aiming at target data, and detects the processing operation to obtain the residual resource information of the electronic equipment; when determining that the residual resource information is smaller than a preset resource value, generating request information for applying for at least one first resource block in an idle state, and sending the request information; acquiring at least one first resource block in an idle state allocated based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity; and responding to the processing operation by utilizing the at least one first resource block, and correspondingly processing the target data. The embodiment of the invention also discloses the electronic equipment and a resource management device.

Description

Task processing method, electronic equipment and resource management device
Technical Field
The present invention relates to information processing technologies, and in particular, to a task processing method, an electronic device, and a resource management apparatus.
Background
In a computing environment, there may be a large amount of transient intermediate temporary data generation and destruction, so fast disk writes and reads are required. In order to provide fast disk read-write capability, a solid-state disk (NVME) is usually deployed in an existing electronic device, but the NVME is expensive, and if the NVME is deployed in each electronic device, the cost is inevitably increased, and the usage rate of the NVME is also reduced. In addition, although there is a technology for improving the read-write capability of an electronic device by using a virtualization method in the prior art, there is a loss in the calculation performance in this method.
Disclosure of Invention
In order to solve the existing technical problems, embodiments of the present invention provide a task processing method, an electronic device, and a resource management device, which can at least solve the above problems in the prior art.
The technical scheme of the embodiment of the invention is realized as follows:
a first aspect of an embodiment of the present invention provides a task processing method, where the method includes:
the electronic equipment receives processing operation aiming at target data, and detects the processing operation to obtain the residual resource information of the electronic equipment;
when determining that the residual resource information is smaller than a preset resource value, generating request information for applying for at least one first resource block in an idle state, and sending the request information;
acquiring at least one first resource block in an idle state allocated based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity;
and responding to the processing operation by utilizing the at least one first resource block, and correspondingly processing the target data.
A second aspect of the embodiments of the present invention provides a task processing method, where the method includes:
acquiring at least one resource block with data processing capacity, wherein the state of the resource block at least comprises an idle state;
receiving request information for applying for at least one first resource block in an idle state;
and selecting at least one first resource block in the idle state from the at least one resource block based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment corresponding to the request information so as to allocate the at least one first resource block to the electronic equipment.
A third aspect of an embodiment of the present invention provides an electronic device, including:
the first processor is used for receiving processing operation aiming at target data, detecting to obtain residual resource information of the electronic equipment, and generating request information for applying for at least one first resource block in an idle state when determining that the residual resource information is smaller than a preset resource value;
a transmitter for transmitting the request information;
correspondingly, the first processor is further configured to acquire at least one first resource block in an idle state allocated based on the request information, and establish an association relationship between the at least one first resource block and the electronic device; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity; and the processing unit is further configured to respond to the processing operation by using the at least one first resource block, and perform corresponding processing on the target data.
A fourth aspect of the present invention provides a resource management apparatus, where the resource management apparatus includes:
the second processor is used for acquiring at least one resource block with data processing capacity, and the state of the resource block at least comprises an idle state;
the receiver is used for receiving request information for applying for at least one first resource block in an idle state;
correspondingly, the second processor is further configured to select at least one first resource block in the idle state from the at least one resource block based on the request information, and establish an association relationship between the at least one first resource block and the electronic device corresponding to the request information, so as to allocate the at least one first resource block to the electronic device.
The task processing method, the electronic device and the resource management device provided by the embodiment of the invention can acquire the resource block with data processing capability provided by the external device in an idle state and interacting with the electronic device when the residual resource information of the electronic device is less than the preset resource value, and perform the data processing task by using the acquired resource block, so that the processing capability of the electronic device is improved by using the embodiment of the invention, and the cost of the electronic device is not improved in the improvement process. Meanwhile, the embodiment of the invention can lay a foundation for realizing the sharing of the resource block among different electronic devices.
Drawings
FIG. 1 is a flowchart illustrating a task processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a second task processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a task processing system according to an embodiment of the present invention;
FIG. 4 is a diagram of an elastic file subsystem with multiple resource blocks according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a task processing flow based on the task processing system according to the embodiment of the present invention;
FIG. 6 is a schematic diagram of a structure of an electronic device according to an embodiment of the invention;
FIG. 7 is a schematic diagram of a configuration of a resource management device according to an embodiment of the present invention.
Detailed Description
In the existing calculation process, if the disk space is insufficient, an administrator is usually waited to perform offline capacity expansion operation, such as performing shutdown maintenance on a machine with insufficient disk space, even turning off service or shutdown, so as to perform capacity expansion in an offline manner. At this time, if a large amount of NVME is not prepared, the machine with insufficient disk space cannot continue to execute the disk read-write task, so to solve the above problem, embodiments of the present invention provide a task processing method, an electronic device, and a resource management device, and achieve an effect that multiple electronic devices share the NVME, thereby avoiding that the corresponding read-write task cannot be performed due to insufficient disk space. So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
The embodiment provides a task processing method, which is applied to an electronic device, wherein the electronic device is any device with processing capability, such as a server and the like; specifically, the method of the embodiment can lay a foundation for realizing that multiple electronic devices share NVME, that is, the method can lay a foundation for improving the read-write performance of a disk on the premise of not increasing the cost of the electronic devices and not increasing the loss of the computing performance; specifically, fig. 1 is a schematic flow chart illustrating an implementation of a task processing method according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: the electronic equipment receives processing operation aiming at target data, and detects the processing operation to obtain the residual resource information of the electronic equipment;
that is to say, in this embodiment, when receiving a data processing task (that is, a processing operation for target data), the electronic device detects its own remaining resource information instead of executing the data processing task directly, and determines a processing policy for the data processing task based on the remaining resource information.
Step 102: when determining that the residual resource information is smaller than a preset resource value, generating request information for applying for at least one first resource block in an idle state, and sending the request information;
for example, the electronic device generates the request information when the remaining resource information of the electronic device is not enough to process the processing operation for the target data, or the remaining resource information of the electronic device can process the processing operation for the target data, but in order to coordinate load balancing, the request information is directly generated when the remaining resource information of the electronic device is smaller than a preset resource value and a data processing task is received. In practical application, the request information carries resource feature information required by the processing operation.
Step 103: acquiring at least one first resource block in an idle state allocated based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity;
in this embodiment, the external device may specifically be a resource management apparatus described below.
In practical applications, the electronic device may specifically send the request information to the resource management apparatus; here, the resource management device is provided with or controls a plurality of resource blocks, each of the resource blocks has data processing capability, such as read-write capability, and the like, that is, the resource management device can manage a plurality of resource blocks corresponding to the resource management device, so that when the remaining resources of the electronic device are insufficient, the resource blocks are provided for the electronic device, and the electronic device further processes the corresponding data task by using the provided resource blocks, thereby avoiding the problem that the electronic device cannot execute the corresponding data processing task due to the insufficient remaining resources.
Of course, in practical application, the resource block may be specifically a physical resource block or a virtual resource block, which is not limited in this embodiment.
Step 104: and responding to the processing operation by using the at least one first resource block, and performing corresponding processing on the target data, for example, performing read-write processing on the target data.
In this embodiment, after acquiring the at least one first resource block in the idle state from the resource management device, the electronic device may establish an association relationship between the at least one first resource block and the electronic device, that is, bind the at least one first resource block and the electronic device, and further process a data processing task corresponding to the electronic device by using the first resource block bound to the electronic device. Here, in a specific embodiment, when the electronic device determines that the remaining resource information is smaller than a preset resource value, first, it is detected whether there is at least one second resource block in an idle state, where the second resource block has an association relationship with the electronic device, and the second resource block is a resource block with data processing capability provided by an external device capable of interacting with the electronic device, that is, the second resource block is a resource block allocated by the resource management device for the electronic device. Further, the electronic device determines whether to generate request information for applying for at least one first resource block in an idle state based on the detection result.
That is to say, when the electronic device determines that the remaining resource of the electronic device is insufficient, it first searches whether a resource block bound to the electronic device exists, and if so, it can determine whether the resource block (for example, a second resource block) bound to the electronic device can process the processing operation for the target data, if so, the processing operation for the target data is processed by using the resource block already bound to the electronic device, otherwise, request information for applying for at least one first resource block in an idle state is generated. Therefore, the electronic equipment is prevented from repeatedly applying for the resource block, resource waste of the resource block bound with the electronic equipment is further avoided, and the utilization rate of the resource block bound with the electronic equipment is improved.
In practical application, the resource block can be bound with the electronic device by using a method of identifying the resource block, for example, the resource block is marked by using a device identifier corresponding to the electronic device, so that the resource block bound with the electronic device can be identified by using the device identifier. Further, in practical application, the resource block may be in different states, such as a working state or an idle state, where, in order that the electronic device can release the resource block in time after the resource block is utilized, the electronic device may further adjust the state information of the resource block; specifically, when the electronic device responds to the processing operation by using the at least one first resource block, the electronic device adjusts the state of each first resource block to be an operating state. Further, in practical application, the electronic device may further detect a first resource block in an operating state, and if it is detected that the processing procedure of the at least one first resource block on the target data is completed, adjust each of the first resource blocks from the operating state to an idle state, so that the electronic device may release an association relationship with the at least one first resource block and release the at least one first resource block, so that other electronic devices may obtain the at least one first resource block and respond to other processing operations using the at least one first resource block, so as to implement resource block sharing between different electronic devices.
In this way, according to the method of the embodiment of the present invention, when the remaining resource information of the electronic device is smaller than the preset resource value, the electronic device can acquire the resource block with data processing capability provided by the external device in the idle state, which interacts with the electronic device, and perform a data processing task by using the acquired resource block, so that the processing capability of the electronic device is improved, and the cost of the electronic device is not increased by the improvement process. Meanwhile, a foundation can be laid for realizing the sharing of resource blocks among different electronic devices.
Example two
The embodiment provides a task processing method; the method is applied to a resource management device, wherein a plurality of resource blocks are arranged or controlled in the resource management device, each resource block has data processing capacity, such as read-write capacity, and the like, that is, the resource management device can manage a plurality of resource blocks corresponding to the resource management device, so that when the remaining resources of the electronic equipment are insufficient, the resource blocks are provided for the electronic equipment, and the electronic equipment is further enabled to process corresponding data tasks by using the provided resource blocks, and thus, the problem that the electronic equipment cannot execute the corresponding data processing tasks due to the insufficient remaining resources is avoided. Specifically, fig. 2 is a schematic flow chart illustrating an implementation of a task processing method according to an embodiment of the present invention; as shown in fig. 2, the method includes:
step 201: acquiring at least one resource block with data processing capacity, wherein the state of the resource block at least comprises an idle state;
in practical applications, the resource blocks may be resource blocks provided in the resource management apparatus, or may be resource blocks that are provided in another apparatus but can be used by the resource management apparatus. Here, the resource block may specifically be a physical resource block having data processing capability or a virtual resource block, which is not limited in this embodiment.
Step 202: receiving request information for applying for at least one first resource block in an idle state;
in a specific embodiment, the resource management apparatus receives request information sent by an electronic device, where the request information is information that is generated by the electronic device when determining that remaining resource information corresponding to the electronic device is smaller than a preset resource value and is used for applying for at least one first resource block in an idle state. Here, the electronic device may be embodied as the electronic device described in the first embodiment.
Step 203: and selecting at least one first resource block in the idle state from the at least one resource block based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment corresponding to the request information so as to allocate the at least one first resource block to the electronic equipment.
In practical applications, when the resource management apparatus selects, based on the request information sent by the electronic device, at least one first resource block in the idle state from the at least one resource block corresponding to the resource management apparatus, for example, after at least one first resource block in the idle state is selected from all resource blocks corresponding to the resource management apparatus, the at least one first resource block may be directly allocated to the electronic device, and then after the electronic device receives the at least one first resource block, the at least one first resource block is associated with the resource management apparatus in the electronic device, or after the resource management apparatus determines the at least one first resource block, the at least one first resource block is directly associated with the electronic device, that is, the process of establishing the association relationship may be specifically executed in the electronic device, the present invention may also be implemented in a resource management device, and the present embodiment is not limited thereto.
Specifically, the resource management device may bind the resource block with the electronic device by identifying the resource block, for example, the resource block is marked by using a device identifier corresponding to the electronic device, so that the resource block bound with the electronic device can be identified by the device identifier. Further, in practical application, the resource blocks may also be in different states, such as a working state or an idle state, where, in order for the resource management device to be able to timely acquire the resource blocks in the idle state, in this embodiment, the resource management device may adjust the state of the at least one first resource block to be adjusted from the idle state to the working state after allocating the first resource block to the electronic device, or after acquiring that the electronic device performs data processing using the first resource block; further, when it is detected that the electronic device releases the at least one first resource block, the resource management apparatus may readjust the state of the at least one first resource block to change from the operating state to the idle state, so that other electronic devices can acquire the at least one first resource block and respond to other processing operations using the at least one first resource block, so as to implement resource block sharing between different electronic devices.
In this way, according to the method of the embodiment of the present invention, when the remaining resource information of the electronic device is smaller than the preset resource value, the electronic device can acquire the resource block with data processing capability in the idle state from the resource management device, and perform a data processing task by using the acquired resource block, so that the processing capability of the electronic device is improved, and the cost of the electronic device is not increased in the improvement process. Meanwhile, the sharing of resource blocks is realized among different electronic devices.
The embodiments of the present invention are described in further detail below with reference to specific application scenarios; specifically, as shown in fig. 3, the present embodiment provides a task processing system, which specifically includes an elastic NVME pool management subsystem, an elastic file subsystem, and a plurality of (at least two) servers, where, as shown in fig. 4, a plurality of resource blocks are set in the elastic file subsystem, and each resource block is set with a use state, such as a working state or an idle state. The elastic NVME pool management subsystem can interact with the elastic file subsystem and can acquire resource blocks in an idle state from the elastic file subsystem to distribute the resource blocks to the server, and the elastic NVME pool management subsystem can also adjust the state of the resource blocks to ensure that the resource blocks distributed to the server are the resource blocks in the idle state.
Further, in practical application, each server is provided with a proxy module, the proxy module can apply for resource blocks to the elastic NVME pool management subsystem in a broadcasting mode, namely, the server broadcasts by using the proxy module when needing the resource blocks so as to apply for the resource blocks to the elastic NVME pool management subsystem, and then applies for the resource blocks to the elastic file subsystem by using the elastic NVME pool management subsystem, and releases the resource blocks by using the NVME pool management subsystem when not needed, and here, the application and release processes of the resource blocks can be automatically completed without manual intervention, so that the sharing of the resource blocks is realized, and the off-peak use of the resource blocks is realized.
Furthermore, the NVME pool management subsystem may further be provided with a management unit, where the management unit is configured to perform unified management on the agent modules of all servers interacting with the management unit, that is, the process of the server applying for the resource block from the NVME pool management subsystem may be implemented through interaction between the agent modules and the management unit.
Here, all data blocks can be maintained in a linked list mode, and dynamic addition and deletion can be carried out according to the use capacity of the elastic file subsystem. Certainly, in practical application, a metadata block also exists in the elastic file subsystem, and resources occupied by the metadata block are fixed and cannot be allocated to other servers.
Fig. 5 is a schematic diagram of a task processing flow based on a task processing system according to an embodiment of the present invention, and specifically, as shown in fig. 5, the method includes:
the server opens a file and writes block data; and continuing writing, applying for a new data block in the idle state when the disk space is determined to be close to the threshold value and no self-bound resource block in the idle state exists, continuing to perform writing operation by using the new data block in the idle state, and releasing the data block after determining that the applied new data block in the idle state is used up. Therefore, the utilization rate of resource blocks is improved, the manual maintenance amount of a system is reduced, meanwhile, the overhead cost is reduced by a sharing mechanism, and the method is convenient, flexible and convenient to use on a large scale.
EXAMPLE III
The present embodiment provides an electronic device, as shown in fig. 6, the electronic device includes:
the first processor 61 is configured to receive a processing operation for target data, detect the processing operation to obtain remaining resource information of the electronic device, and generate request information for applying for at least one first resource block in an idle state when it is determined that the remaining resource information is smaller than a preset resource value;
a transmitter 62 for transmitting the request information;
correspondingly, the first processor 61 is further configured to obtain at least one first resource block in an idle state allocated based on the request information, and establish an association relationship between the at least one first resource block and the electronic device; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity; and the processing unit is further configured to respond to the processing operation by using the at least one first resource block, and perform corresponding processing on the target data.
In a specific embodiment, the first processor 61 is further configured to detect whether there is at least one second resource block in an idle state and associated with the electronic device when it is determined that the remaining resource information is smaller than a preset resource value; the second resource block is a resource block with data processing capability provided by an external device capable of interacting with the electronic device;
and the method is also used for determining whether to generate request information for applying for at least one first resource block in an idle state based on the detection result.
In another specific embodiment, the first processor 61 is further configured to adjust a state of each of the first resource blocks to an operating state; when the target data processing process of the at least one first resource block is detected to be completed, adjusting each first resource block from a working state to an idle state, so that the electronic device releases the association relation with the at least one first resource block, and releases the at least one first resource block, so that other electronic devices can respond to other processing operations by using the at least one first resource block.
Here, it should be noted that: the description of the embodiment of the electronic device is similar to the description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the description is omitted. For technical details that are not disclosed in the embodiment of the electronic device of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for the sake of brevity, detailed description is not repeated here.
Example four
This embodiment further provides a resource management apparatus, as shown in fig. 7, the resource management apparatus includes:
a second processor 71, configured to acquire at least one resource block with data processing capability, where a state of the resource block at least includes an idle state;
a receiver 72, configured to receive request information for applying for at least one first resource block in an idle state;
correspondingly, the second processor 71 is further configured to select at least one first resource block in the idle state from the at least one resource block based on the request information, and establish an association relationship between the at least one first resource block and the electronic device corresponding to the request information, so as to allocate the at least one first resource block to the electronic device.
In a specific embodiment, the state of the resource block at least further includes an operating state; in a corresponding manner, the first and second electrodes are,
the second processor 71 is further configured to adjust a state of the at least one first resource block to be adjusted from an idle state to an operating state; and when it is detected that the electronic device releases the at least one first resource block, readjusting the state of the at least one first resource block to change from an operating state to an idle state, so that other electronic devices can respond to other processing operations by using the at least one first resource block.
Here, it should be noted that: the description of the embodiment of the resource management device is similar to the description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiment of the resource management device of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for the sake of brevity, detailed description is omitted here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is merely an example of the embodiments of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the embodiments of the present invention, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present invention.

Claims (8)

1. A method for processing a task, the method comprising:
the electronic equipment receives processing operation aiming at target data, and detects the processing operation to obtain the residual resource information of the electronic equipment;
when the fact that the residual resource information is smaller than a preset resource value and a second resource block which has an association relation with the electronic equipment and can process target data in an idle state is determined, the second resource block is used for processing the target data; the second resource block is a resource block which has data processing capacity and is provided by external equipment capable of interacting with the electronic equipment;
when determining that the residual resource information is smaller than a preset resource value and the second resource block does not exist, generating request information for applying for at least one first resource block in an idle state, and sending the request information;
acquiring at least one first resource block in an idle state allocated based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity;
and responding to the processing operation by utilizing the at least one first resource block, and correspondingly processing the target data.
2. The method of claim 1, further comprising:
adjusting the state of each first resource block to be a working state;
when the target data processing process of the at least one first resource block is detected to be completed, adjusting each first resource block from a working state to an idle state, so that the electronic device releases the association relation with the at least one first resource block, and releases the at least one first resource block, so that other electronic devices can respond to other processing operations by using the at least one first resource block.
3. A method for processing a task, the method comprising:
acquiring at least one resource block with data processing capacity, wherein the state of the resource block at least comprises an idle state;
receiving request information for applying for at least one first resource block in an idle state; the request information is generated when the electronic equipment determines that the residual resource information of the electronic equipment is smaller than a preset resource value and a second resource block which has an association relation with the electronic equipment and can process target data in an idle state does not exist;
and selecting at least one first resource block in the idle state from the at least one resource block based on the request information, and establishing an association relationship between the at least one first resource block and the electronic equipment corresponding to the request information so as to allocate the at least one first resource block to the electronic equipment.
4. The method of claim 3, wherein the state of the resource block further comprises at least an operating state; correspondingly, the method further comprises:
adjusting the state of the at least one first resource block to be adjusted from an idle state to a working state;
when it is detected that the electronic device releases the at least one first resource block, readjusting the state of the at least one first resource block to change from the working state to the idle state, so that other electronic devices can respond to other processing operations by using the at least one first resource block.
5. An electronic device, characterized in that the electronic device comprises:
the first processor is used for receiving processing operation aiming at target data, detecting to obtain residual resource information of the electronic equipment, and processing the target data by using a second resource block when the residual resource information is smaller than a preset resource value and the second resource block which has an association relation with the electronic equipment and is in an idle state and can process the target data exists; the second resource block is a resource block which has data processing capacity and is provided by external equipment capable of interacting with the electronic equipment; when the fact that the residual resource information is smaller than a preset resource value and the second resource block does not exist is determined, request information for applying for at least one first resource block in an idle state is generated;
a transmitter for transmitting the request information;
correspondingly, the first processor is further configured to acquire at least one first resource block in an idle state allocated based on the request information, and establish an association relationship between the at least one first resource block and the electronic device; the first resource block is a resource block which is provided by external equipment and can interact with the electronic equipment and has data processing capacity; and the processing unit is further configured to respond to the processing operation by using the at least one first resource block, and perform corresponding processing on the target data.
6. The electronic device of claim 5, wherein the first processor is further configured to adjust a status of each of the first resource blocks to an operating status; when the target data processing process of the at least one first resource block is detected to be completed, adjusting each first resource block from a working state to an idle state, so that the electronic device releases the association relation with the at least one first resource block, and releases the at least one first resource block, so that other electronic devices can respond to other processing operations by using the at least one first resource block.
7. A resource management apparatus, characterized in that the resource management apparatus comprises:
the second processor is used for acquiring at least one resource block with data processing capacity, and the state of the resource block at least comprises an idle state;
the receiver is used for receiving request information for applying for at least one first resource block in an idle state; the request information is generated when the electronic equipment determines that the residual resource information of the electronic equipment is smaller than a preset resource value and a second resource block which has an association relation with the electronic equipment and can process target data in an idle state does not exist;
correspondingly, the second processor is further configured to select at least one first resource block in the idle state from the at least one resource block based on the request information, and establish an association relationship between the at least one first resource block and the electronic device corresponding to the request information, so as to allocate the at least one first resource block to the electronic device.
8. The apparatus according to claim 7, wherein the status of the resource block further comprises at least an operating status; in a corresponding manner, the first and second electrodes are,
the second processor is further configured to adjust a state of the at least one first resource block to be adjusted from an idle state to a working state; and when it is detected that the electronic device releases the at least one first resource block, readjusting the state of the at least one first resource block to change from an operating state to an idle state, so that other electronic devices can respond to other processing operations by using the at least one first resource block.
CN201710204209.3A 2017-03-30 2017-03-30 Task processing method, electronic equipment and resource management device Active CN107066336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710204209.3A CN107066336B (en) 2017-03-30 2017-03-30 Task processing method, electronic equipment and resource management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710204209.3A CN107066336B (en) 2017-03-30 2017-03-30 Task processing method, electronic equipment and resource management device

Publications (2)

Publication Number Publication Date
CN107066336A CN107066336A (en) 2017-08-18
CN107066336B true CN107066336B (en) 2021-05-18

Family

ID=59603260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710204209.3A Active CN107066336B (en) 2017-03-30 2017-03-30 Task processing method, electronic equipment and resource management device

Country Status (1)

Country Link
CN (1) CN107066336B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290923B (en) * 2020-03-09 2023-07-21 北京奇艺世纪科技有限公司 Resource state detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946225A (en) * 2006-01-04 2007-04-11 华为技术有限公司 Full distributive resource managing method and system
CN103543954A (en) * 2012-07-16 2014-01-29 中兴通讯股份有限公司 Data storage management method and device
US20150256476A1 (en) * 2014-03-10 2015-09-10 Microsoft Corporation Resource management based on device-specific or user-specific resource usage profiles
CN106550461A (en) * 2015-09-21 2017-03-29 海能达通信股份有限公司 A kind of resource using method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946225A (en) * 2006-01-04 2007-04-11 华为技术有限公司 Full distributive resource managing method and system
CN103543954A (en) * 2012-07-16 2014-01-29 中兴通讯股份有限公司 Data storage management method and device
US20150256476A1 (en) * 2014-03-10 2015-09-10 Microsoft Corporation Resource management based on device-specific or user-specific resource usage profiles
CN106550461A (en) * 2015-09-21 2017-03-29 海能达通信股份有限公司 A kind of resource using method and terminal

Also Published As

Publication number Publication date
CN107066336A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
US9141491B2 (en) Highly available server system based on cloud computing
KR101585813B1 (en) Virtualization management method and related apparatuses for managing hardware resources of a communication device
KR101544483B1 (en) Replication server apparatus and method for creating replica in distribution storage system
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
CN103078965B (en) The IP address management method of virtual machine
CN103200036B (en) A kind of automation collocation method of electric power system cloud computing platform
JP2013171582A (en) Method for increasing number of configuration of virtual machine for server
KR20130115553A (en) Two-level resource management method and appratus for dynamic resource management
CN102932409B (en) The method and system that a kind of virtual machine moves online
US20200319983A1 (en) Redundancy Method, Device, and System
CN103677858A (en) Method, system and device for managing virtual machine software in cloud environment
CN107977254B (en) Method for responding to request in cloud data system and computer-readable storage medium
JPWO2017179537A1 (en) SOFTWARE UPDATE CONTROL DEVICE, SOFTWARE UPDATE CONTROL SYSTEM, SOFTWARE UPDATE CONTROL METHOD, AND RECORDING MEDIUM CONTAINING SOFTWARE UPDATE CONTROL PROGRAM
KR20110083084A (en) Apparatus and method for operating server by using virtualization technology
US9509637B1 (en) Methods and apparatus for virtualizing switch control plane engine
CN102316043A (en) Port virtualization method, switch and communication system
CN104205780A (en) Data storage method and device
CN103546315A (en) System, method and equipment for backing up DHCP (dynamic host configuration protocol) server
CN103825915A (en) Method and system for service mobility management in virtual environment
CN106059940A (en) Flow control method and device
CN104702534A (en) Method and device for processing data of multi-process sharing port
KR20150007698A (en) Load distribution system for virtual desktop service
CN107066336B (en) Task processing method, electronic equipment and resource management device
US11388274B2 (en) Method for implementing high availability of bare metal node based on OpenStack and electronic device using the same
KR20180122593A (en) How to delete a cloud host in a cloud computing environment, devices, servers, and storage media

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