Software specification management method, device, medium and electronic equipment
By detecting hardware usage and performance indicators, dynamically adjusting software specifications solves the problem in the existing technology that configuration files cannot be adjusted in time, achieves hardware performance matching, and ensures stable and safe operation of platform software.
Patent Information
- Application Number
- CN201911095080.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-11-11
AI Technical Summary
When the existing technology determines software specifications through configuration files, it cannot be adjusted in time to adapt to server hardware performance changes, resulting in potential risks and abnormal downtime in platform operation.
By detecting the hardware usage and performance indicators of the platform software, dynamically adjust the software specifications to ensure that they match the hardware performance, including determining the baseline specifications, adjusting parameters and terminating adjustment conditions, to achieve adaptive adjustment of specifications.
This ensures the stable operation of the platform software, avoids potential risks and downtime caused by changes in hardware performance, and improves the flexibility and reliability of the system.
Smart Images

Figure CN111782501B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, medium and electronic device for managing software specifications. Background Art
[0002] At present, with the rapid development of science and technology, people's life needs are constantly becoming more detailed. For platform software, the server is generally used as the core service device to support the access needs of different hardware platforms of different systems. However, the hardware performance of the server is limited, and when the server hardware is expanded or upgraded, the hardware performance supporting the platform software is often greatly limited. If there are still a large number of users accessing in this case, it will often cause abnormal situations such as downtime.
[0003] The existing technology often uses configuration files to confirm specifications. For example, through the configuration file, the software specifications are determined to support 100 users and 500 devices. In the actual operation process, the platform software can allow 500 devices to access at the same time and allow 100 users to use it at the same time. This will cause a problem, that is, the software specifications determined by the configuration file do not necessarily represent the working capacity of the server's hardware performance, and when the hardware performance changes, the configuration file is often not adjusted in time, resulting in potential risks in the platform operation. Summary of the invention
[0004] The embodiments of the present application provide a method, device, medium and electronic device for managing software specifications, which can determine the specifications that best match the hardware performance based on the hardware performance of the platform software to ensure stable operation of the platform software.
[0005] In a first aspect, an embodiment of the present application provides a method for managing software specifications, the method comprising:
[0006] Determining baseline specifications for the platform software; the specifications include user specifications and / or device specifications;
[0007] Determine specification adjustment parameters according to the hardware indicators of the platform software, and make adjustments based on the baseline specifications according to the specification adjustment parameters;
[0008] Check whether the hardware usage of the platform software meets the conditions for terminating adjustment. If so, terminate the adjustment.
[0009] Furthermore, the baseline specifications of the platform software were determined, including:
[0010] Determine the baseline specifications of the platform software based on the preset baseline hardware capacity indicators;
[0011] Accordingly, the specification adjustment parameters are determined according to the hardware indicators of the platform software, and the adjustment is performed on the basis of the baseline specifications according to the specification adjustment parameters, including:
[0012] The specification adjustment parameters are determined according to the hardware capacity index of the platform software, and adjustments are made based on the baseline specifications according to the specification adjustment parameters.
[0013] Furthermore, before determining the benchmark specification of the platform software according to the preset benchmark hardware capacity indicator, the method further includes:
[0014] If it is detected that the platform software is started, the hardware capacity index of the platform software is read; wherein the hardware capacity index includes at least one of CPU frequency, number of CPUs, total memory size, hard disk capacity and number, and network card bandwidth;
[0015] Accordingly, the specification adjustment parameters are determined according to the hardware capacity indicators of the platform software, including:
[0016] The specification adjustment parameters are determined according to the relationship between the read hardware capacity indicator and the preset benchmark hardware capacity indicator.
[0017] Furthermore, according to the relationship between the read hardware capacity index and the preset benchmark hardware capacity index, the specification adjustment parameter is determined, including:
[0018] According to the capacity unit in which the read hardware capacity index exceeds the preset benchmark hardware capacity index, determining the number of user specifications and / or the number of device specifications to be increased for each capacity unit;
[0019] Accordingly, the hardware usage of the platform software is tested to see if it meets the conditions for termination of adjustment. If so, the adjustment is terminated, including:
[0020] If the hardware usage of the detection platform software reaches a preset alarm threshold, it is determined that the adjustment termination conditions are met and the adjustment is terminated; wherein the hardware usage includes at least one of CPU usage, memory usage and hard disk capacity occupancy.
[0021] Further, determining specification adjustment parameters according to the hardware indicators of the platform software, and adjusting based on the baseline specifications according to the specification adjustment parameters, including:
[0022] The specification adjustment parameters are determined according to the hardware utilization index of the platform software, and the adjustments are made based on the baseline specifications according to the specification adjustment parameters.
[0023] Further, determining a specification adjustment parameter according to the hardware utilization rate indicator of the platform software, and adjusting the base specification according to the specification adjustment parameter, including:
[0024] Determine the specification adjustment parameters based on the relationship between the hardware utilization rate indicator of the platform software and the preset utilization rate upper limit;
[0025] The parameters are adjusted based on the base specifications according to the specifications;
[0026] Check the relationship between the hardware utilization index of the platform software after adjustment and the preset utilization upper limit; if it is less than the preset utilization upper limit, continue to adjust; if it is greater than or equal to the preset utilization upper limit, cancel this adjustment.
[0027] Further, the specification adjustment parameter is determined according to the relationship between the hardware utilization index of the platform software and the preset utilization upper limit;
[0028] According to the difference level between the hardware utilization index of the platform software and the preset utilization upper limit;
[0029] The adjustment parameter of the current phase difference level is determined according to the mapping relationship between the phase difference level and the preset phase difference level and adjustment parameter.
[0030] In a second aspect, an embodiment of the present application provides a software specification management device, the device comprising:
[0031] A baseline specification determination module, used to determine the baseline specifications of the platform software; the specifications include user specifications and / or device specifications;
[0032] An adjustment parameter determination module, used to determine specification adjustment parameters according to hardware indicators of the platform software, and to make adjustments based on the benchmark specifications according to the specification adjustment parameters;
[0033] The termination adjustment identification module is used to detect whether the hardware usage of the platform software meets the termination adjustment conditions. If so, the adjustment is terminated.
[0034] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for managing software specifications as described in the embodiment of the present application.
[0035] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for managing software specifications as described in the embodiment of the present application is implemented.
[0036] The technical solution provided in the embodiment of the present application determines the baseline specifications of the platform software; the specifications include user specifications and / or device specifications; the specification adjustment parameters are determined according to the hardware indicators of the platform software, and the adjustment is performed on the basis of the baseline specifications according to the specification adjustment parameters; the hardware usage of the platform software is detected to see whether it meets the termination adjustment conditions, and if so, the adjustment is terminated. By adopting the technical solution provided in the present application, the specifications that best match the hardware performance can be determined according to the hardware performance of the platform software to ensure the stable operation of the platform software. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flowchart of a method for managing software specifications provided in an embodiment of the present application;
[0038] Figure 2 is a flowchart of a method for managing software specifications provided in an embodiment of the present application;
[0039] Figure 3 is a flowchart of a method for managing software specifications provided in an embodiment of the present application;
[0040] Figure 4 It is a structural diagram of a management device of software specifications provided in an embodiment of the present application;
[0041] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0043] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0044] Figure 1It is a flowchart of the software specification management method provided in the embodiment of the present application. The present embodiment can be applicable to the specification management of platform software. The method can be executed by the software specification management device provided in the embodiment of the present application. The device can be implemented by software and / or hardware and can be integrated in electronic devices such as servers.
[0045] like Figure 1 As shown, the software specification management method includes:
[0046] S110, determining the baseline specifications of the platform software; the specifications include user specifications and / or device specifications.
[0047] Among them, platform software can be software loaded on any platform. For example, after installing this software on a smart mobile terminal or a computer, since the operation of the software requires hardware support, and the hardware depends on the platform on which the software is loaded, the benchmark specifications of the platform software may be affected by the platform on which it is loaded. Therefore, the hardware conditions of the platform can be determined as the hardware capacity of the platform software, that is, the benchmark specifications can be determined based on the hardware capacity of the platform software, or they can be directly given according to lower standards. For example, if the hardware capacity is a CPU frequency of 1GHz, a CPU number of 1, and a memory of 512M, then the benchmark specifications of the platform can be determined as user specifications 100 and device specifications 500.
[0048] Specifications may include user specifications and / or device specifications, where user specifications may be the number of users who can access the platform at the same time, or the number of users that the platform supports for registration. Device specifications may be the number of devices that the platform allows access to. For example, for a security platform in a certain community, if the device specifications allowed to access are 100 and the user specifications allowed to access are 500, it means that a maximum of 100 cameras can be accessed and the maximum number of users is 500.
[0049] S120: Determine specification adjustment parameters according to the hardware indicators of the platform software, and make adjustments based on the benchmark specifications according to the specification adjustment parameters.
[0050] Among them, the hardware index can be the operating index of the hardware, or other indexes, such as capacity index. The specification adjustment parameter can be the number of specifications to be increased or decreased. For example, the user specifications are increased by 100 and the device specifications are increased by 300 each time. On the basis of the baseline specifications, you can increase or decrease the adjustment. For example, if you find that the current operating index is close to saturation, you can decrease the adjustment. Correspondingly, you can also re-check the hardware indicators after reducing a certain number of specifications each time to determine whether further reduction is needed.
[0051] S130, detecting whether the hardware usage of the platform software meets the termination adjustment conditions, and if so, terminating the adjustment.
[0052] If the adjustment method is an upward adjustment, the adjustment can be terminated when the hardware usage is close to saturation or close to a preset critical value. If the adjustment method is a downward adjustment, the adjustment can be terminated when the hardware usage is close to or lower than a preset critical value that can ensure stable operation of the platform.
[0053] The technical solution provided in the embodiment of the present application determines the baseline specifications of the platform software; the specifications include user specifications and / or device specifications; the specification adjustment parameters are determined according to the hardware indicators of the platform software, and the adjustment is performed on the basis of the baseline specifications according to the specification adjustment parameters; the hardware usage of the platform software is detected to see whether it meets the termination adjustment conditions, and if so, the adjustment is terminated. By adopting the technical solution provided in the present application, the specifications that best match the hardware performance can be determined according to the hardware performance of the platform software to ensure the stable operation of the platform software.
[0054] Figure 2 It is a flow chart of the software specification management method provided by the embodiment of the present application. This solution is further optimized on the basis of the above technical solution, and the specific optimization is: determining the baseline specification of the platform software, including: determining the baseline specification of the platform software according to the preset baseline hardware capacity index; correspondingly, determining the specification adjustment parameters according to the hardware index of the platform software, and adjusting on the basis of the baseline specification according to the specification adjustment parameters, including: determining the specification adjustment parameters according to the hardware capacity index of the platform software, and adjusting on the basis of the baseline specification according to the specification adjustment parameters.
[0055] like Figure 2 As shown, the software specification management method includes:
[0056] S210: Determine the benchmark specification of the platform software according to the preset benchmark hardware capacity index.
[0057] Among them, the hardware capacity index may include at least one of: CPU frequency, number of CPUs, total memory size, hard disk capacity and number, and network card bandwidth. For example, for a certain platform software, the core hardware capacity that it is most concerned about is memory capacity, so the baseline specification of the software platform can be determined based on the memory capacity. For example, when we set memory as the core hardware capacity, the user specification is 100 and the device specification is 500. In addition, hardware capacity indicators can also include network card bandwidth and descriptors, among which file descriptors are non-negative integers. When opening an existing file or creating a new file, the kernel returns a file descriptor. Reading and writing files also requires the use of file descriptors to specify the files to be read and written. Therefore, different specifications consume different descriptors.
[0058] Among them, different specifications can mainly rely on different hardware parameters. For example, the storage specification can be determined based on the number of CPUs, memory size and hard disk number. The live broadcast specification can be determined based on the number of CPUs, memory size and network card bandwidth.
[0059] S220: Determine specification adjustment parameters according to the hardware capacity index of the platform software, and make adjustments based on the benchmark specifications according to the specification adjustment parameters.
[0060] In combination with the above example, the specification adjustment parameter can be determined that when the memory increases by 512M, the user specification increases by 50 and the device specification increases by 50. If the current platform software memory is 2G, the user specification of the platform software can be determined to be 250 and the device specification to be 650.
[0061] Correspondingly, other hardware capacities can also be used as reference conditions, or the capacities of multiple hardware can be used as a comprehensive reference. For example, if the CPU frequency is 1GHz, the number of benchmark CPUs is 1, and the benchmark memory is 512M, the user specification is 100 users based on this benchmark, and 500 devices can be added. For every increase in the number of CPUs, the user specification increases by 100, and the device specification increases by 300. For every increase in the CPU frequency by 0.5GHz, the user specification increases by 50, and the device specification increases by 100.
[0062] S230, detecting whether the hardware usage of the platform software meets the termination adjustment conditions, and if so, terminating the adjustment.
[0063] In each of the above schemes, optionally, a specification adjustment parameter is determined based on the relationship between the read hardware capacity indicator and the preset benchmark hardware capacity indicator, including: according to the capacity unit in which the read hardware capacity indicator exceeds the preset benchmark hardware capacity indicator, the number of user specifications and / or the number of device specifications increased for each capacity unit is determined; accordingly, whether the hardware usage of the detection platform software meets the termination adjustment conditions, and if so, the adjustment is terminated, including: if the hardware usage rate of the detection platform software reaches a preset alarm threshold, it is determined that the termination adjustment conditions are met, and the adjustment is terminated; wherein the hardware usage rate includes at least one of CPU usage rate, memory usage rate and hard disk capacity occupancy rate.
[0064] For example, when the CPU usage or memory usage exceeds 80%, an alarm is automatically reported to remind the user that the specification has reached the upper limit, and no further users or devices are allowed to be added, regardless of whether the number of specifications reaches the specification calculated according to the hardware capacity.
[0065] Based on the above technical solutions, this solution provides a method of determining the benchmark specifications and the adjustment method based on the hardware capacity standard, and after each adjustment of a certain number of specifications, the hardware operation status is detected, and if it is found that the termination condition is met, the adjustment can be terminated. Through such a setting, this solution can take into account the utilization rate of the hardware during the process of adjusting the specifications, ensure that the hardware can be used to the maximum extent, and improve the stability and performance of the platform software.
[0066] On the basis of the above technical solutions, optionally, before determining the benchmark specifications of the platform software according to the preset benchmark hardware capacity index, the method also includes: if the platform software is detected to be started, the hardware capacity index of the platform software is read; wherein the hardware capacity index includes at least one of CPU frequency, number of CPUs, total memory size, hard disk capacity and number, and network card bandwidth; accordingly, the specification adjustment parameter is determined according to the hardware capacity index of the platform software, including: determining the specification adjustment parameter according to the relationship between the read hardware capacity index and the preset benchmark hardware capacity index. Among them, when the platform software is started, it can be because the platform software is started after the hardware upgrade is carried out, or it can be started when the platform software needs to check some of the hardware devices. It can be seen that the former is the process of powering on the new hardware device, so it will expand the specifications that the platform software can support, and the latter requires that some of the hardware devices that were originally powered on are powered off, so it is necessary to reduce the specifications supported by the platform software. In different cases, it can be set to re-detect the capacity of the hardware as long as the platform software is detected to start, and then control the specifications. The advantage of such a setting is that the real-time control of the specifications of the platform software can be guaranteed.
[0067] In addition, the hardware capacity of the platform software can be tested regularly or irregularly, so as to achieve the purpose of adaptive control of the specifications of the platform software.
[0068] Figure 3 It is a flow chart of the software specification management method provided by the embodiment of the present application. This solution is further optimized on the basis of the above technical solution, and the specific optimization is: determining the specification adjustment parameters according to the hardware indicators of the platform software, and adjusting on the basis of the benchmark specifications according to the specification adjustment parameters, including: determining the specification adjustment parameters according to the hardware utilization rate indicators of the platform software, and adjusting on the basis of the benchmark specifications according to the specification adjustment parameters.
[0069] like Figure 3 As shown, the software specification management method includes:
[0070] S310, determining the baseline specifications of the platform software.
[0071] The benchmark specification may be a lower usage standard set based on experience, and may satisfy the operational stability requirements of any platform software.
[0072] S320: Determine a specification adjustment parameter according to the hardware usage rate indicator of the platform software, and make adjustments based on the benchmark specification according to the specification adjustment parameter.
[0073] In the present scheme, optionally, a specification adjustment parameter is determined according to the hardware utilization index of the platform software, and adjustments are made on the basis of the baseline specifications according to the specification adjustment parameter, including: determining the specification adjustment parameter according to the relationship between the hardware utilization index of the platform software and a preset utilization upper limit; making adjustments on the basis of the baseline specifications according to the specification adjustment parameter; detecting the size relationship between the hardware utilization index of the platform software after adjustment and the preset utilization upper limit; if it is less than the preset utilization upper limit, continuing to adjust; if it is greater than or equal to the preset utilization upper limit, canceling the adjustment.
[0074] In the above scheme, optionally, the specification adjustment parameters are determined according to the relationship between the hardware utilization index of the platform software and the preset utilization upper limit; the adjustment parameters of the current difference level are determined according to the difference level and the mapping relationship between the pre-set difference level and the adjustment parameters.
[0075] The usage rate can be the CPU usage rate or the memory usage rate. Taking the CPU usage rate as an example, assume that in the benchmark specification, the user specification is 100 and the device specification is 200. When the actual user specification reaches 90 and the device management specification reaches 180, that is, the overall specification reaches 90%, the CPU usage rate and the memory usage rate are obtained. If both are lower than 50%, the specifications are increased by 50%, that is, the user specification is 150 and the device specification is 300. When the specification reaches 90% again, the CPU usage rate and the memory usage rate are obtained. If both are lower than 60%, the specifications are increased by 40%. Through this strategy, after a period of use, the specification parameters will adaptively reach a reasonable usage range.
[0076] S330, detecting whether the hardware usage of the platform software meets the termination adjustment conditions, and if so, terminating the adjustment.
[0077] In combination with the above example, when the CPU usage or memory usage exceeds 80%, an alarm is automatically reported to remind the user that the specification has reached the upper limit, and no more users or devices are allowed to be added.
[0078] This technical solution, through such a setting, can realize the adaptive adjustment of the specifications of the platform software, so as to achieve the purpose of satisfying the stability of the platform software operation and improving the utilization rate of the platform software. At the same time, it can also be adjusted in real time, providing a guarantee for the operation of the platform software.
[0079] The platform software then limits the specifications of the corresponding software function modules according to the software function module specification parameter list, ensuring that the software running on this hardware platform can work normally, that is, the hardware performance does not exceed the standard and the software performance can be maximized.
[0080] Preferably, to prevent the hardware platform from replacing the CPU and memory, the hardware platform performance index analysis unit can start updating the index parameters every time the software is run, and the specifications can be expanded in time for performance enhancement scenarios. For performance degradation scenarios, the user can be reminded in time of the risks brought by performance degradation to software operation.
[0081] Preferably, the intelligent algorithm can perform self-learning correction optimization based on the actual real-time indicators of the system when the software specifications are reached, and re-update the specification parameter list of the software function module to ensure that the most reasonable specifications can be reached in the end. In this way, even if the user replaces important hardware components, the software can also adaptively ensure that the software can run normally, and avoid the problem that the specification parameters given by the intelligent algorithm are not accurate enough at the beginning. For example: when the software is running at full specifications and the CPU usage rate is less than 60%, and the memory is more than 1G, the device specifications can be increased by 100 and the user specifications can be increased by 50; when the system CPU reaches 80% or the memory is 0.3G, the device specifications and user specifications are subtracted by 100 and 50 respectively according to the data currently used.
[0082] Through such a setting, this technical solution can ensure that the platform software can be installed and run stably and normally on any system or hardware platform, will not exceed the hardware performance indicators, and avoid abnormal situations such as downtime during use. Avoid non-professionals using this software process without knowing how to limit the specifications, and automatically handle the specification limits of functional modules. And when replacing any important components of the hardware platform, there is no need to reconfigure the specifications, and automatically adapt or remind the user. If the system performance is about to exceed the limit when the system is running, this software algorithm can automatically identify and remind the user or correct the limit specifications to ensure the specification security of the software when deployed across systems and hardware platforms.
[0083] Figure 4 Schematic diagram of the structure of the software specification management device provided in the embodiment of the present application. Figure 4 As shown, the software specification management device includes:
[0084] A baseline specification determination module 410 is used to determine the baseline specifications of the platform software; the specifications include user specifications and / or device specifications;
[0085] An adjustment parameter determination module 420, for determining a specification adjustment parameter according to the hardware indicators of the platform software, and performing adjustments based on the benchmark specifications according to the specification adjustment parameter;
[0086] The adjustment termination identification module 430 is used to detect whether the hardware usage of the platform software meets the adjustment termination condition, and if so, terminate the adjustment.
[0087] The technical solution provided in the embodiment of the present application determines the baseline specifications of the platform software; the specifications include user specifications and / or device specifications; the specification adjustment parameters are determined according to the hardware indicators of the platform software, and the adjustment is performed on the basis of the baseline specifications according to the specification adjustment parameters; the hardware usage of the platform software is detected to see whether it meets the termination adjustment conditions, and if so, the adjustment is terminated. By adopting the technical solution provided in the present application, the specifications that best match the hardware performance can be determined according to the hardware performance of the platform software to ensure the stable operation of the platform software.
[0088] The above-mentioned product can execute the method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0089] The embodiment of the present application further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute a method for managing software specifications when executed by a computer processor, the method comprising:
[0090] Determining baseline specifications for the platform software; the specifications include user specifications and / or device specifications;
[0091] Determine specification adjustment parameters according to the hardware indicators of the platform software, and make adjustments based on the baseline specifications according to the specification adjustment parameters;
[0092] Check whether the hardware usage of the platform software meets the conditions for terminating adjustment. If so, terminate the adjustment.
[0093] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system, which is connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0094] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the management operations of the software specifications as described above, can also execute related operations in the software specification management method provided in any embodiment of the present application.
[0095] An embodiment of the present application provides an electronic device, in which a management device of the software specification provided by the embodiment of the present application can be integrated. Figure 5 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, this embodiment provides an electronic device 500, which includes: one or more processors 520; a storage device 510, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the software specification management method provided in the embodiment of the present application. The method includes:
[0096] Determining baseline specifications for the platform software; the specifications include user specifications and / or device specifications;
[0097] Determine specification adjustment parameters according to the hardware indicators of the platform software, and make adjustments based on the baseline specifications according to the specification adjustment parameters;
[0098] Check whether the hardware usage of the platform software meets the conditions for terminating adjustment. If so, terminate the adjustment.
[0099] Of course, those skilled in the art can understand that the processor 520 also implements the technical solution of the software specification management method provided in any embodiment of the present application.
[0100] Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0101] like Figure 5 As shown, the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of the processor 520 in the electronic device can be one or more. Figure 5 A processor 520 is taken as an example; the processor 520, the storage device 510, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The connection via bus 550 is taken as an example.
[0102] The storage device 510 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and module units, such as program instructions corresponding to the software specification management method in the embodiment of the present application.
[0103] The storage device 510 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 510 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 510 may further include a memory remotely arranged relative to the processor 520, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0104] The input device 530 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include a display screen, a speaker and other devices.
[0105] The electronic device provided in the embodiment of the present application can determine the specifications that best match the hardware performance based on the hardware performance of the platform software to ensure stable operation of the platform software.
[0106] The software specification management device, medium, and electronic device provided in the above embodiments can execute the software specification management method provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the software specification management method provided in any embodiment of the present application.
[0107] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for managing software specifications, characterized in that: include: Determining baseline specifications for the platform software; the specifications include user specifications and / or device specifications; Among them, according to the preset benchmark hardware capacity indicators, the benchmark specifications of the platform software are determined; Determine specification adjustment parameters according to the hardware indicators of the platform software, and make adjustments based on the baseline specifications according to the specification adjustment parameters; Wherein, determining the specification adjustment parameter according to the hardware capacity index of the platform software includes: determining the specification adjustment parameter according to the relationship between the read hardware capacity index and the preset benchmark hardware capacity index; Wherein, determining the specification adjustment parameter according to the relationship between the read hardware capacity indicator and the preset benchmark hardware capacity indicator includes: determining the number of user specifications and / or the number of device specifications to be increased for each capacity unit according to the capacity unit in which the read hardware capacity indicator exceeds the preset benchmark hardware capacity indicator; Check whether the hardware usage of the platform software meets the conditions for terminating adjustment. If so, terminate the adjustment.
2. The method according to claim 1, characterized in that Before determining the benchmark specification of the platform software according to the preset benchmark hardware capacity index, the method further includes: If it is detected that the platform software is started, the hardware capacity index of the platform software is read; wherein the hardware capacity index includes at least one of CPU frequency, number of CPUs, total memory size, hard disk capacity and number, and network card bandwidth.
3. The method according to claim 2, characterized in that According to the relationship between the read hardware capacity index and the preset benchmark hardware capacity index, the specification adjustment parameters are determined, including: Accordingly, the hardware usage of the platform software is tested to see if it meets the conditions for termination of adjustment. If so, the adjustment is terminated, including: If the hardware usage of the detection platform software reaches a preset alarm threshold, it is determined that the adjustment termination conditions are met and the adjustment is terminated; wherein the hardware usage includes at least one of CPU usage, memory usage and hard disk capacity occupancy.
4. The method according to claim 1, characterized in that: Determining specification adjustment parameters according to the hardware indicators of the platform software, and adjusting the base specification according to the specification adjustment parameters, the method further includes: The specification adjustment parameters are determined according to the hardware utilization index of the platform software, and the adjustments are made based on the baseline specifications according to the specification adjustment parameters.
5. The method according to claim 4, characterized in that Determine the specification adjustment parameters according to the hardware utilization index of the platform software, and make adjustments based on the baseline specifications according to the specification adjustment parameters, including: Determine the specification adjustment parameters based on the relationship between the hardware utilization rate indicator of the platform software and the preset utilization rate upper limit; The parameters are adjusted based on the base specifications according to the specifications; Check the relationship between the hardware utilization index of the platform software after adjustment and the preset utilization upper limit; if it is less than the preset utilization upper limit, continue to adjust; if it is greater than or equal to the preset utilization upper limit, cancel this adjustment.
6. The method according to claim 5, characterized in that Determine the specification adjustment parameters based on the relationship between the hardware utilization rate indicator of the platform software and the preset utilization rate upper limit; According to the difference level between the hardware utilization index of the platform software and the preset utilization upper limit; The adjustment parameter of the current phase difference level is determined according to the mapping relationship between the phase difference level and the preset phase difference level and adjustment parameter.
7. A software specification management device, characterized in that: include: A baseline specification determination module, used to determine the baseline specification of the platform software; The specifications include user specifications and / or device specifications, wherein the baseline specifications of the platform software are determined based on preset baseline hardware capacity indicators; An adjustment parameter determination module is used to determine specification adjustment parameters according to the hardware indicators of the platform software, and to make adjustments based on the benchmark specifications according to the specification adjustment parameters, wherein determining the specification adjustment parameters according to the hardware capacity indicators of the platform software includes: determining the specification adjustment parameters according to the relationship between the read hardware capacity indicators and the preset benchmark hardware capacity indicators; wherein determining the specification adjustment parameters according to the relationship between the read hardware capacity indicators and the preset benchmark hardware capacity indicators includes: determining the number of user specifications and / or the number of device specifications to be added for each capacity unit according to the capacity unit in which the read hardware capacity indicator exceeds the preset benchmark hardware capacity indicator; The termination adjustment identification module is used to detect whether the hardware usage of the platform software meets the termination adjustment conditions. If so, the adjustment is terminated.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for managing software specifications as described in any one of claims 1 to 6 is implemented.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for managing software specifications according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and base transceiver station for controlling utilization rate of central processing unit (CPU)
CN102348235A
Scanning method and device
CN104408369A
Method and device for automatically adjusting operation of cloud host
CN105760230A
Capacity expansion method and device for service system
CN107911447A
Task execution method and device
CN108984297A
