CN108900361B - Cloud resource configuration determining method and device and electronic equipment - Google Patents

Cloud resource configuration determining method and device and electronic equipment Download PDF

Info

Publication number
CN108900361B
CN108900361B CN201810914103.7A CN201810914103A CN108900361B CN 108900361 B CN108900361 B CN 108900361B CN 201810914103 A CN201810914103 A CN 201810914103A CN 108900361 B CN108900361 B CN 108900361B
Authority
CN
China
Prior art keywords
configuration
parameter value
determining
cloud
preset period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810914103.7A
Other languages
Chinese (zh)
Other versions
CN108900361A (en
Inventor
陈鹤童
朱建庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201810914103.7A priority Critical patent/CN108900361B/en
Publication of CN108900361A publication Critical patent/CN108900361A/en
Application granted granted Critical
Publication of CN108900361B publication Critical patent/CN108900361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5029Service quality level-based billing, e.g. dependent on measured service level customer is charged more or less
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • H04L41/5025Ensuring fulfilment of SLA by proactively reacting to service quality change, e.g. by reconfiguration after service quality degradation or upgrade

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method and a device for determining cloud resource configuration and electronic equipment, and relates to the technical field of cloud resources, wherein the method comprises the following steps: the method comprises the steps of obtaining initial configuration and each first configuration of cloud resources in a preset period, wherein the first configuration is the configuration after the configuration of the cloud resources is changed when the change operation of the configuration of the cloud resources is determined to be a configuration upgrading operation; and determining the highest configuration in a preset period according to the initial configuration and each first configuration. According to the cloud resource configuration determining method, the cloud resource configuration determining device and the electronic equipment, the highest configuration in the preset period is determined by recording the new configuration after the configuration upgrading operation and comparing the initial configuration of the cloud resources in the preset period with each first configuration, the computing mode is simple, convenient and fast, and the computing amount is small.

Description

Cloud resource configuration determining method and device and electronic equipment
Technical Field
The invention relates to the technical field of cloud resources, in particular to a cloud resource configuration determining method and device and electronic equipment.
Background
Configuration change of a user instance often occurs in a cloud service, and generally includes two cases of a rising configuration (abbreviated as rising configuration) and a falling configuration (abbreviated as falling configuration). During charging, charging is performed according to the highest configuration in a charging period, so that the highest configuration in the charging period needs to be determined first.
In the existing charging system, all changed configurations of the charging period need to be acquired for comparison, and the highest configuration is determined from the configurations, which is specifically as follows: before changing the configuration, recording a configuration snapshot before changing the configuration; executing the operation of changing the configuration, and recording a configuration snapshot after the configuration is changed; the charging system obtains all the configuration snapshots in the charging period, determines ascending and descending configuration and charges.
Therefore, according to the existing scheme, all configuration snapshots in a charging period need to be acquired first, then all the configuration snapshots are compared one by one to obtain the conditions of ascending configuration and descending configuration, and then the highest configuration in all the configurations is confirmed according to the conditions of ascending configuration and descending configuration, so that the calculated amount is large.
In the related art, an effective solution is not provided at present because the calculation amount is large due to the fact that the highest configuration is determined by comparing all configuration snapshots within the charging period one by one.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and an electronic device for determining cloud resource configuration, which can reduce the amount of computation.
In a first aspect, an embodiment of the present invention provides a method for determining cloud resource configuration, including: the method comprises the steps of obtaining initial configuration and each first configuration of cloud resources in a preset period, wherein the first configuration is the configuration after the configuration of the cloud resources is changed when the change operation of the configuration of the cloud resources is determined to be a configuration upgrading operation; and determining the highest configuration in a preset period according to the initial configuration and each first configuration.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where before acquiring the initial configuration and each first configuration of the cloud resource in the preset period, the method further includes: when an instruction of a user for changing the configuration of the cloud resources is received, changing the current configuration of the cloud resources; determining whether the change operation is a lift-join operation; and recording the first configuration of the cloud resource after the change operation is carried out under the condition that the change operation is determined to be the upgrade operation.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where determining whether the change operation is a lift-match operation includes: respectively calculating parameter values corresponding to the current configuration and the first configuration; wherein the change operation is determined to be a step-up operation in case the parameter value of the current configuration is greater than the parameter value of the first configuration.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where determining, according to the initial configuration and each first configuration, a highest configuration in a preset period includes: comparing the parameter value corresponding to the initial configuration with the parameter value corresponding to each first configuration to obtain the maximum parameter value; and determining the configuration corresponding to the maximum parameter value as the highest configuration in the preset period.
With reference to the first aspect and one of various possible implementation manners of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, further including: and when the change operation is carried out, respectively recording the configuration snapshots of the cloud resources before and after the change operation.
In a second aspect, an embodiment of the present invention provides a cloud resource configuration determining apparatus, including: the acquisition module is used for acquiring the initial configuration and each first configuration of the cloud resources in a preset period, wherein the first configuration is the configuration after the configuration of the cloud resources is changed when the change operation of the configuration of the cloud resources is determined to be a configuration upgrading operation; and the first determining module is used for determining the highest configuration in the preset period according to the initial configuration and each first configuration.
With reference to the second aspect and one of various possible implementations thereof, an embodiment of the present invention provides a first possible implementation of the first aspect, and the apparatus further includes: the changing module is used for changing the current configuration of the cloud resources when receiving an instruction of changing the configuration of the cloud resources by a user; a second determination module, configured to determine whether the change operation is a lift-match operation; and the recording module is used for recording the first configuration of the cloud resources after the change operation is carried out under the condition that the change operation is determined to be the upgrade operation.
With reference to the second aspect and one of its possible implementations, an embodiment of the present invention provides a second possible implementation of the first aspect, where the first determining module includes: a comparing unit, configured to compare the parameter value corresponding to the initial configuration with the parameter value corresponding to each of the first configurations to obtain a maximum parameter value; and the determining unit is used for determining the configuration corresponding to the maximum parameter value as the highest configuration in the preset period. In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory and a processor, where the memory is used for storing a computer program; a processor configured to implement the method according to the first aspect and any of its possible embodiments when executing the computer program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements the method provided by any of the above first aspect and its various possible implementation manners.
The embodiment of the invention has the following beneficial effects:
according to the cloud resource configuration determining method, the cloud resource configuration determining device and the electronic equipment provided by the embodiment of the invention, the highest configuration in the preset period is determined by comparing the initial configuration of the cloud resource in the preset period with the configuration after the configuration of the cloud resource is changed when the change operation of the configuration of the cloud resource is the upgrade operation, and compared with the prior art that all configurations are compared one by one, the configuration with the change operation as the downgrade operation does not need to be compared with other configurations, so that the calculation amount is reduced.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram illustrating a charging process after an example is further configured in the prior art;
fig. 2 is a flowchart of a cloud resource configuration determining method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cloud resource configuration determining apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another cloud resource configuration determining apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another cloud resource configuration determining apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the cloud service, the case occurrence of the update includes two situations of ascending and descending, when charging, all the configurations of the charging period are obtained for comparison, the operation is the ascending and descending, and the charging is performed. Referring to fig. 1, a schematic diagram of a charging flow after an example is configured in the prior art, which shows that the charging flow includes an example service, a configuration snapshot, and a charging service, and includes:
step 1, recording a configuration snapshot before a user performs configuration.
And 2, carrying out a matching operation.
And 3, recording the configuration snapshot after configuration.
And 4, the charging system acquires the configuration snapshot in the charging period.
And step 5, the charging system determines ascending, descending and charging according to the configuration snapshot.
According to the scheme, all configuration snapshots in the charging period need to be acquired first, then all the configuration snapshots are compared one by one, the maximum configuration is confirmed according to the conditions of ascending configuration and descending configuration, the calculation is complex, and the calculation amount is large. Based on this, the cloud resource configuration determining method, the cloud resource configuration determining device and the electronic device provided by the embodiment of the invention can reduce the calculation amount.
To facilitate understanding of the present embodiment, a detailed description is first given of a cloud resource configuration determining method disclosed in the present embodiment.
Example 1
An embodiment of the present invention provides a cloud resource configuration determining method, referring to a flowchart of the cloud resource configuration determining method shown in fig. 2, where the method specifically includes the following steps:
step S202, the initial configuration and each first configuration of the cloud resources in a preset period are obtained. The first configuration is used for changing the configuration of the cloud resource when the change operation of the configuration of the cloud resource is determined to be the upgrade operation.
When a user uses cloud resources such as cloud computing resources, the user needs to adjust resource configuration according to the user's own needs, and after the user adjusts the configuration of the cloud resources through an order system, the charging system can respectively charge according to the adjusted configuration each time during charging, and can also charge the time period according to the highest configuration in a certain period of time.
During the time period, a plurality of upgrade and/or downgrade operations may be performed, and the highest configuration may be a configuration obtained by a certain upgrade operation or an initial configuration of the cloud resource, but may not be a configuration obtained by a certain downgrade operation, so if the highest configuration in the time period is determined, only the upgrade operation needs to be considered.
Step S204, determining the highest configuration in the preset period according to the initial configuration and each first configuration.
When determining the highest configuration in the preset period, the charging system may determine, according to the parameter value of each configuration, the configuration with the highest parameter value as the highest configuration. The parameter value may be a value of various performance parameters of the cloud resource, a price corresponding to the cloud resource, or the like, but is not limited thereto. The preset period may be determined according to an actual service condition of the user or the cloud resource provider, and may be, for example, a charging period, but is not limited thereto. After the new configuration obtained by each upgrade configuration operation is obtained, each first configuration may be compared with the initial configuration, so as to determine the highest configuration of the cloud resource in the preset period, that is, subsequent operations, such as service recommendation or charging, may be performed according to the highest configuration.
According to the cloud resource configuration determining method provided by the embodiment of the invention, the highest configuration in the preset period can be determined by comparing the initial configuration with the first configuration corresponding to each upgrade operation, the computing mode is simple, convenient and quick, and the computing amount is small.
It should be noted that the executing subject of the above steps S202-S204 may be a charging system, but is not limited thereto.
In the above method, the following steps may be further included:
(1) and if the order system receives an instruction of changing the cloud resource configuration from the user, changing the current configuration of the cloud resources. When an instruction of changing the configuration by a user is received, a change operation is performed on the current configuration of the cloud resource, and it can be understood that, when the change operation is performed, configuration information before and after the change operation needs to be recorded, for example, the configuration information may be recorded in a configuration snapshot manner.
(2) It is determined whether the modify operation is a lift-match operation.
If the charging mode is performed for the time period according to the highest configuration in a certain time period, the charging system needs to determine the highest configuration in the time period. It is necessary to determine whether the change operation is a distribution upgrade operation, and if the change operation is a distribution upgrade operation, the following recording operation is performed.
(3) And recording the first configuration of the cloud resource after the change operation is carried out under the condition that the change operation is determined to be the upgrade operation. The recording method may be an existing recording method, which is not limited in this embodiment.
According to the cloud resource configuration determining method provided by the embodiment of the invention, the highest configuration in the preset period can be determined by recording the new configuration after the upgrade configuration operation and comparing the initial configuration of the cloud resources in the preset period with each new configuration, and the computing mode is simple, convenient and quick and has small computing amount.
In the above method, determining the highest configuration in the preset period may be determined by the initial configuration and the parameter value corresponding to each upgrade, and may be performed, for example, as follows:
(1) and comparing the parameter value corresponding to the initial configuration with the parameter value corresponding to each first configuration to obtain the maximum parameter value. The parameter value may be a price corresponding to the cloud resource, or may be various performance parameters of the cloud resource and a combination thereof. For example, for a cloud host, the performance parameter may be a CPU (Central Processing Unit) parameter, a memory parameter, or an SSD (Solid State drive) parameter, and for an EIP (Enterprise Information Portal) network, the performance parameter may be a bandwidth parameter or an IP number. The parameter value may be represented using only the price, a weighted sum of a certain performance parameter or performance parameters.
The service price of the cloud resource corresponding to each parameter can be determined according to the current configuration and the configuration parameters included in the new configuration after the change operation, so that the overall price of the configured cloud resource is obtained through calculation. By comparing the current configuration with the new configuration, the level of the current configuration and the new configuration can be determined, and generally, the configuration of the cloud resource with the high price is higher than that of the cloud resource with the low price.
The performance parameters may be preset with different weighting coefficients, and may be determined according to the cost of cloud resources, for example. Taking the cloud host as an example, a higher weight coefficient may be set for the CPU and the memory, a lower weight coefficient may be set for the SSD, and the CPU parameter, the memory parameter, and the SSD parameter are respectively multiplied by their weights and then summed, and the sum value obtained is the parameter value under the configuration. And comparing the sizes of the parameter values under the configurations, wherein the configuration corresponding to the maximum parameter value is the highest configuration.
(2) And determining the configuration corresponding to the maximum parameter value as the highest configuration in the preset period.
Example 2
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a cloud resource configuration determining apparatus, and referring to a schematic structural diagram of the cloud resource configuration determining apparatus shown in fig. 3, the apparatus includes:
the obtaining module 31 is configured to obtain an initial configuration and each first configuration of the cloud resource in a preset period. The first configuration is used for changing the configuration of the cloud resource when the change operation of the configuration of the cloud resource is determined to be the upgrade operation.
When a user uses cloud resources such as cloud computing resources, the user needs to adjust resource configuration according to the user's own needs, and after the user adjusts the configuration of the cloud resources through an order system, the charging system can respectively charge according to the adjusted configuration each time during charging, and can also charge the time period according to the highest configuration in a certain period of time.
The first determining module 32 is connected to the obtaining module 31, and configured to determine a highest configuration in a preset period according to the initial configuration and each first configuration.
When determining the highest configuration in the preset period, the charging system may determine, according to the parameter value of each configuration, the configuration with the highest parameter value as the highest configuration. The preset period may be determined according to an actual service condition of the user or the cloud resource provider, and may be, for example, a charging period.
Referring to fig. 4, a schematic structural diagram of a cloud resource configuration determining apparatus is shown, where the apparatus further includes: a second determining module 41, configured to, when an instruction for a user to change the configuration of the cloud resource is received, perform a change operation on the current configuration of the cloud resource; determining whether the change operation is a lift-join operation; and recording the first configuration of the cloud resource after the change operation is carried out under the condition that the change operation is determined to be the upgrade operation.
The first determining module 32 is further configured to: respectively calculating parameter values corresponding to the current configuration and the first configuration; wherein the change operation is determined to be a step-up operation in case the parameter value of the current configuration is greater than the parameter value of the first configuration.
The parameter value may be a price corresponding to the cloud resource, or may be various performance parameters of the cloud resource and the synthesis thereof. For example, for a cloud host, the performance parameter may be a CPU (Central Processing Unit) parameter, a memory parameter, or an SSD (Solid State drive) parameter, and for an EIP (Enterprise Information Portal) network, the performance parameter may be a bandwidth parameter or an IP number. The parameter value may be represented using a price, a weighted sum of a certain performance parameter or performance parameters.
The service price of the cloud resource corresponding to each parameter can be determined according to the current configuration and the configuration parameters included in the changed new configuration, so that the overall price of the configured cloud resource is obtained through calculation. By comparing the current configuration with the new configuration, the level of the current configuration and the new configuration can be determined, and generally, the configuration of the cloud resource with the high price is higher than that of the cloud resource with the low price.
The performance parameters may be preset with different weighting coefficients, and may be determined according to the cost of cloud resources, for example. Taking the cloud host as an example, a higher weight coefficient may be set for the CPU and the memory, a lower weight coefficient may be set for the SSD, and the CPU parameter, the memory parameter, and the SSD parameter are respectively multiplied by their weights and then summed, and the sum value obtained is the parameter value under the configuration. And comparing the sizes of the parameter values under the configurations, wherein the configuration corresponding to the maximum parameter value is the highest configuration.
The first determining module 32 is further configured to: comparing the parameter value corresponding to the initial configuration with the parameter value corresponding to each first configuration to obtain the maximum parameter value; and determining the configuration corresponding to the maximum parameter value as the highest configuration in the preset period.
Referring to fig. 5, a schematic structural diagram of a cloud resource configuration determining apparatus is shown, where the apparatus further includes: and the configuration snapshot module 51 is configured to record configuration snapshots of the cloud resources before and after the change operation when the change operation is performed.
It should be noted that each module in the apparatus may be located in the same system or device, or may be located in different systems or devices, optionally, the obtaining module 31 and the first determining module 32 may be located in a billing system, and the second determining module 41 may be located in an order system, but is not limited thereto.
The implementation principle and the generated technical effect of the cloud resource configuration determining apparatus provided by the embodiment of the present invention are the same as those of the foregoing method embodiment, and for brief description, no mention is made in the apparatus embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment.
An embodiment of the present invention further provides an electronic device, where the electronic device includes a memory and a processor, the memory is used to store a program that supports the processor to execute the cloud resource configuration determining method provided in the foregoing embodiment, and the processor is configured to execute the program stored in the memory. The electronic device may also include a communication interface for communicating with other devices or a communication network. The electronic device may be any electronic device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a vehicle-mounted computer, and the like.
Further, the present embodiment also provides a computer storage medium for storing computer software instructions for any one of the cloud resource configuration determining apparatuses provided in the foregoing embodiments.
As shown in fig. 6, the electronic device 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will appreciate that the configuration of electronic device 100 shown in FIG. 6 does not constitute a limitation of electronic device 100, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The following describes each component of the electronic device 100 in detail with reference to fig. 6:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 120 may be configured to store software programs and modules, such as program instructions/modules corresponding to the cloud resource configuration determining method in the embodiment of the present invention, and the processor 180 executes various functional applications and data processing of the electronic device 100 by running the software programs and modules stored in the memory 120, such as the cloud resource configuration determining method provided in the embodiment of the present invention. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic apparatus 100, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by the user or information provided to the user and various menus of the electronic apparatus 100. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 performs processing according to the type of the touch event. Although in fig. 6, the touch panel 131 and the display panel 141 are two independent components to implement the input and output functions of the electronic device 100, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the electronic device 100.
The electronic device 100 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the electronic device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the electronic device 100, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and electronic device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then processed by the audio data output processor 180 and then transmitted to, for example, another electronic device 100 via the RF circuit 110, or output to the memory 120 for further processing.
WiFi belongs to short-range wireless transmission technology, and the electronic device 100 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 170, which provides the user with wireless broadband internet access. Although fig. 6 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the electronic device 100, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the electronic device 100, connects various parts of the whole electronic device 100 by using various interfaces and lines, performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the electronic device 100 as a whole. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The electronic device 100 further includes a power supply 190 (e.g., a battery) for supplying power to the various components, and preferably, the power supply may be logically connected to the processor 180 via a power management system, so as to manage charging, discharging, and power consumption via the power management system.
It will be appreciated that the configuration shown in FIG. 6 is merely illustrative and that electronic device 100 may include more or fewer components than shown in FIG. 6 or have a different configuration than shown in FIG. 6. The components shown in fig. 6 may be implemented in hardware, software, or a combination thereof.
The cloud resource configuration determining method and apparatus and the computer program product of the electronic device provided by the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (5)

1. A cloud resource configuration determination method is characterized by comprising the following steps:
acquiring initial configuration and each first configuration of the cloud resources in a preset period, wherein the first configuration is a configuration after configuration change of the configuration of the cloud resources when it is determined that the configuration change of the cloud resources is a configuration upgrade operation;
determining the highest configuration in the preset period according to the initial configuration and each first configuration;
before obtaining the initial configuration and each first configuration of the cloud resource in a preset period, the method further includes:
when an instruction of a user for changing the configuration of the cloud resource is received, changing the current configuration of the cloud resource;
determining whether the change operation is a lift-match operation;
recording a first configuration of the cloud resource after the change operation is performed under the condition that the change operation is determined to be a upgrade operation;
determining whether the change operation is a lift-match operation, comprising:
respectively calculating parameter values corresponding to the current configuration and the change operation; wherein the modify operation is determined to be a step-up operation if the parameter value of the current configuration is less than the parameter value of the modify operation;
determining the highest configuration in the preset period according to the initial configuration and each first configuration, including:
comparing the parameter value corresponding to the initial configuration with the parameter value corresponding to each first configuration to obtain the maximum parameter value;
and determining the configuration corresponding to the maximum parameter value as the highest configuration in the preset period.
2. The method of claim 1, further comprising:
and respectively recording the configuration snapshots of the cloud resources before and after the change operation when the change operation is carried out.
3. A cloud resource configuration determining apparatus, comprising:
the acquisition module is used for acquiring the initial configuration and each first configuration of the cloud resources in a preset period, wherein the first configuration is used for carrying out configuration change after the configuration change on the cloud resources when the change operation on the configuration of the cloud resources is determined to be a configuration upgrade operation;
a first determining module, configured to determine, according to the initial configuration and each of the first configurations, a highest configuration in the preset period;
the device further comprises:
the changing module is used for changing the current configuration of the cloud resources when receiving an instruction of changing the configuration of the cloud resources by a user;
a second determination module, configured to determine whether the change operation is a lift-match operation;
the recording module is used for recording the first configuration of the cloud resources after the change operation is carried out under the condition that the change operation is determined to be the upgrade operation;
the second determination module is further to:
respectively calculating parameter values corresponding to the current configuration and the change operation; wherein the modify operation is determined to be a step-up operation if the parameter value of the current configuration is less than the parameter value of the modify operation;
the first determining module includes:
a comparing unit, configured to compare the parameter value corresponding to the initial configuration with the parameter value corresponding to each of the first configurations to obtain a maximum parameter value;
a determining unit, configured to determine a configuration corresponding to the maximum parameter value as a highest configuration in the preset period;
the first determination module is further to: comparing the parameter value corresponding to the initial configuration with the parameter value corresponding to each first configuration to obtain the maximum parameter value; and determining the configuration corresponding to the maximum parameter value as the highest configuration in the preset period.
4. An electronic device, comprising a memory and a processor,
the memory is used for storing a computer program;
the processor, when executing the computer program stored in the memory, implementing the method of any of claims 1 or 2.
5. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of claim 1 or 2.
CN201810914103.7A 2018-08-10 2018-08-10 Cloud resource configuration determining method and device and electronic equipment Active CN108900361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810914103.7A CN108900361B (en) 2018-08-10 2018-08-10 Cloud resource configuration determining method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810914103.7A CN108900361B (en) 2018-08-10 2018-08-10 Cloud resource configuration determining method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108900361A CN108900361A (en) 2018-11-27
CN108900361B true CN108900361B (en) 2021-05-25

Family

ID=64354208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810914103.7A Active CN108900361B (en) 2018-08-10 2018-08-10 Cloud resource configuration determining method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108900361B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181650B (en) * 2020-09-24 2024-08-30 北京金山云网络技术有限公司 Cloud computing resource metering method, device, system, equipment and medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8983961B2 (en) * 2012-11-29 2015-03-17 International Business Machines Corporation High availability for cloud servers
CN104579701A (en) * 2013-10-17 2015-04-29 南京中兴新软件有限责任公司 Real-time charging method, device and system
CN104407912B (en) * 2014-12-25 2018-08-17 无锡清华信息科学与技术国家实验室物联网技术中心 A kind of virtual machine configuration method and device
CN105828310B (en) * 2015-01-04 2020-02-04 中国移动通信集团公司 Charging method, device and system for data service
ES2754213T3 (en) * 2015-01-29 2020-04-16 Deutsche Telekom Ag Online billing on hybrid access networks
US9672074B2 (en) * 2015-10-19 2017-06-06 Vmware, Inc. Methods and systems to determine and improve cost efficiency of virtual machines
CN105657042A (en) * 2016-02-18 2016-06-08 广东睿江科技有限公司 Elastic measurement and integration method of cloud resources
CN106201661B (en) * 2016-07-20 2018-09-14 北京百度网讯科技有限公司 Method and apparatus for elastic telescopic cluster virtual machine
CN107360006B (en) * 2017-06-12 2021-01-22 北京三快在线科技有限公司 Resource charging method and device

Also Published As

Publication number Publication date
CN108900361A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN110334124B (en) Compression algorithm selection method, device and equipment
CN106708554B (en) Program operating method and device
CN108834132B (en) Data transmission method and equipment and related medium product
CN106294168B (en) A kind of method and system carrying out Application testing
CN108600516B (en) Data acquisition method, mobile terminal and computer readable storage medium
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN109284110B (en) Terminal application replacement method, terminal and computer readable storage medium
CN107329547B (en) Temperature control method and device and mobile terminal
CN111371916B (en) Data processing method and related equipment
CN106851050B (en) Motion detection method and device and mobile equipment
CN108900361B (en) Cloud resource configuration determining method and device and electronic equipment
CN112612552A (en) Application program resource loading method and device, electronic equipment and readable storage medium
CN116610372A (en) CPU configuration method, device and related products
CN115118636B (en) Method and device for determining network jitter state, electronic equipment and storage medium
CN107894958B (en) Junk information cleaning method, terminal, server and computer readable storage medium
CN112312542B (en) Ephemeris information collection method, device, storage medium and mobile terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN109151154B (en) Power consumption control method and mobile terminal
CN107315623B (en) Method and device for reporting statistical data
CN112214699A (en) Page processing method and related device
CN106657278B (en) Data transmission method and device and computer equipment
CN111107199B (en) Illumination value reporting method and device, storage medium and mobile terminal
CN109617660B (en) Method and device for setting carrier aggregation frequency band, storage medium and mobile terminal

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