CN107368324A - A kind of component upgrade methods, devices and systems - Google Patents

A kind of component upgrade methods, devices and systems Download PDF

Info

Publication number
CN107368324A
CN107368324A CN201610309348.8A CN201610309348A CN107368324A CN 107368324 A CN107368324 A CN 107368324A CN 201610309348 A CN201610309348 A CN 201610309348A CN 107368324 A CN107368324 A CN 107368324A
Authority
CN
China
Prior art keywords
component
upgrade
resource
preparatory condition
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610309348.8A
Other languages
Chinese (zh)
Inventor
金新海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610309348.8A priority Critical patent/CN107368324A/en
Priority to PCT/CN2017/083985 priority patent/WO2017193964A1/en
Publication of CN107368324A publication Critical patent/CN107368324A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of component upgrade methods, devices and systems, by detecting whether non-upgrade components be present, when it is present, obtains the current resource status of system;Judge whether resource status meets the preparatory condition of default progress component upgrade, when meeting, issue component upgrade process instruction.The process of component upgrade is effectively divided into carry out by multiple stages according to the resource status of system so that the operation of system business is not interfered with during component upgrade, while shortens update time, ensure that the stability of whole system.

Description

A kind of component upgrade methods, devices and systems
Technical field
The present invention relates to computer realm, more particularly to a kind of component upgrade methods, devices and systems.
Background technology
With the development of technology and the demand of user, the scale of current many systems is increasing, the rule of system Moding is big, it is meant that the component in system becomes more, when the system is upgraded, it is necessary to complete substantial amounts of group The upgrading of part.Current component upgrade processing mode is to need to complete while system background is completed and updated The update of all component backstage push.Due to needing to consume a number of system resource during component upgrade, So the upgrading of component is limited to system resource, also having led to can not be same in a short time when backstage upgrades When complete high-volume component upgrade job, on the other hand when these upgrading interrupt when, user side is also not suitable for Go to initiate these upgrading processings, can be when not influenceing system normal operation from the background so requiring kind of strategy Complete the upgrade job of component.
The system can be cloud desktop system, with the development of cloud desktop virtual technology, present cloud desktop system The scale of system is increasing;In cloud desktop virtual technology, virtual machine component is an important group Into part, it includes some virtualization drivers, the desktop component part of virtual machine and virtual machine agency Part.Above-mentioned part is operated among desktop virtual machine, so that desktop virtual machine being capable of normal work. In cloud desktop system, cloud desktop is thousands of up to ten thousand easily, when system upgrade, it is necessary to faces cloud desktop system In large batch of virtual machine component upgrade the problem of.
The content of the invention
The main technical problem to be solved in the present invention is to provide a kind of component upgrade methods, devices and systems, Solving component, high-volume upgrades simultaneously, it is slow to easily cause system resource deficiency, escalation process so that system There is the problem of service disconnection.
In order to solve the above technical problems, the present invention provides a kind of component upgrade method, including:
Detect whether non-upgrade components be present, in the presence of, obtain the current resource status of system;
Judge whether resource status meets the preparatory condition of default progress component upgrade, when meeting, issue group Part upgrading processing instructs.
In an embodiment of the present invention, preparatory condition includes the first preparatory condition, the first preparatory condition bag Include:The current resource space residual value of system is more than or equal to the vacant value of least resource that system allows to carry out component upgrade; When non-upgrade components being present, the current resource space residual value of system is obtained, judges whether resource space residual value meets First preparatory condition.
In an embodiment of the present invention, preparatory condition also includes the second preparatory condition, the second preparatory condition Including:The number that system currently carries out the component of upgrading processing allows to carry out upgrading processing less than or equal to system The maximum number of component;When resource space residual value meets the first preparatory condition, acquisition system is currently upgraded The number of the component of processing, judges whether number meets the second preparatory condition.
In an embodiment of the present invention, resource space residual value includes the vacant value of system resource of main frame, storage The vacant value of resource space residual value and Internet resources in storehouse.
In an embodiment of the present invention, issuing component upgrade process instruction includes:According to the use of component Fiequency selective components issue upgrading processing instruction or carry out group according to the current vacant resource value of system is maximum allowable The number of components selection component of part upgrading issues upgrading processing instruction.
In an embodiment of the present invention, detect whether that non-upgrade components be present includes:When online in system When number of users allows detect whether the maximum number of user in the presence of non-upgrade components less than or equal to system, detection It whether there is non-upgrade components in system.
The present invention also provides a kind of component upgrade device, including:At resource status acquisition module and component upgrade Manage module,
Resource status acquisition module for detecting whether in the presence of non-upgrade components, in the presence of, it is current to obtain system Resource status;
Component upgrade processing module is used to judge whether resource status meets the default of default progress component upgrade Condition, when meeting, issue component upgrade process instruction.
In an embodiment of the present invention, resource status acquisition module includes first resource state acquisition submodule Block, component upgrade processing module include first assembly upgrading processing submodule, and it is default that preparatory condition includes first Condition, the first preparatory condition include:The current resource space residual value of system is more than or equal to system and allows to carry out component The vacant value of least resource of upgrading;First resource state acquisition submodule is used for when non-upgrade components be present, The current resource space residual value of acquisition system, first assembly upgrading processing submodule are used to judge that resource space residual value is The first preparatory condition of no satisfaction.
In an embodiment of the present invention, resource status acquisition module includes Secondary resource state acquisition submodule Block, component upgrade processing module include the second component upgrade processing submodule, and it is pre- that preparatory condition also includes second If condition, the second preparatory condition includes:System currently carry out the component of upgrading processing number be less than or equal to be System allows the maximum number for carrying out the component of upgrading processing;Secondary resource state acquisition submodule is used to work as resource When vacant value meets the first preparatory condition, acquisition system currently carries out the number of the component of upgrading processing;Second Component upgrade processing submodule is used to judge whether number meets the second preparatory condition.
In an embodiment of the present invention, resource space residual value includes the vacant value of system resource of main frame, storage The vacant value of resource space residual value and Internet resources in storehouse.
In an embodiment of the present invention, component upgrade processing module also includes component selecting module, component Selecting module is used to select component to issue upgrading processing instruction or current according to system according to the frequency of use of component Vacant resource value it is maximum allowable carry out component upgrade number of components selection component issue upgrading processing instruction.
In an embodiment of the present invention, resource status acquisition module also includes component detection submodule, group Part detection sub-module is used to work as online user number in system and allows to carry out detecting whether exist not less than or equal to system During the maximum number of user of upgrade components, it whether there is non-upgrade components in detecting system.
The present invention also provides a kind of component upgrade system, including:Said modules update device.
The beneficial effects of the invention are as follows:
The present invention provides a kind of component upgrade methods, devices and systems, does not upgrade group by detecting whether to exist Part, when it is present, obtain the current resource status of system;Judge whether resource status meets default progress The preparatory condition of component upgrade, when meeting, component upgrade process instruction is issued, carries out upgrading processing.That is root The process of component upgrade is effectively divided into multiple stages to carry out according to the resource status of system so that component liter The normal operation of system business will not be influenceed because of component high-volume upgrading consumption excess resource during level, Component upgrade processing is completed in the case of guaranteed and system business is unbroken in guarantee system resource, is contracted simultaneously Short update time, ensure that the stability of whole system.
Brief description of the drawings
Fig. 1 is the component upgrade method flow diagram that the embodiment of the present invention one provides;
Fig. 2 is the component upgrade schematic device that the embodiment of the present invention two provides;
Fig. 3 is the resource status acquisition module schematic diagram in Fig. 2;
Fig. 4 is the component upgrade processing module schematic diagram in Fig. 2;
Fig. 5 is the component upgrade system schematic that the embodiment of the present invention two provides;
Fig. 6 is virtual machine component upgrade method flow chart in existing cloud desktop system;
Fig. 7 is the cloud desktop system virtual machine component upgrade method flow chart that the embodiment of the present invention three provides.
Embodiment
The present invention is described in further detail below by embodiment combination accompanying drawing.
Embodiment one:
For solve in the prior art component high-volume upgrading easily cause system resource deficiency, escalation process it is slow, So that the problem of service disconnection occurs in system, the present embodiment provides a kind of component upgrade method, refers to Fig. 1, It is specifically included:
Step S101, detect whether non-upgrade components be present, in the presence of, obtain the current resource status of system;
Specifically, in the upgrade process of whole system, if also needing to be risen in the presence of non-upgrade components Level processing, then remove the current resource status of acquisition system, judge whether the resource status meets to carry out at upgrading The condition of reason.
Further, detect whether that non-upgrade components be present includes:When online user number is less than or equal in system When system allows detect whether the maximum number of user in the presence of non-upgrade components, it whether there is in detecting system Non- upgrade components.It is detailed, at work between, have a large number of users and access, using system, the industry of system It is busier that business is relative, and the system can be specifically cloud desktop system;I.e. at work between, system Resource utilization is higher, if now starting component upgrade, may influence whether the regular traffic of system, and group Part escalation process can be very slow;So can be the number of users in the system such as quitting time, cloud desktop system When less, i.e., when system is more idle, go in detecting system whether also have component not upgrade.Specifically, can To set a threshold value, the threshold value is that system allows to carry out detecting whether the maximum number of user in the presence of non-upgrade components, Such as 1000 users are shared in cloud desktop system, the maximum number of user be 200, if in current system Line number of users illustrates that system relatively can be busier more than 200, then does not go to detect whether to exist not upgrade Component;If the number of users in current system is not above 200, goes whether to have in detection architecture and do not upgrade Component needs to upgrade.Alternatively, it is also possible to set a ratio, as online user number at most accounts for the 60% of total number of users, When the ratio of online user is no more than 60%, go in detection architecture whether there are non-upgrade components to need to upgrade.Need It is to be understood that when system is more idle, detect whether non-upgrade components be present, can be system compared with For the free time when, the version information for the securing component that sends instructions under just going, judge version information that this gets is whether The version for needing to be upgraded to for component;It can also be that component timing reports the version information of its own, work as system When idle, the newest version information reported is directly read, judges whether the version information is that component needs to upgrade The version arrived.If the version information is not also the version that component needs are upgraded to, it is not rise to illustrate the component Level assembly is, it is necessary to carry out component upgrade processing.
Further, when needing upgrading in the presence of non-upgrade components, the current resource status of system, tool are obtained Body can be that down distributing resource state acquisition message removes the current resource status of acquisition system, when the system is cloud table During plane system, the current resource status that obtains cloud desktop system is management server to VMC (VPX Manager Controller, multi-protocol exchange Management Controller) down distributing resource state acquisition message, allow VMC to go to obtain The resource status of system, after VMC gets the resource status of system, then report management server.
Further, the resource status includes the resource space residual value of system and system currently carries out component liter The number of the component of level.The resource space residual value includes the vacant value of system resource of main frame, the resource space of thesaurus Residual value and the vacant value of Internet resources.Detailed, the vacant value of system resource of wherein main frame specifically includes main frame CPU remaining utilization rate, the service condition of internal memory;The resource space residual value of thesaurus includes the read-write of thesaurus Busy extent and IOPS (Input/Output Operations Per Second, it is per second to be written and read operation Number);The vacant service condition for being worth the bandwidth for including network of Internet resources.The system can be specifically cloud table Plane system.
Step S102, judges whether resource status meets the preparatory condition of default progress component upgrade, meets When, issue component upgrade process instruction.
Specifically, when there is component to need upgrading, the current resource status of system is obtained, according to the resource shape State judges whether that upgrading processing can be carried out, and can specifically set the preparatory condition for allowing to carry out upgrading processing, When resource status meets the preparatory condition, upgrading processing is carried out.
Further, the preparatory condition includes the first preparatory condition, and the first preparatory condition includes:System is current Resource space residual value be more than or equal to system allow carry out component upgrade the vacant value of least resource;Do not risen when existing During level assembly, the current resource space residual value of system is obtained, judges whether resource space residual value meets the first default bar Part.
Specifically, the first preparatory condition can be set, first preparatory condition is for weighing the current of system Resource space residual value whether can carry out component upgrade processing, detailed, the vacant value of the least resource can be The CPU of finger main frame, the remaining utilization rate of internal memory are 30%, while the storage read-write resource of main frame and thesaurus remains Remaining is that 40%, IOPS is no more than the predetermined conditions such as 5000, when the conditions are satisfied, carries out upgrading processing.
Further, preparatory condition also includes the second preparatory condition, and the second preparatory condition includes:System is current The number for carrying out the component of upgrading processing is less than or equal to the maximum number that system allows to carry out the component of upgrading processing Mesh;When resource space residual value meets the first preparatory condition, acquisition system currently carries out the component of upgrading processing Number, judges whether number meets the second preparatory condition.
Specifically, rule of thumb, while excessive component upgrade instruction is issued in systems, as in systems After same thesaurus or same main frame issue excessive component upgrade instruction, during reality is follow-up simultaneously The congestion of system resource is will also result in, so the limitation based on foregoing first preparatory condition, can be directed in system Different main frames, different thesaurus currently just registered in component upgrade number, and the component upgrade newly issued refers to Order is also required to meet the component no more than allowing to be upgraded under same main frame or same thesaurus simultaneously Maximum upgrading number limitation.The number that the component of upgrading processing is currently carried out when system permits no more than system When carrying out the maximum number of upgrading processing perhaps, upgrading processing is carried out.
Further, issuing component upgrade process instruction includes:Selected according to the frequency of use of component under component Send out upgrading processing instruction or according to the maximum allowable component for carrying out component upgrade of the current vacant resource value of system Number selection component issues upgrading processing instruction.
Specifically, when the vacant value of system resource meets to carry out the condition of component upgrade, it is necessary to be carried out from needs Selected section carries out upgrading processing in the component of component upgrade, and its specific selection can be according to the use of component Frequency goes to select, and the component for selecting frequency of use high preferentially carries out upgrading processing;Component upgrade can take necessarily System resource, can also be according in current system in order to complete the upgrading of component as much as possible as early as possible The number that resource space residual value at most allows to carry out component upgrade upgrades, and as far as possible makes more components complete to rise Level processing, for some in upgrading, the more component of occupying system resources, stay in and finally risen again Level processing.
The component upgrade method that the present embodiment provides, by when having detected that component needs upgrading, obtaining system Unite current resource status;Judge whether resource status meets the preparatory condition of default progress component upgrade, When meeting, component upgrade process instruction is issued.I.e. according to the resource status of system effectively by component upgrade Reason substep is carried out, and without influenceing the normal operation of system business, while is shortened update time, be ensure that whole The stability of individual system.
Embodiment two:
For solve in the prior art component high-volume upgrading easily cause system resource deficiency, escalation process it is slow, So that the problem of service disconnection occurs in system, the present embodiment provides a kind of component upgrade device 2, refers to Fig. 2, It is specifically included:Resource status acquisition module 21 and component upgrade processing module 22, resource status acquisition module 21 for detecting whether in the presence of non-upgrade components, in the presence of, obtain the current resource status of system;Component upgrade Processing module 22 is used for the preparatory condition for judging whether resource status meets default progress component upgrade, meets When, issue component upgrade process instruction.
Specifically, in the upgrade process of whole system, if also needing to be risen in the presence of non-upgrade components Level processing, resource status acquisition module 21 then remove the current resource status of acquisition system, judge the resource status Whether satisfaction carry out upgrading processing condition.
Further, Fig. 3 is referred to, resource status acquisition module 21 includes component detection submodule 213, The component detection submodule specifically includes for detecting whether in the presence of non-upgrade components:When online in system When number of users allows detect whether the maximum number of user in the presence of non-upgrade components less than or equal to system, detection It whether there is non-upgrade components in system.It is detailed, at work between, have a large number of users and access, use System, the relative business of system is busier, and the system can be specifically cloud desktop system;I.e. in work Make the time, the resource utilization of system is higher, if now starting component upgrade, may influence whether system Regular traffic, and component upgrade process can be very slow;So can be in quitting time, such as cloud desktop system When less etc. number of users in system, i.e., when system is more idle, go in detecting system whether also have component not rise Level.Specifically, a threshold value can be set, the threshold value is that system allows to carry out detecting whether to exist not upgrading group 1000 users are shared in the maximum number of user of part, such as cloud desktop system, the maximum number of user is 200, If the online user number in current system more than 200, illustrates that system relatively can be busier, then do not go to examine Survey whether there is non-upgrade components;If the number of users in current system is not above 200, go to detect body Whether there are non-upgrade components to need to upgrade in system.Alternatively, it is also possible to set a ratio, such as online user number most Account for the 60% of total number of users more, when the ratio of online user is no more than 60%, go in detection architecture whether to have not Upgrade components need to upgrade.It is to be appreciated that when system is more idle, detects whether to exist and do not upgrade Component, can be the version information for the securing component that sends instructions under just going when system is more idle, judging should Whether the version information got is that component needs the version that is upgraded to;Can also be that component timing reports it certainly The version information of body, when the system is idle, the newest version information reported is directly read, judge that the version is believed Whether breath is that component needs the version that is upgraded to.If the version information is not also the version that component needs are upgraded to, Then illustrate that the component is non-upgrade components, it is necessary to carry out component upgrade processing.
Further, when needing upgrading in the presence of non-upgrade components, the current resource status of system, tool are obtained Body can be that down distributing resource state acquisition message removes the current resource status of acquisition system, when the system is cloud table During plane system, the current resource status that obtains cloud desktop system is management server to VCM down distributing resource shapes State obtains the resource status that message goes acquisition system, after VCM gets the resource status of system, then reports pipe Manage server.
Further, the resource status includes the resource space residual value of system and system currently carries out component liter The number of the component of level.The resource space residual value includes the vacant value of system resource of main frame, the resource space of thesaurus Residual value and the vacant value of Internet resources.Detailed, the vacant value of system resource of wherein main frame specifically includes main frame CPU remaining utilization rate, the service condition of internal memory;The resource space residual value of thesaurus includes the read-write of thesaurus Busy extent and IOPS;The vacant service condition for being worth the bandwidth for including network of Internet resources.The system can be Cloud desktop system.
Specifically, when there is component to need upgrading, component upgrade processing module 22 obtains the current resource of system State, judged whether that upgrading processing can be carried out according to the resource status, can set allows to carry out at upgrading The preparatory condition of reason, when resource status meets the preparatory condition, carry out upgrading processing.
Further, Fig. 3 is referred to, resource status acquisition module 21 includes first resource state and obtains submodule Block 211, Fig. 4 being referred to, component upgrade processing module 22 includes first assembly upgrading processing submodule 221, The preparatory condition includes the first preparatory condition, and the first preparatory condition includes:The current resource space residual value of system is big In the vacant value of least resource for allowing to carry out component upgrade equal to system;First resource state acquisition submodule 211 For when non-upgrade components be present, obtaining the current resource space residual value of system, first assembly upgrading processing Module 221 is used to judge whether resource space residual value meets the first preparatory condition.
Specifically, the first preparatory condition can be set, obtained by first resource state acquisition submodule 211 The current resource space residual value of system, first assembly upgrading processing submodule 221 is according to the resource space got Residual value judge its be meet carry out component upgrade processing the first preparatory condition, first preparatory condition be for Whether the current resource space residual value of measurement system can carry out component upgrade processing, detailed, the most petty bourgeoisie The vacant value in source can refer to the CPU of main frame, the remaining utilization rate of internal memory is 30%, while main frame and thesaurus Storage read-write resources left is that 40%, IOPS is no more than the predetermined conditions such as 5000, when the conditions are satisfied, Carry out upgrading processing.
Further, Fig. 3 is referred to, resource status acquisition module 21 includes Secondary resource state and obtains submodule Block 212, Fig. 4 being referred to, component upgrade processing module 22 includes the second component upgrade processing submodule 222, Preparatory condition also includes the second preparatory condition, and the second preparatory condition includes:System currently carries out upgrading processing The number of component is less than or equal to the maximum number that system allows to carry out the component of upgrading processing;Secondary resource state Acquisition submodule 212 is used for when resource space residual value meets the first preparatory condition, and acquisition system is currently risen The number of the component of level processing, the second component upgrade processing submodule 222 are used to judge whether number meets the Two preparatory conditions.
Specifically, rule of thumb, while excessive component upgrade instruction is issued in systems, as in systems After same thesaurus or same main frame issue excessive component upgrade instruction, during reality is follow-up simultaneously The congestion of system resource is will also result in, so the limitation based on foregoing first preparatory condition, can be directed in system Different main frames, different thesaurus currently just registered in component upgrade number, and the component upgrade newly issued refers to For the component that order is also required to meet same main frame simultaneously or same thesaurus allows to carry out upgrading processing Number is no more than the limitation of maximum upgrading number.The number that the component of upgrading processing is currently carried out when system is no more than When system allows to carry out the maximum number of upgrading processing, upgrading processing is carried out.
Further, Fig. 4 is referred to, the component upgrade processing module 22 that the present embodiment provides also includes component Selecting module 223, the component selecting module 223 are used to select component to issue upgrading according to the frequency of use of component Process instruction selects according to the maximum allowable number of components for carrying out component upgrade of the current vacant resource value of system Component issues upgrading processing instruction.
Specifically, when the vacant value of system resource meets to carry out the condition of component upgrade, it is necessary to be carried out from needs Selected section carries out upgrading processing in the component of component upgrade, and its specific selection can be according to the use of component Frequency goes to select, and the component for selecting frequency of use high preferentially carries out upgrading processing;Component upgrade can take necessarily System resource, can also be according in current system in order to complete the upgrading of component as much as possible as early as possible The number that resource space residual value at most allows to carry out component upgrade upgrades, and as far as possible makes more components complete to rise Level processing, for some in upgrading, the more component of occupying system resources, stay in and finally risen again Level processing.
The component upgrade device that the present embodiment provides, when having detected that component needs upgrading, obtain system and work as Preceding resource status;Judge whether resource status meets the preparatory condition of default progress component upgrade, meet When, issue component upgrade process instruction.According to the resource status of system effectively by component upgrade processing substep Carry out, run without traffic affecting, while shorten update time, ensure that the stability of whole system.
The present embodiment also provides a kind of component upgrade system, refers to Fig. 5, including above-mentioned component upgrade device, The component upgrade device specifically may apply in cloud desktop system, realize in cloud desktop system escalation process The upgrading processing of component, such as said modules update device can specifically be arranged on management server end, work as pipe Reason server is detected in system when non-upgrade components being present, allows VMC to remove the resource status of acquisition system, pipe Server is managed by the resource status of the VMC systems got and the default preparatory condition for carrying out component upgrade Compare, if current resource status meets preparatory condition, illustrate that system resource abundance is sufficient for part Component upgrade, now management server issue component upgrade instruction, start upgrading processing.Using the present embodiment In component upgrade system, the upgrading processing of component can be controlled according to the resource status of system, Component upgrade is carried out several times, the normal operation without influenceing system business, shortened simultaneously Update time, it ensure that the stability of whole system.
Embodiment three:
In the prior art, the virtual machine component upgrade in cloud desktop system is to complete upgrading on cloud desktop backstage Simultaneously, it is necessary to the backstage push upgrading processing of virtual machine component under all cloud desktops is completed, refers to Fig. 6, Its specific upgrade process includes:
Step S201, upload virtual machine component iso (Isolation, virtual image file) and arrive NFS (Network File System, NFS) manage under storage catalogue;
Step S202, set on administration interface and import iso and version component version number is set;
Step S203, administration interface initiate component upgrade processing.
For step S203, it is specifically included:Administration interface initiates upgrade request to VMC, to virtual machine CD-ROM drive carry component iso AKUs;After the completion of, initiate component upgrade instruction, vmboostermonitor to virtual machine Process receives the request message about upgrade command, finds the CD-ROM drive execution for having hung over component iso AKUs Vmtool-setup.exe, after the completion of execution, restart the vmboostermonitor processes;Then the upgrading is detected Whether succeed, and generate corresponding response message and be sent to administration interface, administration interface is receiving virtual machine Upgrade successfully or failure response after, for ensure user will not because getting caused vestige in processing procedure and Maloperation is triggered, system is started some unnecessary processing, administration interface initiates modification request to VMC, Virtual machine CD-ROM drive is changed as sky.
During the above-mentioned upgrading processing of progress in the prior art, Web initiates component upgrade processing, is management server hair Batch component upgrade is played, i.e. management server chooses all virtual machines, and it is virtual to issue batch desktop by keeper The notice of thermomechanical components upgrading, starts upgrading processing.In this way, because network bandwidth or storage limit The problem of processed, IO limitations are especially stored, easily cause that storage disk is busy, and escalation process is slow, and held Easily cause server service delay machine or other extremely occur.And with the development of cloud desktop, the number of cloud desktop Measure more and more, it is meant that the quantity for the desktop component to carry out upgrading processing is also more and more, this background Under completed a large amount of desktop virtual machine component upgrades on upgrading that night will be extremely difficult, also It is not necessary to.So It is proposed that a kind of component upgrade method, ensure in the case of system normal operation according to the resource status of system The upgrade job of virtual machine component is completed in segmentation.
In order to improve the speed of virtual machine component upgrade and ensure the stability of system, the present embodiment provides a kind of Cloud desktop system virtual machine component upgrade method, refers to Fig. 7, specifically includes:
Step S301, the preparatory condition for carrying out component upgrade is set;
Specifically, the preparatory condition includes carrying out detecting whether the time in the presence of non-upgrade components first, specifically , constraints can be set to determine when whether have component not upgrade in detecting system, as worked as in system When online user number allows detect whether the minimum number of users in the presence of non-upgrade components less than or equal to system, It whether there is non-upgrade components in detecting system.It is detailed, at work between, have a large number of users access, Using cloud desktop system, the relative business of cloud desktop system is busier;I.e. at work between, cloud table The resource utilization of plane system is higher, if now starting component upgrade, may influence whether cloud desktop system Regular traffic, and component upgrade process can be very slow;So can be used in the quitting time, cloud desktop system When amount is less, i.e., when cloud desktop system is more idle, go to detect in cloud desktop system whether also have component not Upgrading;Specifically, a threshold value can be set, the threshold value is that system allows to carry out detecting whether to exist not upgrading The minimum number of users of component, for example 1000 users are shared in cloud desktop system, the linear user number is 200, If the online user number in current system is more than 200, do not go to detect whether non-upgrade components be present; If the number of users in current system is not above 200, go in detection architecture whether there are non-upgrade components to need Upgrade.Alternatively, it is also possible to set a ratio, as online user number accounts for the 60% of total number of users, used when online When the ratio at family is no more than 60%, go in detection architecture whether there are non-upgrade components to need to upgrade.It is understood that , when system is more idle, to detect whether non-upgrade components be present, can be when system is more idle, Send instructions the version information of securing component under just going, and judges whether the version information got is component needs The version being upgraded to;Can also be that component timing reports the version information of its own, when the system is idle, directly Connect and read the newest version information reported, judge whether the version information is version that component needs to be upgraded to. If the version information is not also the version that component needs are upgraded to, it is non-upgrade components to illustrate the component, is needed Carry out component upgrade processing.
Further, preparatory condition includes the first preparatory condition and the second preparatory condition, the first preparatory condition bag Include:The current resource space residual value of system is more than or equal to the vacant value of maximum resource that system allows to carry out component upgrade. Second preparatory condition includes:System currently carry out the component of upgrading processing number be less than or equal to system allow into The maximum number of the component of row upgrading processing.When the resource status of system meets first preparatory condition and second During preparatory condition, component upgrade process instruction is issued.
Further, resource space residual value includes the vacant value of system resource of main frame, the resource space residual value of thesaurus With the vacant value of Internet resources.Specifically, the vacant value of the system resource of wherein main frame specifically includes the CPU of main frame Remaining utilization rate, the service condition of internal memory;The resource space residual value of thesaurus includes the numerous of the read-write of thesaurus Busy degree and IOPS;The vacant service condition for being worth the bandwidth for including network of Internet resources.For example, we can be with It is to use no more than 70% in CPU, the internal memory of main frame to set the first preparatory condition, while main frame and thesaurus Storage read-write busy extent is no more than the predetermined conditions such as 5000 no more than 60%, IOPS, i.e., CPU in main frame, The surplus resources of internal memory are remaining to be more than 30%, while the storage read-write resources left of main frame and thesaurus is more than 40%, when IOPS times number is no more than the predetermined condition such as 5000, upgrading processing instruction is issued, when being unsatisfactory for these When each parameter exceedes the preset value in condition or current system, system will be limited component upgrade, No longer carry out component upgrade instruction to issue, carried out again after system resource is eligible.
In addition, rule of thumb, while issue excessive component upgrade simultaneously in same thesaurus or same main frame After instruction, the congestion of system resource is will also result in during reality is follow-up, so except to being described above Resources supplIes limitation is outer, and management server can be directed to different main frames, different thesaurus are carried out currently just in component Upgrade number registration, newly issue component upgrade instruction and meanwhile be also required to meet be no more than same main frame or Same thesaurus allows the limitation of the maximum upgrading number for the component for carrying out upgrading processing.It is pre- foregoing first If the limitation of condition and the second preparatory condition issues component upgrade process instruction, it ensure that system is not influenceing it While regular traffic, the upgrading processing to component is completed.
Step S302, if the detection process of non-upgrade components is carried out, if so, jumping to step S303;If It is no, then terminate;
Specifically, it can judge whether to detect according to the current online user number of system, when in system Online user is less, when system is more idle, carries out whether there is non-upgrade components in detecting system;If this When system in online user number it is relatively more, for example 90% user is online, then is not turned on the detection process, When system is more idle, then go to open.It is to be appreciated that can be by periodically or in real time obtaining The parameters such as the online user number in system judge whether system is idle.
Step S303, the version information of securing component, jump to step S304;
Specifically, when needing more idle, it whether there is non-upgrade components in detecting system, specifically can be with It is the version information of securing component.
Step S304, determine whether that component needs to upgrade, if so, jumping to step S305;If it is not, then Terminate;
Specifically, after the version information of securing component, judge whether the version information is that component needs to be upgraded to Version, when not being, then illustrate the component need carry out upgrading processing, now then carry out follow-up upgrading Processing, if non-upgrade components are not present, illustrate that component is fully scalable and is over, then it is treated to terminate this Journey.
Step S305, the resource status of system is obtained, jump to step S306;
Can be that administration interface initiates resource inquiry request to VMC specifically, when there is component to need upgrading, Remove the resource status of acquisition system.Detailed, after preparatory condition is set, it is pre- that management server reads this If condition renewal is locally located, then initiates resource state information to VMC and collect request, it is real-time or timing Resource state information is obtained, VMC forwards the request to each main frame or storage library facilities after receiving request, The busy extent that each main frame calls inquiry current system resource state information by system script, stored, it is real When or periodically report VMC, this information is transmitted to management server by VMC again, and management server is received After to resource state information compared with preparatory condition set in advance, if resource status is after the comparison still Main frame, storage library facilities where available free and its virtual machine do not reach largest component upgrading number limitation, And currently also have virtual machine component to need to arrange for upgrading, then upgrade components upgrade command is assigned to virtual machine and is entered Row upgrading, until system resource state is unsatisfactory for stopping during some preparatory condition and handled.
Step S306, judge whether to meet the first preparatory condition and the second preparatory condition, if satisfied, jumping to Step S307;If not satisfied, then terminate;
Specifically, after getting the resource status of system, judge whether the resource status meets default first Preparatory condition and the second preparatory condition, when meeting, illustrate that now system there are enough spaces to carry out part The upgrading processing of component, upgrading processing instruction is sent to the component that needs upgrade as needed, is risen it Level processing.
Step S307, issue component upgrade processing;
Specifically, when system has vacant resource to carry out component upgrade, under the component that selection needs upgrade Hair component upgrade process instruction, detailed, issuing component upgrade process instruction includes:According to the use of component Fiequency selective components issue upgrading processing instruction or carry out group according to the current vacant resource value of system is maximum allowable The number of components selection component of part upgrading issues upgrading processing instruction.I.e. when the vacant value of system resource meets to carry out , it is necessary to which selected section carries out upgrading processing from the component for needing to carry out component upgrade during the condition of component upgrade, Its specific selection can go to select according to the frequency of use of component, and the component for selecting frequency of use high preferentially enters Row upgrading processing;Component upgrade can take certain system resource, in order to complete component as much as possible as early as possible Upgrading, can also can at most be allowed according to the resource space residual value in current system carry out component upgrade number To upgrade, more components is completed upgrading processing as far as possible, for some in upgrading, take system money The more component in source, stay in and finally carry out upgrading processing again.
Step S308, carry out component upgrade processing.
Specifically, it is management server to virtual machine sending assembly upgrading processing to issue component upgrade process instruction Instruction, when the vmboostermonitor processes in virtual machine receive request message, find and hung over component iso The CD-ROM drive of AKU performs vmtool-setup.exe, after the completion of execution, restarts the vmboostermonitor and enters Journey;Then detect whether the upgrading succeeds, and generate corresponding response message and be sent to administration interface, manage Interface receive virtual machine upgrade successfully or failure response after, for ensure user will not because of get processing During caused vestige and trigger maloperation, system is started some unnecessary processing, administration interface to VMC initiates modification request, and modification virtual machine CD-ROM drive is sky.
It is to be appreciated that whether the acquisition in the present embodiment has component upgrade with obtaining the resource status of system Can go to obtain or in the system free time as needed in real time respectively, VMC is just by component The timing of the resource situation of version information and system reports management server.
The component upgrade method for the cloud desktop system that the present embodiment provides, by the way that in the system free time, detection is It is no to there is component to need to be upgraded, when there is component to need to be upgraded, the resource status of system is obtained, is sentenced Whether the disconnected resource status meets that system carries out the preparatory condition of component upgrade, and when meeting, explanation system has Enough resource free time go to carry out component upgrade, issue component upgrade instruction, carry out follow-up upgrading processing.I.e. The virtual machine component upgrade job that upgrading that night fails to complete is arranged into follow-up progress, by original Account Dept Decilitre level and desktop component upgrade job, which can separate, to be carried out so that and virtual machine component upgrade is carried out several times, While component upgrade necessary to effective complete, it will not make that system is busy, disappears because of high-volume upgrading Consumption excess resource and lasting upgrading take and influence the normal operation of system business and the use of user, are ensureing System resource is guaranteed and system business it is unbroken in the case of complete component upgrade processing, while shorten liter The level time, it ensure that the stability of whole system.
Obviously, those skilled in the art should be understood that each module of the invention described above or each step can be used General computing device realizes that they can be concentrated on single computing device, or be distributed in multiple On the network that computing device is formed, alternatively, they can with computing device can perform program code come Realize, it is thus possible to be stored in storage medium (ROM/RAM, magnetic disc, CD) by calculating Device performs, and in some cases, can be with shown or described by being performed different from order herein The step of, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them Or step is fabricated to single integrated circuit module to realize.So the present invention be not restricted to it is any specific hard Part and component combine.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to is recognized The specific implementation of the fixed present invention is confined to these explanations.For the ordinary skill of the technical field of the invention For personnel, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, Protection scope of the present invention should be all considered as belonging to.

