CN105354090B - The management method and device of virtual unit - Google Patents
The management method and device of virtual unit Download PDFInfo
- Publication number
- CN105354090B CN105354090B CN201510673464.3A CN201510673464A CN105354090B CN 105354090 B CN105354090 B CN 105354090B CN 201510673464 A CN201510673464 A CN 201510673464A CN 105354090 B CN105354090 B CN 105354090B
- Authority
- CN
- China
- Prior art keywords
- virtual
- unit
- state
- virtual unit
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5013—Request control
Abstract
This application discloses a kind of management method of virtual unit and devices.One specific embodiment of the method includes: the virtual device information for obtaining virtual unit in virtual platform in real time by virtual platform interface or automatized script, and the virtual unit includes virtual machine or mobile device simulator;By virtual device information storage into third party system.This embodiment avoids call to conflict to the use generation of virtual unit with virtual platform when virtual unit by third party system.
Description
Technical field
This application involves field of computer technology, and in particular to the pipe of Internet technical field more particularly to virtual unit
Manage method and apparatus.
Background technique
One independence for Taiwan is accounted for into physical equipment by virtual technology and invents more logical device, is made simultaneously for multiple consumer process
With, usually it is this by virtual technology formed logical device call virtual unit.Virtual unit breaches the limitation of hardware
Property, existing hardware device resources can be made full use of to realize more functions.
Existing virtual device management mode is usually carried out: being constructed according to the virtual device information in virtual platform
SQL (Structured Query Language, structured query language) sentence;Using the SQL statement by virtual device information
The database of one-time write third party system.However, in this manner, the variation meeting of virtual device information in virtual platform
Cause it is inconsistent with the virtual device information in virtual platform in third party system, this will so that by third party system call void
It proposes for may mutually conflict with virtual platform to the use of virtual unit.
Summary of the invention
The purpose of the application is to propose the management method and device of a kind of improved virtual unit, to solve background above
The technical issues of technology segment is mentioned.
In a first aspect, this application provides a kind of management methods of virtual unit, which comprises pass through virtual platform
Interface or automatized script obtain the virtual device information of virtual unit in virtual platform in real time, and the virtual unit includes virtual
Machine or mobile device simulator;By virtual device information storage into third party system.
In some embodiments, the virtual device information includes the present occupation state of virtual unit;And the side
Method further include: receive and the Real-Time Scheduling of the virtual unit is requested;Calling present occupation state in the virtual platform is the spare time
The virtual unit for setting state, which executes the Real-Time Scheduling, requests corresponding first task, and currently accounting for called virtual unit
Occupied state is updated to state;After the first task executes, by the current occupancy of the called virtual unit
State is updated to idle state.
In some embodiments, the method also includes: receive temporary resource application request, the temporary resource application asks
It asks including configuration information;It is described according to the configuration information to the virtual platform application resource to create target virtual devices
Target virtual devices when the second task execution for using.
In some embodiments, the temporary resource application request further includes that resource is permanently impermanent using instruction or resource
Use instruction;And after second task execution terminates, the method also includes: if the temporary resource application is asked
Asking further includes that resource is impermanent using instruction, then deletes the target virtual devices and give back applied resource.
In some embodiments, the method also includes: receive to the reserve requests of the virtual unit;Judgement is reserved
Whether the present occupation state of virtual unit is occupied state;If being reserved virtual unit described in judgement is not in occupied state,
Then receive the reserve requests and the present occupation state for being reserved virtual unit is updated to subscription state;If judging institute
It states and is reserved virtual unit and is in occupied state, then do not receive the reserve requests.
In some embodiments, also comprising reservation duration in the reserve requests;And if it is described judge it is described pre-
About virtual unit is not in occupied state, then receives the reserve requests and by the current occupancy shape for being reserved virtual unit
State is updated to after subscription state, the method also includes: the time undergone after receiving the reserve requests reaches described
When reserving duration, it is reserved virtual unit described in release, and the present occupation state for being reserved virtual unit is updated to
Idle state.
In some embodiments, the virtual device information further include: the currently performed task of virtual unit is appointed
Information of being engaged in and expected OS Type, network interface card information, processor information and the magnetic for executing time and/or the virtual unit
Disk information.
Second aspect, this application provides a kind of managing device of virtual unit, described device includes: acquisition of information list
Member is configured to the virtual unit letter that virtual platform interface or automatized script obtain virtual unit in virtual platform in real time
Breath, the virtual unit includes virtual machine or mobile device simulator;Storage unit is configured to the virtual device information
It stores in third party system.
In some embodiments, the virtual device information includes the present occupation state of virtual unit, and described device is also
Including Real-Time Scheduling module, described device includes: Real-Time Scheduling request reception unit, is configured to receive to the virtual unit
Real-Time Scheduling request;Implement scheduling unit, being configured to call present occupation state in the virtual platform is idle state
Virtual unit execute the Real-Time Scheduling and request corresponding first task, and by the present occupation state of called virtual unit
It is updated to occupied state;State recovery unit, after the first task executes, by working as the called virtual unit
Preceding occupied state is updated to idle state.
In some embodiments, described device further includes temporary resource management module, the temporary resource management module packet
Include: temporary resource request reception unit is configured to receive temporary resource application request, and the temporary resource application request includes
Configuration information;Equipment creating unit is configured to according to the configuration information to the virtual platform application resource to create mesh
Virtual unit is marked, the target virtual devices when the second task execution for using.
In some embodiments, the temporary resource application request further includes that resource is permanently impermanent using instruction or resource
Using instruction, the temporary resource management module further include: equipment deletes unit, is configured in the second task execution knot
After beam, if temporary resource application request further includes that resource is impermanent using instruction, the target virtual devices are deleted
And give back applied resource.
In some embodiments, described device further includes reservation module, and the reservation module includes: that reserve requests receive list
Member receives the reserve requests to the virtual unit;Equipment state judging unit is configured to judgement and is reserved virtual unit
Whether present occupation state is occupied state;Receiving unit is reserved, if being configured to be reserved virtual unit described in judgement and do not locate
In occupied state, then receives the reserve requests and the present occupation state for being reserved virtual unit is updated to reservation shape
State;Reservation refusal unit does not receive the reservation if being configured to be reserved virtual unit described in judgement and be in occupied state
Request.
In some embodiments, also comprising reservation duration and the reservation module in the reserve requests further include: set
Standby releasing unit is configured to discharge institute when the time undergone after receiving the reserve requests reaching the reservation duration
It states and is reserved virtual unit, and the present occupation state for being reserved virtual unit is updated to idle state.
In some embodiments, the virtual device information further include: the currently performed task of virtual unit is appointed
Information of being engaged in and expected OS Type, network interface card information, processor information and the magnetic for executing time and/or the virtual unit
Disk information.
The management method and device of virtual unit provided by the present application, can using virtual platform interface or automatized script
The virtual device information in virtual platform is obtained in real time, and by virtual device information storage into third party system, so that
Virtual device information in third party system is synchronous with the virtual device information holding in virtual platform.It can by third party system
It realizes to the United Dispatching of virtual unit resource, improves the utilization rate of virtual unit resource.Simultaneously as in third party system
With the synchronism of virtual device information in virtual platform so that according to the virtual device information in third party system to virtual unit
When being scheduled, it will not conflict with virtual platform to the use generation of virtual unit.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the management method of the virtual unit of the application;
Fig. 3 is the flow chart according to another embodiment of the management method of the virtual unit of the application;
Fig. 4 is the schematic diagram of the corresponding application scenarios of embodiment illustrated in fig. 3;
Fig. 5 is the structural schematic diagram according to one embodiment of the managing device of the virtual unit of the application;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present application
Figure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the implementation of the managing device of the management method or virtual unit of the virtual unit of the application
The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications, such as web browser applications can be installed on terminal device 101,102,103
Or other need the client application etc. by calling virtual unit to execute task.
Terminal device 101,102,103 can be with display screen and support the various electronic equipments of page browsing, packet
Include but be not limited to smart phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts
Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture
Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable
Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to the background service that virtual unit is managed
Device.Background server can divide the data such as the virtual unit scheduling request received from terminal device 101,102,103
The processing such as analysis, and corresponding virtual unit is called to complete the task of completion needed for terminal device.
It should be noted that the management method of virtual unit provided by the embodiment of the present application is generally held by server 105
Row, correspondingly, the management method of virtual unit is generally positioned in server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the management method of the virtual unit according to the application is shown
200.The management method of the virtual unit, comprising the following steps:
Step 201, the virtual of virtual unit in virtual platform is obtained by virtual platform interface or automatized script in real time
Facility information.
In the present embodiment, electronic equipment (such as the service shown in FIG. 1 of the management method operation of virtual unit thereon
Device) virtual platform interface or automation foot can be utilized from virtual platform by wired connection mode or radio connection
This obtains virtual device information in real time.Wherein, virtual unit may include virtual machine or mobile device simulator.Correspondingly, empty
Quasi- facility information is virtual machine information or mobile device simulator information.
In the present embodiment, virtual platform can be the existing management platform being managed to virtual unit, such as
Vcenter platform, XenServer platform, Hyper-V platform etc..The present embodiment can be obtained virtual by virtual platform interface
Facility information.For example, when virtual platform is Vcenter platform, virtual platform interface may include database interface,
VSphere api interface, Active Directory interface, ESX Host Administration interface.Wherein, database interface and Vcenter
The database of platform is attached, for storage virtual machine configuration, host configuration, resource and virtual machine inventory, performance statistics number
According to information such as, event, alarm, user right and roles;VSphere api interface for connect third-party solution and
VMware (software virtual machine) management client, third party system can be according to the customized application programs of the interface exploitation;
Active Directory interface is the interface for obtaining user access control information.Pass through one or more in above-mentioned interface
It is a to obtain corresponding virtual machine information.In addition, the present embodiment can also obtain virtual device information by automatized script.
For example, for Hyper-V platform corresponding virtual machine information can be obtained by powershell script.By virtually putting down
When platform interface or automatized script obtain virtual machine information, the time interval that can will acquire information is set as lesser value, with
Realize the real-time acquisition to information.
It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connection, WiFi connection, bluetooth
Connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other currently known or exploitations in the future
Radio connection.
Step 202, by the storage of above-mentioned virtual device information into third party system.
In the present embodiment, based on virtual device information obtained in step 201, above-mentioned electronic equipment (such as shown in Fig. 1
Server) virtual device information that can will acquire stores into the storage system of third party system.More specifically, this is virtual
Facility information can be stored in a manner of database.It may occur to persons skilled in the art that the storage of virtual device information
It is not limited to database mode.For example, can directly be stored in the form of configuration file for the information of some fixations.
By the storage to virtual device information, electronic equipment can form the resource comprising virtual device information in third party system
Pond, client can be called virtual unit by the resource pool.
The method provided by the above embodiment of the application can be obtained in real time by virtual platform interface or automatized script
Virtual device information in virtual platform simultaneously stores the virtual device information into third party system, so that in third party system
Virtual device information it is synchronous with the virtual device information holding in virtual platform.Due in third party system and virtual platform
The synchronism of virtual device information, when so that being scheduled according to the virtual device information in third party system to virtual unit,
It will not conflict with virtual platform to the use generation of virtual unit.
With further reference to Fig. 3, it illustrates the processes 300 of another embodiment of the management method of virtual unit.The void
Propose the process 300 of standby management method, comprising the following steps:
Step 301, the virtual of virtual unit in virtual platform is obtained by virtual platform interface or automatized script in real time
Facility information.
In the present embodiment, electronic equipment (such as server shown in FIG. 1) can pass through wired connection mode or nothing
Line connection type obtains virtual device information using virtual platform interface or automatized script from virtual platform in real time.This is virtual
Facility information may include the present occupation state of virtual unit.The present occupation state can be occupied state or idle shape
State, wherein the virtual machine in occupied state is currently just being used by some task, and the virtual machine in idle state is current
It is not used by any task.
Step 302, by the storage of above-mentioned virtual device information into third party system.
In the present embodiment, step 302 and the step 202 in Fig. 2 corresponding embodiment are essentially identical, and which is not described herein again.
Step 303, it receives and the Real-Time Scheduling of virtual unit is requested.
In the present embodiment, electronic equipment can receive the Real-Time Scheduling request to virtual unit.Wherein, the Real-Time Scheduling
Request can be the request that first task is issued when being executed.The first task can be automatic as performed by electronic equipment
Change task.
Step 304, calling present occupation state in above-mentioned virtual platform is that the virtual unit of idle state executes above-mentioned reality
When the corresponding first task of scheduling request, and the present occupation state of called virtual unit is updated to occupied state.
In the present embodiment, the Real-Time Scheduling request that electronic equipment can based on the received to virtual unit, is called
Present occupation state is that the virtual unit of idle state executes above-mentioned Real-Time Scheduling request corresponding first in above-mentioned virtual platform
Task.In addition, this can also be called by electronic equipment, the present occupation state of virtual unit is updated to occupied state.
Step 305, after first task executes, the present occupation state of called virtual unit is updated to leave unused
State.
In the present embodiment, the virtual device information in virtual platform, and the void can be obtained in real time due to third party system
Propose the present occupation state information that standby information includes virtual unit, electronic equipment according to virtual device information to virtual unit
When being scheduled, the virtual machine of idle state, therefore this scheduling can be according to the information Selection and call of present occupation state
It will not conflict with the use generation of virtual machine in virtual platform.
In some optional implementations of the present embodiment, this method further include: temporary resource application request is received, it should
Temporary resource application request includes configuration information;Target void is created to above-mentioned virtual platform application resource according to the configuration information
Propose standby, the target virtual devices when the second task execution for using.It needs to call when executing the second task to meet certain
The virtual unit of part and when not meeting the available virtual equipment of the condition in virtual platform, terminal device can be to electronic equipment
Temporary resource application request is sent, includes configuration information in the request, which can be used for recording above-mentioned specified conditions
Information.Electronic equipment, can be according to the configuration information to virtual platform application resource after receiving temporary resource application request
To create the target virtual devices for meeting specified conditions.Virtual platform can be created according to this application using existing physical equipment resource
The virtual unit for meeting above-mentioned configuration information is built, the virtual unit created is above-mentioned target virtual devices.The destination virtual
It is used when equipment the second task available to execute.Wherein, which can be the automation task as performed by electronic equipment.
Faced when available virtual equipment of the implementation due to can not meet required condition in virtual platform according to configuration information
When creation meet the target virtual devices of condition, therefore enhance the flexibility to virtual unit resource transfer.
Optionally, in the implementation temporary resource application request in other than configuration information, further include that resource permanently makes
Instruction is used with instruction or resource are impermanent.Wherein, resource permanently indicates that the second task needs after the completion of execution using instruction
Retain the virtual machine temporarily established, resource is impermanent interim using indicating to indicate not needing after the completion of the second task execution to retain
The virtual machine of foundation.After the second task execution terminates, if temporary resource application request further includes that the impermanent use of resource refers to
Show, electronic equipment then deletes the target virtual devices for the second task by virtual platform and gives back applied resource.When
When temporary resource application request further includes that resource permanently uses instruction in electronic equipment, above-mentioned target virtual devices can be given
Retain.Wherein, electronic equipment can be provided to client for selecting resource impermanent using instruction or resource permanently using referring to
The page shown.The implementation, can be at corresponding in temporary resource application request use instruction impermanent comprising resource
After business executes, target virtual devices are deleted to and discharged corresponding resource, reduce the occupancy to resource, to mention
The utilization rate of high resource.
In some optional implementations of the present embodiment, this method further include: receive the pre- invitation to virtual unit
It asks;Judgement is reserved whether the present occupation state of virtual unit is occupied state;If judgement is reserved virtual unit and is not in
Occupied state then receives the reserve requests and the present occupation state for being reserved virtual unit is updated to subscription state;If sentencing
It is disconnected to be reserved virtual unit and be in occupied state, then do not receive the reserve requests.
In the implementation, electronic equipment can send the page of display virtual device information to client, and client can
To be requested to send the reserve requests to virtual unit to electronic equipment according to operation appointment of the user to the page.Electronic equipment exists
After client is received to the reserve requests of virtual unit, judgement is reserved whether virtual unit is in occupied state, if pre-
About virtual unit is not in occupied state (i.e. in idle state), then the current of virtual unit will be reserved by receiving reserve requests
Occupied state is updated to subscription state.Wherein, which can be indicated with occupied state with same attribute value, can also
To be indicated from occupied state with different attribute values.In this implementation, electronic equipment is provided through the side of reservation manually
The method that formula calls virtual unit enriches the mode of virtual unit scheduling.
Optionally, also comprising reservation duration in above-mentioned reserve requests;And if being reserved virtual unit not in above-mentioned judgement
In occupied state, then receives above-mentioned reserve requests and the present occupation state for being reserved virtual unit is updated to subscription state
Later, the above method further include: when the time undergone after receiving above-mentioned reserve requests reaching above-mentioned reservation duration, discharge quilt
Virtual unit is reserved, and the present occupation state for being reserved virtual unit is updated to idle state.In this implementation, it uses
Family can also reserve duration by page setup that client is shown, and electronic equipment can receive above-mentioned reserve requests and will be by
The present occupation state of reservation virtual unit is updated to carry out timing after subscription state, when receive above-mentioned reserve requests after pass through
When the time gone through reaches above-mentioned reservation duration, then release is reserved virtual unit, and the current occupancy that will be reserved virtual unit
State is updated to idle state.This implementation by reservation duration realize virtual unit resource is reserved manually after and
When discharge, to improve the utilization rate of virtual unit resource.
In some optional implementations of the present embodiment, above-mentioned virtual device information further include: virtual unit is current
The mission bit stream of performed task and expected execution time and/or the OS Type of virtual unit, network interface card information, processing
Device information and disc information.That is, virtual device information may include the attribute information to task performed by virtual unit, such as task
The information (such as task names) of itself and the expected of task execute the time;It also may include the attribute letter to virtual unit itself
Breath, such as OS Type, network interface card information, processor information and disc information.The implementation improves virtual device information,
It is referred to so that can have more information when being scheduled to virtual unit, to select optimal virtual unit to execute phase
Answering for task.
With continued reference to the signal that Fig. 4, Fig. 4 are according to the application scenarios of the management method of the virtual unit of the present embodiment
Figure.The virtual device information in virtual platform is shown in the application scenarios of Fig. 4, in the page, user can be according to virtual unit
Information issues reserve requests to virtual unit;Later, server can obtain the request from the background, if judging pointed by reserve requests
Virtual unit be in idle state, then corresponding virtual unit can be called to complete task corresponding to reserve requests.By this
Method can realize the manual reservation to virtual unit, enhance the flexibility of virtual unit scheduling.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of virtual units
One embodiment of managing device, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer
For in various electronic equipments.
As shown in figure 5, the managing device 500 of virtual unit described in the present embodiment includes: information acquisition unit 501, deposits
Storage unit 502.Wherein, information acquisition unit 501 is configured to virtual platform interface or automatized script obtains void in real time
The virtual device information of virtual unit in quasi- platform, above-mentioned virtual unit includes virtual machine or mobile device simulator;Storage is single
Member 502 is configured to store above-mentioned virtual device information into third party system.
In the present embodiment, information acquisition unit 501 can be by wired connection mode or radio connection from void
Virtual device information is obtained using virtual platform interface or automatized script in quasi- platform.Wherein, virtual unit may include void
Quasi- machine or mobile device simulator.
In the present embodiment, the virtual device information obtained based on information acquisition unit 501, said memory cells 502 can
It is stored with the virtual device information that will acquire into the storage system of third party system.More specifically, which can
To be stored in a manner of database.It may occur to persons skilled in the art that the storage of virtual device information is not limited to
Database mode.For example, can directly be stored in the form of configuration file for the information of some fixations.By to virtual
The storage of facility information, storage unit 502 can form the resource pool comprising virtual device information, terminal in third party system
Equipment can be called virtual unit by the resource pool.
Optionally, above- mentioned information acquiring unit 501 and storage unit 502 constitute virtual machine information adapter tube synchronization module (not
It shows).Virtual machine information adapter tube synchronization module realizes third party system and virtual platform for the shared of virtual device information.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 further includes that Real-Time Scheduling module (is not shown
Out), which includes: Real-Time Scheduling request reception unit, is configured to receive the Real-Time Scheduling to virtual unit
Request;Implement scheduling unit, being configured to call present occupation state in virtual platform is that the virtual unit of idle state executes
Above-mentioned Real-Time Scheduling requests corresponding first task, and the present occupation state of called virtual unit is updated to occupy shape
State;The present occupation state of called virtual unit is updated to leave unused by state recovery unit after first task executes
State.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 further includes temporary resource management module, should
Temporary resource management module includes: temporary resource request reception unit, is configured to receive temporary resource application request, above-mentioned to face
When resource bid request include configuration information;Equipment creating unit is configured to according to the configuration information to above-mentioned virtual platform
Apply for resource to create target virtual devices, the target virtual devices when the second task execution for using.Optionally, temporary resource
Application request further includes that resource is permanently impermanent using instruction using instruction or resource, and above-mentioned temporary resource management module is also wrapped
Include: equipment deletes unit, is configured to after above-mentioned second task execution terminates, if temporary resource application request further includes money
Source is impermanent using instruction, then deletes the target virtual devices and give back applied resource.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 further includes reservation module, the reservation module
Include: reserve requests receiving unit, is configured to receive the reserve requests to virtual unit;Equipment state judging unit, configuration
Whether the present occupation state for judging to be reserved virtual unit is occupied state;Receiving unit is reserved, if being configured to sentence
It is disconnected to be reserved virtual unit and be not in occupied state, then receive the reserve requests and the current occupancy shape of virtual unit will be reserved
State is updated to subscription state;Reservation refusal unit is in occupied state if being configured to judgement and being reserved virtual unit, does not connect
By the reserve requests.Optionally, also comprising reservation duration and the reservation module in above-mentioned reserve requests further include: equipment is released
Unit is put, is configured to when the time undergone after receiving the reserve requests reaching reservation duration, release, which is reserved, virtually to be set
It is standby, and the present occupation state for being reserved virtual unit is updated to idle state.
It will be understood by those skilled in the art that the managing device 500 of above-mentioned virtual unit further includes some other known knots
Structure, such as processor, memory etc., in order to unnecessarily obscure embodiment of the disclosure, these well known structures in Fig. 5 not
It shows.
Below with reference to Fig. 6, it illustrates the calculating of the terminal device or server that are suitable for being used to realize the embodiment of the present application
The structural schematic diagram of machine system 600.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be tangibly embodied in machine readable
Computer program on medium, the computer program include the program code for method shown in execution flow chart.At this
In the embodiment of sample, which can be downloaded and installed from network by communications portion 609, and/or from removable
Medium 611 is unloaded to be mounted.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include information acquisition unit and storage unit.Wherein, the title of these units is not constituted to the unit itself under certain conditions
Restriction, for example, storage unit is also described as " virtual device information being stored list into third party system
Member ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating
Machine storage medium can be nonvolatile computer storage media included in device described in above-described embodiment;It is also possible to
Individualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is deposited
One or more program is contained, when one or more of programs are executed by an equipment, so that the equipment: passing through
Virtual platform interface or automatized script obtain the virtual device information of virtual unit in virtual platform, the virtual unit in real time
Including virtual machine or mobile device simulator;By virtual device information storage into third party system.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of management method of virtual unit, which is characterized in that the described method includes:
Obtain the virtual device information of virtual unit in virtual platform in real time by virtual platform interface or automatized script, it is described
Virtual unit includes virtual machine or mobile device simulator;
By virtual device information storage into third party system, the virtual device information includes currently accounting for for virtual unit
Use state;
The method also includes:
It receives and the Real-Time Scheduling of the virtual unit is requested;
Calling present occupation state in the virtual platform is that the virtual unit of idle state executes the Real-Time Scheduling request pair
The first task answered, and the present occupation state of called virtual unit is updated to occupied state.
2. the method according to claim 1, wherein the method also includes:
After the first task executes, the present occupation state of the called virtual unit is updated to idle shape
State.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Temporary resource application request is received, the temporary resource application request includes configuration information;
Target virtual devices, the target virtual devices are created to the virtual platform application resource according to the configuration information
For being used when the second task execution.
4. according to the method described in claim 3, it is characterized in that, temporary resource application request further includes that resource permanently makes
Instruction is used with instruction or resource are impermanent;And
After second task execution terminates, the method also includes: if temporary resource application request further includes money
Source is impermanent using instruction, then deletes the target virtual devices and give back applied resource.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
Receive the reserve requests to the virtual unit;
Judgement is reserved whether the present occupation state of virtual unit is occupied state;
If being reserved virtual unit described in judgement is not in occupied state, receives the reserve requests and be reserved void for described
It proposes standby present occupation state and is updated to subscription state;
If being reserved virtual unit described in judgement is in occupied state, the reserve requests are not received.
6. according to the method described in claim 5, it is characterized in that, also comprising reservation duration in the reserve requests;And
If virtual unit being reserved and being not in occupied state described in the judgement, receive the reserve requests and by the quilt
The present occupation state of reservation virtual unit is updated to after subscription state, the method also includes:
When the time undergone after receiving the reserve requests reaching the reservation duration, it is reserved described in release and virtually sets
It is standby, and the present occupation state for being reserved virtual unit is updated to idle state.
7. the method according to one of claim 2-6, which is characterized in that the virtual device information further include: the void
Propose standby currently performed task mission bit stream and the expected OS Type for executing time and/or the virtual unit,
Network interface card information, processor information and disc information.
8. a kind of managing device of virtual unit, which is characterized in that described device includes:
Information acquisition unit, is configured to virtual platform interface or automatized script obtains in virtual platform virtually set in real time
Standby virtual device information, the virtual unit include virtual machine or mobile device simulator;
Storage unit is configured to the virtual device information storing the virtual device information packet into third party system
Include the present occupation state of virtual unit;
Described device further includes Real-Time Scheduling module, and the Real-Time Scheduling module includes:
Real-Time Scheduling request reception unit is configured to receive the Real-Time Scheduling request to the virtual unit;
Implement scheduling unit, being configured to call present occupation state in the virtual platform is that the virtual unit of idle state is held
The row Real-Time Scheduling requests corresponding first task, and the present occupation state of called virtual unit is updated to occupy shape
State.
9. device according to claim 8, which is characterized in that the Real-Time Scheduling module includes: state recovery unit,
After the first task executes, the present occupation state of the called virtual unit is updated to idle state.
10. device according to claim 9, which is characterized in that described device further includes temporary resource management module, described
Temporary resource management module includes:
Temporary resource request reception unit is configured to receive temporary resource application request, the temporary resource application request packet
Include configuration information;
Equipment creating unit is configured to according to the configuration information to the virtual platform application resource to create destination virtual
Equipment, the target virtual devices when the second task execution for using.
11. device according to claim 10, which is characterized in that the temporary resource application request further includes that resource is permanent
Instruction, the temporary resource management module are used using instruction or resource are impermanent further include:
Equipment deletes unit, is configured to after second task execution terminates, if temporary resource application request is also
It is impermanent using instruction including resource, then it deletes the target virtual devices and gives back applied resource.
12. device according to claim 9, which is characterized in that described device further includes reservation module, the reservation module
Include:
Reserve requests receiving unit is configured to receive the reserve requests to the virtual unit;
Equipment state judging unit is configured to judgement and is reserved whether the present occupation state of virtual unit is occupied state;
Receiving unit is reserved, if being configured to be reserved virtual unit described in judgement and be not in occupied state, is received described pre-
It about requests and the present occupation state for being reserved virtual unit is updated to subscription state;
Reservation refusal unit does not receive described pre- if being configured to be reserved virtual unit described in judgement and be in occupied state
About request.
13. device according to claim 12, which is characterized in that also comprising reservation duration in the reserve requests, and
The reservation module further include:
Equipment releasing unit is configured to when the time undergone after receiving the reserve requests reaching the reservation duration,
It is reserved virtual unit described in release, and the present occupation state for being reserved virtual unit is updated to idle state.
14. the device according to one of claim 9-13, which is characterized in that the virtual device information further include: described
The mission bit stream of the currently performed task of virtual unit and the expected operating system class for executing time and/or the virtual unit
Type, network interface card information, processor information and disc information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510673464.3A CN105354090B (en) | 2015-10-16 | 2015-10-16 | The management method and device of virtual unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510673464.3A CN105354090B (en) | 2015-10-16 | 2015-10-16 | The management method and device of virtual unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354090A CN105354090A (en) | 2016-02-24 |
CN105354090B true CN105354090B (en) | 2019-04-16 |
Family
ID=55330064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510673464.3A Active CN105354090B (en) | 2015-10-16 | 2015-10-16 | The management method and device of virtual unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354090B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107563850A (en) * | 2017-08-16 | 2018-01-09 | 广州亦云信息技术股份有限公司 | Based on shared economic virtual resource management method, application method, apparatus and system |
CN108874549B (en) * | 2018-07-19 | 2021-02-02 | 北京百度网讯科技有限公司 | Resource multiplexing method, device, terminal and computer readable storage medium |
CN110830530A (en) * | 2018-08-09 | 2020-02-21 | 中国电信股份有限公司 | Method, system and edge gateway equipment for implementing mirror image processing of down-hanging terminal |
CN109933435B (en) * | 2019-03-25 | 2022-03-25 | 联想(北京)有限公司 | Control method and device and computer equipment |
CN116841691A (en) * | 2023-06-15 | 2023-10-03 | 海光信息技术股份有限公司 | Encryption hardware configuration method, data confidentiality calculation method and related equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301257A (en) * | 2014-09-17 | 2015-01-21 | 华为技术有限公司 | Resource distribution method, device and equipment |
CN104731657A (en) * | 2013-12-24 | 2015-06-24 | 中国移动通信集团山西有限公司 | Resource scheduling method and system |
CN104978263A (en) * | 2014-04-09 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Mobile terminal application program test method and mobile terminal application program test system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012140730A1 (en) * | 2011-04-12 | 2012-10-18 | 株式会社日立製作所 | Management system, computer system having same, and management method |
-
2015
- 2015-10-16 CN CN201510673464.3A patent/CN105354090B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731657A (en) * | 2013-12-24 | 2015-06-24 | 中国移动通信集团山西有限公司 | Resource scheduling method and system |
CN104978263A (en) * | 2014-04-09 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Mobile terminal application program test method and mobile terminal application program test system |
CN104301257A (en) * | 2014-09-17 | 2015-01-21 | 华为技术有限公司 | Resource distribution method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105354090A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11146502B2 (en) | Method and apparatus for allocating resource | |
CN105354090B (en) | The management method and device of virtual unit | |
CN106201661B (en) | Method and apparatus for elastic telescopic cluster virtual machine | |
CN106465255B (en) | It is selected for the network of given application or context | |
CN108536538A (en) | Processor core dispatching method, device, terminal and storage medium | |
CN105867845A (en) | Application storage space management method and device | |
CN105589783A (en) | Application program lag problem data obtaining method and device | |
CN110275723A (en) | Obtain method, apparatus, electronic equipment and the readable medium of resource | |
CN109408205A (en) | Method for scheduling task and device based on hadoop cluster | |
CN106155789A (en) | A kind of application freezing method and mobile terminal | |
CN109525855A (en) | Method and apparatus for handling information | |
CN106357791A (en) | Method, device and system for processing services | |
CN105930249B (en) | Using monitoring method and device | |
CN110008050A (en) | Method and apparatus for handling information | |
CN112565317A (en) | Hybrid cloud system, data processing method and device thereof, and storage medium | |
CN113204425B (en) | Method, device, electronic equipment and storage medium for process management internal thread | |
CN107317788A (en) | Real time data method for pushing and device | |
CN108959102A (en) | Method and apparatus for generating test data, test application to be tested | |
CN106664259A (en) | Virtual network function capacity expansion method and apparatus | |
US20180027049A1 (en) | Computing system and method of operating the computer system | |
JP2018181160A (en) | Reservation management system, reservation management program, and reservation management method | |
CN113095911B (en) | Order processing method, order processing device, electronic equipment and computer readable medium | |
CN110688676B (en) | User information visibility control method, device, equipment and storage medium | |
CN111813541B (en) | Task scheduling method, device, medium and equipment | |
CN113743630A (en) | Method and device for executing intelligent call reservation |
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: 20190827 Address after: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer 2 Patentee after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. Address before: 100091 Beijing, Haidian District, northeast Wang West Road, No. 4, Zhongguancun Software Park, building C, block, 1-03 Patentee before: Pacify a Heng Tong (Beijing) Science and Technology Ltd. |