Equipment offline method and device, electronic equipment and storage medium

By calculating the downline index of information system equipment and reasonably screening and processing equipment, the problem of high operation and maintenance costs during the reduction of information system capacity is solved, and the reduction of operation and maintenance costs and the stability of system functions are achieved.

CN119227941APending Publication Date: 2024-12-31CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411270130.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The existing technology cannot reasonably reduce operation and maintenance costs during the reduction of information system capacity, mainly because it ignores the key factor of equipment operation and maintenance costs, resulting in higher operation and maintenance costs when redundant resource capacity is reduced.

Method used

By obtaining the information system equipment list and equipment information, determine the maintenance cost of the equipment, the down-line impact index and the high availability index, calculate the down-line workload of the equipment, combine these factors to calculate the down-line index, judge and filter out the down-line what needs to be down-line The target equipment is processed offline in the order of downline index from large to small.

Benefits of technology

It has achieved reasonable reduction of operation and maintenance costs during the capacity reduction process, ensured that the system functions and high availability were not affected, and effectively saved equipment operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119227941A_ABST
    Figure CN119227941A_ABST
Patent Text Reader

Abstract

The invention discloses a device offline method and apparatus, an electronic device and a storage medium. The method comprises the steps of obtaining an information system device list and device information; determining maintenance costs corresponding to all devices in the information system device list based on the device information; performing offline influence analysis and high availability analysis on all the devices to obtain offline influence indexes and high availability indexes corresponding to all the devices; performing offline workload analysis on all the devices to obtain offline workloads corresponding to all the devices; determining an offline index of the equipment for all the equipment based on the maintenance cost, the offline influence index, the high availability index and the offline workload corresponding to the equipment; judging whether target equipment of which the offline index is a preset threshold value exists in all the equipment or not; if yes, filtering the target equipment of which the existence offline index is a preset threshold value from all the equipment to obtain all the to-be-offline equipment; and off-line processing is carried out on all the to-be-off equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of information system equipment management, and in particular to a method and apparatus for taking equipment offline, an electronic device, and a storage medium. Background Art

[0002] Since the host platform of the information system adopts the traditional centralized architecture, the coupling degree between the software and hardware of the bank's core business system and various devices is very high. Therefore, it is more complicated to evaluate the expansion and reduction of the information system.

[0003] Therefore, in the existing technology, when expanding or shrinking the information system, a capacity assessment is usually performed based on the monitoring data of the information system. If the assessment result shows that the capacity is insufficient, the information system will be expanded, and if the capacity is excessive, the information system will be reduced.

[0004] The current expansion and contraction plan only considers the necessity of expansion and contraction from the perspective of system resource capacity, but ignores the key factor of equipment operation and maintenance cost. As a result, in actual operation, if the information system encounters business reduction or environmental changes, it is often necessary to scale down redundant resources, which will lead to high equipment operation and maintenance costs. Therefore, it is urgent to solve the problem of not being able to reasonably reduce operation and maintenance costs during the scaling process. Summary of the invention

[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a method and apparatus for taking a device offline, an electronic device, and a storage medium to solve the problem that the prior art cannot reasonably reduce the operation and maintenance costs during the capacity reduction process.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] The first aspect of the present application provides a method for offline operation of a device, comprising:

[0008] Get the information system device list and device information;

[0009] Based on the device information, determine the maintenance costs corresponding to all devices in the information system device list;

[0010] Performing offline impact analysis and high availability analysis on all the devices in the information system device list to obtain offline impact indexes and high availability indexes corresponding to all the devices;

[0011] Performing offline workload analysis on all the devices in the information system device list to obtain offline workloads corresponding to all the devices;

[0012] For all the devices, respectively, based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the devices, determine the offline index of the devices;

[0013] Determine whether there is a target device whose offline index is a preset threshold value among all the devices;

[0014] If there is a target device whose offline index is a preset threshold value among all the devices, the target device whose offline index is the preset threshold value is filtered from all the devices to obtain all the devices to be offline;

[0015] All the devices to be taken offline are taken offline.

[0016] Optionally, in the above-mentioned device offline method, the step of obtaining the information system device list includes:

[0017] Select all types of equipment of the information system from the configuration management database;

[0018] Build an information system device list based on all selected devices.

[0019] Optionally, in the above-mentioned device offline method, determining the maintenance costs corresponding to all devices in the information system device list based on the device information includes:

[0020] For all the devices in the information system device list, respectively, extract the maintenance cost, spare parts cost and power environment cost of the devices from the device information;

[0021] The maintenance costs, spare parts costs and power environment costs of the equipment are summed up and calculated to obtain the cost corresponding to the equipment;

[0022] The cost corresponding to all the equipment is determined as the maintenance cost corresponding to all the equipment in the information system equipment list.

[0023] Optionally, in the above-mentioned device offline method, performing offline workload analysis on all devices in the information system device list to obtain offline workloads corresponding to all devices includes:

[0024] For all the devices in the information system device list, respectively, obtain the downtime, coordination and assistance duration of the devices;

[0025] The downtime, coordination and assistance time of the equipment are summed up to obtain the offline workload corresponding to the equipment.

[0026] Optionally, in the above-mentioned device offline method, determining the offline index of the device for all the devices respectively based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the devices, includes:

[0027] For all the equipment, the maintenance cost corresponding to the equipment is divided by the offline workload to obtain the target value corresponding to the equipment;

[0028] The offline impact index, the high availability index and the target value corresponding to the device are multiplied to obtain the target index of the device, and the target index is determined as the offline index of the device.

[0029] Optionally, in the above-mentioned device offline method, the offline processing of all the devices to be offline includes:

[0030] Obtain offline indexes of all the devices to be offline;