Claims (13)

  1. A kind of 1. component upgrade method, it is characterised in that including:
    Detect whether non-upgrade components be present, in the presence of, obtain the current resource status of system;
    Judge whether the resource status meets the preparatory condition of default progress component upgrade, when meeting, under Send out component upgrade process instruction.
  2. 2. component upgrade method as claimed in claim 1, it is characterised in that the preparatory condition bag The first preparatory condition is included, first preparatory condition includes:The current resource space residual value of system is more than or equal to System allows the vacant value of least resource for carrying out component upgrade;When non-upgrade components be present, it is current to obtain system The resource space residual value, judge whether the resource space residual value meets the first preparatory condition.
  3. 3. component upgrade method as claimed in claim 2, it is characterised in that the preparatory condition is also Including the second preparatory condition, second preparatory condition includes:System currently carries out the component of upgrading processing Number is less than or equal to the maximum number that system allows to carry out the component of upgrading processing;When the resource space residual value is expired During foot first preparatory condition, acquisition system currently carries out the number of the component of upgrading processing, judges Whether the number meets second preparatory condition.
  4. 4. component upgrade method as claimed in claim 2 or claim 3, it is characterised in that the resource space Residual value includes the vacant value of system resource of main frame, the vacant value of resource space residual value and Internet resources of thesaurus.
  5. 5. the component upgrade method as described in claim any one of 1-3, it is characterised in that issue group The instruction of part upgrading processing includes:Select the component to issue the upgrading processing according to the frequency of use of component to refer to Order selects institute according to the maximum allowable number of components for carrying out component upgrade of the current vacant resource value of system State component and issue the upgrading processing instruction.
  6. 6. the component upgrade method as described in claim any one of 1-3, it is characterised in that the inspection Survey includes with the presence or absence of non-upgrade components:When online user number allows to be detected less than or equal to system in system With the presence or absence of non-upgrade components maximum number of user when, whether there is non-upgrade components in detecting system.
  7. A kind of 7. component upgrade device, it is characterised in that including:Resource status acquisition module and component Upgrading processing module,
    The resource status acquisition module for detecting whether in the presence of non-upgrade components, in the presence of, obtain system Current resource status;
    The component upgrade processing module is used to judge whether the resource status meets default progress component liter The preparatory condition of level, when meeting, issues component upgrade process instruction.
  8. 8. component upgrade device as claimed in claim 7, it is characterised in that the resource status obtains Modulus block includes first resource state acquisition submodule, and the component upgrade processing module includes first assembly liter Level processing submodule, the preparatory condition include the first preparatory condition, and first preparatory condition includes:System The resource space residual value for uniting current is more than or equal to the vacant value of least resource that system allows to carry out component upgrade;It is described First resource state acquisition submodule is used to, when non-upgrade components be present, obtain the current resource of system Vacant value, the first assembly upgrading processing submodule are used to judge whether the resource space residual value meets first Preparatory condition.
  9. 9. component upgrade device as claimed in claim 8, it is characterised in that the resource status obtains Modulus block includes Secondary resource state acquisition submodule, and the component upgrade processing module includes the second component liter Level processing submodule, the preparatory condition also include the second preparatory condition, and second preparatory condition includes: The number that system currently carries out the component of upgrading processing allows the component for carrying out upgrading processing less than or equal to system Maximum number;The Secondary resource state acquisition submodule is used for when the resource space residual value meets described first During preparatory condition, acquisition system currently carries out the number of the component of upgrading processing;The second component liter Level processing submodule is used to judge whether the number meets second preparatory condition.
  10. 10. component upgrade device as claimed in claim 8 or 9, it is characterised in that the resource space Residual value includes the vacant value of system resource of main frame, the vacant value of resource space residual value and Internet resources of thesaurus.
  11. 11. the component upgrade device as described in claim any one of 7-9, it is characterised in that described group Part upgrading processing module also includes component selecting module, and the component selecting module is used for the use according to component Frequency select the component issue the upgrading processing instruction or according to the current vacant resource value of system most It is big to allow the number of components for carrying out component upgrade to select the component to issue the upgrading processing instruction.
  12. 12. the component upgrade device as described in claim any one of 7-9, it is characterised in that the money Source state acquisition module also includes component detection submodule, and the component detection submodule is used to work as in system When line number of users allows detect whether the maximum number of user in the presence of non-upgrade components less than or equal to system, inspection It whether there is non-upgrade components in examining system.
  13. A kind of 13. component upgrade system, it is characterised in that including:Described in claim any one of 7-12 Component upgrade device.
