A method, system, device and storage medium for batch upgrading BMC
Patent Information
- Application Number
- CN202210595401.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-05-29
AI Technical Summary
[0002]目前针对BMC(Baseboard Management Controller,基板管理控制器)固件升级,在实际应用中大部分还是通过升级工具进行带外BMC升级,最近在多次大批量服务器BMC升级过程中,存在某次的批量升级过程中大部分服务器BMC升级失败导致BMC宕机的情况,经分析为升级过程中BMC响应速度慢导致,导致BMC响应慢有多个方面的原因,如升级工具所在客户端机器性能问题、网络延时抖动、服务器BMC api(Application ProgrammingInterface,应用程序接口)不稳定等
[0014]本发明具有以下有益技术效果:通过检测配置可以提高升级工具可靠性,并保证性能最大化,通过网络检测和BMC检测,可以保证BMC升级的成功率,在加快了升级速度的同时也提高了升级的成功率。
Smart Images

Figure CN114816487B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of firmware upgrade, and more specifically, to a method, system, device and storage medium for batch upgrading BMC. Background Art
[0002] Currently, in actual applications, most BMC (Baseboard Management Controller) firmware upgrades are still performed out-of-band through upgrade tools. Recently, during multiple large-scale server BMC upgrades, most server BMC upgrades failed during a certain batch upgrade, resulting in BMC downtime. Analysis showed that the slow BMC response speed during the upgrade process was caused by multiple reasons, such as performance issues on the client machine where the upgrade tool is located, network delay jitter, and unstable server BMC api (Application Programming Interface). Summary of the invention
[0003] In view of this, the purpose of the embodiments of the present invention is to propose a method, system, computer device and computer-readable storage medium for batch upgrading of BMC. The present invention can improve the reliability of the upgrade tool and ensure maximum performance through detection configuration. Through network detection and BMC detection, the success rate of BMC upgrade can be guaranteed, which speeds up the upgrade speed and improves the success rate of the upgrade.
[0004] Based on the above purpose, an embodiment of the present invention provides a method for batch upgrading BMC, comprising the following steps: obtaining client machine performance parameters, and determining the Java virtual machine memory size of the upgrade tool and the number of threads opened by the upgrade tool according to the performance parameters; setting the configuration file of the upgrade tool according to the Java virtual machine memory size and the number of threads, and adding the information of all BMCs that need to be upgraded to the upgrade tool; opening a preset number of threads according to the configuration file, detecting whether the network and BMC meet the requirements in each thread; and determining the threads for which the network and BMC meet the requirements, and batch upgrading the BMCs corresponding to the threads.
[0005] In some embodiments, determining the Java virtual machine memory size of the upgrade tool and the number of threads enabled by the upgrade tool based on the performance parameters includes: obtaining a first memory based on the ratio of the CPU main frequency, the number of CPU cores, the CPU utilization, and the CPU utilization during the upgrade of the upgrade tool, and obtaining a second memory based on the client memory size and the memory utilization; taking the minimum value of the first memory and the second memory as the Java virtual machine memory size of the upgrade tool; and obtaining the number of threads enabled by the upgrade tool based on the ratio coefficient of the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory.
[0006] In some embodiments, the method further includes: in response to the network not meeting the requirements, suspending the corresponding thread, placing the server and thread information in a queue to be upgraded, and looping through all devices in the queue to be upgraded to detect whether the network meets the requirements.
[0007] In some embodiments, detecting in each thread whether the network and BMC meet the requirements includes: obtaining a first influence coefficient of the network on the BMC upgrade based on network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtaining a second influence coefficient of the BMC's own response on the BMC upgrade based on the average response time of IPMI commands, the average response time of the BMC application program interface and the corresponding weight coefficient; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determining that both the network and the BMC meet the requirements.
[0008] Another aspect of an embodiment of the present invention provides a system for batch upgrading BMC, including: an acquisition module, configured to acquire client machine performance parameters, and determine the Java virtual machine memory size of the upgrade tool and the number of threads opened by the upgrade tool according to the performance parameters; a setting module, configured to set the configuration file of the upgrade tool according to the Java virtual machine memory size and the number of threads, and add information of all BMCs that need to be upgraded to the upgrade tool; a thread module, configured to open a preset number of threads according to the configuration file, and detect whether the network and BMC meet the requirements in each thread; and an upgrade module, configured to determine the threads for which the network and BMC meet the requirements, and batch upgrade the BMCs corresponding to the threads.
[0009] In some embodiments, the acquisition module is configured to: obtain a first memory based on the ratio of the CPU main frequency, the number of CPU cores, the CPU utilization, and the CPU utilization during the upgrade tool upgrade, and obtain a second memory based on the client memory size and the memory utilization; take the minimum value of the first memory and the second memory as the Java virtual machine memory size of the upgrade tool; and obtain the number of threads enabled by the upgrade tool based on the ratio coefficient of the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory.
[0010] In some embodiments, the system also includes a traversal module configured to: in response to the network not meeting the requirements, suspend the corresponding thread, put the server and thread information into a queue to be upgraded, and cyclically traverse all devices in the queue to be upgraded to detect whether the network meets the requirements.
[0011] In some embodiments, the thread module is configured to: obtain a first influence coefficient of the network on the BMC upgrade based on network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtain a second influence coefficient of the BMC's own response on the BMC upgrade based on the average response time of IPMI commands, the average response time of the BMC application program interface and the corresponding weight coefficient; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determine that both the network and the BMC meet the requirements.
[0012] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of the above method when executed by the processor.
[0013] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.
[0014] The present invention has the following beneficial technical effects: the reliability of the upgrade tool can be improved and the performance can be maximized through the detection configuration; the success rate of the BMC upgrade can be guaranteed through network detection and BMC detection, which speeds up the upgrade and also improves the success rate of the upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A schematic diagram of an embodiment of a method for batch upgrading BMC provided by the present invention;
[0017] Figure 2 A schematic diagram of an embodiment of a system for batch upgrading BMC provided by the present invention;
[0018] Figure 3 A schematic diagram of the hardware structure of an embodiment of a computer device for batch upgrading BMC provided by the present invention;
[0019] Figure 4 The figure is a schematic diagram of an embodiment of a computer storage medium for batch upgrading of BMCs provided by the present invention. DETAILED DESCRIPTION
[0020] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0021] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0022] A first aspect of the embodiments of the present invention provides an embodiment of a method for batch upgrading BMCs. Figure 1 FIG. 2 is a schematic diagram of an embodiment of a method for batch upgrading BMC provided by the present invention. Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0023] S1. Obtaining performance parameters of the client machine, and determining the Java virtual machine memory size of the upgrade tool and the number of threads opened by the upgrade tool according to the performance parameters;
[0024] S2. Setting the configuration file of the upgrade tool according to the memory size and the number of threads of the Java virtual machine, and adding the information of all BMCs that need to be upgraded to the upgrade tool;
[0025] S3, opening a preset number of threads according to the configuration file, and detecting whether the network and BMC meet the requirements in each thread; and
[0026] S4. Determine threads whose network and BMC meet the requirements, and perform batch upgrade on the BMCs corresponding to the threads.
[0027] The client machine performance parameters are obtained, and the Java virtual machine memory size of the upgrade tool and the number of threads opened by the upgrade tool are determined according to the performance parameters.
[0028] When upgrading the BMC, you must first start the upgrade tool. When starting the upgrade tool, first obtain the client machine performance parameters, including CPU main frequency, number of cores and utilization, memory size and utilization. The known parameters are the ratio of memory size and CPU utilization occupied by the upgrade tool during the upgrade, Pcm; standard CPU performance parameter SPc; the above Pcm parameter value is obtained based on the standard CPU performance parameter; CH: CPU main frequency; CN: CPU core number; Uc: CPU utilization; Mz: memory size available for the tool; Ms: client memory size; Um: memory utilization.
[0029] In some embodiments, determining the Java virtual machine memory size of the upgrade tool and the number of threads enabled by the upgrade tool based on the performance parameters includes: obtaining a first memory based on the ratio of the CPU main frequency, the number of CPU cores, the CPU utilization, and the CPU utilization during the upgrade of the upgrade tool, and obtaining a second memory based on the client memory size and the memory utilization; taking the minimum value of the first memory and the second memory as the Java virtual machine memory size of the upgrade tool; and obtaining the number of threads enabled by the upgrade tool based on the ratio coefficient of the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory.
[0030] The first memory size can be obtained based on the client CPU performance and the above parameters. The formula is as follows:
[0031]
[0032] The second memory size is obtained based on the client memory parameters, and the formula is as follows:
[0033] Mz=Ms×(1-Um)
[0034] The smaller memory between the first memory and the second memory is used as the JVM (Java Virtual Machine) memory size of the upgrade tool.
[0035] Pmt: The ratio between JVM memory size and number of threads; Tn: The number of threads that can be opened by the upgrade tool.
[0036] Calculate the number of threads that the upgrade tool can open based on the set JVM memory size. The formula is as follows:
[0037] Tn=Mz×Pmt
[0038] The configuration file of the upgrade tool is set according to the memory size and the number of threads of the Java virtual machine, and the information of all BMCs that need to be upgraded is added to the upgrade tool.
[0039] Configure the configuration file of the upgrade tool according to the above detection results, officially start the upgrade tool, then add the information of all BMCs that need to be upgraded to the upgrade tool through the resource module, and save the resource information to the storage module.
[0040] According to the configuration file, a preset number of threads are opened, and the network and BMC are checked in each thread to see if they meet the requirements. The BMC to be upgraded is selected, the upgrade parameters and upgrade image are configured, and the upgrade is started. Through the task scheduling module, Tn threads configured as above are opened, and then each thread is assigned a BMC information. In each thread, the network detection module is called to detect the data of network delay Tnd, network jitter Tnj, and packet loss rate Pl through the ping command and other methods; and the IPMI command is used to connect to the BMC, and the response time of the IPMI is tested. After multiple tests, the average response time Ti is obtained; the BMC api is accessed through the web, and the response time of the BMC api is tested to obtain the average response time Ta.
[0041] In some embodiments, detecting in each thread whether the network and BMC meet the requirements includes: obtaining a first influence coefficient of the network on the BMC upgrade based on network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtaining a second influence coefficient of the BMC's own response on the BMC upgrade based on the average response time of IPMI commands, the average response time of the BMC application program interface and the corresponding weight coefficient; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determining that both the network and the BMC meet the requirements.
[0042] Based on the above data, the influence coefficient Pn of the network on BMC upgrade can be calculated. The formula is as follows:
[0043] Pn=Tnd×P 1 +Tni×P 2 +Pl×P 3
[0044] The influence coefficient Pb of BMC's own response on BMC upgrade is as follows:
[0045] Pb=Ti×P 4 +Ta×P 5
[0046] In the above formula, P 1 , P 2 , P 3 , P 4 , P 5 They all represent various weight coefficients.
[0047] In some embodiments, the method further includes: in response to the network not meeting the requirements, suspending the corresponding thread, placing the server and thread information in a queue to be upgraded, and looping through all devices in the queue to be upgraded to detect whether the network meets the requirements.
[0048] When the Pn value is greater than the preset value, it indicates that the network status is not good. The BMC upgrade thread is suspended, and the server and thread information are placed in the queue to be upgraded. Then the task scheduling module starts another thread to call the network detection module to loop through all machines in the queue to be upgraded, detect whether the network meets the requirements, and wait for the network to be good before proceeding to the next step. While suspending the thread, the task scheduling module opens a new BMC upgrade thread to ensure maximum resource utilization. When the Pn value is less than the preset value, the Pb value is determined. The size of the Pb value indicates the response speed of the BMC to the request, which can indirectly indicate whether the BMC running status is good. The unstable running status of the BMC will also affect the BMC upgrade and cause the BMC upgrade to fail. When the Pb value is greater than the preset value, it is necessary to restart the BMC. Generally, after the BMC is successfully restarted, the BMC running status will return to normal. After the BMC restart is executed, the thread will also be suspended, and the operation is the same as the above-mentioned poor network status; when the Pb value is less than the preset value, the BMC upgrade can be performed.
[0049] Threads whose networks and BMCs meet the requirements are determined, and BMCs corresponding to the threads are upgraded in batches.
[0050] For all BMC information in the network detection thread, if it is detected that a BMC meets the BMC upgrade requirements, the upgrade thread corresponding to the BMC will be awakened, and the upgrade thread will call the BMC upgrade module to perform the BMC upgrade. After the upgrade is successful, the thread will end, and the task scheduling module will start another thread to start the next BMC upgrade operation until all BMC upgrades are completed.
[0051] It should be particularly pointed out that the various steps in the various embodiments of the above-mentioned method for batch upgrading BMC can be cross-linked, replaced, added, and deleted. Therefore, these reasonable permutations, combinations, and transformations of the method for batch upgrading BMC should also fall within the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
[0052] Based on the above purpose, the second aspect of the embodiment of the present invention provides a system for batch upgrading BMC. Figure 2As shown, the system 200 includes the following modules: an acquisition module, configured to acquire the performance parameters of the client machine, and determine the Java virtual machine memory size of the upgrade tool and the number of threads opened by the upgrade tool according to the performance parameters; a setting module, configured to set the configuration file of the upgrade tool according to the Java virtual machine memory size and the number of threads, and add the information of all BMCs that need to be upgraded to the upgrade tool; a thread module, configured to open a preset number of threads according to the configuration file, and detect whether the network and BMC meet the requirements in each thread; and an upgrade module, configured to determine the threads that meet the requirements of the network and BMC, and batch upgrade the BMCs corresponding to the threads.
[0053] In some embodiments, the acquisition module is configured to: obtain a first memory based on the ratio of the CPU main frequency, the number of CPU cores, the CPU utilization, and the CPU utilization during the upgrade tool upgrade, and obtain a second memory based on the client memory size and the memory utilization; take the minimum value of the first memory and the second memory as the Java virtual machine memory size of the upgrade tool; and obtain the number of threads enabled by the upgrade tool based on the ratio coefficient of the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory.
[0054] In some embodiments, the system also includes a traversal module configured to: in response to the network not meeting the requirements, suspend the corresponding thread, put the server and thread information into a queue to be upgraded, and cyclically traverse all devices in the queue to be upgraded to detect whether the network meets the requirements.
[0055] In some embodiments, the thread module is configured to: obtain a first influence coefficient of the network on the BMC upgrade based on network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtain a second influence coefficient of the BMC's own response on the BMC upgrade based on the average response time of IPMI commands, the average response time of the BMC application program interface and the corresponding weight coefficient; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determine that both the network and the BMC meet the requirements.
[0056] Based on the above purpose, the third aspect of an embodiment of the present invention proposes a computer device, including: at least one processor; and a memory, the memory storing computer instructions that can be run on the processor, the instructions being executed by the processor to implement the following steps: S1, obtaining client machine performance parameters, and determining the Java virtual machine memory size of the upgrade tool and the number of threads opened by the upgrade tool according to the performance parameters; S2, setting the configuration file of the upgrade tool according to the Java virtual machine memory size and the number of threads, and adding the information of all BMCs that need to be upgraded to the upgrade tool; S3, opening a preset number of threads according to the configuration file, and detecting whether the network and BMC meet the requirements in each thread; and S4, determining the threads for which the network and BMC meet the requirements, and batch upgrading the BMCs corresponding to the threads.
[0057] In some embodiments, determining the Java virtual machine memory size of the upgrade tool and the number of threads enabled by the upgrade tool based on the performance parameters includes: obtaining a first memory based on the ratio of the CPU main frequency, the number of CPU cores, the CPU utilization, and the CPU utilization during the upgrade of the upgrade tool, and obtaining a second memory based on the client memory size and the memory utilization; taking the minimum value of the first memory and the second memory as the Java virtual machine memory size of the upgrade tool; and obtaining the number of threads enabled by the upgrade tool based on the ratio coefficient of the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory.
[0058] In some implementations, the steps further include: in response to the network not meeting the requirements, suspending the corresponding thread, placing the server and thread information in a queue to be upgraded, and looping through all devices in the queue to be upgraded to detect whether the network meets the requirements.
[0059] In some embodiments, detecting in each thread whether the network and BMC meet the requirements includes: obtaining a first influence coefficient of the network on the BMC upgrade based on network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtaining a second influence coefficient of the BMC's own response on the BMC upgrade based on the average response time of IPMI commands, the average response time of the BMC application program interface and the corresponding weight coefficient; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determining that both the network and the BMC meet the requirements.
[0060] like Figure 3 FIG. 1 is a schematic diagram of the hardware structure of an embodiment of the computer device for batch upgrading BMC provided by the present invention.
[0061] As Figure 3 Taking the device shown as an example, the device includes a processor 301 and a memory 302.
[0062] The processor 301 and the memory 302 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0063] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for batch upgrading BMC in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, implementing the method for batch upgrading BMC.
[0064] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the method for batch upgrading BMC, etc. In addition, the memory 302 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 embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the local module 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.
[0065] Computer instructions 303 corresponding to one or more methods for upgrading BMC in batches are stored in the memory 302 , and when executed by the processor 301 , the method for upgrading BMC in batches in any of the above method embodiments is executed.
[0066] Any embodiment of the computer device that executes the above-mentioned method for batch upgrading BMCs can achieve the same or similar effect as any corresponding embodiment of the above-mentioned method.
[0067] The present invention also provides a computer-readable storage medium, which stores a computer program for executing the method for batch upgrading BMCs when the computer-readable storage medium is executed by a processor.
[0068] like Figure 4 FIG. 1 is a schematic diagram of an embodiment of the computer storage medium for batch upgrading BMC provided by the present invention. Figure 4 Taking the computer storage medium shown as an example, the computer readable storage medium 401 stores a computer program 402 that performs the above method when executed by a processor.
[0069] Finally, it should be noted that a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program of the method for batch upgrading BMC can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the above-mentioned method embodiments corresponding thereto.
[0070] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0071] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0072] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0073] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0074] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for batch upgrading BMC, characterized in that: The steps include: Acquire the performance parameters of the client machine, and determine the memory size of the Java virtual machine of the upgrade tool and the number of threads opened by the upgrade tool according to the performance parameters, obtain the first memory according to the CPU main frequency, the number of CPU cores, the CPU utilization and the ratio of the CPU utilization during the upgrade of the upgrade tool, and obtain the second memory according to the client memory size and the memory utilization; take the minimum value of the first memory and the second memory as the memory size of the Java virtual machine of the upgrade tool; and obtaining the number of threads opened by the upgrade tool according to the ratio coefficient between the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory; The configuration file of the upgrade tool is set according to the memory size and the number of threads of the Java virtual machine, and the information of all BMCs that need to be upgraded is added to the upgrade tool; Open a preset number of threads according to the configuration file, detect in each thread whether the network and BMC meet the requirements, obtain a first influence coefficient of the network on the BMC upgrade according to the network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtain a second influence coefficient of the BMC's own response on the BMC upgrade according to the average response time of the IPMI command, the average response time of the BMC application program interface and the corresponding weight coefficients; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determining that both the network and the BMC meet the requirements; as well as Threads whose networks and BMCs meet the requirements are determined, and BMCs corresponding to the threads are upgraded in batches.
2. The method according to claim 1, characterized in that The method further comprises: In response to the network not meeting the requirements, the corresponding thread is suspended, and the server and thread information are put into a queue to be upgraded, and all devices in the queue to be upgraded are traversed in a loop to detect whether the network meets the requirements.
3. A system for upgrading BMC in batches, characterized in that: include: An acquisition module is configured to acquire performance parameters of a client machine, and determine a Java virtual machine memory size of an upgrade tool and a number of threads opened by the upgrade tool according to the performance parameters, obtain a first memory according to a CPU main frequency, a number of CPU cores, a CPU utilization rate, and a ratio of a CPU utilization rate during an upgrade of the upgrade tool, and obtain a second memory according to a client memory size and a memory utilization rate; and take a minimum value of the first memory and the second memory as a Java virtual machine memory size of the upgrade tool; and obtaining the number of threads opened by the upgrade tool according to the ratio coefficient between the Java virtual machine memory size and the number of threads and the minimum value of the first memory and the second memory; A setting module configured to set a configuration file of an upgrade tool according to the memory size and the number of threads of the Java virtual machine, and add information of all BMCs that need to be upgraded to the upgrade tool; A thread module is configured to start a preset number of threads according to the configuration file, detect whether the network and the BMC meet the requirements in each thread, obtain a first influence coefficient of the network on the BMC upgrade according to the network delay, network jitter, packet loss rate and corresponding weight coefficients, and obtain a second influence coefficient of the BMC's own response on the BMC upgrade according to the average response time of the IPMI command, the average response time of the BMC application program interface and the corresponding weight coefficients; and in response to the first influence coefficient being not greater than a preset value and the second influence coefficient being not greater than a preset value, determining that both the network and the BMC meet the requirements; as well as The upgrade module is configured to determine threads that meet the network and BMC requirements, and batch upgrade the BMCs corresponding to the threads.
4. The system according to claim 3, characterized in that The system further includes a traversal module configured to: In response to the network not meeting the requirements, the corresponding thread is suspended, and the server and thread information are put into a queue to be upgraded, and all devices in the queue to be upgraded are traversed in a loop to detect whether the network meets the requirements.
5. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 2.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Batch upgrading method, system and device for BMC
CN111124463A
BMC firmware upgrading method and system, terminal and storage medium
CN111966380A