[0031] All the devices to be taken offline are processed offline in descending order of all offline indexes.

[0032] A second aspect of the present application provides an offline device for a device, comprising:

[0033] An information acquisition unit, used to acquire an information system device list and device information;

[0034] A cost determination unit, configured to determine the maintenance costs corresponding to all devices in the information system device list based on the device information;

[0035] An analysis unit, configured to perform offline impact analysis and high availability analysis on all the devices in the information system device list, and obtain offline impact indexes and high availability indexes corresponding to all the devices;

[0036] A workload analysis unit, configured to perform offline workload analysis on all the devices in the information system device list to obtain offline workloads corresponding to all the devices;

[0037] An index determination unit, configured to determine, for all the devices, the offline index of the device based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the device;

[0038] A judging unit, configured to judge whether there is a target device whose offline index is a preset threshold value among all the devices;

[0039] A filtering unit, configured to, if there is a target device whose offline index is a preset threshold value among all the devices, filter the target device whose offline index is the preset threshold value from all the devices to obtain all the devices to be offline;

[0040] The offline processing unit is used to perform offline processing on all the devices to be offline.

[0041] Optionally, in the offline device of the above-mentioned equipment, the information acquisition unit includes:

[0042] A selection unit is used to select all types of equipment of the information system from the configuration management database;

[0043] The construction unit is used to construct an information system device list based on all selected devices.

[0044] Optionally, in the offline device of the above equipment, the cost determination unit includes:

[0045] A cost extraction unit, for extracting the maintenance cost, spare parts cost and power environment cost of the equipment from the equipment information for all the equipment in the information system equipment list;

[0046] A first calculation unit is used to calculate the sum of the maintenance cost, spare parts cost and power environment cost of the equipment to obtain the cost corresponding to the equipment;

[0047] The first determining unit is used to determine the cost corresponding to all the devices as the maintenance cost corresponding to all the devices in the information system device list.

[0048] Optionally, in the offline device of the above-mentioned equipment, the workload analysis unit includes:

[0049] A duration acquisition unit, used for acquiring the downtime duration, cooperation duration and assistance duration of each of the devices in the information system device list;

[0050] The second calculation unit is used to calculate the sum of the downtime, coordination time and auxiliary time of the equipment to obtain the offline workload corresponding to the equipment.

[0051] Optionally, in the offline device of the above-mentioned equipment, the index determination unit includes:

[0052] A third calculation unit is used for dividing the maintenance cost corresponding to the equipment by the offline workload for each of the equipment to obtain a target value corresponding to the equipment;

[0053] The second determining unit is used to calculate the product of the offline impact index, the high availability index and the target value corresponding to the device to obtain the target index of the device, and determine the target index as the offline index of the device.

[0054] Optionally, in the offline device of the above-mentioned equipment, the offline processing unit includes:

[0055] An index acquisition unit, used to acquire offline indexes of all the devices to be offline;

[0056] The offline processing subunit performs offline processing on all the devices to be offline in sequence according to the order of all offline indexes from large to small.

[0057] A third aspect of the present application provides an electronic device, including:

[0058] Memory and processor;

[0059] Wherein, the memory is used to store programs;

[0060] The processor is used to execute the program, and when the program is executed, it is specifically used to implement a device offline method as described in any one of the above items.

[0061] A fourth aspect of the present application provides a computer storage medium for storing a computer program, wherein when the computer program is executed, it is used to implement a method for offline operation of a device as described in any one of the above.

[0062] The present application provides a device offline method, which obtains an information system device list and device information, and then determines the maintenance cost corresponding to all devices in the information system device list based on the device information, then performs offline impact analysis and high availability analysis on all devices in the information system device list, obtains the offline impact index and high availability index corresponding to all devices, and then performs offline workload analysis on all devices in the information system device list, obtains the offline workload corresponding to all devices, and then respectively for all devices, based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the device, determines the offline index of the device, and then determines whether there is a target device with an offline index of a preset threshold value among all devices, and if there is a target device with an offline index of a preset threshold value among all devices, the target device with an offline index of the preset threshold value is filtered from all devices to obtain all devices to be offline, and finally performs offline processing on all devices to be offline. Thus, the hardware constituting the information system is evaluated for offline equipment from different aspects, and a decision on the offline of specific hardware in the system is made through a quantitative method, so as to realize the timely offline of the device without affecting the system function and high availability, and effectively save the operation and maintenance cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present application 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 described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0064] Figure 1 A schematic diagram of a process flow of an offline device for a device provided in an embodiment of the present application;

[0065] Figure 2 A schematic diagram of a process flow of a device offline method provided in an embodiment of the present application;

[0066] Figure 3 A flowchart of a method for constructing an information system device list provided in another embodiment of the present application;

[0067] Figure 4 A flowchart of a method for determining maintenance costs provided in another embodiment of the present application;

[0068] Figure 5 A flowchart of a method for calculating offline workload provided by another embodiment of the present application;

[0069] Figure 6 A flowchart of a method for determining an offline index provided by another embodiment of the present application;

[0070] Figure 7 A schematic diagram of a process flow of an offline processing method for a device provided in another embodiment of the present application;

[0071] Figure 8 A schematic diagram of the structure of a offline device of a device provided in another embodiment of the present application;

[0072] Fig. 9 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0074] In this application, 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 such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0075] The embodiment of the present application provides a method for taking a device offline, which is applied to an offline device of the device to solve the problem that the prior art cannot reasonably reduce the operation and maintenance cost during the shrinking process.

[0076] Alternatively, if Figure 1 As shown, an embodiment of the present application provides a device offline, including: an information system equipment collection module, an equipment maintenance cost collection module, an equipment offline impact analysis module, an equipment offline workload analysis module, an equipment offline decision module, an equipment offline module and an equipment offline auxiliary module.

[0077] It should be noted that the information system equipment collection module is used to collect and summarize all current equipment information of the information system, including the types and quantities of various types of equipment. It is also used to form an information system equipment list based on all equipment information. All equipment in the list will be used as the object of equipment offline feasibility analysis.

[0078] The equipment maintenance cost collection module is used to collect the maintenance cost information of all equipment in the current information system equipment list to form an equipment maintenance cost list, which will serve as the input for the offline cost analysis of the equipment offline decision analysis module.

[0079] The device offline impact analysis module is used to analyze the impact that each device offline may have on system operation, including analysis of the impact on system functions and the impact on the system's high-availability architecture, and to form a device offline impact analysis list.

[0080] The equipment offline workload analysis module is used to analyze the specific workload required for each equipment offline and form an equipment offline workload information list.

[0081] The equipment offline decision module is used to combine the analysis results of the information system equipment collection module, the equipment maintenance cost collection module, the equipment offline impact analysis module, the equipment offline impact analysis module, and the equipment offline workload analysis module to form an equipment offline sorting list, and decide whether to take the equipment offline according to the equipment offline sorting list.

[0082] The device offline module is used to implement offline shutdown operations on physical devices based on the decision results of the device offline decision module and after software decoupling is completed.

[0083] The device offline auxiliary module is used to complete the decoupling operation between the software layer and the device before the hardware offline begins. It is specifically composed of a software shutdown module, a virtual machine migration module, and a data migration module.

[0084] Among them, the software shutdown module mainly shuts down application software that no longer needs to run after the business is offline, so as to reduce the number of software instances in the cluster and eventually release more idle virtual machines for virtual machine shutdown. The virtual machine migration module is mainly used to cooperate with the offline operation of physical host equipment to migrate the running virtual machines on the physical host to be offline to the physical host that will not be offline after evaluation. The data migration module is mainly used to cooperate with the offline shutdown operation of the physical disk, and migrate the data that needs to be retained on the disk to be offline to the physical disk device that continues to run, to ensure the integrity of the system data.

[0085] Based on the offline device of the device provided above, the embodiment of the present application provides an offline method of a device, such as Figure 2 As shown, the specific steps include:

[0086] S201. Obtain information system device list and device information.

[0087] It can be understood that in order to be able to perform offline feasibility assessment on all types of equipment in the information system and ensure the completeness of the equipment feasibility analysis, in an embodiment of the present application, all types of equipment are identified in advance from the information system to generate an information system equipment list, and the devices in the information system equipment list are used as analysis objects for offline feasibility, and the device information of all devices in the information system equipment list is also obtained from the database for analyzing the offline feasibility of the equipment.

[0088] Optionally, in another embodiment of the present application, a specific implementation of step S201 is as follows: Figure 3 As shown, the following steps are included:

[0089] S301. Select all types of equipment of the information system from the configuration management database.

[0090] Specifically, all types of equipment in the information system can be obtained from the enterprise's configuration management database (CMDB, Configuration Management Database).

[0091] For example, taking the host platform of the bank's core business system as an example, the specific equipment types include various types of physical equipment such as physical hosts, physical disks, storage switches, network switches, tape libraries, etc., as well as network resources such as the wide area network bandwidth used for cross-city interconnection communications.

[0092] S302. Build an information system device list based on all selected devices.

[0093] It is understandable that after the equipment required for the information system is selected from the configuration management database, an information system equipment list can be constructed based on all the selected equipment and their basic information.

[0094] The information system equipment column can refer to the content shown in Table 1:

[0095] Table 1

[0096] Equipment serial number Device Type Placement Function d1 Physical host Park 1 Building 1 Virtual machine running …… d9 Physical disk Park 1 Building 1 Data Storage …… d31 Storage Switches Park 1 Building 1 Device Connectivity …… d62 Network switches Park 1 Building 1 Network Interconnection …… d78 WAN bandwidth Wide Area Network Data Transfer ……

[0097] It should be noted that the contents shown in Table 1 are only for illustration, and the embodiments of the present application are not limited to the contents shown in Table 1.

[0098] S202: Based on the equipment information, determine the maintenance costs corresponding to all equipment in the information system equipment list.

[0099] It is understandable that in order to better manage and optimize the equipment maintenance process, control costs, improve equipment efficiency, and support financial and management decisions, the operation and maintenance costs can be controlled from the equipment maintenance costs. Therefore, the maintenance costs corresponding to all equipment in the information system equipment list can be calculated based on the relevant maintenance data contained in the equipment information.

[0100] Optionally, in another embodiment of the present application, a specific implementation of step S202 is as follows: Figure 4 As shown, the following steps are included:

[0101] S401. For all devices in the information system device list, extract the maintenance cost, spare parts cost, and power environment cost of the devices from the device information.

[0102] It is understandable that since equipment information contains a lot of relevant information about the equipment, but not every piece of information is related to the calculation of maintenance costs, in order to be able to flexibly and conveniently calculate the maintenance costs of the equipment in the future, it is necessary to extract historical purchase contracts, hardware maintenance contracts and other information from the equipment information in advance, and then extract the equipment maintenance costs, spare parts costs and power environment costs from this information.

[0103] Among them, the maintenance cost is the maintenance cost purchased from the hardware manufacturer, the spare parts cost is the spare parts procurement cost of a single device, and the power environment cost is the electricity cost required after the equipment is powered on and running.

[0104] S402: Sum up the maintenance costs, spare parts costs, and power environment costs of the equipment to obtain the corresponding cost of the equipment.

[0105] Specifically, the calculation formula for the cost of the equipment is: i =Maintenance costs + spare parts costs + power environment costs.

[0106] S403. Determine the cost corresponding to all devices as the maintenance cost corresponding to all devices in the information system device list.

[0107] Optionally, after calculating the maintenance costs corresponding to all devices in the information system device list, an equipment maintenance cost list may be generated based on the maintenance costs corresponding to all devices, so as to facilitate subsequent provision of detailed maintenance cost information.

[0108] Among them, the equipment maintenance cost list can be found in Table 2:

[0109] Table 2

[0110] Equipment serial number Maintenance cost …… …… d <![CDATA[c i ]]> …… ……

[0111] S203: Perform offline impact analysis and high availability analysis on all devices in the information system device list to obtain offline impact indexes and high availability indexes corresponding to all devices.

[0112] It is understandable that in addition to analyzing the feasibility of equipment offline from the perspective of equipment maintenance cost, the impact analysis of equipment offline can also be carried out from the perspectives of business operation impact index and high availability impact index. Among them, the impact analysis indicators can include offline impact index and high availability index.

[0113] Specifically, the analysis of the offline impact index may include:

[0114] The service operation impact index u corresponding to the offline operation of the i-th device iIf the offline operation of the device affects the business operation requirements of the original system, the offline impact index u of the device is i =0, otherwise the offline impact index u corresponding to the device i =1.

[0115]

[0116] Among them, the business operation impact index u corresponding to the offline operation i It can be obtained through expert identification or performance data analysis. The original system refers to the system in which the equipment has not been taken offline, and the business operation demand refers to the CPU computing power, storage space capacity, memory size, etc.

[0117] The analysis of the high availability index may include:

[0118] The high availability impact index h corresponding to the offline operation of the i-th device i If the offline device affects the high availability of the original system and causes the high availability architecture of the information system to be affected or destroyed, the high availability index h corresponding to the device will be i =0, otherwise the high availability index h corresponding to the device i =1.

[0119]

[0120] Optionally, after obtaining the offline impact indexes and high availability indexes corresponding to all devices, a device offline impact analysis list may be generated based on the offline impact indexes and high availability indexes corresponding to all devices, thereby helping to more clearly understand the offline impact distribution of each device.

[0121] The equipment offline impact analysis list can be found in Table 3:

[0122] Table 3

[0123]

[0124] S204: Analyze the offline workload of all devices in the information system device list to obtain the offline workload corresponding to all devices.

[0125] It should be noted that the workload analysis for equipment offline, that is, analyzing the implementation time of software-assisted work that may be required due to the equipment offline, can determine the resources and manpower required for each equipment offline, optimize personnel arrangements and resource allocation, identify potential risks and problems, and formulate response strategies to ensure a smooth offline process.

[0126] Optionally, in another embodiment of the present application, a specific implementation of step S204 is as follows: Figure 5As shown, the following steps are included:

[0127] S501. Obtain the downtime, coordination time, and assistance time of each device in the information system device list.

[0128] It is understandable that the workload of the device offline can be analyzed based on the implementation time of the software-assisted work required for the device offline. Therefore, the implementation time of the software-assisted work required for the device offline includes the downtime, coordination time and assistance time. Among them, the downtime is the system downtime window duration that may be required for the device to go offline. The coordination time is the coordination time of related parties that may be caused by the device offline. The assistance time is the software-assisted implementation time required for the device to go offline.

[0129] Specifically, the downtime, coordination time and assistance time can be obtained from the historical implementation results data of similar work, or through the expert experience evaluation process.

[0130] S502: Sum up the downtime, coordination time, and assistance time of the equipment to obtain the offline workload corresponding to the equipment.

[0131] Specifically, the calculation expression for the offline workload corresponding to the equipment is: w i = downtime + cooperation time + assistance time.

[0132] Optionally, after calculating the offline workloads corresponding to all devices, a device offline workload list may be generated based on the offline workloads corresponding to all devices. Specifically, the device offline workload list may refer to the content shown in Table 4:

[0133] Table 4

[0134] Equipment serial number Offline workload …… …… d <![CDATA[w i ]]> …… ……

[0135] S205 . Determine, for all devices respectively, a device offline index based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the device.

[0136] Specifically, the offline index of a device can be determined based on maintenance cost, offline impact index, high availability index, and offline workload, because maintenance cost is an important factor in device offline, and high-cost devices usually need to be given priority for offline. The offline impact index is to evaluate the impact of device offline on the business. The greater the impact, the higher the offline priority. High availability index: Considering the availability of the device, the offline of a high-availability device may have less impact on the business. Offline workload: Analyze the workload required for offline, because devices with a large workload may require more preparation and planning, so integrating these factors into a comprehensive index can provide a basis for the priority and strategy of device offline.

[0137] Optionally, in another embodiment of the present application, a specific implementation of step S205 is as follows: Figure 6 As shown, the following steps are included:

[0138] S601. For all equipment respectively, divide the maintenance cost corresponding to the equipment by the offline workload to obtain the target value corresponding to the equipment.

[0139] Specifically, the calculation formula for the target value corresponding to the device is: i / w i Among them, c i is the maintenance cost, w i For offline workload.

[0140] S602: Multiply the offline impact index, high availability index, and target value corresponding to the device to obtain a target index of the device, and determine the target index as the offline index of the device.

[0141] Specifically, the calculation formula of the target index of the device is:

[0142]

[0143] Among them, h i is the high availability index, u i is the offline impact index, the target value is c i / w i , where c i is the maintenance cost, w i For offline workload.

[0144] Specifically, for the devices in the information system device list:

[0145] If the device is offline, the system's business operation requirements, that is, the system functions, will be affected. i = 0, or if the device is offline, the high availability of the system will be affected, then h i = 0. Furthermore, o i =h i ×u i ×c i / w i =0×0×c i / w i = 0, the offline index of the device will be 0. For a device with an offline index of 0, the offline operation cannot be performed. i / w i Therefore, through the constraints that the two impact indexes are not 0, the offline operation of key equipment that affects the information system function and high availability is rejected.

[0146] ci / w i The maintenance cost is used as the numerator in the figure to ensure that equipment with relatively high maintenance costs is taken offline first under the premise of the same offline workload. i As the denominator, under the premise of the same maintenance cost, equipment with relatively small workload will be taken offline first, so as to achieve rapid hardware offline and save maintenance costs.

[0147] S206: Determine whether there is a target device whose offline index is a preset threshold among all devices.

[0148] It should be noted that in order to accurately implement offline operations on equipment without affecting the feasibility of the equipment and reducing operation and maintenance costs, in an embodiment of the present application, after obtaining the offline index of all equipment, the system can set a threshold to determine whether the equipment needs to be offline, that is, to determine whether there is a target device whose offline index is a preset threshold among all devices. If there is a target device whose offline index is the preset threshold among all devices, it means that there is a device that needs to be offline among all devices, so step S207 is executed.

[0149] Optionally, if there is no target device whose offline index is a preset threshold value among all the devices, it means that there is no device that needs to be offline among all the devices, that is, all the devices maintain a normal working state.

[0150] S207: Filter target devices whose offline index is a preset threshold from all devices to obtain all devices to be offline.

[0151] Specifically, when there is a target device whose offline index is a preset threshold among all devices, in order to concentrate resources and energy on processing the target device and ensure that the target device is offline in time, and reduce the potential risks and problems brought by the equipment with high maintenance costs and large impacts, it is necessary to filter the target device whose offline index is the preset threshold from all devices, so as to concentrate resources on the equipment to be offline, avoid wasting resources on low-priority equipment, ensure that business operations are not affected, and gradually eliminate equipment that is no longer suitable.

[0152] S208: Perform offline processing on all devices to be offline.

[0153] Specifically, the offline processing of all the devices to be offline may include powering off, disassembling or transferring the devices.

[0154] Optionally, all operations during the offline process can be recorded and reviewed to ensure compliance with regulations and standards, and the status of all devices to be offline can be updated to "offline" in the information system.

[0155] Optionally, in another embodiment of the present application, a specific implementation of step S208 is as follows: Figure 7 As shown, the following steps are included:

[0156] S701. Obtain offline indexes of all devices to be offline.

[0157] S702: Perform offline processing on all devices to be offline in descending order of all offline indexes.

[0158] It should be noted that since the higher the offline index, the better the implementation effect of offline, that is, the equipment with high maintenance cost but small total offline workload should be offlined first, so as to achieve cost savings as soon as possible. Equipment with low maintenance cost but high total offline workload can be offlined later than other equipment. Therefore, in order to effectively save operation and maintenance costs, all equipment to be offline should be offlined in descending order of offline index, so that equipment with higher offline index can be processed first.

[0159] Optionally, all offline indexes may be sorted in descending order, and a device offline sorting list may be generated based on all sorted offline indexes and their corresponding devices, and then offline processing may be performed in sequence according to the device sorting in the device offline sorting list.

[0160] The following examples are used to illustrate this application. Figure 2 The implementation of steps S202 to S208 shown in FIG. 2 is described in detail.

[0161] According to step S202, the maintenance cost of each device is calculated as maintenance fee + spare parts fee + power environment fee. It can be seen that the operation and maintenance cost of physical hosts d1-d4 is 920,000 yuan for c1, 920,000 yuan for c2, 920,000 yuan for c3, and 920,000 yuan for c4. Among them, d1 and d2 are 2 physical hosts deployed in Building 1 of Park 1, d3 and d4 are 2 physical hosts deployed in Building 2 of Park 1, and the 4 physical hosts are mainly used to enable business virtual machine functions:

[0162] c1=90+2=920,000 yuan, c2=90+2=920,000 yuan, c3=90+2=920,000 yuan, c4=90+2=920,000 yuan.

[0163] Specifically, the operation and maintenance costs of physical disks d5-d12 are: c5 is 30,000 yuan, c6 is 30,000 yuan, c7 is 30,000 yuan, c8 is 30,000 yuan, c9 is 30,000 yuan, c10 is 30,000 yuan, c11 is 30,000 yuan, and c12 is 30,000 yuan. Among them, d5-d8 is deployed in Building 1 of Campus 1 as the production master disk, and d9-d12 is deployed in Building 1 of Campus 1 as the production slave disk. d5-d6 is a database disk, and d7-d8 is a batch disk:

[0164] c5=2+1=30,000 yuan, c6=2+1=30,000 yuan, c7=2+1=3, c8=2+1=30,000 yuan, c9=2+1=30,000 yuan, c10=2+1=30,000 yuan, c11=2+1=30,000 yuan, c12=2+1=30,000 yuan.

[0165] Specifically, the operation and maintenance cost of the WAN bandwidth is: c13 = 100,000 yuan.

[0166] After summarizing the above equipment operation and maintenance costs, a list of equipment maintenance costs is formed (Table 5):

[0167] Table 5

[0168] Equipment serial number Maintenance cost d1 92 d2 92 d3 92 d4 92 d5 3 d6 3 d7 3 d8 3 d9 3 d10 3 d11 3 d12 3 d13 10

[0169] Table 5 is only a list of equipment maintenance costs for an example embodiment.

[0170] According to step S203, two indexes, namely, an offline impact index and a high availability index, are proposed for evaluating the potential offline device.

[0171] For the physical hosts of the production system, from the perspective of the offline impact index, only one business virtual machine for overseas banking core business needs to be retained on each physical host, and other business virtual machines in China can be shut down. The CPU usage of the original four physical hosts has dropped to 10% of the peak period. From the perspective of the physical host CPU capacity, after taking two physical hosts offline, the system CPU resources can still be ensured to be sufficient, and safe production will not be affected by the offline results.

[0172] For the physical hosts of the production system, from the perspective of the high availability impact index, shutting down two physical hosts in Building 1 of Campus 1 or shutting down two physical hosts in Building 2 of Campus 1 at the same time will destroy the high availability of the original system's campus buildings. Therefore, the preferred solution is to shut down one physical host each in Building 1 of Campus 1 and Building 2. This can not only take the surplus physical hosts offline but also ensure that the high availability of the campus buildings after the system is scaled down is not affected.

[0173] For the physical disks of the production system, at this time, from the perspective of the business operation impact index and the storage resource capacity, the core business of domestic private banking and the core business of domestic corporate banking originally occupied about 70% of the total capacity of the two database disks. That is, only one database disk and one batch processing disk need to be retained to ensure that business operations are not affected. One disk device can be taken offline from the original total of two database disks and two batch processing disks.

[0174] For the physical disks of the production system, from the perspective of the high availability impact index, given that the high availability construction plan for disk storage is to place the mirror master disk in Building 1 of Park 1 and the mirror slave disk in Building 2 of Park 1, the slave disk corresponding to the mirror master disk that continues to run cannot be taken offline, while the mirror slave disks corresponding to the two mirror master disks that are scheduled to be taken offline can be taken offline synchronously with the mirror master disk.

[0175] After completing the two phases of downshifting and switching the core business of domestic private banking and the core business of domestic corporate banking, the peak traffic of data replication from the production system and the disaster recovery system in the same city to the disaster recovery system in the other place has also decreased, so the WAN bandwidth between City 1 and City 2 can be reduced to save network communication fees. If the current bandwidth traffic peak is reduced to 1 / 3 of the original WAN bandwidth peak, the total capacity demand can be reduced by 2 / 3 of the original total, which can be released for use by other applications in the bank, or the original 2 / 3 bandwidth capacity can no longer be rented.

[0176] Assume that the device serial numbers of the four physical hosts are d1, d2, d3, and d4. D1 and d2 are located in Building 1 of Campus 1, and D3 and D4 are located in Building 2 of Campus 1. Assume that the device serial numbers of the four physical disks in Building 1 of Campus 1 are d5, d6, d7, and d8, of which D5 and D6 store database files, and D7 and D8 store batch files. The mirror disks of the four physical disks are deployed in Building 2 of Campus 1, and the device serial numbers are d9, d10, d11, d12, d13, d14, d15, d16, d17, and d18, respectively. 10 , d 11 , d 12 Assume that the WAN bandwidth capacity device number is d 13 .

[0177] Specifically, after processing in step 3, the equipment offline impact analysis list (Table 6) can be expressed as follows:

[0178] Table 6

[0179]

[0180]

[0181] Table 6 is only a device offline impact analysis list given as an example in an embodiment.

[0182] According to the results of the 4 physical hosts in the equipment offline impact analysis list, it is concluded that the physical hosts numbered d2 in Building 1 of Park 1 and d4 in Building 2 of Park 1 will be offlined and shut down, and the physical hosts numbered d1 in Building 1 of Park 1 and d3 in Building 2 of Park 1 will not be offlined.

[0183] According to the judgment results of the 8 physical disks in the equipment offline impact analysis list, it is planned to disconnect the disks numbered d6 and d8 in Building 1 of Campus 1 and numbered d in Building 2 of Campus 1. 10 ,d 12 The physical disk is taken offline.

[0184] According to the judgment results of WAN bandwidth resources in the equipment offline impact analysis list, it is planned to increase the WAN bandwidth d between the two cities. 13 Implement the downsizing operation.

[0185] According to step S204, the offline workload required for the potential offline equipment is analyzed next, that is, the software-assisted implementation time that may be required due to the equipment offline, including the system downtime window duration that may be required for the equipment offline, the coordination and cooperation time of related parties that may be caused by the equipment offline, and other factors, to form a list of equipment offline workload.

[0186] Assuming that it takes 1.5 hours to shut down three unused business virtual machines on each physical host, the coordination time required for the related parties to migrate the remaining business demand on physical hosts d2 and d4 is 1.5 hours each, and the system downtime window that may be required for going offline is 0.5 hours, then the software-assisted implementation time for migrating physical hosts d2 and d4 is: d2=1.5+1.5+0.5=3.5 hours, d4=1.5+1.5+0.5=3.5 hours.

[0187] Assume that the software-assisted implementation time for clearing database physical disk d6 is 1.5 hours for system downtime window, 3 hours for related party coordination, and 15 hours for data migration. The software-assisted implementation time for clearing batch physical disk d8 is 0 hours for system downtime window, 4 hours for related party coordination, and 10 hours for data migration. The offline workload is: d6 = 1.5 + 3 + 15 = 19.5 hours, d8 = 0 + 4 + 10 = 14 hours.

[0188] Mirror from disk d 10 The software-assisted implementation time is the same as d6, and the image is from disk d 12 The software-assisted implementation time is the same as d8. 10 =1.5+3+15=19.5 hours, d 12 =0+4+10=14 hours.

[0189] Assuming that the WAN bandwidth is reduced, the workload includes 1 hour of coordination with related parties and 2 hours of capacity reduction change operation, then the offline workload is: 13 =1+2=3 hours.

[0190] The equipment offline workload list (Table 7) after summarizing the offline workload of the above different types of pre-offline equipment is as follows:

[0191] Table 7

[0192] Equipment serial number Offline workload d1 3.5 d2 3.5 d3 3.5 d4 3.5 d5 19.5 d6 19.5 d7 14 d8 14 d9 19.5 d10 19.5 d11 14 d12 14 d13 3

[0193] Table 7 is only a list of equipment offline workloads given as an example in an embodiment.

[0194] Combined with the analysis data from step S202 to step S204, the offline index of a certain device in the specific system is determined.

[0195] o1=h1×u1×c1 / w1=0×1×92 / 3.5=0

[0196] o2=h2×u2×c2 / w2=1×1×92 / 3.5=25.71

[0197] o3=h3×u3×c3 / w3=0×1×92 / 3.5=0

[0198] o4=h4×u4×c4 / w4=1×1×92 / 3.5=25.71

[0199] o5=h5×u5×c5 / w5=1×0×3 / 19.5=0

[0200] o6=h6×u6×c6 / w6=1×1×3 / 19.5=0.15

[0201] o7=h7×u7×c7 / w7=1×0×3 / 14=0

[0202] o8=h8×u8×c8 / w8=1×1×3 / 14=0.21

[0203] o9=h9×u9×c9 / w9=0×0×3 / 19.5=0

[0204] o 10 =h 10 ×u 10 ×c 10 / w 10 =1×1×93 / 19.5=0.15

[0205] o 11 =h 11 ×u 11 ×c11 / w11=0×0×3 / 14=0

[0206] o 12 =h 12 ×u 12 ×c 12 / w 12 =1×1×3 / 14=0.21

[0207] o 13 =h 13 ×u 13 ×c 13 / w 13 =1×1×10 / 3=3.33

[0208] The above calculation results are sorted in descending order of value to form the final equipment offline sorting list (Table 8):

[0209] Table 8

[0210]

[0211] Table 8 is merely an example of a device offline sorting list in an embodiment.

[0212] According to the judgment results of the device offline sorting list, the physical hosts numbered d2 and d4 are given the first priority to implement software-assisted implementation work before going offline. That is, the business virtual machines that need to continue running on the original physical hosts d2 and d4 are migrated to the physical hosts d1 and d3 to continue running. It also includes shutting down the system software that no longer needs to run, so as to achieve the offline operation of the two physical hosts at the fastest speed and achieve the goal of maximizing operation and maintenance costs.

[0213] The second priority is to reduce the WAN bandwidth.

[0214] The third priority is to process the batch disk numbered d8 and its mirrored slave disk d 12 Start data migration work before going offline.

[0215] The fourth priority is for the database disk numbered d6 and its mirrored slave disk d 10 Start data migration work before going offline.

[0216] For the physical hosts numbered d1 and d3, the database disk numbered d5 and its mirrored slave disk d9, the batch disk numbered d7 and its mirrored slave disk d 11 Offline shutdown operations are not considered to ensure that system functions and high availability are not affected.

[0217] The present application provides a device offline method, which obtains an information system device list and device information, and then determines the maintenance cost corresponding to all devices in the information system device list based on the device information, then performs offline impact analysis and high availability analysis on all devices in the information system device list, obtains the offline impact index and high availability index corresponding to all devices, and then performs offline workload analysis on all devices in the information system device list, obtains the offline workload corresponding to all devices, and then respectively for all devices, based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the device, determines the offline index of the device, and then determines whether there is a target device with an offline index of a preset threshold value among all devices, and if there is a target device with an offline index of a preset threshold value among all devices, the target device with an offline index of the preset threshold value is filtered from all devices to obtain all devices to be offline, and finally performs offline processing on all devices to be offline. Thus, the hardware constituting the information system is evaluated for offline equipment from different aspects, and a decision on the offline of specific hardware in the system is made through a quantitative method, so as to realize the timely offline of the device without affecting the system function and high availability, and effectively save the operation and maintenance cost.

[0218] Another embodiment of the present application provides an offline device for a device, such as Figure 8 As shown, it includes the following units:

[0219] The information acquisition unit 801 is used to acquire the information system device list and device information.

[0220] The cost determination unit 802 is used to determine the maintenance costs corresponding to all devices in the information system device list based on the device information.

[0221] The analysis unit 803 is used to perform offline impact analysis and high availability analysis on all devices in the information system device list to obtain offline impact indexes and high availability indexes corresponding to all devices.

[0222] The workload analysis unit 804 is used to perform offline workload analysis on all devices in the information system device list to obtain the offline workload corresponding to all devices.

[0223] The index determination unit 805 is used to determine the offline index of each device based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to each device.

[0224] The judging unit 806 is configured to judge whether there is a target device whose offline index is a preset threshold value among all the devices.

[0225] The filtering unit 807 is configured to filter the target device whose offline index is the preset threshold from all devices if there is a target device whose offline index is the preset threshold among all devices, so as to obtain all devices to be offline.

[0226] The offline processing unit 808 is used to perform offline processing on all devices to be offline.

[0227] It should be noted that the specific working process of the above-mentioned units in the embodiment of the present application can refer to steps S201 to S208 in the above-mentioned method embodiment, and will not be repeated here.

[0228] Optionally, in an offline device for a device provided in another embodiment of the present application, the information acquisition unit 801 includes:

[0229] The selection unit is used to select all types of equipment of the information system from the configuration management database.

[0230] The construction unit is used to construct an information system device list based on all selected devices.

[0231] Optionally, in a device offline apparatus provided by another embodiment of the present application, the cost determination unit 802 includes:

[0232] The cost extraction unit is used to extract the maintenance cost, spare parts cost and power environment cost of the equipment from the equipment information of all the equipment in the information system equipment list.

[0233] The first calculation unit is used to calculate the sum of the maintenance cost, spare parts cost and power environment cost of the equipment to obtain the cost corresponding to the equipment.

[0234] The first determining unit is used to determine the cost expenses corresponding to all the equipment as the maintenance costs corresponding to all the equipment in the information system equipment list.

[0235] Optionally, in an offline device for a device provided in another embodiment of the present application, the workload analysis unit 804 includes:

[0236] The duration acquisition unit is used to acquire the downtime duration, coordination duration and assistance duration of the devices for all the devices in the information system device list respectively.

[0237] The second calculation unit is used to calculate the sum of the downtime, coordination time and auxiliary time of the equipment to obtain the offline workload corresponding to the equipment.

[0238] Optionally, in an offline device for a device provided in another embodiment of the present application, the index determination unit 805 includes:

[0239] The third calculation unit is used to divide the maintenance cost corresponding to each device by the offline workload for each device to obtain a target value corresponding to the device.

[0240] The second determining unit is used to calculate the product of the offline impact index, the high availability index and the target value corresponding to the device to obtain the target index of the device, and determine the target index as the offline index of the device.

[0241] Optionally, in an offline device of a device provided in another embodiment of the present application, the offline processing unit 808 includes:

[0242] The index acquisition unit is used to acquire the offline index of all devices to be offline.

[0243] The offline processing subunit performs offline processing on all devices to be offline in descending order of all offline indexes.

[0244] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the corresponding steps in the above method embodiments, and will not be repeated here.

[0245] Another embodiment of the present application provides an electronic device, such as Fig. 9 As shown, including:

[0246] Memory 901 and processor 902 .

[0247] The memory 901 is used to store programs.

[0248] The processor 902 is used to execute a program. When the program is executed, it is specifically used to implement a device offline method provided by any one of the above embodiments.

[0249] Another embodiment of the present application provides a computer storage medium for storing a computer program. When the computer program is executed, it is used to implement a method for offline operation of a device as provided in any of the above embodiments.

[0250] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0251] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0252] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for offline equipment, characterized in that: include: Get the information system device list and device information; Based on the device information, determine the maintenance costs corresponding to all devices in the information system device list; Performing offline impact analysis and high availability analysis on all the devices in the information system device list to obtain offline impact indexes and high availability indexes corresponding to all the devices; Performing offline workload analysis on all the devices in the information system device list to obtain offline workloads corresponding to all the devices; For all the devices, respectively, based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the devices, determine the offline index of the devices; Determine whether there is a target device whose offline index is a preset threshold value among all the devices; If there is a target device whose offline index is a preset threshold value among all the devices, the target device whose offline index is the preset threshold value is filtered from all the devices to obtain all the devices to be offline; All the devices to be taken offline are taken offline.

2. The method according to claim 1, characterized in that The obtaining of the information system device list includes: Select all types of equipment of the information system from the configuration management database; Build an information system device list based on all selected devices.

3. The method according to claim 1, characterized in that The determining, based on the device information, the maintenance costs corresponding to all devices in the information system device list includes: For all the devices in the information system device list, respectively, extract the maintenance cost, spare parts cost and power environment cost of the devices from the device information; The maintenance costs, spare parts costs and power environment costs of the equipment are summed up and calculated to obtain the cost corresponding to the equipment; The cost corresponding to all the equipment is determined as the maintenance cost corresponding to all the equipment in the information system equipment list.

4. The method according to claim 1, characterized in that: The performing offline workload analysis on all the devices in the information system device list to obtain the offline workload corresponding to all the devices includes: For all the devices in the information system device list, respectively, obtain the downtime, coordination and assistance duration of the devices; The downtime, coordination and assistance time of the equipment are summed up to obtain the offline workload corresponding to the equipment.

5. The method according to claim 1, characterized in that The determining, for all the devices respectively, based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the devices, of the offline index of the devices includes: For all the equipment, the maintenance cost corresponding to the equipment is divided by the offline workload to obtain the target value corresponding to the equipment; The offline impact index, the high availability index and the target value corresponding to the device are multiplied to obtain the target index of the device, and the target index is determined as the offline index of the device.

6. The method according to claim 1, characterized in that The offline processing of all the devices to be offline includes: Obtain offline indexes of all the devices to be offline; All the devices to be taken offline are processed offline in descending order of all offline indexes.

7. A device for removing the line of equipment, characterized in that: include: An information acquisition unit, used to acquire an information system device list and device information; A cost determination unit, configured to determine the maintenance costs corresponding to all devices in the information system device list based on the device information; An analysis unit, configured to perform offline impact analysis and high availability analysis on all the devices in the information system device list, and obtain offline impact indexes and high availability indexes corresponding to all the devices; A workload analysis unit, configured to perform offline workload analysis on all the devices in the information system device list to obtain offline workloads corresponding to all the devices; An index determination unit, configured to determine, for all the devices, the offline index of the device based on the maintenance cost, offline impact index, high availability index, and offline workload corresponding to the device; A judging unit, configured to judge whether there is a target device whose offline index is a preset threshold value among all the devices; A filtering unit, configured to filter the target device whose offline index is the preset threshold value from all the devices if there is a target device whose offline index is the preset threshold value among all the devices, so as to obtain all the devices to be offline; The offline processing unit is used to perform offline processing on all the devices to be offline.

8. The device according to claim 7, characterized in that The information acquisition unit comprises: A selection unit is used to select all types of equipment of the information system from the configuration management database; The construction unit is used to construct an information system device list based on all selected devices.

9. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement a device offline method as described in any one of claims 1 to 6.

10. A computer storage medium, characterized in that: Used to store a computer program, which, when executed, is used to implement a method for offline operation of a device as described in any one of claims 1 to 6.