CN201610309348.8A 2016-05-11 2016-05-11 A kind of component upgrade methods, devices and systems Pending CN107368324A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610309348.8A CN107368324A (en) 2016-05-11 2016-05-11 A kind of component upgrade methods, devices and systems
PCT/CN2017/083985 WO2017193964A1 (en) 2016-05-11 2017-05-11 Component upgrade method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610309348.8A CN107368324A (en) 2016-05-11 2016-05-11 A kind of component upgrade methods, devices and systems

Publications (1)

Publication Number Publication Date
CN107368324A true CN107368324A (en) 2017-11-21

Family

ID=60267522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610309348.8A Pending CN107368324A (en) 2016-05-11 2016-05-11 A kind of component upgrade methods, devices and systems

Country Status (2)

Country Link
CN (1) CN107368324A (en)
WO (1) WO2017193964A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152825A (en) * 2019-06-27 2020-12-29 广东美的制冷设备有限公司 Multi-stage module upgrading method and device for household electrical appliance and electronic equipment
CN116775084A (en) * 2023-08-23 2023-09-19 荣耀终端有限公司 System upgrading method and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729157B (en) * 2018-12-18 2023-11-14 维拓智能科技(深圳)有限公司 Self-service terminal and remote supervision and upgrading method thereof
CN110784344B (en) * 2019-10-17 2022-05-03 京信网络***股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111459748A (en) * 2020-03-17 2020-07-28 中国建设银行股份有限公司 Operation and maintenance control method, system and device based on command control and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436390A (en) * 2012-01-09 2012-05-02 华为数字技术有限公司 Method and equipment for upgrading software of multi-core processor
CN103955381A (en) * 2014-04-04 2014-07-30 京信通信***(中国)有限公司 Method and system for management server to perform batch software update on terminal equipment
CN104717636A (en) * 2013-12-13 2015-06-17 成都鼎桥通信技术有限公司 Software upgrading method, terminal device and over-the-air download server
US20160019096A1 (en) * 2012-03-02 2016-01-21 Vmware, Inc. Single, logical, multi-tier application blueprint used for deployment and management of multiple physical applications in a cloud infrastructure

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229B (en) * 2007-07-24 2012-12-19 深圳市融创天下科技股份有限公司 Increment upgrading method for networked application programs
CN104636159B (en) * 2013-11-15 2018-09-28 华为技术有限公司 The method and apparatus that software in virtual machine is upgraded

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436390A (en) * 2012-01-09 2012-05-02 华为数字技术有限公司 Method and equipment for upgrading software of multi-core processor
US20160019096A1 (en) * 2012-03-02 2016-01-21 Vmware, Inc. Single, logical, multi-tier application blueprint used for deployment and management of multiple physical applications in a cloud infrastructure
CN104717636A (en) * 2013-12-13 2015-06-17 成都鼎桥通信技术有限公司 Software upgrading method, terminal device and over-the-air download server
CN103955381A (en) * 2014-04-04 2014-07-30 京信通信***(中国)有限公司 Method and system for management server to perform batch software update on terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152825A (en) * 2019-06-27 2020-12-29 广东美的制冷设备有限公司 Multi-stage module upgrading method and device for household electrical appliance and electronic equipment
CN112152825B (en) * 2019-06-27 2023-09-12 广东美的制冷设备有限公司 Multi-stage module upgrading method and device for household appliance and electronic equipment
CN116775084A (en) * 2023-08-23 2023-09-19 荣耀终端有限公司 System upgrading method and electronic equipment
CN116775084B (en) * 2023-08-23 2023-11-24 荣耀终端有限公司 System upgrading method and electronic equipment

