CN112527538A - Device updating method and device, electronic device and storage medium - Google Patents
Device updating method and device, electronic device and storage medium Download PDFInfo
- Publication number
- CN112527538A CN112527538A CN202011412365.7A CN202011412365A CN112527538A CN 112527538 A CN112527538 A CN 112527538A CN 202011412365 A CN202011412365 A CN 202011412365A CN 112527538 A CN112527538 A CN 112527538A
- Authority
- CN
- China
- Prior art keywords
- equipment
- elimination
- tendency
- updating
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/008—Reliability or availability analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a device updating method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a device updating element corresponding to the target device, and determining a device updating tendency corresponding to the target device based on the device updating element; determining equipment elimination elements corresponding to the current equipment, and determining equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements; and if the equipment updating tendency is smaller than the equipment elimination tendency, triggering an alarm for equipment updating. Thus, the equipment updating element of the target equipment is referred to, the equipment updating tendency degree of the target equipment is determined, the equipment eliminating element of the current equipment is referred to, the equipment eliminating tendency degree of the current equipment is determined, and the size relation between the equipment updating tendency degree and the equipment eliminating tendency degree is measured, so that whether equipment is updated or not is determined, the updating opportunity of the equipment can be ensured to be optimal, the purchased equipment is prevented from being wasted, and the economic cost is saved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a device updating method and apparatus, an electronic device, and a storage medium.
Background
Since the advent of computers, various items of hardware related to computers have been rapidly developed. According to the well-known moore's law, the number of circuits integrated on an integrated circuit chip doubles every 18 months, which means that the performance of newly produced hardware is much higher than that of the previous hardware. For this purpose, a new device (such as a new server) needs to be purchased, and an old device (such as an old server) needs to be eliminated, so as to complete the update iteration of the device.
In the related art, usually, based on human experience, a removal duration (for example, 4 years) is set for a device, and when the service life of the device reaches the removal duration, a new device may be purchased to remove the device, thereby completing update iteration of the device. Because the elimination duration is only an empirical value, and the update iteration of the equipment is completed only by the elimination duration, the update opportunity of the equipment is possibly poor, the purchased equipment is wasted, and the economic cost is not saved.
Disclosure of Invention
The embodiment of the invention aims to provide a device updating method, a device, electronic equipment and a storage medium, so as to achieve the beneficial effects of ensuring the optimal updating time of the device, avoiding the waste of purchased devices and saving economic cost. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present invention, there is provided a device update method, including:
acquiring a device updating element corresponding to target equipment, and determining a device updating tendency corresponding to the target equipment based on the device updating element;
determining equipment elimination elements corresponding to the current equipment, and determining equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements;
and if the equipment updating tendency is smaller than the equipment elimination tendency, triggering an equipment updating alarm, wherein the equipment updating alarm is used for prompting that the current equipment is updated to the target equipment.
In an alternative embodiment, the device elimination element comprises:
performance index ratio, preset elimination duration and virtual resource consumption value;
the determining of the device elimination element corresponding to the current device includes:
acquiring a first performance index corresponding to the target equipment;
acquiring a second performance index corresponding to the current equipment;
calculating a performance indicator ratio between the first performance indicator and the second performance indicator;
acquiring a preset elimination duration corresponding to the current equipment;
and acquiring a virtual resource consumption value corresponding to the current equipment.
In an optional implementation manner, the determining, based on the device elimination factor, a device elimination tendency degree corresponding to the current device includes:
acquiring a preset equipment elimination model;
inputting the performance index ratio, the preset elimination duration and the virtual resource consumption value into the equipment elimination model;
and acquiring the equipment elimination tendency corresponding to the current equipment output by the equipment elimination model.
In an alternative embodiment, the device elimination model comprises:
Preal=(X-1)*Prack*N*K;
wherein, the PrealThe equipment elimination tendency is shown, X is the performance index ratio, and P israckAnd the value is the virtual resource consumption value, the N is the preset elimination duration, and the K is a positive integer.
In an alternative embodiment, the device update element comprises a virtual resource consumption target value;
the acquiring of the device update element corresponding to the target device includes:
acquiring a virtual resource consumption target value corresponding to target equipment;
the determining, based on the device update factor, a device update tendency corresponding to the target device includes:
and determining the virtual resource consumption target value as the equipment updating tendency corresponding to the target equipment.
In an optional embodiment, the method further comprises:
and if the equipment updating tendency is larger than or equal to the equipment elimination tendency, triggering an alarm maintained by the equipment, wherein the alarm maintained by the equipment is used for prompting to maintain the use of the current equipment.
In a second aspect of the embodiments of the present invention, there is also provided an apparatus for updating a device, including:
the updating element obtaining module is used for obtaining the equipment updating element corresponding to the target equipment;
the updating tendency determining module is used for determining the equipment updating tendency corresponding to the target equipment based on the equipment updating element;
the elimination element determining module is used for determining an equipment elimination element corresponding to the current equipment;
the elimination tendency determining module is used for determining the equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements;
and the alarm triggering module is used for triggering an alarm for updating the equipment if the equipment updating tendency is smaller than the equipment elimination tendency, and the alarm is used for prompting that the current equipment is updated to the target equipment.
In an alternative embodiment, the device elimination element comprises:
performance index ratio, preset elimination duration and virtual resource consumption value;
the elimination factor determination module is specifically configured to:
acquiring a first performance index corresponding to the target equipment;
acquiring a second performance index corresponding to the current equipment;
calculating a performance indicator ratio between the first performance indicator and the second performance indicator;
acquiring a preset elimination duration corresponding to the current equipment;
and acquiring a virtual resource consumption value corresponding to the current equipment.
In a third aspect of the embodiments of the present invention, there is further provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor configured to implement the device update method according to any one of the first aspect described above when executing a program stored in a memory.
In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium, where instructions are stored, and when the storage medium is run on a computer, the storage medium causes the computer to execute the device updating method according to any one of the first aspect.
In a fifth aspect of embodiments of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to perform the device updating method of any one of the above first aspects.
According to the technical scheme provided by the embodiment of the invention, the equipment updating element corresponding to the target equipment is obtained, the equipment updating tendency degree corresponding to the target equipment is determined based on the equipment updating element, the equipment elimination element corresponding to the current equipment is determined, the equipment elimination tendency degree corresponding to the current equipment is determined based on the equipment elimination element, if the equipment updating tendency degree is smaller than the equipment elimination tendency degree, the alarm of equipment updating is triggered, and the alarm of equipment updating is used for prompting the current equipment to be updated to the target equipment. Thus, the equipment updating element of the target equipment is referred to, the equipment updating tendency degree of the target equipment is determined, the equipment eliminating element of the current equipment is referred to, the equipment eliminating tendency degree of the current equipment is determined, and the size relation between the equipment updating tendency degree and the equipment eliminating tendency degree is measured, so that whether equipment is updated or not is determined, the updating opportunity of the equipment can be ensured to be optimal, the purchased equipment is prevented from being wasted, and the economic cost is saved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a device update method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating another implementation of the device update method in the embodiment of the present invention;
FIG. 3 is a schematic diagram of an implementation flow for determining the performance indicator ratio according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus updating apparatus shown in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device shown in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, which is a schematic view of an implementation flow of an apparatus updating method provided in an embodiment of the present invention, the method may be used in a server, and specifically may include the following steps:
s101, acquiring an equipment updating element corresponding to target equipment, and determining equipment updating tendency corresponding to the target equipment based on the equipment updating element.
In the embodiment of the present invention, the device update element of at least one device may be acquired based on a preset time interval and stored locally, and the at least one device forms a device set, so that the device update element corresponding to the target device may be acquired locally, where the target device may be any device in the device set.
For example, in the embodiment of the present invention, device update elements of multiple devices such as device 1, device 2, device 3, and … … may be acquired at intervals of one month and stored locally, and a device set is formed by multiple devices such as device 1, device 2, device 3, and … …, so that a device update element corresponding to a target device may be acquired locally, where the target device may be any one of devices such as device 1, device 2, device 3, and … ….
For the obtained device update element corresponding to the target device, a device update tendency corresponding to the target device may be determined based on the device update element, where the device update tendency may be PnewIt is shown that the embodiment of the present invention is not limited thereto.
It should be noted that the target device may be an unpurchased device, such as an unpurchased server, an unpurchased computer, and the like, which is not limited in this embodiment of the present invention.
S102, determining equipment elimination elements corresponding to the current equipment, and determining equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements.
In the embodiment of the invention, for the current equipment, the equipment elimination element corresponding to the current equipment can be determined, and the equipment elimination tendency corresponding to the current equipment is determined based on the equipment elimination element. For example, for server a, a device elimination factor corresponding to server a may be determined, and based on the device elimination factor, device elimination tendency P corresponding to server a may be determinedreal。
In the process of acquiring the device updating element corresponding to the target device and determining the device updating tendency corresponding to the target device based on the device updating element, the steps of determining the device elimination element corresponding to the current device and determining the device elimination tendency corresponding to the current device based on the device elimination element can be executed at the same time. The execution sequence of the two methods may also be a sequence, which is not limited in the embodiment of the present invention.
It should be noted that the current device may be a device that has been purchased and is being used or a device that has been rented and is being used, such as a server that has been purchased and is being used, or a computer that has been purchased and is being used, which is not limited by the embodiment of the present invention.
S103, if the equipment updating tendency is smaller than the equipment elimination tendency, triggering an equipment updating alarm, wherein the equipment updating alarm is used for prompting to update the current equipment to the target equipment.
The embodiment of the invention can judge whether the equipment updating tendency degree is smaller than the equipment elimination tendency degree or not for the equipment updating tendency degree corresponding to the target equipment and the equipment elimination tendency degree corresponding to the current equipment, and trigger the alarm for equipment updating if the equipment updating tendency degree is smaller than the equipment elimination tendency degree, wherein the alarm for equipment updating is used for prompting that the current equipment is updated to the target equipment, namely the current equipment is replaced by the target equipment and the current equipment is eliminated, thereby completing the updating iteration of the equipment.
For example, the tendency degree P is updated for the device corresponding to the target devicenewAnd the equipment elimination tendency degree P corresponding to the current equipmentrealJudging the device update tendency degree PnewWhether or not less than equipment elimination tendency PrealIf the device updates the tendency PnewLess than equipment elimination tendency PrealThe device update alarm can be triggered to prompt that the current device is updated to be the target device, so that the current device is eliminated, and the update iteration of the device is realized.
In addition, in the embodiment of the present invention, the target device may be any device in the device set, and if the device update tendency of the target device is smaller than the device elimination tendency corresponding to the current device, an alarm of device update may be triggered, where the alarm of device update is used to prompt that the current device is updated to the target device, and thus, an alarm of multiple device updates may be triggered, for example, as shown in table 1 below.
Target device | Alert of device update |
Device 1 | Alarm 1 of device update |
Device 2 | Alarm of device update 2 |
…… | …… |
TABLE 1
As shown in table 1 above, the target device may be any one of the device 1, the device 2, the device 3, and the device … … in the device set, if the device update tendency of the device 1 is smaller than the device elimination tendency corresponding to the current device, an updated device alarm 1 is triggered, the updated device alarm 1 is used to prompt the current device to be updated to the device 1, if the device update tendency of the device 2 is smaller than the device elimination tendency corresponding to the current device, an updated device alarm 2 is triggered, the updated device alarm 2 is used to prompt the current device to be updated to the device 2, and so on.
Therefore, the embodiment of the invention can judge whether the alarms of at least two equipment updates exist, if the alarms of at least two equipment updates exist, the target alarm of the equipment update is selected from the alarms of at least two equipment updates, and the target alarm of the equipment update is used for prompting that the current equipment is finally updated to the target equipment corresponding to the target alarm of the equipment update. If at least two updated alarms of the equipment do not exist, the updated alarms of the equipment are indicated to exist, and the updated alarms of the equipment can be determined to be the target alarms of the equipment update.
For example, as shown in table 1 above, assuming that there are alarm 1 of the device update and alarm 2 of the device update currently, the target alarm of the device update is selected from alarm 1 of the device update and alarm 2 of the device update: and 1, the alarm 1 for updating the equipment, wherein the target alarm for updating the equipment is used for prompting that the current equipment is finally updated to the target equipment corresponding to the target alarm for updating the equipment, namely is used for prompting that the current equipment is finally updated to the equipment 1 corresponding to the alarm 1 for updating the equipment.
In the embodiment of the present invention, the target alarm updated by the device may be randomly selected from the alarms updated by the at least two devices, or the target devices corresponding to the alarms updated by the at least two devices may be sorted based on the device update tendency, and the target alarm updated by the device may be selected from the alarms updated by the at least two devices based on the sorting result.
For example, as shown in table 1 above, assuming that alarm 1 of the device update and alarm 2 of the device update currently exist, alarm 1 of the device update corresponds to device 1, alarm 2 of the device update corresponds to device 2, device 1 and device 2 are sorted from small to large based on the device update tendency, and assuming that device 1 is ranked 1 st, that is, the device update tendency of device 1 is smaller than the device update tendency of device 2, alarm 1 of the device update corresponding to device 1 can be selected as the target alarm of the device update from alarm 1 of the device update and alarm 2 of the device update.
Through the above description of the technical solution provided by the embodiment of the present invention, an equipment update element corresponding to a target equipment is obtained, an equipment update tendency degree corresponding to the target equipment is determined based on the equipment update element, an equipment elimination element corresponding to a current equipment is determined, an equipment elimination tendency degree corresponding to the current equipment is determined based on the equipment elimination element, and if the equipment update tendency degree is smaller than the equipment elimination tendency degree, an alarm for equipment update is triggered, and the alarm for equipment update is used to prompt that the current equipment is updated to the target equipment.
Thus, the equipment updating element of the target equipment is referred to, the equipment updating tendency degree of the target equipment is determined, the equipment eliminating element of the current equipment is referred to, the equipment eliminating tendency degree of the current equipment is determined, and the size relation between the equipment updating tendency degree and the equipment eliminating tendency degree is measured, so that whether equipment is updated or not is determined, the updating opportunity of the equipment can be ensured to be optimal, the purchased equipment is prevented from being wasted, and the economic cost is saved.
As shown in fig. 2, which is a schematic view of an implementation flow of another device updating method provided in an embodiment of the present invention, the method may be used in a server, and specifically may include the following steps:
s201, acquiring an equipment updating element corresponding to the target equipment, and determining the equipment updating tendency corresponding to the target equipment based on the equipment updating element.
In this embodiment of the present invention, the device update element may include a virtual resource consumption target value, for example, a capital expenditure (such as a purchase price of the target device or a lease price of the target device), and the obtaining of the device update element corresponding to the target device may specifically be obtaining of the virtual resource consumption target value corresponding to the target device, for example, obtaining of the purchase price of the target device.
Then, based on the device update factor, determining a device update tendency corresponding to the target device, specifically, determining the virtual resource consumption target value corresponding to the target device as the device update tendency corresponding to the target device. For example, the purchase price P of the target device is acquirednewTo thereby determine the purchase price P of the target devicenewDevice update tendency for target device, i.e. device update tendency Pnew。
S202, determining equipment elimination elements corresponding to the current equipment, and determining equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements.
In the embodiment of the present invention, as for the equipment elimination element, the performance index ratio, the preset elimination duration and the virtual resource consumption value may be included, and the performance index ratio, the preset elimination duration and the virtual resource consumption value corresponding to the current equipment may be determined.
As for the performance index ratio, as shown in fig. 3, the embodiment of the present invention may specifically be determined in the following manner:
s301, acquiring a first performance index corresponding to the target device.
S302, obtaining a second performance index corresponding to the current equipment.
S303, calculating the performance index ratio between the first performance index and the second performance index.
As for the performance index, in the embodiment of the present invention, for example, the operation speed, the word length (the word length is one of the main technical indexes of the CPU, and refers to the number of binary bits that can be processed by the CPU in parallel at one time, and the word length of the PC is usually 16 bits, 32 bits, and 64 bits), the capacity of the internal memory, the capacity of the external memory, the speed of I/O, the video memory, the hard disk rotation speed, and/or the main frequency, and of course, the time taken to process a certain task or data may also be used, which is not limited in the embodiment of the present invention.
For example, a first performance index corresponding to the target device is obtained: and acquiring a second performance index corresponding to the current equipment by the time X1 spent on processing the task 1: the time taken to process task 1, X2, the performance indicator ratio X between the first performance indicator X1 and the second performance indicator X2, X1/X2, is calculated.
For the preset elimination duration, generally, the elimination duration may be set manually, that is, an empirical value, and the embodiment of the present invention may be specifically determined in the following manner: and directly acquiring the preset elimination duration corresponding to the current equipment. For example, the preset elimination duration N corresponding to the current device is acquired as 4 years, that is, after the current device is used for 4 years, the current device may be eliminated.
For the virtual resource consumption value, the embodiment of the present invention may specifically determine in the following manner: and directly acquiring the virtual resource consumption value corresponding to the current equipment. Here, the virtual resource consumption value may be, for example, a capital expenditure status (for example, a single month rental of an airplane, generally, for a server, which is usually managed in a data center, the server is stored in a certain airplane in a cabinet, and a single month rental fee of the airplane is generated). For example, obtaining a single-month rental P of the current equipment corresponding to the machine positionrack。
Based on the performance index ratio, the preset elimination duration and the virtual resource consumption value corresponding to the current device, the embodiment of the invention specifically determines the equipment elimination tendency corresponding to the current device in the following manner: the method comprises the steps of obtaining a preset equipment elimination model, inputting a performance index ratio, preset elimination duration and a virtual resource consumption value corresponding to current equipment into the equipment elimination model, and obtaining equipment elimination tendency corresponding to the current equipment output by the equipment elimination model.
For example, for the performance index ratio X, the preset elimination duration N and the virtual resource consumption value P corresponding to the current devicerackThe equipment elimination trend degree P can be input into an equipment elimination model to obtain the equipment elimination trend degree P corresponding to the current equipment output by the equipment elimination modelrealHere, the equipment elimination tendency PrealCan be considered as the elimination price of the current equipment.
For the equipment elimination model, the following can be specifically shown:
Preal=(X-1)*Prack*N*K。
wherein, the PrealThe equipment elimination tendency is shown, X is the performance index ratio, and P israckFor the virtual resource consumption value, N is the preset elimination duration, and K is a positive integer (e.g., 12, 365, 366, etc.). K and the virtual resource consumption value P of the current equipmentrackInformation being relevant, e.g. the value of virtual resource consumption is a monthly rental P of the machinerackK may be 12, e.g., the virtual resource consumption value is a machine-level one-day rent PrackThen K may be 366 or 365.
For example, when K is 12, the device elimination model may be specifically as follows:
Preal=(X-1)*Prack*N*12。
and S203, if the equipment updating tendency is smaller than the equipment elimination tendency, triggering an equipment updating alarm, wherein the equipment updating alarm is used for prompting to update the current equipment to the target equipment.
In the embodiment of the present invention, this step is similar to the step S103, and the embodiment of the present invention does not limit this.
And S204, if the equipment updating tendency is larger than or equal to the equipment elimination tendency, triggering an alarm maintained by the equipment, wherein the alarm maintained by the equipment is used for prompting to maintain the use of the current equipment.
The method and the device for judging the equipment removal tendency can judge whether the equipment removal tendency is smaller than the equipment removal tendency or not, and trigger the alarm maintained by the equipment if the equipment removal tendency is larger than or equal to the equipment removal tendency.
For example, the tendency degree P is updated for the device corresponding to the target devicenewAnd the equipment elimination tendency degree P corresponding to the current equipmentrealJudging the device update tendency degree PnewWhether or not less than equipment elimination tendency PrealIf the device updates the tendency PnewGreater than or equal to the equipment elimination tendency PrealCan trigger the deviceAnd a maintained alarm is used for prompting that the current equipment is continuously used, and the current equipment is not suitable for elimination.
In addition, in the embodiment of the present invention, taking a device as an example of a server, it is assumed that the purchase price of a current server (i.e., a server currently in use, or an old server) is PoldThe purchase price of the new service which is not purchased is PnewAfter testing, the performance of the new server is X times of that of the current server, and the monthly rent of a single server machine position in the cabinet is PrackAnd the elimination time preset by the server is N.
At present, if the current server has been used for M months, assuming that the current server is used and the service capability of a single server is the unit service capability, the monthly service cost C of the single server using the current server isoldAs follows:
if M is<N × 12 (where 12 means 12 months of the year), then Cold=Pold/(N*12)+Prack。 (1)
If M is>12,. times.N, then Cold=Prack。 (2)
The monthly service cost C of a single unit using the new server that was not purchasednewThis can be as follows:
Cnew=Pnew/(N*12)+Prack。 (3)
then using the unpurchased server, the monthly cost per unit service capacity is:
Cnew/X。 (4)
here, C is knownnew/X<Cold。 (5)
In the case of M < N × 12, since the current server is not eliminated and the cost still needs to be calculated, the above equation (5) can be modified as follows:
Cnew/X+Pold/(N*12)<Cold。 (6)
by substituting the above equations (1) and (3) into the above equation (6), the following transformation equation can be obtained:
Pnew/(N*12)+Prack<X*Prack。 (7)
the above equation (7) can be modified as follows:
Pnew<(X-1)*Prack*N*12。 (8)
when M > is N × 12, the current server is eliminated, the cost is not calculated, and equation (5) is not modified, and the following modification equation can be obtained by directly substituting equation (1) and equation (3) into equation (5), as in equation (7):
Pnew/(N*12)+Prack<X*Prack。 (9)
the above equation (9) may be modified as follows, as equation (8):
Pnew<(X-1)*Prack*N*12。 (10)
by combining the above formulae (8) and (10), P is requirednew<(X-1)*PrackN × 12, from which it can be concluded: whether the server is updated or not is irrelevant to the service time of the server, and is relevant to the monthly rent of the server machine position and the performance ratio multiple under the condition that the elimination time of the server is determined.
From this, the above equations (8) and (10) can be modified to obtain an equipment elimination model related to the server elimination price:
Preal=(X-1)*Prack*N*12。
here, the new service price is Pnew,PrealCan be considered as a server obsolete price if the new service price PnewLess than server obsolete price PrealIt means that the update iteration of the server can be performed, otherwise it means that the update iteration of the server is not suitable, and the use of the current server needs to be maintained.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an apparatus for updating a device, which is applied to a server, and as shown in fig. 4, the apparatus may include: an update element acquisition module 410, an update tendency determination module 420, a deselected element determination module 430, a deselected tendency determination module 440, and an alarm triggering module 450.
An update element obtaining module 410, configured to obtain an apparatus update element corresponding to a target apparatus;
an update tendency determining module 420, configured to determine, based on the device update element, a device update tendency corresponding to the target device;
an eliminated element determining module 430, configured to determine an equipment eliminated element corresponding to the current equipment;
a elimination tendency determination module 440, configured to determine, based on the device elimination factor, a device elimination tendency corresponding to the current device;
and an alarm triggering module 450, configured to trigger an alarm for updating the device if the device update tendency is smaller than the device elimination tendency, where the alarm is used to prompt that the current device is updated to the target device.
In a specific implementation manner of the embodiment of the present invention, the device elimination element includes:
performance index ratio, preset elimination duration and virtual resource consumption value;
the eliminated element determining module 430 is specifically configured to:
acquiring a first performance index corresponding to the target equipment;
acquiring a second performance index corresponding to the current equipment;
calculating a performance indicator ratio between the first performance indicator and the second performance indicator;
acquiring a preset elimination duration corresponding to the current equipment;
and acquiring a virtual resource consumption value corresponding to the current equipment.
In a specific implementation manner of the embodiment of the present invention, the elimination tendency determining module 440 is specifically configured to:
acquiring a preset equipment elimination model;
inputting the performance index ratio, the preset elimination duration and the virtual resource consumption value into the equipment elimination model;
and acquiring the equipment elimination tendency corresponding to the current equipment output by the equipment elimination model.
In a specific implementation manner of the embodiment of the present invention, the device elimination model includes:
Preal=(X-1)*Prack*N*K;
wherein, the PrealThe equipment elimination tendency is shown, X is the performance index ratio, and P israckAnd the value is the virtual resource consumption value, the N is the preset elimination duration, and the K is a positive integer.
In a specific implementation manner of the embodiment of the present invention, the device update element includes a virtual resource consumption target value;
the update element obtaining module 410 is specifically configured to:
acquiring a virtual resource consumption target value corresponding to target equipment;
the update tendency determination module 420 is specifically configured to:
and determining the virtual resource consumption target value as the equipment updating tendency corresponding to the target equipment.
In a specific implementation manner of the embodiment of the present invention, the apparatus further includes:
the alarm selection module is used for judging whether at least two alarms updated by the equipment exist or not;
and if at least two equipment updating alarms exist, selecting an equipment updating target alarm from the at least two equipment updating alarms, wherein the equipment updating target alarm is used for prompting that the current equipment is finally updated to the target equipment corresponding to the equipment updating target alarm.
In a specific implementation manner of the embodiment of the present invention, the alarm triggering module 450 is further configured to:
and if the equipment updating tendency is larger than or equal to the equipment elimination tendency, triggering an alarm maintained by the equipment, wherein the alarm maintained by the equipment is used for prompting to maintain the use of the current equipment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 51, a communication interface 52, a memory 53 and a communication bus 54, where the processor 51, the communication interface 52, and the memory 53 complete mutual communication through the communication bus 54,
a memory 53 for storing a computer program;
the processor 51 is configured to implement the following steps when executing the program stored in the memory 53:
acquiring a device updating element corresponding to target equipment, and determining a device updating tendency corresponding to the target equipment based on the device updating element; determining equipment elimination elements corresponding to the current equipment, and determining equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements; and if the equipment updating tendency is smaller than the equipment elimination tendency, triggering an equipment updating alarm, wherein the equipment updating alarm is used for prompting that the current equipment is updated to the target equipment.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a storage medium is further provided, where instructions are stored, and when the storage medium is run on a computer, the instructions cause the computer to execute the device update method in any one of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the device update method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A device update method, the method comprising:
acquiring a device updating element corresponding to target equipment, and determining a device updating tendency corresponding to the target equipment based on the device updating element;
determining equipment elimination elements corresponding to the current equipment, and determining equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements;
and if the equipment updating tendency is smaller than the equipment elimination tendency, triggering an equipment updating alarm, wherein the equipment updating alarm is used for prompting that the current equipment is updated to the target equipment.
2. The method of claim 1, wherein the equipment-out element comprises:
performance index ratio, preset elimination duration and virtual resource consumption value;
the determining of the device elimination element corresponding to the current device includes:
acquiring a first performance index corresponding to the target equipment;
acquiring a second performance index corresponding to the current equipment;
calculating a performance indicator ratio between the first performance indicator and the second performance indicator;
acquiring a preset elimination duration corresponding to the current equipment;
and acquiring a virtual resource consumption value corresponding to the current equipment.
3. The method of claim 2, wherein the determining, based on the device-elimination factor, a device-elimination propensity degree corresponding to the current device comprises:
acquiring a preset equipment elimination model;
inputting the performance index ratio, the preset elimination duration and the virtual resource consumption value into the equipment elimination model;
and acquiring the equipment elimination tendency corresponding to the current equipment output by the equipment elimination model.
4. The method of claim 3, wherein the equipment elimination model comprises:
Preal=(X-1)*Prack*N*K;
wherein, the PrealThe equipment elimination tendency is shown, X is the performance index ratio, and P israckAnd the value is the virtual resource consumption value, the N is the preset elimination duration, and the K is a positive integer.
5. The method of claim 1, wherein the device update element comprises a virtual resource consumption target value;
the acquiring of the device update element corresponding to the target device includes:
acquiring a virtual resource consumption target value corresponding to target equipment;
the determining, based on the device update factor, a device update tendency corresponding to the target device includes:
and determining the virtual resource consumption target value as the equipment updating tendency corresponding to the target equipment.
6. The method according to any one of claims 1 to 5, further comprising:
and if the equipment updating tendency is larger than or equal to the equipment elimination tendency, triggering an alarm maintained by the equipment, wherein the alarm maintained by the equipment is used for prompting to maintain the use of the current equipment.
7. An apparatus for updating a device, the apparatus comprising:
the updating element obtaining module is used for obtaining the equipment updating element corresponding to the target equipment;
the updating tendency determining module is used for determining the equipment updating tendency corresponding to the target equipment based on the equipment updating element;
the elimination element determining module is used for determining an equipment elimination element corresponding to the current equipment;
the elimination tendency determining module is used for determining the equipment elimination tendency corresponding to the current equipment based on the equipment elimination elements;
and the alarm triggering module is used for triggering an alarm for updating the equipment if the equipment updating tendency is smaller than the equipment elimination tendency, and the alarm is used for prompting that the current equipment is updated to the target equipment.
8. The apparatus of claim 7, wherein the equipment elimination element comprises:
performance index ratio, preset elimination duration and virtual resource consumption value;
the elimination factor determination module is specifically configured to:
acquiring a first performance index corresponding to the target equipment;
acquiring a second performance index corresponding to the current equipment;
calculating a performance indicator ratio between the first performance indicator and the second performance indicator;
acquiring a preset elimination duration corresponding to the current equipment;
and acquiring a virtual resource consumption value corresponding to the current equipment.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 6 when executing a program stored in the memory.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011412365.7A CN112527538B (en) | 2020-12-03 | 2020-12-03 | Device updating method and device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011412365.7A CN112527538B (en) | 2020-12-03 | 2020-12-03 | Device updating method and device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112527538A true CN112527538A (en) | 2021-03-19 |
CN112527538B CN112527538B (en) | 2023-07-25 |
Family
ID=74997224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011412365.7A Active CN112527538B (en) | 2020-12-03 | 2020-12-03 | Device updating method and device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112527538B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007008940A2 (en) * | 2005-07-11 | 2007-01-18 | Brooks Automation, Inc. | Intelligent condition-monitoring and dault diagnostic system |
US20080004939A1 (en) * | 2006-06-29 | 2008-01-03 | Sap Ag | Phase-out product demand forecasting |
CN101221636A (en) * | 2006-12-27 | 2008-07-16 | 株式会社东芝 | Data analysis apparatus and method |
WO2017096875A1 (en) * | 2015-12-10 | 2017-06-15 | 乐视控股(北京)有限公司 | Data updating method and apparatus |
US20190147364A1 (en) * | 2017-12-07 | 2019-05-16 | Intel Corporation | Technologies for predicting computer hardware performance with machine learning |
CN110955587A (en) * | 2019-11-29 | 2020-04-03 | 北京金山云网络技术有限公司 | Method and device for determining equipment to be replaced |
CN111614503A (en) * | 2020-05-28 | 2020-09-01 | 中国工商银行股份有限公司 | Equipment alarm control method and device, electronic equipment and storage medium |
-
2020
- 2020-12-03 CN CN202011412365.7A patent/CN112527538B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007008940A2 (en) * | 2005-07-11 | 2007-01-18 | Brooks Automation, Inc. | Intelligent condition-monitoring and dault diagnostic system |
US20080004939A1 (en) * | 2006-06-29 | 2008-01-03 | Sap Ag | Phase-out product demand forecasting |
CN101221636A (en) * | 2006-12-27 | 2008-07-16 | 株式会社东芝 | Data analysis apparatus and method |
WO2017096875A1 (en) * | 2015-12-10 | 2017-06-15 | 乐视控股(北京)有限公司 | Data updating method and apparatus |
US20190147364A1 (en) * | 2017-12-07 | 2019-05-16 | Intel Corporation | Technologies for predicting computer hardware performance with machine learning |
CN110955587A (en) * | 2019-11-29 | 2020-04-03 | 北京金山云网络技术有限公司 | Method and device for determining equipment to be replaced |
CN111614503A (en) * | 2020-05-28 | 2020-09-01 | 中国工商银行股份有限公司 | Equipment alarm control method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112527538B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109062809B (en) | Online test case generation method and device and electronic equipment | |
CN108255620B (en) | Service logic processing method, device, service server and system | |
CN110008080A (en) | Operational indicator method for detecting abnormality, device and electronic equipment based on time series | |
CN110633977A (en) | Payment exception processing method and device and terminal equipment | |
CN108388509B (en) | Software testing method, computer readable storage medium and terminal equipment | |
CN108809704B (en) | Data deduplication statistical method and device based on dynamic time window | |
CN113076416A (en) | Information heat evaluation method and device and electronic equipment | |
CN108153891A (en) | Active time statistical method of surfing the Internet and device | |
CN111125240B (en) | Distributed transaction realization method and device, electronic equipment and storage medium | |
WO2022095847A1 (en) | System upgrading method and apparatus, device, and storage medium | |
CN113642311B (en) | Data comparison method and device, electronic equipment and storage medium | |
CN112527538A (en) | Device updating method and device, electronic device and storage medium | |
CN110097113B (en) | Method, device and system for monitoring working state of display information delivery system | |
CN108287659B (en) | Data sampling method and device based on real-time data stream and electronic equipment | |
CN110297578B (en) | Method and device for processing partial data in mass data in batch and electronic equipment | |
CN111913980B (en) | Equipment management method and device | |
CN110019262B (en) | Data updating method and device | |
CN112784552B (en) | Table editing method and apparatus | |
CN110543486B (en) | Data change method and device and server | |
CN109739876B (en) | Data query method and device for database based on Sqltoy-orm framework | |
CN111352825B (en) | Data interface testing method and device and server | |
CN107436788B (en) | Application program unloading method and device and terminal equipment | |
CN112463577B (en) | Sample data processing method and device and electronic equipment | |
CN113360356B (en) | Method for identifying reading cheating behaviors, computing device and computer storage medium | |
CN116308721B (en) | Information supervision and management method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |