CN104519104A - Power source control method and equipment - Google Patents
Power source control method and equipment Download PDFInfo
- Publication number
- CN104519104A CN104519104A CN201310463580.3A CN201310463580A CN104519104A CN 104519104 A CN104519104 A CN 104519104A CN 201310463580 A CN201310463580 A CN 201310463580A CN 104519104 A CN104519104 A CN 104519104A
- Authority
- CN
- China
- Prior art keywords
- control instruction
- power control
- power
- client
- instruction
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000013507 mapping Methods 0.000 claims description 129
- 238000004891 communication Methods 0.000 description 24
- 230000007958 sleep Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 9
- 230000006266 hibernation Effects 0.000 description 4
- 238000011022 operating instruction Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Sources (AREA)
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
Abstract
An embodiment of the invention provides a power source control method and equipment, relates to the field of power source control and aims at synchronously realizing control on power sources of virtual machines in a client side and a cloud server. The power source control method includes that the cloud server acquires a first power source control instruction and determines a second power source control instruction according to the same; the cloud server controls power sources of corresponding virtual machines in the cloud server according to the second power source control instruction or correspondingly processes the second power source control instruction to control the power source of the client side. The power source control method is used for power source control.
Description
Technical Field
The present invention relates to the field of power control, and in particular, to a method and an apparatus for power control.
Background
In an application scene of desktop cloud, a user can access a cloud server through a thin client, the cloud server provides a corresponding virtual machine for the user, and the virtual machine is a complete computer system which is simulated through software, has complete hardware system functions and runs in a completely isolated environment. Usually, multiple virtual machines can be simulated on a cloud server, that is, a storage space is divided for each virtual machine on a storage device of the cloud server to store an operating system and user data, each virtual machine may correspond to one user, and the virtual machine provides a cloud desktop for the user. And the user accesses the cloud desktop through the thin client to realize the access to the virtual machine, so that the cross-platform application program is accessed.
In the existing desktop cloud scene, a user needs to complete power control over a virtual machine through power operation of a cloud desktop, and then complete power control over a thin client through power operation of the thin client.
However, the user can only complete power control on any end (such as a virtual machine or a thin client) of the power supply operation on any end, and power supply operation needs to be performed through the cloud desktop and the thin client if the power supply control on the virtual machine and the thin client is to be achieved, so that the user experience is greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a power control method and equipment, which are used for synchronously realizing power control of a client and a server.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for power control is provided, including:
the cloud server acquires a first power supply control instruction;
determining a second power control instruction according to the first power control instruction;
controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, wherein the first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server; or performing corresponding processing on the second power control instruction to control the power of the client, wherein the first power control instruction is a control instruction for controlling the power of a corresponding virtual machine in the cloud server; the second power control instruction is a control instruction for controlling the power of the client.
In a first possible implementation manner of the first aspect, the obtaining, by the cloud server, the first power control instruction includes:
receiving the first power supply control instruction sent by the client; wherein the first power control instruction is an instruction to control the power of the client;
the controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, or performing corresponding processing on the second power supply control instruction to control the power supply of the client includes:
and controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction.
With reference to the first possible implementation manner, in a second possible implementation manner, the determining a second power control instruction according to the first power control instruction includes:
determining a first power control type corresponding to the first power control instruction;
mapping the first power supply control type into a second power supply control type according to a preset strategy; the preset strategy comprises a corresponding relation between the first power supply control type and the second power supply control type;
determining a corresponding third power control instruction according to the second power control type; wherein the third power control instruction is an instruction to control the power of the client;
and determining the second power control instruction according to the third power control instruction.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the obtaining, by the cloud server, the first power control instruction includes:
after mapping equipment maps a fourth power control instruction received from the client into a first power control instruction, receiving the first power control instruction sent by the mapping equipment, wherein the first power control instruction corresponds to a third power control type and is an instruction for controlling the power of the client; the fourth power control instruction corresponds to a fourth power control type and is a control instruction for controlling the power of the client;
the controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, or performing corresponding processing on the second power supply control instruction to control the power supply of the client includes:
and controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the obtaining, by the cloud server, the first power control instruction includes:
acquiring a first power control instruction, wherein the first power control instruction is an instruction for controlling the power of a corresponding virtual machine in the cloud server;
the controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, or performing corresponding processing on the second power supply control instruction to control the power supply of the client includes:
and performing corresponding processing on the second power control instruction to control the power of the client.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the executing corresponding processing on the second power control instruction to control the power of the client includes:
sending the second power supply control instruction to the client so that the client can control the power supply of the client according to the second power supply control instruction; or,
and determining a fifth power control instruction according to the second power control instruction, and sending the fifth power control instruction to the client so that the client can control the power of the client according to the fifth power control instruction, wherein the fifth power control instruction is an instruction for controlling the power of the client.
With reference to the fifth possible implementation manner, in a sixth possible implementation manner, the determining a fifth power control instruction according to the second power control instruction includes:
determining a fifth power control type corresponding to the second power control instruction;
mapping the fifth power control type into a sixth power control type according to a preset strategy; the preset strategy comprises a corresponding relation between the fifth power supply control type and the sixth power supply control type;
and determining a corresponding fifth power control instruction according to the sixth power control type.
With reference to the fourth possible implementation manner, in a seventh possible implementation manner, the executing corresponding processing on the second power control instruction to control the power of the client includes:
sending the second power control instruction to mapping equipment so that the mapping equipment determines a sixth power control instruction according to the second power control instruction, and sending the sixth power control instruction to the client so that the client controls the power of the client according to the sixth power control instruction;
the second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control instruction corresponds to the eighth power control type and is a control instruction for controlling the power of the client.
In a second aspect, a power control method is provided, including:
the method comprises the steps that a client receives a first power supply control instruction sent by a cloud server, wherein the first power supply control instruction controls a control instruction of the client;
and controlling the power supply of the client according to the first power supply control instruction.
In a first possible implementation manner of the second aspect, the receiving, by the client, the first power control instruction sent by the cloud server includes:
receiving a first power supply control instruction sent by a cloud server; or,
after mapping equipment maps a second power control instruction received from the cloud server into a first power control instruction, receiving a first power control instruction sent by the mapping equipment, wherein the first power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client; the second power control instruction corresponds to a second power control type and is an instruction for controlling the power of the client.
In a third aspect, a method for power control is provided, including:
the client acquires a first power supply control instruction;
and performing corresponding processing on the first power control instruction to control the power of the corresponding virtual machine in the cloud server, wherein the first power control instruction is a control instruction for controlling the client.
In a possible implementation manner in the first aspect, the performing corresponding processing on the first power control instruction to control the power of the corresponding virtual machine in the cloud server includes:
sending the first power control instruction to the cloud server so that the cloud server determines a second power control instruction according to the first power control instruction and controls the power of the corresponding virtual machine in the cloud server according to the second power control instruction, wherein the second power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server; or,
sending the first power control instruction to mapping equipment, so that the mapping equipment determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server, so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls the power supply of the corresponding virtual machine in the cloud server according to the fourth power control instruction, wherein the first power control instruction comprises a first power control type, the third power control instruction comprises a third power control type, the third power control instruction is used for controlling the power control instruction of the client, and the fourth power control instruction is used for controlling the power supply of the corresponding virtual machine in the cloud server.
In a fourth aspect, a cloud server is provided, including: the acquisition unit is used for acquiring a first power supply control instruction;
the processing unit is used for determining a second power supply control instruction according to the first power supply control instruction acquired by the acquisition unit;
the processing unit is further configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction, where the first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server;
or, the first power control instruction is used for performing corresponding processing on the second power control instruction to control the power of the client, where the first power control instruction is a control instruction for controlling the power of a corresponding virtual machine in the cloud server; the second power control instruction is a control instruction for controlling the power of the client.
In a first possible implementation manner of the fourth aspect, the obtaining unit is further configured to receive the first power control instruction sent by the client; wherein the first power control instruction is an instruction to control the power of the client;
the processing unit is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
With reference to the first possible implementation manner, in a second possible implementation manner, the processing unit is specifically configured to determine a first power control type corresponding to the first power control instruction, map the first power control type to a second power control type according to a preset policy, determine a corresponding third power control instruction according to the second power control type, and determine the second power control instruction according to the third power control instruction;
the preset strategy comprises a corresponding relation between the first power supply control type and the second power supply control type; the third power control instruction is an instruction to control the power of the client.
With reference to the fourth aspect, in a third possible implementation manner of the fourth aspect, the obtaining unit is specifically configured to receive a first power control instruction sent by a mapping device after the mapping device maps a fourth power control instruction received from the client to the first power control instruction, where the first power control instruction corresponds to a third power control type and is an instruction for controlling a power supply of the client; the fourth power control instruction corresponds to a fourth power control type and is a control instruction for controlling the power of the client;
the processing unit is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
With reference to the fourth aspect, in a fourth possible implementation manner, the obtaining unit is specifically configured to obtain a first power control instruction; the first power control instruction is an instruction for controlling the power of a corresponding virtual machine in the cloud server;
the processing unit is specifically configured to perform corresponding processing on the second power control instruction to control the power of the client.
With reference to the fourth possible implementation manner of the fourth aspect, in a fifth possible implementation manner, the processing unit is specifically configured to send the second power control instruction to the client, so that the client controls a power supply of the client according to the second power control instruction;
or,
the client side is specifically configured to determine a fifth power control instruction according to the second power control instruction, and send the fifth power control instruction to the client side, so that the client side controls the power supply of the client side according to the fifth power control instruction, where the fifth power control instruction is an instruction for controlling the power supply of the client side.
With reference to the fifth possible implementation manner, in a sixth possible implementation manner, the processing unit is specifically configured to determine a fifth power control type corresponding to the second power control instruction, map the fifth power control type to a sixth power control type according to a preset policy, and determine a corresponding fifth power control instruction according to the sixth power control type;
the preset strategy comprises a corresponding relation between the fifth power supply control type and the sixth power supply control type.
With reference to the fourth possible implementation manner, in a seventh possible implementation manner, the processing unit is further configured to send the second power control instruction to a mapping device, so that the mapping device determines a sixth power control instruction according to the second power control instruction, and sends the sixth power control instruction to the client, so that the client controls a power supply of the client according to the sixth power control instruction;
the second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control instruction corresponds to the eighth power control type and is a control instruction for controlling the power of the client.
In a fifth aspect, a client is provided, which includes:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for receiving a first power control instruction sent by a cloud server, and the first power control instruction is a control instruction for controlling a client;
and the processing unit is used for controlling the power supply of the client according to the first power supply control instruction acquired by the acquisition unit.
In a first possible implementation manner of the fifth aspect, the obtaining unit is specifically configured to receive a first power control instruction sent by a cloud server; or,
the mapping device is specifically configured to receive a first power control instruction sent by the mapping device after mapping a second power control instruction received from the cloud server to the first power control instruction, where the second power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client; the first power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client.
In a sixth aspect, a client is provided, including:
the acquisition unit is used for acquiring a first power supply control instruction;
and the processing unit is used for executing corresponding processing on the first power control instruction acquired by the acquisition unit so as to control the power of the corresponding virtual machine in the cloud server, wherein the first power control instruction is a control instruction for controlling the client.
In a first possible implementation manner of the sixth aspect, the processing unit is specifically configured to send the first power control instruction to the cloud server, so that the cloud server determines a second power control instruction according to the first power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the second power control instruction, where the second power control instruction is an instruction for controlling a power supply of a corresponding virtual machine in the cloud server; or,
the method includes sending the first power control instruction to a mapping device, so that the mapping device determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server, so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the fourth power control instruction, wherein the first power control instruction includes a first power control type, the third power control instruction includes a third power control type, the third power control instruction is a power control instruction for controlling the client, and the fourth power control instruction is a command for controlling a power supply of a corresponding virtual machine in the cloud server.
By adopting the scheme, the cloud server can map the power control instruction corresponding to the client received from the client into the power control instruction corresponding to the virtual machine in the cloud server, and perform power control on the corresponding virtual machine in the cloud server according to the instruction; therefore, when the user does not need to use desktop cloud resources, the corresponding virtual machine in the cloud server can timely release corresponding resources, the utilization rate of the resources is guaranteed, and meanwhile the power consumption of the cloud server can be reduced; the power control instruction sent by the user and corresponding to the virtual machine in the cloud server can be mapped to the power control instruction corresponding to the client, and the power control instruction is sent to the client, so that the client can control the power of the client according to the power control instruction, and therefore the user can control the power of the client when using desktop cloud resources, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a method for controlling a power supply according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another power control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another power control method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling a power supply according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating another method for controlling power supply according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a cloud server according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a client according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another client according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a cloud server according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a client according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another client according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The cloud server described in the following embodiments of the present invention may be a desktop cloud platform virtualization server, which is a physical computer that simulates multiple virtual machines, each virtual machine corresponds to one client, the cloud server is responsible for providing a cloud desktop for the client, and a user may access the corresponding virtual machine in the cloud server through the cloud desktop to implement operations such as access to network resources, storage of application data, and the like.
An embodiment of the present invention provides a method for controlling a power supply, and as shown in fig. 1, an execution subject of the method is a cloud server, and the method includes:
s101, the cloud server acquires a first power supply control instruction.
Specifically, the cloud server may obtain a first power control instruction sent by the client, and may also obtain a first power control instruction issued by the user.
S102, the cloud server determines a second power supply control instruction according to the first power supply control instruction.
Specifically, if the first power control instruction is an instruction for controlling the power of the client, mapping the first power control instruction to a second power control instruction for controlling the power of a corresponding virtual machine in the cloud server; if the first power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server, mapping the first power control instruction to a second power control instruction for controlling the power of the client.
It should be noted that the embodiment of the present invention includes two implementation manners, one is to control the power supply of the corresponding virtual machine in the cloud server through the client, and specifically execute step S103; the other method is to control the power supply of the client through the cloud server, and specifically execute step S104.
And S103, the cloud server controls the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction.
The first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server.
The invention comprises the following two implementation modes:
in the first mode, the cloud server receives a first power control instruction sent by the client.
Specifically, a user can issue the first power control instruction to the client through an operating system corresponding to the client, and after receiving the first power control instruction, the cloud server maps the first power control instruction into a second power control instruction, and controls the power of the corresponding virtual machine in the cloud server according to the second power control instruction.
For example, the first power control instruction may be a shutdown instruction (that is, to shut down the power of the client), and after receiving the shutdown instruction issued by the user, the client sends the shutdown instruction to the cloud server, and shuts down the power of the client according to the shutdown instruction. At this time, the shutdown instruction is a shutdown instruction of the control client, and the cloud server does not execute the shutdown instruction after receiving the shutdown instruction of the control client, so the cloud server needs to map the shutdown instruction to a shutdown instruction for controlling a corresponding virtual machine in the cloud server, and close the corresponding virtual machine in the cloud server according to the shutdown instruction for the corresponding virtual machine in the cloud server.
It should be noted that the power control instruction mentioned in the embodiment of the present invention may be a shutdown instruction, but the embodiment of the present invention is not limited to this, and may also be a logout instruction or a hibernation instruction.
In addition, the terms first, second, and the like described in the following embodiments of the present invention are not intended to be limited to the order, and are merely provided for convenience of distinction.
Further, after receiving the first power control instruction, the cloud server determines a first power control type corresponding to the first power control instruction, maps the first power control type to a second power control type according to a preset strategy, determines a corresponding third power control instruction according to the second power control type, and determines the second power control instruction according to the third power control instruction.
The third power control instruction is an instruction for controlling the power of the client, and the preset policy includes a correspondence between the first power control type and the second power control type.
Specifically, the preset policy may be a policy configured in advance by a user, for example, a mapping relationship table, where the mapping relationship table includes a corresponding relationship between a first power control type and a second power control type of the first power control instruction, and if, in the mapping relationship table, a logout instruction (that is, a third power control instruction) is corresponding to the first power control instruction when the first power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the cloud server maps the first power control instruction as the logout instruction when determining that the first power control instruction is the shutdown instruction, the logout instruction, or the sleep instruction, which is not limited in the embodiment of the present invention.
Illustratively, the first power control instruction is a shutdown instruction, the third power control instruction is a logout instruction, when the client receives a shutdown instruction (i.e., the first power control instruction) issued by the user through an operating system corresponding to the client, the shutdown instruction is sent to the cloud server, and the power supply of the client is shut down according to the shutdown instruction, the cloud server maps the shutdown instruction into a logout instruction (i.e., the third power control instruction), because both the shutdown instruction and the logout instruction are instructions for controlling the power supply of the client, the cloud server needs to map the logout instruction into a logout instruction (i.e., the second power control instruction) for controlling the power supply of a corresponding virtual machine in the cloud server, so as to control the virtual machine corresponding to the logout instruction for controlling the power supply of the corresponding virtual machine in the cloud server according to the logout instruction.
It should be noted that, when the cloud server described above receives the first power control instruction sent by the client and maps the first power control instruction to the third power control instruction, it should be understood that, after the cloud server obtains the first power control instruction, the cloud server obtains the third power control instruction according to the first power control instruction through a preset policy, that is, after the cloud server completes mapping, the cloud server includes two instructions (that is, the first power control instruction and the mapped third power control instruction), and at this time, the cloud server maps the third power control instruction that controls the power of the client to the control instruction that controls the power of the corresponding virtual machine in the cloud server.
The mapping described in the following embodiments of the present invention may also refer to the description that the cloud server maps the first power control instruction to the third power control instruction, and is not described in detail later.
In a second mode, after the mapping device maps the fourth power control instruction received from the client to the first power control instruction, the cloud server receives the first power control instruction sent by the mapping device.
The first power control instruction corresponds to a third power control type and is an instruction for controlling the power of the client; the fourth power control command corresponds to a fourth power control type and is a control command for controlling the power of the client.
It should be noted that the first power control instruction and the fourth power control instruction are both instructions for controlling the power of the client, and only the power control types are different, for example, the first power control instruction may be a shutdown instruction, and the fourth power control instruction may be a logout instruction.
Specifically, after obtaining the fourth power control instruction, the mapping device maps the fourth power control instruction into a first power control instruction (i.e., maps the fourth power control type into a third power control type) according to a preset policy pre-configured by a user, and sends the first power control instruction to the cloud server, so that the cloud server maps the first power control instruction into a second power control instruction, where the second power control instruction is a control instruction for controlling a power supply of a corresponding virtual machine in the cloud server.
As can be seen from the above, the first and second modes differ in that: in the first mode, the cloud server completes mapping of the power control type of the power control instruction, in the second mode, the client sends the power control instruction to the mapping device, and the mapping device completes mapping of the power control type of the power control instruction.
It should be noted that, after receiving the second power control instruction, the cloud server determines an identifier of the virtual machine corresponding to the second power control instruction, and controls the power supply of the virtual machine corresponding to the identifier in the cloud server according to the second power control instruction.
Specifically, since the cloud server may include a plurality of virtual machines, after receiving the second power control instruction, the cloud server determines the identifier of the corresponding virtual machine according to the second power control instruction, so as to control the power supply of the virtual machine corresponding to the identifier of the virtual machine according to the second power control instruction.
And S104, the cloud server executes corresponding processing on the second power supply control instruction so as to control the power supply of the client.
The first power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server; the second power control command is a control command for controlling the power of the client.
Specifically, the cloud server obtains a first power control instruction, where the first power control instruction is an instruction for controlling a power of a corresponding virtual machine in the cloud server.
In a possible implementation manner of the present invention, the cloud server sends the second power control instruction to the client, so that the client controls the power of the client according to the second power control instruction.
Specifically, a user can issue a first power control instruction to a cloud server through an operating system corresponding to a virtual machine in the cloud server, the cloud server maps the first power control instruction into a second power control instruction and sends the second power control instruction to a client, and after the cloud server sends the second power control instruction to the client, the cloud server controls a power supply of the corresponding virtual machine in the cloud server according to the first power control instruction. And after receiving the second power supply control instruction, the client controls the power supply of the client according to the second power supply control instruction.
For example, the first power control instruction and the second power control instruction may be shutdown instructions, the cloud server maps the shutdown instruction to a shutdown instruction (i.e., a second power control instruction) of a control client after receiving the shutdown instruction (i.e., the first power control instruction) for controlling a corresponding virtual machine in the cloud server, and sends the shutdown instruction of the control client to the client, and the cloud server turns off a power supply of the corresponding virtual machine in the cloud server according to the shutdown instruction for controlling the corresponding virtual machine in the cloud server after sending the shutdown instruction of the control client to the client. And after receiving the shutdown instruction of the control client, the client shuts down the power supply of the client according to the shutdown instruction of the control client.
In another possible implementation manner of the present invention, the cloud server determines a fifth power control instruction according to the second power control instruction, and sends the fifth power control instruction to the client, so that the client controls the power of the client according to the fifth power control instruction.
Wherein the fifth power control command is a command for controlling the power of the client.
Specifically, a user may issue a first power control instruction to a cloud server through an operating system corresponding to a virtual machine in the cloud server, the cloud server maps the first power control instruction to a second power control instruction, determines a fifth power control type corresponding to the second power control instruction, maps the fifth power control type to a sixth power control type according to a preset policy, and determines a corresponding fifth power control instruction according to the sixth power control type, where the preset policy includes a correspondence relationship between the fifth power control type and the sixth power control type. The preset policy may be a mapping relationship table, where the mapping relationship table includes a corresponding relationship between a power control type of the second power control instruction and a power control type of the fifth power control instruction, and if the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the mapping relationship table corresponds to a logout instruction (i.e., the fifth power control instruction), and the client maps the second power control instruction as the logout instruction when determining that the second power control instruction is the shutdown instruction, the logout instruction, or the sleep instruction.
For example, the second power control instruction may be a shutdown instruction, the fifth power control instruction may be a logout instruction, the cloud server maps the shutdown instruction to a logout instruction (i.e., a fifth power control instruction) for controlling the client according to a preset policy, and then sends the fifth power control instruction to the client, and the client logs out the client according to the logout instruction.
It should be noted that, the cloud server may also send the second power control instruction to the mapping device, so that the mapping device determines a sixth power control instruction according to the second power control instruction, and sends the sixth power control instruction to the client, so that the client controls the power supply of the client according to the sixth power control instruction.
The second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control command corresponds to the eighth power control type and is a control command for controlling the power of the client.
Specifically, a user can issue a first power control instruction to a cloud server through an operating system corresponding to a virtual machine in the cloud server, the cloud server maps the first power control instruction into a second power control instruction and sends the second power control instruction to mapping equipment, and after the cloud server sends the second power control instruction to the mapping equipment, the cloud server controls a power supply of the corresponding virtual machine in the cloud server according to the first power control instruction. After receiving the second power control instruction, the mapping device maps a seventh power control type corresponding to the second power control instruction to an eighth power control type corresponding to a sixth power control instruction through a preset strategy configured by a user, and sends the sixth power control instruction to a client, and the client controls the power of the client according to the sixth power control instruction.
It should be noted that, in step S103, the user synchronously implements power control of the virtual machines in the client and the cloud server through power operation on the client, so that when the user does not need to use desktop cloud resources, the corresponding virtual machines in the cloud server can release corresponding resources in time, thereby ensuring the utilization rate of the resources and reducing the power consumption of the cloud server; in the step S104, the user synchronously controls the power supplies of the client and the virtual machines in the cloud server by operating the power supplies of the corresponding virtual machines in the cloud server, so that the user can control the power supplies of the client when using the desktop cloud resources, thereby improving the user experience.
The invention provides a power control method, as shown in fig. 2, the main execution body of the method is a client, and the method comprises the following steps:
s201, a client receives a first power supply control instruction sent by a cloud server.
Wherein, the first power control command is a control command for controlling the client.
S202, the client controls the power supply of the client according to the first power supply control instruction.
Specifically, the client receiving the first power control instruction sent by the cloud server includes the following two implementation manners:
in the first mode, the client receives a first power control instruction sent by the cloud server.
Specifically, a user may issue a second power control instruction to the cloud server through an operating system corresponding to a virtual machine in the cloud server, where the second power control instruction is an instruction for controlling a power supply of the virtual machine in the cloud server, the cloud server maps the second power control instruction into a first power control instruction, and sends the first power control instruction to the client, so that the client controls the power supply of the client according to the first power control instruction, and the first power control instruction is an instruction for controlling the power supply of the client.
Further, the cloud server may map a second power control type of the second power control instruction to a first power control type according to a preset policy, and obtain a third power control instruction according to the first power control type, where the third power control instruction is an instruction for controlling a power of a corresponding virtual machine in the cloud server, the first power control instruction is an instruction for controlling a power of a client, the preset policy includes a correspondence between the first power control type and the second power control type, the preset policy may be a mapping relationship table, the mapping relationship table includes a correspondence between the power control type of the first power control instruction and the power control type of the second power control instruction, and for example, in the mapping relationship table, when the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the logout instruction (i.e., the first power control instruction) corresponds to the logout instruction, when determining that the second power control instruction is a shutdown instruction, a logout instruction, or a hibernation instruction, the cloud server maps the second power control instruction as the logout instruction, maps the third power control instruction as the first power control instruction, and sends the first power control instruction to the client, so that the client controls the power supply of the client according to the first power control instruction.
And in the second mode, after the mapping equipment maps the second power supply control instruction received from the cloud server into the first power supply control instruction, the client receives the first power supply control instruction sent by the mapping equipment.
The first power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client; the second power control command corresponds to a second power control type and is a command for controlling the power of the client.
It should be noted that the first power control instruction and the second power control instruction are both instructions for controlling the power of the client, and only the power control types are different, for example, the first power control instruction may be a shutdown instruction, and the second power control instruction may be a logout instruction.
Specifically, a user may issue a third power control instruction to the cloud server through an operating system corresponding to a virtual machine in the cloud server, where the third power control instruction is an instruction for controlling a power supply of the virtual machine in the cloud server, the cloud server maps the third power control instruction into a second power control instruction, the second power control instruction is an instruction for controlling a power supply of the client, the cloud server sends the second power control instruction to a mapping device, the mapping device maps a second power control type of the second power control instruction into a first power control type according to a preset policy, and determines a corresponding first power control instruction according to the first power control type (specifically, the description of mapping of the power control type in the first manner may be referred to), and sends the first power control instruction to the client, so that the client controls the power supply of the client according to the first power control instruction, the embodiment of the present invention does not limit the above correspondence relationship.
By adopting the scheme that the execution main body is the client side, the cloud server maps the power control instruction corresponding to the virtual machine in the cloud server into the power control instruction corresponding to the client side, and after the power control instruction corresponding to the client side is sent to the client side, the client side performs power control according to the power control instruction corresponding to the client side, so that power control of the virtual machine in the client side and the cloud server is synchronously realized, and thus, when a user uses desktop cloud resources, the power control can be performed on the client side, and the user experience is improved.
An embodiment of the present invention provides a method for controlling a power supply, as shown in fig. 3, where an execution subject of the method is a client, and the method includes:
s301, the client side obtains a first power supply control instruction.
Wherein the first power control command is a command for controlling the power of the client.
S302, the client executes corresponding processing on the first power control instruction to control the power of the corresponding virtual machine in the cloud server.
Specifically, the client executes corresponding processing on the first power control instruction, which includes the following two implementation manners:
in a first mode, the client sends the first power control instruction to the cloud server, so that the cloud server determines a second power control instruction according to the first power control instruction and controls a power supply of a corresponding virtual machine in the cloud server according to the second power control instruction.
The second power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
Specifically, a user can issue the first power control instruction to the client through an operating system corresponding to the client, and after receiving the first power control instruction, the cloud server maps the first power control instruction into a second power control instruction, and controls the power of the corresponding virtual machine in the cloud server according to the second power control instruction.
For example, the first power control instruction may be a shutdown instruction (that is, to shut down the power of the client), and after receiving the shutdown instruction issued by the user, the client sends the shutdown instruction to the cloud server, and shuts down the power of the client according to the shutdown instruction. At this time, the shutdown instruction is a shutdown instruction of the control client, and the cloud server does not execute the shutdown instruction after receiving the shutdown instruction of the control client, so the cloud server needs to map the shutdown instruction to a shutdown instruction for controlling a corresponding virtual machine in the cloud server, and close the corresponding virtual machine in the cloud server according to the shutdown instruction for the corresponding virtual machine in the cloud server.
It should be noted that the power control instruction mentioned in the embodiment of the present invention may be a shutdown instruction, but the embodiment of the present invention is not limited to this, and may also be a logout instruction or a hibernation instruction.
Further, after receiving the first power control instruction, the cloud server determines a first power control type corresponding to the first power control instruction, maps the first power control type to a second power control type according to a preset strategy, determines a corresponding fifth power control instruction according to the second power control type, and determines the second power control instruction according to the fifth power control instruction.
The fifth power control instruction is an instruction for controlling the power of the client, and the preset policy includes a correspondence between the first power control type and the second power control type.
Specifically, the preset policy may be a policy configured in advance by a user, for example, a mapping relationship table, where the mapping relationship table includes a corresponding relationship between a first power control type and a second power control type of the first power control instruction, and if, in the mapping relationship table, a logout instruction (that is, a fifth power control instruction) is corresponding to the first power control instruction when the first power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the cloud server maps the first power control instruction as the logout instruction when determining that the first power control instruction is the shutdown instruction, the logout instruction, or the sleep instruction, which is not limited in the embodiment of the present invention.
Illustratively, the first power control instruction is a shutdown instruction, the fifth power control instruction is a logout instruction, when the client receives a shutdown instruction (i.e., the first power control instruction) issued by the user through the operating system corresponding to the client, the shutdown instruction is sent to the cloud server, and the power supply of the client is shut down according to the shutdown instruction, the cloud server maps the shutdown instruction into the logout instruction (i.e., the fifth power control instruction), because the shutdown instruction and the logout instruction are both instructions for controlling the power supply of the client, the cloud server needs to map the logout instruction into the logout instruction (i.e., the second power control instruction) for controlling the power supply of the corresponding virtual machine in the server, so as to logout the corresponding virtual machine according to the logout instruction for controlling the power supply of the corresponding virtual machine in the server.
And secondly, the client sends the first power control instruction to mapping equipment so that the mapping equipment determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls the power supply of the corresponding virtual machine in the cloud server according to the fourth power control instruction.
The first power control instruction comprises a first power control type, the third power control instruction comprises a third power control type and is a power control instruction for controlling the client, and the fourth power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
It should be noted that the first power control instruction and the third power control instruction are both instructions for controlling the power of the client, and only the power control types are different, for example, the first power control instruction may be a shutdown instruction, and the third power control instruction may be a logout instruction.
Specifically, after the client acquires a third power control instruction, the third power control instruction is sent to the mapping device, the mapping device maps the third power control instruction into a first power control instruction (i.e., maps the third power control type into the first power control type) according to a preset strategy configured in advance by a user, and sends the first power control instruction to the cloud server, so that the cloud server maps the first power control instruction into a second power control instruction, wherein the second power control instruction controls a power supply of a corresponding virtual machine in the cloud server.
As can be seen from the above, the first and second modes differ in that: in the first mode, the cloud server completes mapping of the power control type of the power control instruction, in the second mode, the client sends the power control instruction to the mapping device, and the mapping device completes mapping of the power control type of the power control instruction.
It should be noted that, after receiving the second power control instruction, the cloud server determines an identifier of the virtual machine corresponding to the second power control instruction, and controls the power supply of the virtual machine corresponding to the identifier in the cloud server according to the second power control instruction.
Specifically, since the cloud server may include a plurality of virtual machines, after receiving the second power control instruction, the cloud server determines the identifier of the corresponding virtual machine according to the second power control instruction, so as to control the power supply of the virtual machine corresponding to the identifier of the virtual machine according to the second power control instruction.
By adopting the scheme that the execution main body is the client, the client sends the received power control instruction corresponding to the client to the cloud server, so that the cloud server maps the instruction into the power control instruction corresponding to the virtual machine in the cloud server, and performs power control on the corresponding virtual machine in the cloud server according to the instruction; therefore, the power control of the virtual machines in the client and the cloud server is synchronously realized through the power operation of the client by the user, so that the corresponding virtual machines in the cloud server can timely release corresponding resources when the user does not need to use desktop cloud resources, the utilization rate of the resources is ensured, and meanwhile, the power consumption of the cloud server can be reduced.
An embodiment of the present invention provides a method for controlling a power supply, as shown in fig. 4, in an embodiment of the method, a power supply of a client is controlled by operating a power supply of a cloud server as an example, and a client in the embodiment of the present invention may be a thin client, where the method includes:
s401, the cloud server obtains a first power control instruction.
The first power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
Specifically, a user may issue a first power control instruction to the cloud server through an operating system corresponding to a virtual machine in the cloud server.
S402, the cloud server maps the first power control instruction into a second power control instruction.
Wherein the second power control command is a command for controlling the power of the client.
And S403, the cloud server maps the second power control instruction into a third power control instruction according to a preset strategy.
The second power control instruction comprises a second power control type, the third power control instruction comprises a third power control type, and the preset strategy comprises a corresponding relation between the second power control type and the third power control type. The preset policy may be a mapping relationship table, where the mapping relationship table includes a corresponding relationship between a power control type of the second power control instruction and a power control type of a third power control instruction, and if the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the mapping relationship table corresponds to a logout instruction (i.e., the third power control instruction), and the client maps the second power control instruction as the logout instruction when determining that the second power control instruction is the shutdown instruction, the logout instruction, or the sleep instruction.
It should be noted that the second power control instruction and the third power control instruction are both instructions for controlling the power of the client, and only the power control types are different, for example, the second power control instruction may be a shutdown instruction, and the third power control instruction may be a logout instruction.
And S404, the cloud server sends the third power supply control instruction to the client.
S405, the cloud server controls the power supply of the corresponding virtual machine in the cloud server according to the first power supply control instruction.
Specifically, the first power control instruction includes an identifier of a corresponding virtual machine in the cloud server, and the cloud server controls a power supply of the virtual machine corresponding to the identifier of the virtual machine according to the first power control instruction.
S406, the client controls the power supply of the client according to the third power supply control instruction.
It should be noted that the above steps S404 to S406 may also be implemented as described in the following steps S4040 to S4080:
s4030, the cloud server sends the second power control instruction to the mapping device.
S4040, the cloud server controls the power supply of the corresponding virtual machine in the cloud server according to the first power supply control instruction.
Specifically, the first power control instruction includes an identifier of a corresponding virtual machine in the cloud server, and the cloud server controls a power supply of the virtual machine corresponding to the identifier of the virtual machine according to the first power control instruction.
S4050, the mapping device maps the second power control instruction into a third power control instruction.
The second power control instruction comprises a second power control type, the third power control instruction comprises a third power control type, and the preset strategy comprises a corresponding relation between the second power control type and the third power control type. The preset policy may be a mapping relationship table, where the mapping relationship table includes a corresponding relationship between a power control type of the second power control instruction and a power control type of a third power control instruction, and if the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the mapping relationship table corresponds to a logout instruction (i.e., the third power control instruction), and the client maps the second power control instruction as the logout instruction when determining that the second power control instruction is the shutdown instruction, the logout instruction, or the sleep instruction.
It should be noted that the second power control instruction and the third power control instruction are both instructions for controlling the power of the client, and only the power control types are different, for example, the second power control instruction may be a shutdown instruction, and the third power control instruction may be a logout instruction.
S4060, the mapping device sends the third power control instruction to the client.
S4070, the client controls the power supply of the client according to the third power supply control instruction.
By adopting the scheme, after the cloud server maps the power control instruction corresponding to the virtual machine in the cloud server into the power control instruction corresponding to the client and sends the power control instruction corresponding to the client, the client performs power control according to the power control instruction corresponding to the client, so that power control of the virtual machine in the client and the virtual machine in the cloud server is synchronously realized, and thus, when a user uses desktop cloud resources, the power control can be performed on the client, and the user experience is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
An embodiment of the present invention provides a method for controlling a power supply, as shown in fig. 5, in the method, an example is described in which a power supply of a corresponding virtual machine in a cloud server is controlled by operating a power supply of a client, where the client in the embodiment of the present invention may be a thin client, and the method is not limited to this, and the method includes:
s501, the client side obtains a first power supply control instruction.
Wherein the first power control command is a command for controlling the power of the client.
Specifically, a user issues a first power control instruction to a client through an operating system corresponding to the client.
For example, the user may close the currently accessed virtual machine, or may close all virtual machines connected to the client, which is not limited in the present invention.
For example, when the user closes the currently accessed virtual machine, the client may determine the identifier of the currently accessed virtual machine according to the first power control instruction; when the user closes all the virtual machines connected with the client, the client can determine the identifications of all the virtual machines connected with the client according to the first power control instruction.
And S502, the client sends the first power supply control instruction to a cloud server.
And S503, the client controls the power supply of the client according to the first power supply control instruction.
And S504, the cloud server maps the first power supply control instruction into a second power supply control instruction.
The second power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
And S505, the cloud server maps the second power supply control instruction into a third power supply control instruction according to a preset strategy.
Specifically, the client determines a first power control type corresponding to the second power control instruction, maps the first power control type to the second power control type according to a preset strategy, and obtains a corresponding third power control instruction according to the second power control type. The preset policy includes a corresponding relationship between the first power control type and the second power control type, where the preset policy may be a mapping relationship table, where the mapping relationship table represents a corresponding relationship between a power control type of the second power control instruction and a power control type of a third power control instruction, and if, in the mapping relationship table, the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the preset policy corresponds to a logout instruction (i.e., a third power control instruction), and if it is determined that the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the client maps the second power control instruction as a logout instruction.
For example, the first power control instruction is a shutdown instruction, the second power control instruction is a logout instruction, the client maps the received shutdown instruction (i.e., the second power control instruction) to the logout instruction (i.e., the third power control instruction), and sends the logout instruction to the cloud server, and after sending the logout instruction to the cloud server, the client closes the client according to the shutdown instruction. The cloud server maps the logout instruction into a logout instruction of the corresponding virtual machine in the control cloud server, and the corresponding virtual machine is logged out according to the logout instruction of the corresponding virtual machine in the control cloud server. This is by way of example only and not by way of limitation.
And S506, the cloud server controls the power supply of the corresponding virtual machine in the cloud server according to the third power supply control instruction.
Specifically, the third power control instruction includes an identifier of the virtual machine, and the cloud server controls the power of the virtual machine corresponding to the identifier of the virtual machine according to the third power control instruction.
It should be noted that the above steps S502 to S506 may also be implemented as described in the following steps S5020 to S5080:
s5020, the client sends the first power control instruction to the mapping equipment.
S5030, the client controls the power of the client according to the first power control command.
S5040, the client sends the first power control command to a mapping device.
S5050, the mapping device maps the first power control instruction into a second power control instruction according to a preset strategy.
S5060, the mapping device sends the second power control instruction to a cloud server.
S5070, the cloud server maps the second power control instruction to a third power control instruction.
S5080, the cloud server controls a power supply of the corresponding virtual machine in the cloud server according to the third power control instruction.
Specifically, the third power control instruction includes an identifier of the virtual machine, and the cloud server controls the power of the virtual machine corresponding to the identifier of the virtual machine according to the third power control instruction.
By adopting the scheme, the client sends the received power control instruction corresponding to the client to the cloud server, so that the cloud server maps the instruction into the power control instruction corresponding to the virtual machine in the cloud server, and performs power control on the corresponding virtual machine in the cloud server according to the instruction; therefore, the power control of the virtual machines in the client and the cloud server is synchronously realized through the power operation of the client by the user, so that the corresponding virtual machines in the cloud server can timely release corresponding resources when the user does not need to use desktop cloud resources, the utilization rate of the resources is ensured, and meanwhile, the power consumption of the cloud server can be reduced.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
An embodiment of the present invention provides a cloud server 60, as shown in fig. 6, where the cloud server 60 includes:
an obtaining unit 61 is configured to obtain a first power control instruction.
Specifically, the cloud server may obtain a first power control instruction sent by the client, and may also obtain a first power control instruction issued by the user.
And a processing unit 62, configured to determine a second power control instruction according to the first power control instruction acquired by the acquiring unit 61.
Specifically, if the first power control instruction is an instruction for controlling the power of the client, mapping the first power control instruction to a second power control instruction for controlling the power of a corresponding virtual machine in the cloud server; if the first power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server, mapping the first power control instruction to a second power control instruction for controlling the power of the client.
The processing unit 62 is further configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction, where the first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server.
Or, the cloud server is further configured to perform corresponding processing on the second power control instruction to control the power of the client, where the first power control instruction is a control instruction for controlling the power of a corresponding virtual machine in the cloud server; the second power control command is a control command for controlling the power of the client.
In a possible implementation manner of the present invention, the processing unit 62 is configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power control instruction.
Wherein, the first power control instruction is a control instruction for controlling the power of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server.
Optionally, the obtaining unit 61 is further configured to receive the first power control instruction sent by the client.
Specifically, a user can issue the first power control instruction to the client through an operating system corresponding to the client, and after receiving the first power control instruction, the cloud server maps the first power control instruction into a second power control instruction, and controls the power of the corresponding virtual machine in the cloud server according to the second power control instruction.
For example, the first power control instruction may be a shutdown instruction (that is, to shut down the power of the client), and after receiving the shutdown instruction issued by the user, the client sends the shutdown instruction to the cloud server, and shuts down the power of the client according to the shutdown instruction. At this time, the shutdown instruction is a shutdown instruction of the control client, and the cloud server does not execute the shutdown instruction after receiving the shutdown instruction of the control client, so the cloud server needs to map the shutdown instruction to a shutdown instruction for controlling a corresponding virtual machine in the cloud server, and close the corresponding virtual machine in the cloud server according to the shutdown instruction for the corresponding virtual machine in the cloud server.
Further, the processing unit 62 is specifically configured to determine a first power control type corresponding to the first power control instruction, map the first power control type to a second power control type according to a preset policy, determine a corresponding third power control instruction according to the second power control type, and determine the second power control instruction according to the third power control instruction.
The preset strategy comprises a corresponding relation between the first power supply control type and the second power supply control type; the third power control command is a command for controlling the power of the client.
The third power control instruction is an instruction for controlling the power of the client, and the preset policy includes a correspondence between the first power control type and the second power control type.
Specifically, the preset policy may be a policy configured in advance by a user, for example, a mapping relationship table, where the mapping relationship table includes a corresponding relationship between a first power control type and a second power control type of the first power control instruction, and if, in the mapping relationship table, a logout instruction (that is, a third power control instruction) is corresponding to the first power control instruction when the first power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the cloud server maps the first power control instruction as the logout instruction when determining that the first power control instruction is the shutdown instruction, the logout instruction, or the sleep instruction, which is not limited in the embodiment of the present invention.
Illustratively, the first power control instruction is a shutdown instruction, the third power control instruction is a logout instruction, when the client receives a shutdown instruction (i.e., the first power control instruction) issued by the user through an operating system corresponding to the client, the shutdown instruction is sent to the cloud server, and the power supply of the client is shut down according to the shutdown instruction, the cloud server maps the shutdown instruction into a logout instruction (i.e., the third power control instruction), because both the shutdown instruction and the logout instruction are instructions for controlling the power supply of the client, the cloud server needs to map the logout instruction into a logout instruction (i.e., the second power control instruction) for controlling the power supply of a corresponding virtual machine in the cloud server, so as to control the virtual machine corresponding to the logout instruction for controlling the power supply of the corresponding virtual machine in the cloud server according to the logout instruction.
Optionally, the obtaining unit 61 is specifically configured to, after the mapping device maps the fourth power control instruction received from the client to the first power control instruction, receive the first power control instruction sent by the mapping device.
The first power control instruction corresponds to a third power control type and is an instruction for controlling the power of the client; the fourth power control instruction corresponds to a fourth power control type and is a control instruction for controlling the power of the client;
the processing unit 62 is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
Specifically, after obtaining the fourth power control instruction, the mapping device maps the fourth power control instruction into a first power control instruction (i.e., maps the fourth power control type into a third power control type) according to a preset policy pre-configured by a user, and sends the first power control instruction to the cloud server, so that the cloud server maps the first power control instruction into a second power control instruction, where the second power control instruction is a control instruction for controlling a power supply of a corresponding virtual machine in the cloud server.
In another possible implementation manner of the present invention, the processing unit 62 is configured to perform corresponding processing on the second power control instruction to control the power of the client.
Optionally, the obtaining unit 61 is specifically configured to obtain the first power control instruction.
The first power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
Optionally, the processing unit 62 is specifically configured to send the second power control instruction to the client, so that the client controls the power of the client according to the second power control instruction.
Specifically, a user can issue a first power control instruction to a cloud server through an operating system corresponding to a virtual machine in the cloud server, the cloud server maps the first power control instruction into a second power control instruction and sends the second power control instruction to a client, and after the cloud server sends the second power control instruction to the client, the cloud server controls a power supply of the corresponding virtual machine in the cloud server according to the first power control instruction. And after receiving the second power supply control instruction, the client controls the power supply of the client according to the second power supply control instruction.
For example, the first power control instruction and the second power control instruction may be shutdown instructions, the cloud server maps the shutdown instruction to a shutdown instruction (i.e., a second power control instruction) of a control client after receiving the shutdown instruction (i.e., the first power control instruction) for controlling a corresponding virtual machine in the cloud server, and sends the shutdown instruction of the control client to the client, and the cloud server turns off a power supply of the corresponding virtual machine in the cloud server according to the shutdown instruction for controlling the corresponding virtual machine in the cloud server after sending the shutdown instruction of the control client to the client. And after receiving the shutdown instruction of the control client, the client shuts down the power supply of the client according to the shutdown instruction of the control client.
Optionally, the processing unit 62 is specifically configured to determine a fifth power control instruction according to the second power control instruction, and send the fifth power control instruction to the client, so that the client controls the power supply of the client according to the fifth power control instruction.
Wherein the fifth power control command is a command for controlling the power of the client.
Further, the processing unit 62 is specifically configured to determine a fifth power control type corresponding to the second power control instruction, map the fifth power control type to a sixth power control type according to a preset policy, and determine a corresponding fifth power control instruction according to the sixth power control type;
wherein the preset strategy includes a corresponding relationship between the fifth power control type and the sixth power control type.
Optionally, the processing unit 62 is further configured to send the second power control instruction to a mapping device, so that the mapping device determines a sixth power control instruction according to the second power control instruction, and send the sixth power control instruction to the client, so that the client controls the power of the client according to the sixth power control instruction;
the second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control command corresponds to the eighth power control type and is a control command for controlling the power of the client.
Specifically, a user can issue a first power control instruction to a cloud server through an operating system corresponding to a virtual machine in the cloud server, the cloud server maps the first power control instruction into a second power control instruction and sends the second power control instruction to mapping equipment, and after the cloud server sends the second power control instruction to the mapping equipment, the cloud server controls a power supply of the corresponding virtual machine in the cloud server according to the first power control instruction. After receiving the second power control instruction, the mapping device maps a seventh power control type corresponding to the second power control instruction to an eighth power control type corresponding to a sixth power control instruction through a preset strategy configured by a user, and sends the sixth power control instruction to a client, and the client controls the power of the client according to the sixth power control instruction.
By adopting the cloud server, the cloud server can map the power control instruction corresponding to the client received from the client into the power control instruction corresponding to the virtual machine in the cloud server, and perform power control on the corresponding virtual machine in the cloud server according to the instruction; therefore, when the user does not need to use desktop cloud resources, the corresponding virtual machine in the cloud server can timely release corresponding resources, the utilization rate of the resources is guaranteed, and meanwhile the power consumption of the cloud server can be reduced; the power control instruction sent by the user and corresponding to the virtual machine in the cloud server can be mapped to the power control instruction corresponding to the client, and the power control instruction is sent to the client, so that the client can control the power of the client according to the power control instruction, and therefore the user can control the power of the client when using desktop cloud resources, and user experience is improved.
An embodiment of the present invention provides a client 70, as shown in fig. 7, where the client 70 includes:
the obtaining unit 71 is configured to receive a first power control instruction sent by the cloud server.
Wherein, the first power control command is a control command for controlling the client.
And the processing unit 72 is configured to control the power supply of the client according to the first power supply control instruction acquired by the acquiring unit 71.
Optionally, the obtaining unit 71 is specifically configured to receive a first power control instruction sent by the cloud server;
specifically, a user may issue a second power control instruction to the cloud server through an operating system corresponding to a virtual machine in the cloud server, where the second power control instruction is an instruction for controlling a power supply of the virtual machine in the cloud server, the cloud server maps the second power control instruction into a first power control instruction, and sends the first power control instruction to the client, so that the client controls the power supply of the client according to the first power control instruction, and the first power control instruction is an instruction for controlling the power supply of the client.
Further, the cloud server may map a second power control type of the second power control instruction to a first power control type according to a preset policy, and obtain a third power control instruction according to the first power control type, where the third power control instruction is an instruction for controlling a power of a corresponding virtual machine in the cloud server, the first power control instruction is an instruction for controlling a power of a client, the preset policy includes a correspondence between the first power control type and the second power control type, the preset policy may be a mapping relationship table, the mapping relationship table includes a correspondence between the power control type of the first power control instruction and the power control type of the second power control instruction, and for example, in the mapping relationship table, when the second power control instruction is a shutdown instruction, a logout instruction, or a sleep instruction, the logout instruction (i.e., the first power control instruction) corresponds to the logout instruction, when determining that the second power control instruction is a shutdown instruction, a logout instruction, or a hibernation instruction, the cloud server maps the second power control instruction as the logout instruction, maps the third power control instruction as the first power control instruction, and sends the first power control instruction to the client, so that the client controls the power supply of the client according to the first power control instruction.
Optionally, the obtaining unit 71 is specifically configured to, after the mapping device maps the second power control instruction received from the cloud server to the first power control instruction, receive the first power control instruction sent by the mapping device.
The second power control instruction corresponds to the first power control type and is an instruction for controlling the power of the client; the first power control command corresponds to a first power control type and is a command for controlling the power of the client.
Specifically, the user may issue a third power control instruction to the cloud server through an operating system corresponding to the virtual machine in the cloud server, wherein the third power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server, the cloud server maps the third power control instruction into the second power control instruction, the second power control instruction is an instruction for controlling the power of the client, the cloud server sends the second power control instruction to the mapping device, the mapping device maps the second power control type of the second power control instruction to the first power control type according to a preset strategy, and determines a corresponding first power control command according to the first power control type, and sends the first power control command to the client, so that the client controls the power supply of the client according to the first power supply control instruction, the embodiment of the present invention does not limit the above corresponding relationship.
By adopting the client, after the cloud server maps the power control instruction corresponding to the virtual machine in the cloud server into the power control instruction corresponding to the client and sends the power control instruction corresponding to the client, the client performs power control according to the power control instruction corresponding to the client, so that power control of the virtual machine in the client and the virtual machine in the cloud server is synchronously realized, and thus, when a user uses desktop cloud resources, the power control can be performed on the client, and the user experience is improved.
An embodiment of the present invention provides a client 80, as shown in fig. 8, including:
an acquiring unit 81 configured to acquire a first power control instruction;
and the processing unit 82 is configured to perform corresponding processing on the first power control instruction acquired by the acquiring unit 81 to control the power of the corresponding virtual machine in the cloud server.
Wherein, the first power control command is a control command for controlling the client.
Optionally, the processing unit 82 is configured to send the first power control instruction to the cloud server, so that the cloud server determines a second power control instruction according to the first power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the second power control instruction.
The second power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
Specifically, a user can issue the first power control instruction to the client through an operating system corresponding to the client, and after receiving the first power control instruction, the cloud server maps the first power control instruction into a second power control instruction, and controls the power of the corresponding virtual machine in the cloud server according to the second power control instruction.
For example, the first power control instruction may be a shutdown instruction (that is, to shut down the power of the client), and after receiving the shutdown instruction issued by the user, the client sends the shutdown instruction to the cloud server, and shuts down the power of the client according to the shutdown instruction. At this time, the shutdown instruction is a shutdown instruction for controlling the power supply of the client, and the cloud server does not execute the shutdown instruction after receiving the shutdown instruction for controlling the client, so that the cloud server needs to map the shutdown instruction to a shutdown instruction for controlling the power supply of the virtual machine in the cloud server, and to shut down the corresponding virtual machine in the cloud server according to the shutdown instruction for controlling the power supply of the virtual machine in the cloud server.
Optionally, the processing unit 82 is specifically configured to send the first power control instruction to a mapping device, so that the mapping device determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server, so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the fourth power control instruction.
The first power control instruction comprises a first power control type, the third power control instruction comprises a third power control type and is a power control instruction for controlling the client, and the fourth power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
Specifically, after the client acquires a third power control instruction, the third power control instruction is sent to the mapping device, the mapping device maps the third power control instruction into a first power control instruction (i.e., maps the third power control type into the first power control type) according to a preset strategy configured in advance by a user, and sends the first power control instruction to the cloud server, so that the cloud server maps the first power control instruction into a second power control instruction, wherein the second power control instruction controls a power supply of a corresponding virtual machine in the cloud server.
By adopting the client, the client sends the received power control instruction corresponding to the client to the cloud server, so that the cloud server maps the instruction into the power control instruction corresponding to the virtual machine in the cloud server, and performs power control on the corresponding virtual machine in the cloud server according to the instruction; therefore, the power control of the virtual machines in the client and the cloud server is synchronously realized through the power operation of the client by the user, so that the corresponding virtual machines in the cloud server can timely release corresponding resources when the user does not need to use desktop cloud resources, the utilization rate of the resources is ensured, and meanwhile, the power consumption of the cloud server can be reduced.
An embodiment of the present invention provides a cloud server 90, as shown in fig. 9, where the cloud server 90 includes:
a processor (processor) 91, a communication Interface (Communications Interface) 92, a memory (memory) 93, and a communication bus 94; wherein, the processor 91, the communication interface 92 and the memory 93 complete the communication with each other through the communication bus 94.
The processor 91 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 93 is used to store program code, which includes computer operating instructions. The memory 93 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The communication interface 92 is used for realizing connection communication between the devices.
The processor 91 executes program code for obtaining a first power control instruction, determining a second power control instruction according to the first power control instruction;
controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, wherein the first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server; or, performing corresponding processing on the second power control instruction to control the power of the client, where the first power control instruction is a control instruction for controlling the power of a corresponding virtual machine in the cloud server; the second power control command is a control command for controlling the power of the client.
Optionally, the processor 91 is specifically configured to receive the first power control instruction sent by the client; wherein the first power control command is a command for controlling the power of the client.
The processor 91 is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
Optionally, the processor 91 is specifically configured to map the first power control type to a second power control type according to a preset policy, determine a corresponding third power control instruction according to the second power control type, and determine the second power control instruction according to the third power control instruction.
The preset policy includes a correspondence between the first power control type and the second power control type, and the third power control instruction is an instruction for controlling the power of the client.
Optionally, the processor 91 is specifically configured to receive the first power control instruction sent by the mapping device after the mapping device maps the fourth power control instruction received from the client to the first power control instruction.
The first power control instruction corresponds to a third power control type and is an instruction for controlling the power of the client; the fourth power control instruction corresponds to a fourth power control type and is a control instruction for controlling the power of the client;
the processor 91 is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
Optionally, the processor 91 is further configured to obtain a first power control instruction.
The first power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server.
The processor 91 is specifically configured to perform corresponding processing on the second power control instruction to control the power of the client.
Optionally, the processor 91 is specifically configured to send the second power control instruction to the client, so that the client controls the power of the client according to the second power control instruction; or,
the client side is specifically configured to determine a fifth power control instruction according to the second power control instruction, and send the fifth power control instruction to the client side, so that the client side controls the power supply of the client side according to the fifth power control instruction.
Wherein the fifth power control command is a command for controlling the power of the client.
Optionally, the processor 91 is specifically configured to determine a fifth power control type corresponding to the second power control instruction, map the fifth power control type to a sixth power control type according to a preset policy, and determine a corresponding fifth power control instruction according to the sixth power control type.
Wherein the preset strategy includes a corresponding relationship between the fifth power control type and the sixth power control type.
Optionally, the processor 91 is specifically configured to send the second power control instruction to a mapping device, so that the mapping device determines a sixth power control instruction according to the second power control instruction, and send the sixth power control instruction to the client, so that the client controls the power of the client according to the sixth power control instruction;
the second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control command corresponds to the eighth power control type and is a control command for controlling the power of the client.
An embodiment of the present invention provides a client 100, as shown in fig. 10, where the client 100 includes:
a processor (processor) 101, a communication Interface (Communications Interface) 102, a memory (memory) 103, and a communication bus 104; the processor 101, the communication interface 102 and the memory 103 complete communication with each other through the communication bus 104.
The processor 101 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 103 is used to store program code, which includes computer operating instructions. Memory 103 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The communication interface 102 is used for realizing connection communication between the devices.
The processor 101 executes a program code, and is configured to receive a first power control instruction sent by a cloud server, and control a power supply of the client according to the first power control instruction.
Wherein the first power control instruction is a control instruction for controlling the client.
Optionally, the processor 101 is specifically configured to receive a first power control instruction sent by a cloud server; or,
the mapping device is specifically configured to receive a first power control instruction sent by the mapping device after mapping a second power control instruction received from the cloud server to the first power control instruction, where the first power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client; the second power control instruction corresponds to a second power control type and is an instruction for controlling the power of the client.
An embodiment of the present invention provides a client 110, as shown in fig. 11, where the client 110 includes:
a processor (processor) 111, a communication Interface (Communications Interface) 112, a memory (memory) 113, and a communication bus 114; wherein, the processor 111, the communication interface 112 and the memory 113 complete mutual communication through the communication bus 114.
The processor 111 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 113 is used to store program code, including computer operating instructions. The memory 113 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The communication interface 112 is used for realizing connection communication between the devices.
The processor 111 executes a program code, and is configured to obtain a first power control instruction, and perform corresponding processing on the first power control instruction, so as to control a power supply of a corresponding virtual machine in the cloud server.
Wherein, the first power control command is a control command for controlling the client.
Optionally, the processor 111 is specifically configured to send the first power control instruction to the cloud server, so that the cloud server determines a second power control instruction according to the first power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the second power control instruction, where the second power control instruction is an instruction for controlling a power supply of a corresponding virtual machine in the cloud server; or,
the mapping device is specifically configured to send the first power control instruction to the mapping device, so that the mapping device determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server, so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the fourth power control instruction, where the first power control instruction includes a first power control type, the third power control instruction includes a third power control type, and is an instruction for controlling the power supply of the corresponding virtual machine in the client, and the fourth power control instruction controls the power supply of the corresponding virtual machine in the cloud server.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (24)
1. A method of power supply control, comprising:
the cloud server acquires a first power supply control instruction;
determining a second power control instruction according to the first power control instruction;
controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, wherein the first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server; or performing corresponding processing on the second power control instruction to control the power of the client, wherein the first power control instruction is a control instruction for controlling the power of a corresponding virtual machine in the cloud server; the second power control instruction is a control instruction for controlling the power of the client.
2. The method of claim 1, wherein the cloud server obtaining the first power control instruction comprises:
receiving the first power supply control instruction sent by the client; wherein the first power control instruction is an instruction to control the power of the client;
the controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, or performing corresponding processing on the second power supply control instruction to control the power supply of the client includes:
and controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction.
3. The method of claim 2, wherein determining a second power control command from the first power control command comprises:
determining a first power control type corresponding to the first power control instruction;
mapping the first power supply control type into a second power supply control type according to a preset strategy; the preset strategy comprises a corresponding relation between the first power supply control type and the second power supply control type;
determining a corresponding third power control instruction according to the second power control type; wherein the third power control instruction is an instruction to control the power of the client;
and determining the second power control instruction according to the third power control instruction.
4. The method of claim 1, wherein the cloud server obtaining the first power control instruction comprises:
after mapping equipment maps a fourth power control instruction received from the client into a first power control instruction, receiving the first power control instruction sent by the mapping equipment, wherein the first power control instruction corresponds to a third power control type and is an instruction for controlling the power of the client; the fourth power control instruction corresponds to a fourth power control type and is a control instruction for controlling the power of the client;
the controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, or performing corresponding processing on the second power supply control instruction to control the power supply of the client includes:
and controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction.
5. The method of claim 1, wherein the cloud server obtaining the first power control instruction comprises:
acquiring a first power control instruction, wherein the first power control instruction is an instruction for controlling the power of a corresponding virtual machine in the cloud server;
the controlling the power supply of the corresponding virtual machine in the cloud server according to the second power supply control instruction, or performing corresponding processing on the second power supply control instruction to control the power supply of the client includes:
and performing corresponding processing on the second power control instruction to control the power of the client.
6. The method of claim 5, wherein performing the corresponding processing on the second power control instruction to control the power of the client comprises:
sending the second power supply control instruction to the client so that the client can control the power supply of the client according to the second power supply control instruction; or,
and determining a fifth power control instruction according to the second power control instruction, and sending the fifth power control instruction to the client so that the client can control the power of the client according to the fifth power control instruction, wherein the fifth power control instruction is an instruction for controlling the power of the client.
7. The method of claim 6, wherein determining a fifth power control command from the second power control command comprises:
determining a fifth power control type corresponding to the second power control instruction;
mapping the fifth power control type into a sixth power control type according to a preset strategy; the preset strategy comprises a corresponding relation between the fifth power supply control type and the sixth power supply control type;
and determining a corresponding fifth power control instruction according to the sixth power control type.
8. The method of claim 5, wherein performing the corresponding processing on the second power control instruction to control the power of the client comprises:
sending the second power control instruction to mapping equipment so that the mapping equipment determines a sixth power control instruction according to the second power control instruction, and sending the sixth power control instruction to the client so that the client controls the power of the client according to the sixth power control instruction;
the second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control instruction corresponds to the eighth power control type and is a control instruction for controlling the power of the client.
9. A method of power supply control, comprising:
the method comprises the steps that a client receives a first power supply control instruction sent by a cloud server, wherein the first power supply control instruction is a control instruction for controlling the client;
and controlling the power supply of the client according to the first power supply control instruction.
10. The method of claim 9, wherein the receiving, by the client, the first power control instruction sent by the cloud server comprises:
receiving a first power supply control instruction sent by a cloud server; or,
after mapping equipment maps a second power control instruction received from the cloud server into a first power control instruction, receiving a first power control instruction sent by the mapping equipment, wherein the first power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client; the second power control instruction corresponds to a second power control type and is an instruction for controlling the power of the client.
11. A method of power supply control, comprising:
the client acquires a first power supply control instruction;
and performing corresponding processing on the first power control instruction to control the power of the corresponding virtual machine in the cloud server, wherein the first power control instruction is a control instruction for controlling the client.
12. The method according to claim 11, wherein the performing respective processing on the first power control instruction to control power of a corresponding virtual machine in a cloud server comprises:
sending the first power control instruction to the cloud server so that the cloud server determines a second power control instruction according to the first power control instruction and controls the power of the corresponding virtual machine in the cloud server according to the second power control instruction, wherein the second power control instruction is an instruction for controlling the power of the corresponding virtual machine in the cloud server; or,
sending the first power control instruction to mapping equipment, so that the mapping equipment determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server, so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls the power supply of the corresponding virtual machine in the cloud server according to the fourth power control instruction, wherein the first power control instruction comprises a first power control type, the third power control instruction comprises a third power control type, the third power control instruction is used for controlling the power control instruction of the client, and the fourth power control instruction is used for controlling the power supply of the corresponding virtual machine in the cloud server.
13. A cloud server, comprising:
the acquisition unit is used for acquiring a first power supply control instruction;
the processing unit is used for determining a second power supply control instruction according to the first power supply control instruction acquired by the acquisition unit;
the processing unit is further configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction, where the first power supply control instruction is a control instruction for controlling the power supply of the client; the second power control instruction is a control instruction for controlling the power of the corresponding virtual machine in the cloud server;
or, the first power control instruction is used for performing corresponding processing on the second power control instruction to control the power of the client, where the first power control instruction is a control instruction for controlling the power of a corresponding virtual machine in the cloud server; the second power control instruction is a control instruction for controlling the power of the client.
14. The cloud server of claim 13, wherein the obtaining unit is further configured to receive the first power control instruction sent by the client; wherein the first power control instruction is an instruction to control the power of the client;
the processing unit is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
15. The cloud server according to claim 14, wherein the processing unit is specifically configured to determine a first power control type corresponding to the first power control instruction, map the first power control type to a second power control type according to a preset policy, determine a corresponding third power control instruction according to the second power control type, and determine the second power control instruction according to the third power control instruction;
the preset strategy comprises a corresponding relation between the first power supply control type and the second power supply control type; the third power control instruction is an instruction to control the power of the client.
16. The cloud server according to claim 13, wherein the obtaining unit is specifically configured to receive a first power control instruction sent by a mapping device after the mapping device maps a fourth power control instruction received from the client to the first power control instruction, where the first power control instruction corresponds to a third power control type and is an instruction for controlling a power supply of the client; the fourth power control instruction corresponds to a fourth power control type and is a control instruction for controlling the power of the client;
the processing unit is specifically configured to control a power supply of a corresponding virtual machine in the cloud server according to the second power supply control instruction.
17. The cloud server of claim 16, wherein the obtaining unit is specifically configured to obtain a first power control instruction; the first power control instruction is an instruction for controlling the power of a corresponding virtual machine in the cloud server;
the processing unit is specifically configured to perform corresponding processing on the second power control instruction to control the power of the client.
18. The cloud server according to claim 17, wherein the processing unit is specifically configured to send the second power control instruction to the client, so that the client controls a power supply of the client according to the second power control instruction;
or,
the client side is specifically configured to determine a fifth power control instruction according to the second power control instruction, and send the fifth power control instruction to the client side, so that the client side controls the power supply of the client side according to the fifth power control instruction, where the fifth power control instruction is an instruction for controlling the power supply of the client side.
19. The cloud server according to claim 18, wherein the processing unit is specifically configured to determine a fifth power control type corresponding to the second power control instruction, map the fifth power control type to a sixth power control type according to a preset policy, and determine a corresponding fifth power control instruction according to the sixth power control type;
the preset strategy comprises a corresponding relation between the fifth power supply control type and the sixth power supply control type.
20. The cloud server of claim 17, wherein the processing unit is further configured to send the second power control instruction to a mapping device, so that the mapping device determines a sixth power control instruction according to the second power control instruction, and send the sixth power control instruction to the client, so that the client controls the power of the client according to the sixth power control instruction;
the second power supply control instruction corresponds to a seventh power supply control type and is a control instruction for controlling the power supply of the client; the sixth power control instruction corresponds to the eighth power control type and is a control instruction for controlling the power of the client.
21. A client, comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for receiving a first power control instruction sent by a cloud server, and the first power control instruction is a control instruction for controlling a client;
and the processing unit is used for controlling the power supply of the client according to the first power supply control instruction acquired by the acquisition unit.
22. The client according to claim 21, wherein the obtaining unit is specifically configured to receive a first power control instruction sent by a cloud server; or,
the mapping device is specifically configured to receive a first power control instruction sent by the mapping device after mapping a second power control instruction received from the cloud server to the first power control instruction, where the second power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client; the first power control instruction corresponds to a first power control type and is an instruction for controlling the power of the client.
23. A client, comprising:
the acquisition unit is used for acquiring a first power supply control instruction;
and the processing unit is used for executing corresponding processing on the first power control instruction acquired by the acquisition unit so as to control the power of the corresponding virtual machine in the cloud server, wherein the first power control instruction is a control instruction for controlling the client.
24. The client according to claim 23, wherein the processing unit is specifically configured to send the first power control instruction to the cloud server, so that the cloud server determines a second power control instruction according to the first power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the second power control instruction, where the second power control instruction is an instruction for controlling a power supply of a corresponding virtual machine in the cloud server; or,
the method includes sending the first power control instruction to a mapping device, so that the mapping device determines a third power control instruction according to the first power control instruction, and sends the third power control instruction to the cloud server, so that the cloud server determines a fourth power control instruction according to the third power control instruction, and controls a power supply of a corresponding virtual machine in the cloud server according to the fourth power control instruction, wherein the first power control instruction includes a first power control type, the third power control instruction includes a third power control type, the third power control instruction is a power control instruction for controlling the client, and the fourth power control instruction is a command for controlling a power supply of a corresponding virtual machine in the cloud server.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310463580.3A CN104519104B (en) | 2013-09-30 | 2013-09-30 | A kind of method and apparatus of power supply |
PCT/CN2014/078479 WO2015043215A1 (en) | 2013-09-30 | 2014-05-27 | Power supply control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310463580.3A CN104519104B (en) | 2013-09-30 | 2013-09-30 | A kind of method and apparatus of power supply |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104519104A true CN104519104A (en) | 2015-04-15 |
CN104519104B CN104519104B (en) | 2018-02-23 |
Family
ID=52741959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310463580.3A Active CN104519104B (en) | 2013-09-30 | 2013-09-30 | A kind of method and apparatus of power supply |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104519104B (en) |
WO (1) | WO2015043215A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092243A (en) * | 2017-05-04 | 2017-08-25 | 中国科学院高能物理研究所 | Power supply intelligent safety monitoring system based on Internet of Things |
CN107357638A (en) * | 2017-09-01 | 2017-11-17 | 郑州云海信息技术有限公司 | The control method and control device of a kind of power supply status |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1390008A (en) * | 2002-07-15 | 2003-01-08 | 廖正钢 | Interlligent power supply managing system based on network and uninterrupted power source and its management method |
CN101154130A (en) * | 2006-09-30 | 2008-04-02 | 联想(北京)有限公司 | Virtual machine system and its power supply management method |
CN101403916A (en) * | 2008-11-14 | 2009-04-08 | 郭子轩 | Remote centralized monitoring method and system for intelligent power supply socket |
CN102103712A (en) * | 2009-12-18 | 2011-06-22 | 中兴通讯股份有限公司 | Power supply configuration method and device |
CN102326359A (en) * | 2009-03-06 | 2012-01-18 | 华为技术有限公司 | System and method of power management for a device with multiple network interfaces |
CN102891756A (en) * | 2011-07-20 | 2013-01-23 | 台达电子工业股份有限公司 | Active power management architecture and active power management method |
US20130151831A1 (en) * | 2011-12-13 | 2013-06-13 | International Business Machines Corporation | Virtual Machine Monitor Bridge to Bare-Metal Booting |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070089163A1 (en) * | 2005-10-18 | 2007-04-19 | International Business Machines Corporation | System and method for controlling security of a remote network power device |
CN101599953A (en) * | 2008-06-05 | 2009-12-09 | 英业达股份有限公司 | Streamlined user system and simplify the method for managing power supply of subscriber's main station |
-
2013
- 2013-09-30 CN CN201310463580.3A patent/CN104519104B/en active Active
-
2014
- 2014-05-27 WO PCT/CN2014/078479 patent/WO2015043215A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1390008A (en) * | 2002-07-15 | 2003-01-08 | 廖正钢 | Interlligent power supply managing system based on network and uninterrupted power source and its management method |
CN101154130A (en) * | 2006-09-30 | 2008-04-02 | 联想(北京)有限公司 | Virtual machine system and its power supply management method |
CN101403916A (en) * | 2008-11-14 | 2009-04-08 | 郭子轩 | Remote centralized monitoring method and system for intelligent power supply socket |
CN102326359A (en) * | 2009-03-06 | 2012-01-18 | 华为技术有限公司 | System and method of power management for a device with multiple network interfaces |
CN102103712A (en) * | 2009-12-18 | 2011-06-22 | 中兴通讯股份有限公司 | Power supply configuration method and device |
CN102891756A (en) * | 2011-07-20 | 2013-01-23 | 台达电子工业股份有限公司 | Active power management architecture and active power management method |
US20130151831A1 (en) * | 2011-12-13 | 2013-06-13 | International Business Machines Corporation | Virtual Machine Monitor Bridge to Bare-Metal Booting |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092243A (en) * | 2017-05-04 | 2017-08-25 | 中国科学院高能物理研究所 | Power supply intelligent safety monitoring system based on Internet of Things |
CN107357638A (en) * | 2017-09-01 | 2017-11-17 | 郑州云海信息技术有限公司 | The control method and control device of a kind of power supply status |
Also Published As
Publication number | Publication date |
---|---|
WO2015043215A1 (en) | 2015-04-02 |
CN104519104B (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102413150B (en) | Server and virtual desktop control method and virtual desktop control system | |
US8930725B2 (en) | Server rack system for managing power supply | |
TWI458314B (en) | Server system and management method thereof for transferring remote packet to host | |
WO2015143983A1 (en) | Method and apparatus for implementing acceleration processing on vnf | |
WO2016109154A8 (en) | Trusted computing | |
GB2536810A (en) | Systems and methods for automated commissioning of virtualized distributed control systems | |
CN103152200B (en) | Virtual machine migration method, switch, network management device and network system | |
CN103441867A (en) | Method for updating internal network resource allocation of virtual machine | |
CN104991806A (en) | Remote firmware upgrading system and method for single-chip microcomputer program | |
CN105335309A (en) | Data transmission method and computer | |
WO2016197883A1 (en) | Method and system for updating program of microcontroller online | |
CN104519104B (en) | A kind of method and apparatus of power supply | |
GB201205722D0 (en) | Device control system | |
CN105262604A (en) | Virtual machine migration method and equipment | |
JP2019537141A5 (en) | ||
CN109284153A (en) | Method, relevant device and the computer media of single machine experience multiple operating system | |
CN104219061B (en) | Request the method and device of power consumption state variation | |
US8849647B2 (en) | Dual-firmware for next generation emulation | |
CN108924153A (en) | A kind of cloud variable operating method and electronic equipment in graphic programming tool | |
CN103795857A (en) | Information processing method and electronic equipment | |
CN114442765A (en) | Fan control method for computer equipment, baseboard management controller and storage medium | |
JP6172735B2 (en) | Blade server, power supply control method, and power supply control program | |
US10333837B2 (en) | Virtual network switch system and method of constructing the same | |
CN104699787A (en) | User activity state record updating method and apparatus | |
TWI556171B (en) | Motherboard and method for booting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220217 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 215123 Building A3, Creative Industry Park, 328 Xinghu Street, Suzhou Industrial Park, Jiangsu Province Patentee before: Huawei digital technology (Suzhou) Co.,Ltd. |