Also Published As

Publication number Publication date
WO2017193964A1 (en) 2017-11-16

Similar Documents

Publication Publication Date Title
US10162661B2 (en) Interdependent virtual machine management
CN107368324A (en) A kind of component upgrade methods, devices and systems
US10423451B2 (en) Opportunistically scheduling and adjusting time slices
US9104498B2 (en) Maximizing server utilization within a datacenter
US9851996B2 (en) Applying firmware updates in a system with zero downtime by selectively offlining and onlining hardware using a scale-up hypervisor layer
US8260840B1 (en) Dynamic scaling of a cluster of computing nodes used for distributed execution of a program
CN106843170B (en) Method for scheduling task based on token
US20120096460A1 (en) Apparatus and method for controlling live-migrations of a plurality of virtual machines
JP4992408B2 (en) Job allocation program, method and apparatus
US7181574B1 (en) Server cluster using informed prefetching
CN110580195B (en) Memory allocation method and device based on memory hot plug
US10013288B2 (en) Data staging management system
CN111190691A (en) Automatic migration method, system, device and storage medium suitable for virtual machine
CN112235373A (en) Cloud desktop scheduling system based on application AI and scheduling method thereof
CN113157411A (en) Reliable configurable task system and device based on Celery
JP5961402B2 (en) Computer system
CN113961338A (en) Management system and management method of dynamic thread pool and thread task processing method
CN111045789B (en) Virtual machine starting method and device, electronic equipment and storage medium
CN105391755A (en) Method and device for processing data in distributed system, and system
CN116719623A (en) Job scheduling method, job result processing method and device
CN114880157B (en) Fault injection method and device
CN115437766A (en) Task processing method and device
CN110427245A (en) Manage virtual machine method and apparatus
US20090168092A1 (en) Job management and scheduling method for network system
CN110297692B (en) Distributed software task dynamic management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171121

RJ01 Rejection of invention patent application after publication