Server maintainability configuration method and apparatus, electronic device and storage medium
By calculating the utilization rate of the central processor and switching the server configuration mode, the problem of RAS repair function affecting performance in the event of a server failure is solved, and the effect of reducing the risk of downtime is achieved.
Patent Information
- Application Number
- PCT/CN2024/100740
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-14
- Filing Date
- 2024-06-21
- Publication Date
- 2025-02-20
AI Technical Summary
In the event of an existing server failure, the RAS repair function may affect the server performance and operation efficiency, increasing the risk of downtime.
By calculating the first and second utilization rates of the central processor, the service migration status is determined, and the server configuration mode is switched according to the status, and the faulty components are isolated to reduce the risk of downtime.
It realizes that when the server is started normally and restarted, it automatically determines the business migration status and switches the configuration mode, reducing the downtime rate of the server.
Smart Images

Figure CN2024100740_20022025_PF_FP_ABST
Abstract
Description
Server maintainability configuration method, device, electronic device, and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on August 14, 2023, with application number 202311019304.8, and application name “Server Maintainability Configuration Method, Device, Electronic Device and Storage Medium”, all contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of computer systems and storage technologies, and in particular to a server maintainability configuration method, a server maintainability configuration device, an electronic device, and a non-volatile readable storage medium. Background Art
[0004] Server failures can be divided into two categories: downtime failures and non-downtime failures. Downtime failures are mainly manifested in two parts: downtime during the startup process and downtime during operation. The server has a certain repair function for faulty components. Even if the server may have a hardware failure, necessary measures can be used to enable it to operate normally. This process is the server's RAS (Reliability Availability Serviceability) function. In some scenarios, RAS repair configures a parameter by default to continue running until the operation and maintenance personnel troubleshoot the problem, which will affect the performance and operating efficiency of the server and may further cause server downtime.
[0005] Summary of the Invention
[0006] In view of the above problems, some embodiments of the present application are proposed to provide a server maintainability configuration method, a server maintainability configuration device, an electronic device and a non-volatile readable storage medium that overcome the above problems or at least partially solve the above problems.
[0007] In order to solve the above problems, in a first aspect of the present application, some embodiments of the present application disclose a server maintainability configuration method, including:
[0008] In response to the normal startup and operation of the server, calculating a first utilization rate of the central processing unit;
[0009] In response to a server shutdown and restart, determining a faulty component;
[0010] calculating a second utilization rate of the central processing unit;
[0011] determining a service migration status based on the first utilization rate and the second utilization rate;
[0012] Switch the server configuration mode according to the business migration status;
[0013] In server configuration mode, isolate the faulty component.
[0014] In some embodiments of the present application, the step of calculating the first utilization rate of the central processing unit includes:
[0015] Read the power consumption data and unit heat data of the CPU;
[0016] A first utilization rate is determined based on the power consumption data and the unit heat data.
[0017] In some embodiments of the present application, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes:
[0018] Calculating a first ratio of the power consumption data to the unit heat data;
[0019] The first ratio is determined as a first utilization rate.
[0020] In some embodiments of the present application, in response to a server shutdown and restart, the step of determining a faulty component includes:
[0021] Responding to a server crash and restart, reading error information;
[0022] Determine whether the component corresponding to the error message is a faulty component.
[0023] In some embodiments of the present application, before the step of reading the error information, in response to the server crashing and restarting, the step of determining the faulty component further includes:
[0024] Wait for the preset time and enter the server's basic input and output system.
[0025] In some embodiments of the present application, the step of calculating the second utilization rate of the central processing unit includes:
[0026] Read the power consumption data and unit heat data of the CPU;
[0027] A second utilization rate is determined based on the power consumption data and the unit heat data.
[0028] In some embodiments of the present application, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes:
[0029] calculating a second ratio of the power consumption data to the unit heat data;
[0030] A second ratio is determined as a second utilization rate.
[0031] In some embodiments of the present application, the step of determining the service migration status based on the first utilization rate and the second utilization rate includes:
[0032] Calculating a service fluctuation value based on the first utilization rate and the second utilization rate;
[0033] The service migration status is determined based on the service fluctuation value.
[0034] In some embodiments of the present application, the step of calculating the service fluctuation value based on the first utilization rate and the second utilization rate includes:
[0035] calculating a difference between the first utilization rate and the second utilization rate;
[0036] calculating a third ratio of the difference to the first utilization rate;
[0037] The third ratio is determined to be a business fluctuation value.
[0038] In some embodiments of the present application, the step of determining the service migration status based on the service fluctuation value includes:
[0039] Determine whether the business fluctuation value is less than the preset business fluctuation threshold;
[0040] In response to the service fluctuation value being less than a preset service fluctuation threshold, determining that the service migration state is service not migrated;
[0041] In response to the service fluctuation value being not less than a preset service fluctuation threshold, determining the service migration state as service migrated.
[0042] In some embodiments of the present application, the server configuration mode includes a reliability mode and an operability mode, the reliability of the reliability mode is greater than the reliability of the operability mode, and the efficiency of the operability mode is greater than the efficiency of the reliability mode. The step of switching the server configuration mode according to the service migration state includes:
[0043] In response to the service migration status being that the service has not been migrated, switching the server configuration mode to a reliability mode;
[0044] In response to the service migration status being that the service has been migrated, the server configuration mode is switched to an operability mode.
[0045] In some embodiments of the present application, in response to the service migration status being service not migrated, the step of switching the server configuration mode to the reliability mode includes:
[0046] In response to the service migration status being service not migrated, setting the mode flag of the server to a reliability flag corresponding to the reliability mode, and controlling the server to restart;
[0047] Configures the server's BIOS options to switch to reliability mode during server restart based on the reliability flag.
[0048] In some embodiments of the present application, in response to the service migration status being that the service has been migrated, the step of switching the server configuration mode to the operability mode includes:
[0049] In response to the service migration status being that the service has been migrated, setting a mode flag of the server to an operability flag corresponding to the operability mode, and controlling the server to restart;
[0050] During server restart, configure the server's BIOS options to switch to operational mode based on the operational flag.
[0051] In some embodiments of the present application, the server configuration mode also includes a balanced mode and an automatic mode. The operating efficiency of the balanced mode is between the reliability mode and the operability mode, and the operating reliability of the balanced mode is between the reliability mode and the operability mode; the automatic mode multiplexes one of the operability mode, the reliability mode and the balanced mode.
[0052] In some embodiments of the present application, the method further comprises:
[0053] In response to the normal startup operation of the server, a mode selection page is displayed.
[0054] In some embodiments of the present application, the method further comprises:
[0055] A selection operation on a mode selection page is received, and one of the reliability mode, the operability mode, the balance mode, and the automatic mode is selected as the current configuration mode.
[0056] In some embodiments of the present application, the preset service fluctuation threshold is 30%.
[0057] In a first aspect of the present application, an embodiment of the present application discloses a server maintainability configuration device, comprising:
[0058] A first calculation module is configured to calculate a first utilization rate of the central processing unit in response to normal startup and operation of the server;
[0059] A restart module, configured to respond to a server shutdown and restart to determine a faulty component;
[0060] a second calculation module, configured to calculate a second utilization rate of the central processing unit;
[0061] A service migration judgment module, configured to determine a service migration status based on the first utilization rate and the second utilization rate;
[0062] The switching module is used to switch the server configuration mode according to the business migration status;
[0063] The isolation module is used to isolate faulty components in the server configuration mode.
[0064] In the third aspect of the present application, an embodiment of the present application discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the above server maintainability configuration method are implemented.
[0065] In a fourth aspect of the present application, an embodiment of the present application discloses a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above server maintainability configuration method are implemented.
[0066] The embodiments of the present application include the following advantages:
[0067] The embodiment of the present application calculates a first utilization rate of the central processing unit (CPU) in response to normal server startup and operation; identifies a faulty component in response to a server shutdown and restart; calculates a second utilization rate of the CPU; determines a service migration status based on the first and second utilization rates; switches the server configuration mode based on the service migration status; and isolates the faulty component within the server configuration mode. By determining whether a customer's service has been migrated based on the CPU utilization rate during normal startup and restart, different server configuration modes are activated based on whether the service has been migrated, allowing the server to automatically switch configuration models and reduce server downtime. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] FIG1 is a flowchart of an embodiment of a server maintainability configuration method of the present application;
[0069] FIG2 is a flowchart of another embodiment of a server maintainability configuration method of the present application;
[0070] FIG3 is a schematic diagram of a framework of an example of a server maintainability configuration method of the present application;
[0071] FIG4 is a structural block diagram of an embodiment of a server maintainability configuration device of the present application;
[0072] FIG5 is a structural block diagram of an electronic device provided in an embodiment of the present application;
[0073] FIG6 is a structural block diagram of a storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0075] 1 , a flowchart of an embodiment of a server maintainability configuration method of the present application is shown. The server maintainability configuration method may specifically include the following steps:
[0076] Step 101, in response to the normal startup and operation of the server, calculating a first utilization rate of the central processing unit;
[0077] When the server is started and running normally and is processing business, the CPU utilization rate of the central processing unit at this time is calculated, which is the first utilization rate.
[0078] Step 102, in response to the server crash and restart, determine the faulty component;
[0079] When a server crashes and restarts due to a fatal error in a PCIE (peripheral component interconnect express) device, a UCE (unit cell error) in memory, or an IERR (internal error) in the CPU (central processing unit), the server can identify the faulty component by reading logs.
[0080] Step 103, calculating a second utilization rate of the central processing unit;
[0081] When the system is restarted after a shutdown and the business is processed again, the central processing unit utilization rate of the central processing unit at this time can be calculated, which is the second utilization rate.
[0082] Step 104: determining a service migration status based on the first utilization rate and the second utilization rate;
[0083] According to the relationship between the first utilization rate and the second utilization rate, it is determined whether the service is migrated to another server by the user during the restart period of the service, and the service migration status is determined.
[0084] Step 105: Switch the server configuration mode according to the service migration status;
[0085] Based on the business migration status, determine the server configuration mode that the server needs to switch to, and switch the server to the server configuration mode to avoid the next downtime.
[0086] Step 106: In the server configuration mode, isolate the faulty component.
[0087] The server runs in the switched server configuration mode, isolating the faulty component until the operation and maintenance personnel handle it. During this period, the server can continue to process business.
[0088] The embodiment of the present application calculates a first utilization rate of the central processing unit (CPU) in response to normal server startup and operation; identifies a faulty component in response to a server shutdown and restart; calculates a second utilization rate of the CPU; determines a service migration status based on the first and second utilization rates; switches the server configuration mode based on the service migration status; and isolates the faulty component within the server configuration mode. By determining whether a customer's service has been migrated based on the CPU utilization rate during normal startup and restart, different server configuration modes are activated based on whether the service has been migrated, allowing the server to automatically switch configuration models and reduce server downtime.
[0089] 2 , there is shown a flowchart of another embodiment of a server maintainability configuration method of the present application. The server maintainability configuration method may specifically include the following steps:
[0090] Step 201: In response to the normal startup of the server, a mode selection page is displayed; the server is configured with a reliability mode, an operability mode, a balance mode, and an automatic mode;
[0091] In an embodiment of the present application, a server can be configured with reliability mode, operability mode, balanced mode, and automatic mode. The reliability of the reliability mode is greater than the reliability of the operability mode, and the efficiency of the operability mode is greater than the efficiency of the reliability mode. The efficiency of the balanced mode is between the reliability mode and the operability mode, and the reliability of the balanced mode is between the reliability mode and the operability mode. The automatic mode reuses one of the operability mode, the reliability mode, and the balanced mode. The reliability mode can filter out components with physical hardware failures without performing software repairs. Once a hardware failure is detected, the system is allowed to shut down and go offline. The operability mode can use various means to repair or predict possible CEs (Correctable Errors) to repair them in advance, extending the server's uptime. At the same time, it reports the faulty components to the BMC (Baseboard Management Controller), prompting the user to replace the faulty components as soon as possible. In the balanced mode, components with physical hardware failures can be filtered out and the available repair strategies for the faulty components can be evaluated. If the repair strategy has no or minimal impact on system performance, repair is selected. If the repair strategy used has a significant impact on system performance, shutdown is selected. The processing of reliability mode, operability mode, and balance mode based on RAS technology can be pre-configured by relevant personnel based on actual conditions, and the embodiments of this application do not make specific limitations on this.
[0092] Reliability mode, operability mode, and balanced mode all incorporate various RAS technologies. Within RAS technology, reliability means the system must be as reliable as possible, preventing unexpected crashes, reboots, or even physical damage. This means a reliable system must be able to self-repair minor errors and isolate any errors that cannot be self-repaired to ensure the normal operation of the rest of the system. Availability means the system must be able to operate for as long as possible without downtime. Even minor system issues will not affect the normal operation of the entire system. In some cases, hot plugging can even be performed to replace problematic components, strictly ensuring that system downtime is within a certain range. Serviceability refers to the system's ability to provide convenient diagnostic functions, such as system logging and dynamic detection, to facilitate administrators' system diagnosis and maintenance operations, thereby facilitating the early detection and repair of errors. As a whole, RAS ensures the long-term reliable operation of the entire system without downtime and possesses sufficiently robust fault tolerance mechanisms.
[0093] The RAS technologies included in the reliability mode include but are not limited to disabling the DDDC (Double Device Data Correction) mechanism, disabling memory Patrol Scrubbing (memory name), disabling memory Post Package Repair (memory name), disabling fault memory isolation startup technology, disabling error containment default mode, disabling fault core isolation startup, enabling Viral Mode, enabling Error Log Cloaking, disabling Enhanced Downstream Port Containment (EDP), disabling PCIe data containment mode, and disabling PCIe link retraining and recovery.
[0094] The RAS technologies included in the operability mode include but are not limited to enabling the ADDDC (Adaptive Double DRAM Device Correction) mechanism, enabling the DDDC mechanism, enabling memory Patrol Scrubbing, enabling memory Post Package Repair, enabling fault memory isolation startup technology threshold setting: 3000, funnel setting: 1 / min (minute) to shield OS reporting / enabling memory ADDDC repair technology, disabling Viral Mode, disabling Error Log Cloaking, enabling EDPC (Enhanced Downstream Port Containment), enabling PCle data inclusion mode, and enabling PCle link retraining and recovery.
[0095] The RAS technologies included in the balanced mode include but are not limited to disabling the ADDDC mechanism / enabling the PCLS (Predictive Cache Leveling System) mechanism, disabling the DDDC mechanism, enabling memory Patrol Scrubbing, enabling memory Post Package Repair, enabling fault memory isolation startup technology, enabling Viral Mode, disabling Error Log Cloaking, disabling EDPC (Enhanced Downstream Port Containment), enabling PCle data inclusion mode, and enabling PCle link retraining and recovery.
[0096] When the server is started and running normally, the display mode selection page can be started, and the user can select the configuration mode for the server configuration on the mode selection page.
[0097] Step 202: Receive a selection operation on a mode selection page and select one of the reliability mode, operability mode, balance mode, and automatic mode as the current configuration mode;
[0098] According to the user's selection operation on the mode selection page, the configuration mode selected by the user is determined, and one of the configuration modes among the reliability mode, the operability mode, the balance mode and the automatic mode is determined as the current configuration mode to configure the server.
[0099] Step 203, calculating a first utilization rate of the central processing unit;
[0100] After the server has been running for a certain period of time, such as 10 minutes, the utilization rate of the central processing unit at that time, ie, the first utilization rate, can be calculated.
[0101] In some optional embodiments of the present application, the step of calculating the first utilization rate of the central processing unit includes: reading power consumption data and unit heat data of the central processing unit; and determining the first utilization rate based on the power consumption data and unit heat data.
[0102] The server's BMC can read the power consumption data and the unit thermal data (TDP) of the CPU. Specifically, the power consumption data and unit thermal data of the CPU's south bridge integrated circuit can be used as a reference. The first utilization rate is then determined based on the relationship between the power consumption data and the unit thermal data. The unit thermal data is the TDP thermal power consumption, an indicator of the processor's heat release.
[0103] Specifically, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes: calculating a first ratio of the power consumption data to the unit heat data; and determining the first ratio as the first utilization rate.
[0104] In practical applications, the ratio of power consumption data to unit heat data, that is, the ratio of power consumption data / unit heat data, can be calculated as a first ratio; the first ratio can be used as the first utilization rate.
[0105] Step 204, in response to the server crash and restart, determine the faulty component;
[0106] During the operation of the server, it may crash and restart due to various errors. During the crash and restart of the server, the faulty component can be identified from the server.
[0107] In some optional embodiments of the present application, in response to a server crash and restart, the step of determining a faulty component includes: in response to the server crash and restart, reading error information; and determining that a component corresponding to the error information is a faulty component.
[0108] In response to the server's shutdown and restart, error information may be read from operating data such as logs; based on the error information, a corresponding failed component may be determined, and the component may be identified as a failed component.
[0109] In some optional embodiments of the present application, before the step of reading the error information, in response to the server crashing and restarting, the step of determining the faulty component further includes: waiting for a preset time period and entering the basic input and output system of the server.
[0110] When the error message indicates a UCE or IERR fault, a preset time period may be waited to access the server's basic input / output system (BIOS) to determine if the component corresponding to the error message is a faulty component. The preset time period can be determined by those skilled in the art and is not limited in this embodiment. For example, in one example of this application, the preset time period is 10 minutes.
[0111] Step 205, calculating a second utilization rate of the central processing unit;
[0112] After the server crashes and restarts, the second utilization rate of the central processing unit can also be calculated to determine the business processing status after the restart.
[0113] In some optional embodiments of the present application, the step of calculating the second utilization rate of the central processing unit includes: reading power consumption data and unit heat data of the central processing unit; and determining the second utilization rate based on the power consumption data and unit heat data.
[0114] Similar to the first utilization rate, the BMC can read the power consumption data and the unit heat data of the CPU after the CPU is shut down and restarted, and then determine the second utilization rate based on the size relationship between the power consumption data and the unit heat data.
[0115] Specifically, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes: calculating a second ratio of the power consumption data to the unit heat data; and determining the second ratio as the second utilization rate.
[0116] In practical applications, the ratio of power consumption data to unit heat data, that is, the ratio of power consumption data / unit heat data, can be calculated as the second ratio; the second ratio can be used as the second utilization rate.
[0117] Step 206: Determine the service migration status based on the first utilization rate and the second utilization rate;
[0118] Based on the relationship between the first utilization rate and the second utilization rate, it can be determined whether business migration occurs on the server, and the business can be migrated to other servers.
[0119] In some optional embodiments of the present application, the step of determining the service migration status based on the first utilization and the second utilization includes: calculating the service fluctuation value based on the first utilization and the second utilization; and determining the service migration status based on the service fluctuation value.
[0120] In the embodiment of the present application, the first utilization rate and the second utilization rate can be calculated, and the fluctuation of the service before and after the shutdown and restart can be determined based on the first utilization rate and the second utilization rate, and the service fluctuation value can be calculated. The specific service migration status can be determined based on the size of the service fluctuation value.
[0121] Specifically, based on the first utilization rate and the second utilization rate, the step of calculating the business fluctuation value includes: calculating the difference between the first utilization rate and the second utilization rate; calculating a third ratio of the difference to the first utilization rate; and determining the third ratio as the business fluctuation value.
[0122] In an embodiment of the present application, the difference between the first utilization rate and the second utilization rate can be calculated to unify that both migration in and migration out are business migrations; the difference between the first utilization rate and the second utilization rate can be used as an absolute value for subsequent calculations. That is, the absolute value of the difference between the first utilization rate and the second utilization rate can be used, or the absolute value of the difference between the second utilization rate and the first utilization rate can be used for subsequent calculations. The ratio of the difference to the first utilization rate is then calculated, i.e., the third ratio. This ratio can be used to determine the change in the business that migrated in or out relative to the restart before the shutdown. The third ratio is used as the business fluctuation value.
[0123] Specifically, the steps of determining the business migration status based on the business fluctuation value include: judging whether the business fluctuation value is less than the preset business fluctuation threshold; in response to the business fluctuation value being less than the preset business fluctuation threshold, determining that the business migration status is that the business has not migrated; in response to the business fluctuation value being not less than the preset business fluctuation threshold, determining that the business migration status is that the business has migrated.
[0124] In practical applications, the specific service migration status can be determined by determining whether the service fluctuation value is less than a preset service fluctuation threshold. The preset service fluctuation threshold can be determined based on actual conditions and is not limited in the embodiments of the present application. In some preferred examples of the present application, the preset service fluctuation threshold can be 30%.
[0125] When the business fluctuation value is less than the preset business fluctuation threshold, in response to the business fluctuation value being less than the preset business fluctuation threshold, that is, the business processing volume in the server is stable before and after the restart; it can be determined that the business migration status is business not migrated.
[0126] When the business fluctuation value is not less than the preset business fluctuation threshold, in response to the business fluctuation value being not less than the preset business fluctuation threshold, that is, the business processing volume in the server changes significantly before and after the restart; it can be determined that the business migration status is not migrated.
[0127] Step 207: Switch the server configuration mode according to the service migration status;
[0128] According to different service migration states, the current configuration mode of the server can be switched to the server configuration mode corresponding to the service migration state.
[0129] In some optional embodiments of the present application, the step of switching the server configuration mode according to the business migration status includes: in response to the business migration status being that the business has not migrated, switching the server configuration mode to the reliability mode; in response to the business migration status being that the business has migrated, switching the server configuration mode to the operability mode.
[0130] In an embodiment of the present application, when the service migration status is service not migrated, in response to the service migration status being service not migrated, the server configuration mode is switched to reliability mode, and the server is configured and operated based on the reliability mode. When the service migration status is service migrated, in response to the service migration status being service migrated, the server configuration mode is switched to operability mode, and the server is configured and operated based on the operability mode.
[0131] Specifically, in response to the business migration status being that the business has not migrated, the step of switching the server configuration mode to the reliability mode includes: in response to the business migration status being that the business has not migrated, setting the server's mode mark to the reliability mark corresponding to the reliability mode, and controlling the server to restart; during the server restart, based on the reliability mark, configuring the server's basic input and output system options to switch to the reliability mode.
[0132] In actual applications, in response to the service migration status being "service not migrated," the server's mode flag can be set to a reliability flag corresponding to the reliability mode, the reliability flag can be stored, and then the server can be restarted to reconfigure parameters. During the server restart, based on the reliability flag, all parts of the server's basic input / output system options associated with the reliability mode are reconfigured to parameters corresponding to the reliability mode.
[0133] Specifically, in response to the business migration status being that the business has been migrated, the step of switching the server configuration mode to the operability mode includes: in response to the business migration status being that the business has been migrated, setting the server's mode mark to the operability mark corresponding to the operability mode, and controlling the server to restart; during the server restart, based on the operability mark, configuring the server's basic input and output system options to switch to the operability mode.
[0134] In actual applications, in response to the service migration status being "service migrated," the server's mode flag can be set to an operability flag corresponding to the operability mode, the operability flag can be stored, and then the server can be controlled to restart for parameter reconfiguration. During the server restart, based on the operability flag, all portions of the server's basic input / output system options associated with the operability mode are reconfigured to parameters corresponding to the operability mode.
[0135] Among them, the operability mark and the reliability mark can be set in the form of marks according to actual conditions, and the embodiments of this application do not make specific limitations.
[0136] Step 208: In the server configuration mode, isolate the faulty component.
[0137] After switching to the new server configuration mode, run in the server configuration mode to isolate the faulty component to confirm the normal operation of the server.
[0138] The embodiment of the present application displays a mode selection page in response to the normal startup and operation of the server; the server is configured with a reliability mode, an operability mode, a balance mode, and an automatic mode; receives a selection operation on the mode selection page and selects one of the reliability mode, the operability mode, the balance mode, and the automatic mode as the current configuration mode; calculates a first utilization of the central processing unit; determines a faulty component in response to a server shutdown and restart; calculates a second utilization of the central processing unit; determines a business migration status based on the first utilization and the second utilization; switches the server configuration mode according to the business migration status; and isolates the faulty component in the server configuration mode. By determining whether the customer's business has been migrated based on the utilization of the central processing unit during normal startup and restart, different server configuration modes are activated according to whether the business has been migrated, so that the server can automatically switch configuration models and reduce the server downtime rate.
[0139] In order to enable those skilled in the art to better understand the embodiments of the present application, the embodiments of the present application are described below using an example:
[0140] 1) First, add the RAS Mode option under BIOS setup in the BIOS (Basic Input and Output System) interface. The options are Sensitive mode, recovery mode, balanced mode, and auto mode.
[0141] 2) Select one of the modes according to the user's selection operation, such as selecting the automatic mode.
[0142] 3 , a schematic diagram of an example of a server maintainability configuration method of the present application is shown. The server maintainability configuration method may specifically include the following steps:
[0143] 1. During the normal operation of the server and the customer service phase, the BMC reads the CPU utilization through PCIE and records the utilization as A.
[0144] 2. The first time a customer fails and the machine crashes, the server will automatically restart after the crash (the restart mechanism may be fatal of the PCIE device, UCE of the memory, or IERR of the CPU, etc.).
[0145] 3. If the BMC restart detection is due to a UCE failure or IERR failure, read the CPU utilization B again 10 minutes after entering the system.
[0146] 4. The formula for determining whether to switch to a certain mode is: Compare the values and check if |AB|÷A<0.3. A 30% fluctuation in customer service operations is considered normal. If the service is migrated, CPU utilization will be very low, far below the 30% fluctuation.
[0147] 5. If the numerical comparison |AB|÷A<0.3 is true, it indicates that the customer service has not been migrated from the faulty server. The RAS mode flag is set to recovery mode. The BMC then proactively restarts the server.
[0148] 6. If the numerical comparison result |AB|÷A<0.3 is false, indicating that the customer service has been migrated from the faulty server, the RAS mode flag is set to Sensitive mode. The BMC then proactively restarts the server.
[0149] 7. During the server restart phase, the BIOS reads the RAS mode flag saved by the BMC (baseboard controller), and then configures the corresponding BIOS parameters according to different RAS modes.
[0150] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0151] 4 , a structural block diagram of an embodiment of a server maintainability configuration device of the present application is shown. The server maintainability configuration device may specifically include the following modules:
[0152] A first calculation module 401 is configured to calculate a first utilization rate of a central processing unit in response to a normal startup and operation of the server;
[0153] Restart module 402, for determining a faulty component in response to a server shutdown and restart;
[0154] The second calculation module 403 is used to calculate the second utilization rate of the central processing unit;
[0155] A service migration determination module 404 is configured to determine a service migration status based on the first utilization rate and the second utilization rate;
[0156] Switching module 405, used to switch the server configuration mode according to the service migration status;
[0157] The isolation module 406 is used to isolate faulty components in the server configuration mode.
[0158] In some optional embodiments of the present application, the first calculation module 401 includes:
[0159] The first reading submodule is used to read the power consumption data and unit heat data of the central processing unit;
[0160] The first utilization rate determination submodule is configured to determine a first utilization rate according to the power consumption data and the unit heat data.
[0161] In some optional embodiments of the present application, the first utilization determination submodule includes:
[0162] a first calculation unit, configured to calculate a first ratio of the power consumption data to the unit heat data;
[0163] The first utilization rate determining unit is configured to determine the first ratio as the first utilization rate.
[0164] In some optional embodiments of the present application, the restart module 402 includes:
[0165] The restart submodule is used to respond to server downtime and restart, and read error information;
[0166] The fault determination submodule is used to determine that the component corresponding to the error information is a faulty component.
[0167] In some optional embodiments of the present application, the restart module 402 further includes:
[0168] The waiting submodule is used to wait for a preset time and enter the basic input and output system of the server.
[0169] In some optional embodiments of the present application, the second calculation module 403 includes:
[0170] The second reading submodule is used to read the power consumption data and unit heat data of the central processing unit;
[0171] The second utilization rate determination submodule is configured to determine the second utilization rate according to the power consumption data and the unit heat data.
[0172] In some optional embodiments of the present application, the second utilization determination submodule includes:
[0173] a second calculation unit, configured to calculate a second ratio of the power consumption data to the unit heat data;
[0174] The second utilization rate determining unit is configured to determine the second ratio as the second utilization rate.
[0175] In some optional embodiments of the present application, the service migration determination module 404 includes:
[0176] A business fluctuation value determination submodule, configured to calculate a business fluctuation value based on the first utilization rate and the second utilization rate;
[0177] The service migration status determination submodule is used to determine the service migration status based on the service fluctuation value.
[0178] In some optional embodiments of the present application, the service fluctuation value determination submodule includes:
[0179] a difference calculation unit, configured to calculate a difference between the first utilization rate and the second utilization rate;
[0180] a third ratio calculation unit, configured to calculate a third ratio of the difference to the first utilization rate;
[0181] The business fluctuation value is determined to correspond to the third ratio, which is used to determine the business fluctuation value.
[0182] In some optional embodiments of the present application, the service migration status determination submodule includes:
[0183] A judgment unit, configured to judge whether the service fluctuation value is less than a preset service fluctuation threshold;
[0184] a first migration determination unit, configured to determine, in response to a service fluctuation value being less than a preset service fluctuation threshold, that the service migration state is service not migrated;
[0185] The second migration determining unit is configured to determine that the service migration state is migrated in response to the service fluctuation value being not less than a preset service fluctuation threshold.
[0186] In some optional embodiments of the present application, the server configuration mode includes a reliability mode and an operability mode, the operation reliability of the reliability mode is greater than the operation reliability of the operability mode, and the operation efficiency of the operability mode is greater than the operation efficiency of the reliability mode; the switching module 405 includes:
[0187] A first switching submodule is configured to switch the server configuration mode to a reliability mode in response to the service migration status being that the service has not been migrated;
[0188] The second switching submodule is configured to switch the server configuration mode to the operability mode in response to the service migration status being that the service has been migrated.
[0189] In some optional embodiments of the present application, the first switching submodule includes:
[0190] A first marking unit is configured to, in response to the service migration status being that the service has not been migrated, set a mode mark of the server to a reliability mark corresponding to the reliability mode, and control the server to restart;
[0191] The first configuration unit is configured to configure a basic input / output system option of the server to switch to a reliability mode based on the reliability mark during the restart of the server.
[0192] In some optional embodiments of the present application, the second switching submodule includes:
[0193] A second marking unit is configured to, in response to the service migration status being that the service has been migrated, set a mode mark of the server to an operability mark corresponding to the operability mode, and control the server to restart;
[0194] The second configuration unit is configured to configure a basic input and output system option of the server based on the runnability mark during the restart of the server to switch to the runnability mode.
[0195] In some optional embodiments of the present application, the server configuration mode also includes a balanced mode and an automatic mode. The operating efficiency of the balanced mode is between the reliability mode and the operability mode, and the operating reliability of the balanced mode is between the reliability mode and the operability mode; the automatic mode multiplexes one of the operability mode, the reliability mode and the balanced mode.
[0196] In some optional embodiments of the present application, the device further includes:
[0197] The display module is configured to display a mode selection page in response to the normal startup and operation of the server.
[0198] In some optional embodiments of the present application, the device further includes:
[0199] The selection module is used to receive a selection operation on the mode selection page and select one of the reliability mode, the operability mode, the balance mode and the automatic mode as the current configuration mode.
[0200] In some optional embodiments of the present application, the preset service fluctuation threshold is 30%.
[0201] The embodiment of the present application calculates a first utilization rate of the central processing unit (CPU) in response to normal server startup and operation; identifies a faulty component in response to a server shutdown and restart; calculates a second utilization rate of the CPU; determines a service migration status based on the first and second utilization rates; switches the server configuration mode based on the service migration status; and isolates the faulty component within the server configuration mode. By determining whether a customer's service has been migrated based on the CPU utilization rate during normal startup and restart, different server configuration modes are activated based on whether the service has been migrated, allowing the server to automatically switch configuration models and reduce server downtime.
[0202] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0203] 5 , an embodiment of the present application further provides an electronic device, including:
[0204] Processor 501 and storage medium 502, storage medium 502 stores a computer program executable by processor 501, when the electronic device is running, processor 501 executes the computer program to perform the server maintainability configuration method as any one of the embodiments of the present application. The server maintainability configuration method includes:
[0205] In response to the normal startup and operation of the server, calculating a first utilization rate of the central processing unit;
[0206] In response to a server shutdown and restart, determining a faulty component;
[0207] calculating a second utilization rate of the central processing unit;
[0208] determining a service migration status based on the first utilization rate and the second utilization rate;
[0209] Switch the server configuration mode according to the business migration status;
[0210] In server configuration mode, isolate the faulty component.
[0211] In some embodiments of the present application, the step of calculating the first utilization rate of the central processing unit includes:
[0212] Read the power consumption data and unit heat data of the CPU;
[0213] A first utilization rate is determined based on the power consumption data and the unit heat data.
[0214] In some embodiments of the present application, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes:
[0215] Calculating a first ratio of the power consumption data to the unit heat data;
[0216] The first ratio is determined as a first utilization rate.
[0217] In some embodiments of the present application, in response to a server shutdown and restart, the step of determining a faulty component includes:
[0218] Responding to a server crash and restart, reading error information;
[0219] Determine whether the component corresponding to the error message is a faulty component.
[0220] In some embodiments of the present application, before the step of reading the error information, in response to the server crashing and restarting, the step of determining the faulty component further includes:
[0221] Wait for the preset time and enter the server's basic input and output system.
[0222] In some embodiments of the present application, the step of calculating the second utilization rate of the central processing unit includes:
[0223] Read the power consumption data and unit heat data of the CPU;
[0224] A second utilization rate is determined based on the power consumption data and the unit heat data.
[0225] In some embodiments of the present application, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes:
[0226] calculating a second ratio of the power consumption data to the unit heat data;
[0227] A second ratio is determined as a second utilization rate.
[0228] In some embodiments of the present application, the step of determining the service migration status based on the first utilization rate and the second utilization rate includes:
[0229] Calculating a service fluctuation value based on the first utilization rate and the second utilization rate;
[0230] The service migration status is determined based on the service fluctuation value.
[0231] In some embodiments of the present application, the step of calculating the service fluctuation value based on the first utilization rate and the second utilization rate includes:
[0232] calculating a difference between the first utilization rate and the second utilization rate;
[0233] calculating a third ratio of the difference to the first utilization rate;
[0234] The third ratio is determined to be a business fluctuation value.
[0235] In some embodiments of the present application, the step of determining the service migration status based on the service fluctuation value includes:
[0236] Determine whether the business fluctuation value is less than the preset business fluctuation threshold;
[0237] In response to the service fluctuation value being less than a preset service fluctuation threshold, determining that the service migration state is service not migrated;
[0238] In response to the service fluctuation value being not less than a preset service fluctuation threshold, determining the service migration state as service migrated.
[0239] In some embodiments of the present application, the server configuration mode includes a reliability mode and an operability mode, the reliability of the reliability mode is greater than the reliability of the operability mode, and the efficiency of the operability mode is greater than the efficiency of the reliability mode. The step of switching the server configuration mode according to the service migration state includes:
[0240] In response to the service migration status being that the service has not been migrated, switching the server configuration mode to a reliability mode;
[0241] In response to the service migration status being that the service has been migrated, the server configuration mode is switched to an operability mode.
[0242] In some embodiments of the present application, in response to the service migration status being service not migrated, the step of switching the server configuration mode to the reliability mode includes:
[0243] In response to the service migration status being service not migrated, setting the mode flag of the server to a reliability flag corresponding to the reliability mode, and controlling the server to restart;
[0244] Configures the server's BIOS options to switch to reliability mode during server restart based on the reliability flag.
[0245] In some embodiments of the present application, in response to the service migration status being that the service has been migrated, the step of switching the server configuration mode to the operability mode includes:
[0246] In response to the service migration status being that the service has been migrated, setting a mode flag of the server to an operability flag corresponding to the operability mode, and controlling the server to restart;
[0247] During server restart, configure the server's BIOS options to switch to operational mode based on the operational flag.
[0248] In some embodiments of the present application, the server configuration mode also includes a balanced mode and an automatic mode. The operating efficiency of the balanced mode is between the reliability mode and the operability mode, and the operating reliability of the balanced mode is between the reliability mode and the operability mode; the automatic mode multiplexes one of the operability mode, the reliability mode and the balanced mode.
[0249] In some embodiments of the present application, the method further comprises:
[0250] In response to the normal startup operation of the server, a mode selection page is displayed.
[0251] In some embodiments of the present application, the method further comprises:
[0252] A selection operation on a mode selection page is received, and one of the reliability mode, the operability mode, the balance mode, and the automatic mode is selected as the current configuration mode.
[0253] In some embodiments of the present application, the preset service fluctuation threshold is 30%.
[0254] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0255] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0256] The embodiment of the present application calculates a first utilization rate of the central processing unit (CPU) in response to normal server startup and operation; identifies a faulty component in response to a server shutdown and restart; calculates a second utilization rate of the CPU; determines a service migration status based on the first and second utilization rates; switches the server configuration mode based on the service migration status; and isolates the faulty component within the server configuration mode. By determining whether a customer's service has been migrated based on the CPU utilization rate during normal startup and restart, different server configuration modes are activated based on whether the service has been migrated, allowing the server to automatically switch configuration models and reduce server downtime.
[0257] 6 , an embodiment of the present application further provides a non-volatile readable storage medium 601, on which a computer program is stored. When the computer program is executed by a processor, the server maintainability configuration method according to any one of the embodiments of the present application is executed. The server maintainability configuration method includes:
[0258] In response to the normal startup and operation of the server, calculating a first utilization rate of the central processing unit;
[0259] In response to a server shutdown and restart, determining a faulty component;
[0260] calculating a second utilization rate of the central processing unit;
[0261] determining a service migration status based on the first utilization rate and the second utilization rate;
[0262] Switch the server configuration mode according to the business migration status;
[0263] In server configuration mode, isolate the faulty component.
[0264] In some embodiments of the present application, the step of calculating the first utilization rate of the central processing unit includes:
[0265] Read the power consumption data and unit heat data of the CPU;
[0266] A first utilization rate is determined based on the power consumption data and the unit heat data.
[0267] In some embodiments of the present application, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes:
[0268] Calculating a first ratio of the power consumption data to the unit heat data;
[0269] The first ratio is determined as a first utilization rate.
[0270] In some embodiments of the present application, in response to a server shutdown and restart, the step of determining a faulty component includes:
[0271] Responding to a server crash and restart, reading error information;
[0272] Determine whether the component corresponding to the error message is a faulty component.
[0273] In some embodiments of the present application, before the step of reading the error information, in response to the server crashing and restarting, the step of determining the faulty component further includes:
[0274] Wait for the preset time and enter the server's basic input and output system.
[0275] In some embodiments of the present application, the step of calculating the second utilization rate of the central processing unit includes:
[0276] Read the power consumption data and unit heat data of the CPU;
[0277] A second utilization rate is determined based on the power consumption data and the unit heat data.
[0278] In some embodiments of the present application, the step of determining the first utilization rate based on the power consumption data and the unit heat data includes:
[0279] calculating a second ratio of the power consumption data to the unit heat data;
[0280] A second ratio is determined as a second utilization rate.
[0281] In some embodiments of the present application, the step of determining the service migration status based on the first utilization rate and the second utilization rate includes:
[0282] Calculating a service fluctuation value based on the first utilization rate and the second utilization rate;
[0283] The service migration status is determined based on the service fluctuation value.
[0284] In some embodiments of the present application, the step of calculating the service fluctuation value based on the first utilization rate and the second utilization rate includes:
[0285] calculating a difference between the first utilization rate and the second utilization rate;
[0286] calculating a third ratio of the difference to the first utilization rate;
[0287] The third ratio is determined to be a business fluctuation value.
[0288] In some embodiments of the present application, the step of determining the service migration status based on the service fluctuation value includes:
[0289] Determine whether the business fluctuation value is less than the preset business fluctuation threshold;
[0290] In response to the service fluctuation value being less than a preset service fluctuation threshold, determining that the service migration state is service not migrated;
[0291] In response to the service fluctuation value being not less than a preset service fluctuation threshold, determining the service migration state as service migrated.
[0292] In some embodiments of the present application, the server configuration mode includes a reliability mode and an operability mode, the reliability of the reliability mode is greater than the reliability of the operability mode, and the efficiency of the operability mode is greater than the efficiency of the reliability mode. The step of switching the server configuration mode according to the service migration state includes:
[0293] In response to the service migration status being that the service has not been migrated, switching the server configuration mode to a reliability mode;
[0294] In response to the service migration status being that the service has been migrated, the server configuration mode is switched to an operability mode.
[0295] In some embodiments of the present application, in response to the service migration status being service not migrated, the step of switching the server configuration mode to the reliability mode includes:
[0296] In response to the service migration status being service not migrated, setting the mode flag of the server to a reliability flag corresponding to the reliability mode, and controlling the server to restart;
[0297] Configures the server's BIOS options to switch to reliability mode during server restart based on the reliability flag.
[0298] In some embodiments of the present application, in response to the service migration status being that the service has been migrated, the step of switching the server configuration mode to the operability mode includes:
[0299] In response to the service migration status being that the service has been migrated, setting a mode flag of the server to an operability flag corresponding to the operability mode, and controlling the server to restart;
[0300] During server restart, configure the server's BIOS options to switch to operational mode based on the operational flag.
[0301] In some embodiments of the present application, the server configuration mode also includes a balanced mode and an automatic mode. The operating efficiency of the balanced mode is between the reliability mode and the operability mode, and the operating reliability of the balanced mode is between the reliability mode and the operability mode; the automatic mode multiplexes one of the operability mode, the reliability mode and the balanced mode.
[0302] In some embodiments of the present application, the method further comprises:
[0303] In response to the normal startup operation of the server, a mode selection page is displayed.
[0304] In some embodiments of the present application, the method further comprises:
[0305] A selection operation on a mode selection page is received, and one of the reliability mode, the operability mode, the balance mode, and the automatic mode is selected as the current configuration mode.
[0306] In some embodiments of the present application, the preset service fluctuation threshold is 30%.
[0307] The embodiment of the present application calculates a first utilization rate of the central processing unit (CPU) in response to normal server startup and operation; identifies a faulty component in response to a server shutdown and restart; calculates a second utilization rate of the CPU; determines a service migration status based on the first and second utilization rates; switches the server configuration mode based on the service migration status; and isolates the faulty component within the server configuration mode. By determining whether a customer's service has been migrated based on the CPU utilization rate during normal startup and restart, different server configuration modes are activated based on whether the service has been migrated, allowing the server to automatically switch configuration models and reduce server downtime.
[0308] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0309] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more non-volatile readable storage media (including but not limited to magnetic disk storage, CD-ROM (Compact Disc Read-Only Memory, read-only optical disk storage medium), optical storage, etc.) containing computer-usable program code.
[0310] The present application embodiment is described with reference to the flow chart and / or block diagram of the method, terminal device (system), and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flow chart and / or block diagram and the combination of the process and / or box in the flow chart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for realizing the function specified in one process or multiple processes and / or one box or multiple boxes of the flow chart.
[0311] These computer program instructions may also be stored in a non-volatile readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the non-volatile readable storage medium produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0312] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0313] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0314] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0315] The above is a detailed introduction to the server maintainability configuration method, device, electronic device and non-volatile readable storage medium provided by this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core idea; at the same time, for general technical personnel in this field, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A server maintainability configuration method, characterized in that: include: In response to the normal startup and operation of the server, calculating a first utilization rate of the central processing unit; In response to the server crashing and restarting, determining a faulty component; Calculating a second utilization rate of the central processing unit; Determining a service migration state based on the first utilization rate and the second utilization rate; Switching the server configuration mode according to the business migration status; In the server configuration mode, the faulty component is isolated.
2. The method according to claim 1, characterized in that The step of calculating the first utilization rate of the central processing unit comprises: Reading power consumption data and unit heat data of the central processing unit; The first utilization rate is determined according to the power consumption data and the unit heat data.
3. The method according to claim 2, characterized in that The step of determining the first utilization rate according to the power consumption data and the unit heat data comprises: Calculating a first ratio of the power consumption data to the unit heat data; The first ratio is determined as the first utilization rate.
4. The method according to claim 1, characterized in that: The step of determining the faulty component in response to the server crashing and restarting includes: In response to the server crashing and restarting, reading error information; It is determined that the component corresponding to the error information is the faulty component.
5. The method according to claim 4, characterized in that Before the step of reading the error information, the step of determining the faulty component in response to the server crashing and restarting further includes: Wait for a preset time and enter the basic input and output system of the server.
6. The method according to claim 1, characterized in that The step of calculating the second utilization rate of the central processing unit comprises: Reading power consumption data and unit heat data of the central processing unit; The second utilization rate is determined according to the power consumption data and the unit heat data.
7. The method according to claim 6, characterized in that The step of determining the second utilization rate according to the power consumption data and the unit heat data comprises: Calculating a second ratio of the power consumption data to the unit heat data; The second ratio is determined as the second utilization rate.
8. The method according to claim 1, characterized in that The step of determining the service migration state based on the first utilization rate and the second utilization rate includes: Calculating a service fluctuation value based on the first utilization rate and the second utilization rate; A service migration state is determined based on the service fluctuation value.
9. The method according to claim 8, characterized in that The step of calculating the service fluctuation value based on the first utilization rate and the second utilization rate comprises: calculating a difference between the first utilization rate and the second utilization rate; calculating a third ratio of the difference to the first utilization rate; The third ratio is determined as the business fluctuation value.
10. The method according to claim 8, characterized in that The step of determining the service migration state based on the service fluctuation value comprises: Determining whether the business fluctuation value is less than a preset business fluctuation threshold; In response to the service fluctuation value being less than a preset service fluctuation threshold, determining that the service migration state is service not migrated; In response to the service fluctuation value being not less than a preset service fluctuation threshold, determining the service migration state as service migrated.
11. The method according to claim 10, characterized in that The server configuration mode includes a reliability mode and an operability mode, the operation reliability of the reliability mode is greater than the operation reliability of the operability mode, and the operation efficiency of the operability mode is greater than the operation efficiency of the reliability mode; The step of switching the server configuration mode according to the service migration state includes: In response to the service migration status being that the service has not been migrated, switching the server configuration mode to the reliability mode; In response to the service migration status being that the service has been migrated, switching the server configuration mode to the operability mode.
12. The method according to claim 11, characterized in that In response to the service migration state being that the service has not been migrated, the step of switching the server configuration mode to the reliability mode comprises: In response to the service migration status being that the service has not been migrated, setting the mode mark of the server to a reliability mark corresponding to the reliability mode, and controlling the server to restart; During the restart of the server, a basic input / output system option of the server is configured based on the reliability flag to switch to the reliability mode.
13. The method according to claim 11, characterized in that In response to the service migration status being that the service has been migrated, the step of switching the server configuration mode to the operability mode comprises: In response to the service migration status being that the service has been migrated, setting the mode mark of the server to an operability mark corresponding to the operability mode, and controlling the server to restart; During the restart of the server, a basic input / output system option of the server is configured based on the operability flag to switch to the operability mode.
14. The method according to claim 11, characterized in that The server configuration mode also includes a balanced mode and an automatic mode. The operating efficiency of the balanced mode is between the reliability mode and the operability mode, and the operating reliability of the balanced mode is between the reliability mode and the operability mode. The automatic mode multiplexes the operability mode, the reliability mode, and one of the balanced mode.
15. The method according to claim 14, characterized in that The method further comprises: In response to the normal startup operation of the server, a mode selection page is displayed.
16. The method according to claim 15, characterized in that The method further comprises: A selection operation for the mode selection page is received, and one of the reliability mode, the operability mode, the balance mode, and the automatic mode is selected as a current configuration mode.
17. The method according to claim 10, characterized in that The preset business fluctuation threshold is 30%.
18. A server maintainability configuration device, characterized in that: include: The first calculation module is used to calculate the first utilization of the central processing unit in response to the normal startup and operation of the server. Rate; A restart module, configured to determine a faulty component in response to a shutdown and restart of the server; A second calculation module, used for calculating a second utilization rate of the central processing unit; A service migration judgment module, used to determine a service migration state based on the first utilization rate and the second utilization rate; A switching module, used to switch the server configuration mode according to the business migration status; An isolation module is used to isolate the faulty component in the server configuration mode.
19. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the server maintainability configuration method according to any one of claims 1 to 17 are implemented.
20. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server maintainability configuration method according to any one of claims 1 to 17 are implemented.
Citation Information
Patent Citations
Fault monitoring system for multi-controller system
CN106802854A
PCIE (Peripheral Component Interconnect Express) equipment fault system downtime processing method and device and related components
CN109947596A
Server RAS test method, system and device and storage medium
CN116048972A
Server maintainability configuration method and device, electronic equipment and storage medium
CN116737396A
Self-healing system for distributed services and applications
US11182253B2