A multi-server log collection method, device and system
By installing wireless transceiver modules in servers and racks and dynamically selecting target data transmission devices, the problems of complex cabling and high cost in server BMC log collection are solved, achieving easy maintenance and high stability log transmission.
Patent Information
- Application Number
- CN202411746868.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In existing technologies, server BMC log collection via wired connections results in complex cabling, high maintenance difficulty, and high costs.
A first wireless transceiver module is set up on each server, and a second wireless transceiver module is set up in the data transmission device of each rack. The system logs of the baseboard management controller are collected and transmitted wirelessly, and the target data transmission device is dynamically selected according to the load to send them to the log management device.
It reduces wiring complexity, reduces wiring costs, is easy to maintain, and improves the stability and security of data transmission.
Smart Images

Figure CN119603133B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a log collection method, device and system of multiple servers. BACKGROUND
[0002] The state monitoring and troubleshooting of the server mainly depend on the baseboard management controller (BMC) system log. In the related art, each server is connected with a data center device in a wired manner, and the BMC system log of each server is collected in a wired manner. However, due to the large number of servers, the wired log collection manner leads to complex wiring, high maintenance difficulty and high cost.
[0003] Therefore, how to reduce the wiring complexity, maintenance difficulty and wiring cost of the BMC log collection is a problem to be solved by those skilled in the art. SUMMARY
[0004] The embodiments of the present application provide a log collection method, device and system of multiple servers, which can reduce the wiring complexity, facilitate maintenance and reduce the wiring cost.
[0005] To solve the above technical problems, the embodiments of the present application provide a log collection method of multiple servers. Each server is provided with a first wireless transceiver module, and each data transmission device of a cabinet is provided with a second wireless transceiver module. The data transmission device is connected with a log management device. The method is applied to the data transmission device and includes the following steps.
[0006] The second wireless transceiver module of the current cabinet receives the baseboard management controller system log sent by the first wireless transceiver module of each server in the current cabinet.
[0007] According to the current load condition, a target data transmission device is determined.
[0008] The baseboard management controller system log is sent to the log management device through the target data transmission device.
[0009] In some embodiments, the target data transmission device is determined according to the current load condition, which includes the following steps.
[0010] The data transmission state information of the current data transmission device is obtained, and the comprehensive evaluation index of the current data transmission device is calculated according to the data transmission state information.
[0011] In the case that the comprehensive evaluation index of the current data transmission device is less than or equal to a preset threshold, the current data transmission device is taken as the target data transmission device.
[0012] In a case where the comprehensive evaluation index of the current data transmission device is greater than the preset threshold, a target data transmission device is determined from the data transmission devices of the other cabinets.
[0013] In some embodiments, the data transmission status information includes one or more of a current data load, a maximum processable data load, a remaining transmission capacity with the log management device, a distance from the log management device, a battery remaining capacity of a battery used to power the current data transmission device, and a current data transmission efficiency.
[0014] In some embodiments, the method further comprises:
[0015] acquiring the battery remaining capacity sent by the data transmission devices of the other cabinets;
[0016] The comprehensive evaluation index of the current data transmission device is calculated according to the data transmission status information, which comprises:
[0017] According to the current data load and the maximum processable data load, a load balancing factor is calculated;
[0018] According to the remaining transmission capacity with the log management device and the distance from the log management device, a transmission capacity factor is calculated;
[0019] According to the battery remaining capacity of the current data transmission device and the battery remaining capacities of the data transmission devices of the other cabinets respectively, a battery capacity factor is determined;
[0020] A first weight value corresponding to the load balancing factor, a second weight value corresponding to the transmission capacity factor, and a third weight value corresponding to the battery capacity factor are acquired;
[0021] According to the first weight value, the second weight value, and the third weight value, the load balancing factor, the transmission capacity factor, and the battery capacity factor are combined to obtain the comprehensive evaluation index of the current data transmission device.
[0022] In some embodiments, the target data transmission device is determined from the data transmission devices of the other cabinets, which comprises:
[0023] The data information sent by the second wireless transceiver modules in the data transmission devices of the other cabinets is acquired by the current second wireless transceiver module;
[0024] Each of the data information is parsed to determine the cabinet positions of the other cabinets and the comprehensive evaluation indexes of the data transmission devices;
[0025] determining each adjacent rack within a preset range from each of the other racks according to rack positions of the other racks and the rack position of the current rack;
[0026] determining a data transmission device corresponding to a minimum comprehensive evaluation index according to the comprehensive evaluation index corresponding to each of the adjacent racks, and taking the data transmission device corresponding to the minimum comprehensive evaluation index as a target data transmission device.
[0027] In some embodiments, in the case of determining the target data transmission device from the data transmission devices of the other racks, the method further comprises:
[0028] simultaneously taking the current data transmission device as the target data transmission device;
[0029] The sending of the baseboard management controller system log to the log management device through the target data transmission device comprises:
[0030] sending a first preset proportion of the baseboard management controller system log in the baseboard management controller system log to a second wireless transceiver module of a target data transmission device determined from the data transmission devices of the other racks through a second wireless transceiver module of the current rack, so that the target data transmission device determined from the data transmission devices of the other racks sends the first preset proportion of the baseboard management controller system log to the log management device;
[0031] sending the remaining baseboard management controller system log in the baseboard management controller system log to the log management device through the current data transmission device.
[0032] In some embodiments, the first wireless transceiver module and / or the second wireless transceiver module is a wireless transceiver module based on a cooperative short wave communication technology; the method further comprises:
[0033] obtaining a current environmental parameter;
[0034] adjusting the wavelength of the second wireless transceiver module according to the current environmental parameter.
[0035] In some embodiments, the baseboard management controller system log is a baseboard management controller agent module on a server collecting baseboard management controller log data of the server according to a pre-set log collection strategy; the log collection strategy is determined based on a specified log type and / or log level and / or collection frequency.
[0036] Another embodiment of the present invention provides a multi-server log collection device, wherein each server is provided with a first wireless transceiver module, and each cabinet's data transmission device is provided with a second wireless transceiver module, wherein the data transmission device is connected to a log management device by wire. The device is applied to the data transmission device and includes:
[0037] a receiving module, configured to receive, through a second wireless transceiver module of a current cabinet, a baseboard management controller system log sent by a first wireless transceiver module of each server located in the current cabinet;
[0038] A determination module, configured to determine a target data transmission device according to a current load condition;
[0039] The sending module is used to send the baseboard management controller system log to the log management device through the target data transmission device.
[0040] Another embodiment of the present invention provides a multi-server log collection system, comprising a first wireless transceiver module provided on each server, a data transmission device provided on each cabinet, a log management device connected to the data transmission device of each cabinet, and a second wireless transceiver module, a memory, and a processor provided in the data transmission device; wherein:
[0041] memory for storing computer programs;
[0042] A processor is used to execute the computer program to implement the steps of the multi-server log collection method as described above.
[0043] It can be seen from the above technical solution that the beneficial effects of the present invention are:
[0044] An embodiment of the present invention provides a log collection method for multiple servers, wherein each server is provided with a first wireless transceiver module, a data transmission device of each cabinet is provided with a second wireless transceiver module, and the data transmission device is connected to a log management device. The method is applied to the data transmission device, including: receiving a baseboard management controller system log sent by the first wireless transceiver module of each server located in the current cabinet through the second wireless transceiver module of the current cabinet; determining a target data transmission device according to the current load situation; and sending the baseboard management controller system log to the log management device through the target data transmission device.
[0045] Therefore, the first wireless transceiver module is arranged on each server in each cabinet, the second wireless transceiver module is arranged in the data transmission device on the cabinet, the baseboard management controller system log can be sent to the second wireless transceiver module of the data transmission device of the cabinet by the first wireless transceiver module in a wireless manner, the data transmission device in the cabinet can determine the target data transmission device from the data transmission devices of the cabinet and other cabinets according to the current load condition, and since the data transmission device of each cabinet is connected with the log management equipment, the received baseboard management controller system log can be sent to the log management equipment through the target data transmission device; in the embodiment of the application, the first wireless transceiver module is arranged on the server and the second wireless transceiver module is arranged on the data transmission device of the cabinet, so that the number of wirings can be greatly reduced, wiring complexity can be reduced, wiring cost can be reduced, and maintenance is easy.
[0046] In addition, the application also provides a corresponding implementation device and system for the log collection method of the multiple servers, so that the method is more practical, and the device and the system have corresponding advantages. BRIEF DESCRIPTION OF DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0048] Figure 1 A flowchart of a baseboard management controller system log method provided by the embodiment of the application is shown in the figure.
[0049] Figure 2 An architecture diagram of a baseboard management controller system log system provided by the embodiment of the application is shown in the figure.
[0050] Figure 3 A flowchart of another baseboard management controller system log method provided by the embodiment of the application is shown in the figure.
[0051] Figure 4 A deployment preparation and server software deployment diagram provided by the embodiment of the application is shown in the figure.
[0052] Figure 5 A log collection and preprocessing process diagram provided by the embodiment of the application is shown in the figure.
[0053] Figure 6 An encryption and processing process diagram in a log transmission process provided by the embodiment of the application is shown in the figure.
[0054] Figure 7 A log management process schematic diagram of a log management device provided by an embodiment of the present application is provided.
[0055] Figure 8 A log backup recovery and maintenance process schematic diagram of a log management device provided by an embodiment of the present application is provided.
[0056] Figure 9 A structure schematic diagram of a substrate management controller system log device provided by an embodiment of the present application is provided. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0058] The terms “include” and “have” and any variations of the terms “include” and “have” in the specification and the above drawings of the present application are intended to cover the non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can include steps or units not listed.
[0059] In order for the person in the technical field to better understand the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0060] In the related art, the substrate management controller system log (i.e., BMC log) is mainly collected in a wired manner, but the wired collection manner leads to complex wiring, difficult maintenance and high wiring cost. In view of this, the embodiments of the present application provide a multi-server log collection method which reduces wiring complexity, reduces wiring cost and is easy to maintain.
[0061] Next, a multi-server log collection method provided by an embodiment of the present application will be described in detail, Figure 1 A flow schematic diagram of a multi-server log collection method provided by an embodiment of the present application is provided. Each server is provided with a first wireless transceiver module, each cabinet data transmission device is provided with a second wireless transceiver module, and the data transmission device is connected with a log management device.
[0062] It should be noted that, as Figure 2 shown in the architecture diagram of the multi-server log collection system, in the embodiments of the present application, each server (such as Figure 2Servers 1 to n in the example are configured with corresponding first wireless transceiver modules A. The first wireless transceiver modules A have wireless transmission and reception functions. In practical applications, in order to further ensure the redundancy and stability of data transmission, two sets of first wireless transceiver modules can be configured for each server, with one of the first wireless transceiver modules serving as the main module and the other as the backup module. In the event of a failure of the main module, the backup module can be used for data transmission. In the embodiment of the present invention, each cabinet (such as Figure 2 The illustrated cabinets (1 through m) are equipped with corresponding data transmission devices, each equipped with a second wireless transceiver module B. Each server within the cabinet can communicate wirelessly with the second wireless transceiver module B via the corresponding first wireless transceiver module A. The second wireless transceiver module B is isolated from other networks through a separate network layout, thereby enhancing data transmission security. The data transmission device is connected to a log management device. In actual applications, if the log management device is remote from the data transmission device, the data transmission device can be connected to the log management device via a wired connection, ensuring the stability and security of data transmission between the data transmission device in the cabinet and the log management device.
[0063] In addition, in practical applications, each first wireless transceiver module and the second wireless transceiver module may be equipped with a corresponding power supply battery to ensure that the module can continue to work for a period of time in the event of a power outage, thereby better ensuring the continuity and integrity of data transmission.
[0064] This method is applied to the data transmission device in each cabinet, and is now described in detail using a cabinet as an example. The method includes:
[0065] S110: Receiving, through the second wireless transceiver module of the current cabinet, a baseboard management controller system log sent by the first wireless transceiver module of each server located in the current cabinet;
[0066] It can be understood that each server located in the current cabinet can respectively send the baseboard management controller system log collected by the BMC on the server to the second wireless transceiver module of the data transmission device of the current cabinet through its own first wireless transceiver module, and the data transmission device can receive the baseboard management controller system log sent by each server located in the current cabinet.
[0067] S120: Determine a target data transmission device based on the current load condition;
[0068] It should be noted that, in order to guarantee the stability and security of data transmission, the data transmission device can determine a target data transmission device according to the current load condition, and in actual application, the target data transmission device can be determined from the data transmission device itself and the data transmission devices of other cabinets.
[0069] S130: sending the baseboard management controller system log to the log management equipment through the target data transmission device.
[0070] After the target data transmission device is determined, the baseboard management controller system log sent by each server in the current cabinet can be sent to the log management equipment for centralized storage and management through the target data transmission device.
[0071] In actual application, considering that the SSC (Synthetic Shortwave Communication) has the advantages of high stability, strong reliability and strong anti-interference ability, the first wireless transceiver module and / or the second wireless transceiver module in the embodiment of the application are wireless transceiver modules realized based on the SSC technology, so that the stability, reliability and anti-interference ability of data transmission can be improved.
[0072] Therefore, it can be known that the first wireless transceiver module is arranged on each server inside each cabinet, the second wireless transceiver module is arranged in the data transmission device of the cabinet, each server inside the cabinet can send the baseboard management controller system log to the second wireless transceiver module of the data transmission device of the cabinet in a wireless manner through the first wireless transceiver module, the data transmission device in the cabinet can determine a target data transmission device from itself and each data transmission device of other cabinets according to the current load condition, since the data transmission device of each cabinet is connected with the log management equipment, the received baseboard management controller system log can be sent to the log management equipment through the target data transmission device; in the embodiment of the application, the first wireless transceiver module is arranged on the server and the second wireless transceiver module is arranged on the data transmission device of the cabinet, so that the number of wiring can be greatly reduced, the wiring complexity can be reduced, the wiring cost can be reduced, and maintenance is easy.
[0073] In some embodiments, the process of determining the target data transmission device according to the current load condition can include:
[0074] obtaining data transmission state information of the current data transmission device, and calculating a comprehensive evaluation index of the current data transmission device according to the data transmission state information;
[0075] In a case where the comprehensive evaluation index of the current data transmission device is less than or equal to a preset threshold, the current data transmission device is taken as the target data transmission device.
[0076] In a case where the comprehensive evaluation index of the current data transmission device is greater than the preset threshold, the target data transmission device is determined from the data transmission devices of the other cabinets.
[0077] It should be noted that whether the data transmission device is busy is determined by monitoring the data transmission device itself. In a case where the data transmission device is busy, the target data transmission device is determined from the data transmission devices of the other cabinets. In a case where the data transmission device is not busy, the data transmission device itself is taken as the target data transmission device.
[0078] In actual application, the comprehensive evaluation index of the current data transmission device can be calculated according to the data transmission state information of the current data transmission device, wherein the comprehensive evaluation index can reflect the load condition of the data transmission device. It is further determined whether the comprehensive evaluation index of the current data transmission device is less than or equal to a preset threshold. If the comprehensive evaluation index of the current data transmission device is less than or equal to the preset threshold, it indicates that the current data transmission device is not busy and can continue to transmit more data. At this time, the current data transmission device in the current cabinet can be taken as the target data transmission device, and the baseboard management controller system log received from each server can be sent to the log management device. If the comprehensive evaluation index of the current data transmission device is greater than the preset threshold, it indicates that the current data transmission device is busy and cannot bear the transmission of all baseboard management controller system logs. At this time, the target data transmission device can be determined from the data transmission devices of the other cabinets, so that the baseboard management controller system log is sent to the log management device through the target data transmission device.
[0079] In some embodiments, in a case where the target data transmission device is determined from the data transmission devices of the other cabinets, the method can further include:
[0080] The current data transmission device is taken as the target data transmission device at the same time;
[0081] The baseboard management controller system log is sent to the log management device through the target data transmission device, including:
[0082] The first preset proportion of the baseboard management controller system log in the baseboard management controller system log is sent to the second wireless transceiver module of the target data transmission device determined from the data transmission devices of the other cabinets through the second wireless transceiver module of the current data transmission device, so that the target data transmission device determined from the data transmission devices of the other cabinets sends the first preset proportion of the baseboard management controller system log to the log management device;
[0083] The remaining substrate management controller system logs in the substrate management system log are sent to the log management device by the current data transmission device.
[0084] It can be understood that in actual application, if the comprehensive evaluation index of the current data transmission device is greater than the preset threshold, one data transmission device can be coordinated from the data transmission devices of other cabinets to share the data transmission work, so as to avoid data congestion or loss. Therefore, in the embodiment of the present application, after a target data transmission device is determined from the data transmission devices of other cabinets, the current data transmission device of the current cabinet can also be used as a target transmission device at the same time. All substrate management controller system logs to be sent to the log management device can be divided into two parts, one part is the first preset proportion of substrate management controller system logs, and the other part is the remaining proportion of substrate management controller system logs. The data transmission devices of different cabinets can communicate with each other through their respective second wireless transceiver modules. Therefore, in the embodiment of the present application, the current data transmission device can send the first preset proportion of substrate management controller system logs to the second wireless transceiver module of the target data transmission device selected from the data transmission devices of other cabinets through the second wireless transceiver module of the current data transmission device, and then send this part of the substrate management controller system logs to the log management device through the target data transmission device; on the other hand, the current data transmission device directly sends the remaining part of the substrate management controller system logs to the log management device, so as to better guarantee the stability and security of data transmission, and better maintain load balancing.
[0085] In some embodiments, the data transmission state information reflecting the load condition in the embodiment of the present application can include one or more of the current data load Li, the maximum processable data load Ci, the remaining transmission capacity Ri to the log management device, the distance Di to the log management device, the battery remaining capacity Pi of the battery used to power the current data transmission device, and the current data transmission efficiency Ti.
[0086] In some embodiments, in the case where the data transmission state information includes all of the above-mentioned current data load Li, the maximum processable data load Ci, the remaining transmission capacity Ri to the log management device, the distance Di to the log management device, and the battery remaining capacity Pi, the method can further include:
[0087] Obtaining the battery remaining capacity sent by the data transmission devices of other cabinets;
[0088] The above-mentioned process of calculating the comprehensive evaluation index of the current data transmission device according to the data transmission state information can include:
[0089] According to the current data load Li and the maximum processable data load Ci, a load balancing factor Ei is calculated; wherein, the current data load Li and the maximum processable data load Ci can be multiplied to obtain the load balancing factor Ei, that is, Ei=Li*Ci.
[0090] According to the remaining transmission capacity Ri of the log management device and the distance Di between the log management device, a transmission capacity factor Fi is calculated; wherein, the remaining transmission capacity Ri of the log management device and the distance Di between the log management device can be multiplied to obtain the transmission capacity factor Fi, that is, Fi=Ri*Di.
[0091] According to the battery remaining capacity Pi of the current data transmission device and the battery remaining capacity Pi corresponding to the data transmission device of each other cabinet, a battery capacity factor Gi is determined; wherein, the battery remaining capacity with the largest value can be selected from each battery remaining capacity as the battery capacity factor, that is, Gi=max(Pi).
[0092] A first weight value w1 corresponding to the load balancing factor, a second weight value w2 corresponding to the transmission capacity factor and a third weight value w3 corresponding to the battery capacity factor are obtained;
[0093] According to the first weight value w1, the second weight value w2 and the third weight value w3, in combination with the load balancing factor Ei, the transmission capacity factor Fi and the battery capacity factor Gi, a comprehensive evaluation index Hi of the current data transmission device is obtained.
[0094] It can be understood that in the embodiment of the application, the weight value corresponding to each factor can be determined in advance to balance the importance of each factor, and then the comprehensive evaluation index of the current data transmission device can be obtained according to each weight value and the corresponding factor. That is, the comprehensive evaluation index Hi of the current data transmission device is w1*Ei+w2*Fi+w3*Gi.
[0095] For the data transmission device in each cabinet, the comprehensive evaluation index of itself is obtained in the above manner.
[0096] In some embodiments, the process of determining the target data transmission device from the data transmission devices of other cabinets can include:
[0097] The data information sent by the second wireless transceiver module in the data transmission device of each other cabinet is obtained through the current second wireless transceiver module.
[0098] Each data information is parsed to determine the cabinet position of each other cabinet and the comprehensive evaluation index of the data transmission device.
[0099] determine each adjacent cabinet within a preset range from each of the other cabinets according to the cabinet positions of the other cabinets and the cabinet position of the current cabinet;
[0100] determine the data transmission device corresponding to the minimum comprehensive evaluation index according to the comprehensive evaluation indexes corresponding to the data transmission devices of each adjacent cabinet, and take the data transmission device corresponding to the minimum comprehensive evaluation index as the target data transmission device.
[0101] It can be understood that, in the embodiment of the present application, the data information transmitted by the second wireless transceiver module in the data transmission device of each of the other cabinets is acquired by the current second wireless transceiver module in the current data transmission device, and the data information can include the cabinet position and the comprehensive evaluation index. Then, the distance between the current cabinet and each of the other cabinets is determined according to the cabinet positions of the other cabinets and the cabinet position of the current cabinet, and each adjacent cabinet within a distance threshold (for example, 10 m) from the current cabinet is determined from the other cabinets; or, a preset range is determined with the current cabinet as the center and a first distance (for example, 10 m) as the radius, wherein the specific values of the first distance and the distance threshold can be determined according to actual needs, and each adjacent cabinet within the preset range is determined according to the cabinet positions of the other cabinets. Further, the data transmission device with the minimum comprehensive evaluation index is screened out according to the comprehensive evaluation indexes corresponding to the data transmission devices of each adjacent cabinet, and the data transmission device is taken as the target data transmission device determined from the data transmission devices of each of the other adjacent cabinets.
[0102] In some embodiments, the method can further include:
[0103] In the case where the distance between the cabinet where the data transmission device corresponding to the minimum comprehensive evaluation index is located and the cabinet where the current data transmission device is located is greater than a preset distance, a relay data transmission device is determined from the data transmission devices of the remaining adjacent cabinets;
[0104] sending the baseboard management controller system log to the log management device through the target data transmission device includes:
[0105] sending the baseboard management controller system log to the second wireless transceiver module of the relay data transmission device through the current second wireless transceiver module, so as to send the baseboard management controller system log to the second wireless transceiver module of the target data transmission device through the second wireless transceiver module of the relay data transmission device, and make the target data transmission device send the baseboard management controller system log to the log management device.
[0106] It should be noted that if the distance between the cabinet where the target data transmission device is determined from the data transmission device of other adjacent cabinets and the current cabinet is greater than the preset distance (for example, 5m), the direct data transmission between the second wireless transceiver modules of the two may have problems such as data loss due to long distance. Therefore, in order to ensure the safety and integrity of data transmission in this case, a relay data transmission device can be selected from the data transmission devices of other adjacent cabinets in the embodiment of the application, and then the baseboard management controller system log or the first preset proportion of the baseboard management controller system log is sent to the second wireless transceiver module of the relay data transmission device through the second wireless transceiver module of the current data transmission device. The baseboard management controller system log or the first preset proportion of the baseboard management controller system log is sent to the second wireless transceiver module of the target data transmission device through the second wireless transceiver module of the relay data transmission device, so that the target data transmission device receives the log data and sends the log data to the log management device.
[0107] In addition, it should be noted that after part of the baseboard management controller system log is allocated to the target data transmission device determined from other adjacent cabinets for transmission, the data transmission state information (current data load Li, maximum processable data load Ci, remaining transmission capacity Ri to the log management device, distance Di to the log management device, battery remaining capacity Pi and current data transmission efficiency Ti) of the data transmission devices in all cabinets participating in data transmission can be recalculated, so that load balancing can be better maintained.
[0108] In some embodiments, the method can further include:
[0109] Obtaining a current environmental parameter;
[0110] Adjusting the wavelength of the current second wireless transceiver module according to the current environmental parameter.
[0111] It should be noted that the wavelength of the second wireless transceiver module can be adjusted according to the current environmental parameter (such as temperature T, humidity H, and medium type M) in the embodiment of the application. Of course, the wavelength of the first wireless transceiver module can also be adjusted.
[0112] For example, an environmental adaptability index E can be obtained according to the current environmental parameter, E=f(T, H, M)=w1’*T+w2’*H+w3’*M. The adjusted wavelength is λ=E*λi, where λi is the current wavelength, and w1’, w2’, and w3’ represent the weight coefficients of T, H, and M, respectively.
[0113] In some embodiments, the method can further include:
[0114] According to the current received signal strength, the amplification multiple of the current second wireless transceiver module is adjusted.
[0115] In the embodiment of the application, the amplification multiple of the current second wireless transceiver module can also be adjusted according to the current received signal strength according to the relationship A=f(L, H')=C1*L+C2*H, wherein A represents the adjusted amplification multiple, L represents the distance between the second wireless transceiver module and the transmitting end, H' represents the current received signal strength, and C1 and C2 respectively represent constants. In addition, in actual application, the amplification multiple of each first wireless transceiver module can also be adjusted according to the above relationship.
[0116] It should be further noted that in the embodiment of the application, external short-wave interference I can also be detected, and a cancellation wave can be calculated according to the short-wave interference I, wherein the cancellation wave C=-I2 / λ, wherein C represents the wavelength of the cancellation wave, and λ represents the wavelength of the interference wave.
[0117] The first wireless transceiver module and the second wireless transceiver module in the embodiment of the application can both realize intelligent routing function by using SSC technology, and automatically select the best communication path according to the current network condition and the device position.
[0118] In actual application, the SSC technology integrates machine learning algorithm, and improves the adaptability to environmental changes and the communication efficiency by continuous learning and optimization; multi-dimensional signal processing technology such as spatial diversity and polarization diversity can be used to improve the robustness and anti-interference ability of the signal; energy collection function can also be integrated, and energy such as solar energy and vibration energy can be collected from the environment to realize self-sufficiency. In addition, in the data transmission process, advanced encryption standard (AES, Advanced Encryption Standard) can be used for end-to-end encryption to ensure the safety of data transmission, Encrypted Data=E(Key, Plain Data).
[0119] It can be understood that, for example, Figure 3The first wireless transceiver module arranged on the server sends the collected BMC system log to the second wireless transceiver module of the data transmission device of the cabinet, so as to send the BMC system log to the data transmission device of the cabinet. The data transmission device further performs load assessment. If load balancing is required, a target data transmission device is determined from the data transmission devices of other cabinets through coordination, and the BMC system log is sent to the log management equipment. If load balancing is not required, the received BMC system log is directly sent to the log management equipment through the data transmission device. After receiving the BMC system log, the log management equipment stores the BMC system log, and can also process and analyze the log, and monitor the system state and performance.
[0120] In an embodiment, the substrate management controller system log in the embodiment of the present application is collected by a substrate management controller agent module on a server according to a pre-set log collection strategy. The log collection strategy is determined based on a specified log type and / or log level and / or collection frequency.
[0121] It should be noted that the substrate management controller agent module, i.e., the BMC agent module, can collect the BMC log data of the server in real time, and can also perform necessary data cleaning, formatting and classification processing on the BMC log data to reduce the complexity of subsequent storage and analysis. The pre-processed log data is transmitted to the data transmission device of the cabinet and then to the log management equipment through the SSC technology by wireless transmission. Advanced encryption algorithms are used for encryption during the transmission process to ensure the security of the data. At the same time, a data integrity checking mechanism is added to ensure the integrity of the data during the transmission process.
[0122] The log collection process and transmission process of the substrate management controller agent module are described below:
[0123] It should be noted that, as Figure 4 indicated, the servers can be first configured and performance tested to ensure that the deployment requirements are met, and the compatibility of each wireless transceiver module based on SSC communication (including the first wireless transceiver module and the second wireless transceiver module) is tested to ensure the communication stability of the data transmission device with the server and the log management equipment. After the deployment preparation is completed, the BMC agent software (i.e., the BMC agent module) is deployed on each server, and the first wireless transceiver module based on SSC communication is configured for the server to ensure that the BMC agent module can be normally started and establish a communication connection with the first wireless transceiver module.
[0124] As Figure 5As shown, the initialization configuration can be performed first, and then the real-time log collection is performed after the initialization configuration is completed, and the collected logs are intelligently filtered, and then the data is preprocessed, cleaned, classified and sensitive data is desensitized, and the collected log data is obtained after the preprocessing is completed.
[0125] Initialization configuration phase: after starting the BMC agent module, necessary initialization operations are performed, such as loading configuration files, setting log collection strategies, etc. At the same time, the related parameters of the log management device are configured, such as the storage path, access permission, etc.
[0126] Real-time log collection and intelligent filtering phase: the BMC agent module starts to collect the BMC log data of the server in real time, including system logs, application logs, etc., and performs preliminary screening and formatting processing on the collected log data. The BMC agent module can first configure the log collection strategy, and the log collection measurement can include specifying the log type, log level and collection frequency, etc. to meet the log collection needs in different scenarios, wherein the specific content of the log type, log level and collection frequency can be determined according to actual needs, and the embodiments of the present application do not make special limitations. The BMC agent module can further listen to the log generation of the server in real time, adopt an asynchronous collection mode, ensure that the log collection is based on the log collection strategy without blocking the normal operation of the server, and preliminarily screen the collected log data to remove invalid or duplicate information, and convert the format of the screened log data into a unified format, which is convenient for subsequent processing and query. For the log data after format conversion, filtering can be performed according to log content, source or timestamp, etc. to reduce the collection of invalid logs, thereby improving the collection efficiency. Then, a compression technique is used to compress the large amount of log data after filtering, thereby reducing the storage space occupation, and the compression technique is applied in the transmission process to reduce the transmission bandwidth demand.
[0127] In the log collection process, a buffer can be used to temporarily store the collected log data, realizing asynchronous collection, and when the buffer is full or a certain condition is met, the data is batched and transmitted to the log management device through the first wireless transceiver module and the data transmission device of the cabinet. Among them, for large servers or high-concurrency scenarios, multi-threading or parallel processing technology can be used to collect data from multiple log sources simultaneously, improving the collection speed and efficiency; the log level can also be dynamically adjusted according to the system running state and user demand, and different levels of log information can be flexibly collected to meet different needs of fault troubleshooting and normal operation.
[0128] Data preprocessing phase: in order to facilitate subsequent analysis and query, the collected log data can be further cleaned, classified and labeled. In addition, in order to further ensure the security of the data, sensitive data can also be desensitized.
[0129] As shown in the figure, before the BMC agent module transmits the BMC system log data, the BMC agent module can further encrypt the processed log data using an encryption algorithm to ensure data security during wireless transmission, and perform data integrity checking (i.e., add a check code or checksum) on the encrypted data to verify the integrity of the data at the receiving end, thereby ensuring that the data is not tampered with or lost during transmission. Figure 6
[0130] The encrypted and checked log data is transmitted to the data transmission device in the cabinet through the first wireless transceiver module based on the SSC technology, and is transmitted to the log management equipment through the data transmission device, so that wireless transmission between the BMC agent module and the log management equipment can be realized, wherein the SSC technology has the communication capabilities of multiple terminals, high bandwidth and low delay, ensuring that the log data can be transmitted to the log management equipment in real time and efficiently.
[0131] Since the amount of log data to be transmitted may be large, the BMC agent module can perform packet processing on the encrypted and checked log data, each data packet containing a portion of the log data and having a sequence identifier so that the data can be recombined in the correct order at the receiving end. During wireless transmission, due to network instability or interference factors, data packets may be lost or damaged, and therefore the receiving end can send a retransmission request to the sending end when it detects that a data packet is lost or damaged, and the sending end will resend the corresponding data packet upon receiving the request until the receiving end correctly receives and confirms it.
[0132] To ensure stable data transmission, the BMC agent module can also monitor network bandwidth and transmission status, and dynamically adjust the sending rate and data packet size according to the network bandwidth and transmission status to avoid network congestion and data loss. At the same time, the receiving end can also send a flow control signal to the sending end according to its own processing capacity to coordinate the transmission speed of both parties. During wireless transmission, the BMC agent module will monitor the transmission status in real time, including transmission speed, data packet quantity, retransmission times, and other key indicators, and record important events and abnormal conditions during transmission into the log for subsequent analysis and troubleshooting.
[0133] It should be noted that the log management equipment in the present embodiment can use a high-performance storage system to receive and store BMC log data from each server. The log management equipment can perform partitioned storage management on the log data after receiving the baseboard manager system log from each server to improve data retrieval efficiency, and can also establish an efficient indexing mechanism to facilitate users to quickly locate and analyze specific log data. In addition, as shown in the figure, the log management equipment can also include a log analysis module to analyze the log data and provide users with log analysis reports, so that users can quickly and accurately identify and troubleshoot problems. Figure 7 As shown, the system monitoring function can also be set to monitor the status of log collection, transmission and storage in real time, and trigger an alarm notification in a timely manner once an abnormal condition is found, so that the administrator can handle it; it can also provide log query and analysis, and handle and alarm when potential alarm events are found.
[0134] It can be understood that the log management device receives the baseboard manager system log data from each server, decrypts and verifies the log data, and after verifying the data integrity, stores the log data according to the preset storage strategy and establishes the corresponding index. The log management device can monitor the status of log collection, transmission and storage in real time, and if there is an abnormal condition (such as transmission interruption or storage failure, etc.), an alarm prompt is given to notify the administrator to handle it.
[0135] The log management device can receive a query log instruction through an API interface, and then determine the corresponding log data from the stored log data according to the query log instruction to display. The query log instruction can be input by the user through the API interface. The log management device can also obtain the user's selected query conditions, quickly locate the problem according to the query conditions and the corresponding data analysis strategy, and perform performance optimization.
[0136] The log management device can analyze the received baseboard manager system log data or the stored baseboard manager system log data to obtain log data analysis results, identify potential alarm events according to the log data analysis results, and determine the level of the potential alarm events. For important alarm events, trigger an alarm notification to remind the administrator to handle it in a timely manner.
[0137] In addition, as shown, Figure 8 The log management device can also periodically back up the stored baseboard manager system log data to prevent data loss and establish a data recovery mechanism to recover lost data according to the backup data when data loss is detected, thereby ensuring quick recovery in the event of data loss or damage. In actual application, the BMC agent software can also be updated periodically, the SSC-based wireless transceiver module can be optimized, and the storage system can be expanded. In addition, the system can also be secured, such as strengthening access control and preventing malicious attacks, to ensure the security and stable operation of the system.
[0138] The application also provides a corresponding device for the method of collecting logs of multiple servers, further making the method more practical. The device can be described from the perspective of functional modules and the perspective of hardware. The device for collecting logs of multiple servers provided by the application is described below. The device is used to implement the method of collecting logs of multiple servers provided by the application. In this embodiment, the device for collecting logs of multiple servers can include or be divided into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the method of collecting logs of multiple servers disclosed in the above embodiment. The program module referred to by the application refers to a series of computer program instruction segments capable of completing a specific function, and is more suitable than the program itself for describing the execution process of the device for collecting logs of multiple servers in the storage medium. The following description will specifically introduce the functions of each program module in this embodiment. The device for collecting logs of multiple servers described below can be mutually referred to the method of collecting logs of multiple servers described above.
[0139] Based on the perspective of functional modules, refer to Figure 9 , Figure 9 The structure diagram of the device for collecting logs of multiple servers provided by the application is shown in the figure. Each server in the embodiment of the application is provided with a first wireless transceiver module, and each data transmission device of the cabinet is provided with a second wireless transceiver module. The data transmission device is wiredly connected to the log management equipment. The device for collecting logs of multiple servers is applied to the data transmission device and includes:
[0140] The receiving module 11 is configured to receive the baseboard management controller system log sent by the first wireless transceiver module on each server in the current cabinet through the second wireless transceiver module of the current cabinet.
[0141] The determining module 12 is configured to determine the target data transmission device according to the current load condition.
[0142] The sending module 13 is configured to send the baseboard management controller system log to the log management equipment through the target data transmission device.
[0143] In some embodiments, the determining module 12 includes:
[0144] The computing unit is configured to obtain data transmission state information of the current data transmission device, and calculate a comprehensive evaluation index of the current data transmission device according to the data transmission state information.
[0145] The first determining unit is configured to determine the current data transmission device as the target data transmission device in the case that the comprehensive evaluation index of the current data transmission device is less than or equal to a preset threshold.
[0146] The second determining unit is configured to determine the target data transmission device from the data transmission devices of the other cabinets when the comprehensive evaluation index of the current data transmission device is greater than a preset threshold.
[0147] In some embodiments, the data transmission status information comprises one or more of a current data load, a maximum processable data load, a residual transmission capacity of the log management device, a distance between the log management device, a battery residual capacity, and a current data transmission efficiency.
[0148] In some embodiments, the apparatus further comprises:
[0149] The first obtaining module is configured to obtain the battery residual capacities sent by the data transmission devices of the other cabinets.
[0150] The computing unit comprises:
[0151] The first computing sub-unit is configured to calculate a load balancing factor according to the current data load and the maximum processable data load.
[0152] The second computing sub-unit is configured to calculate a transmission capacity factor according to the residual transmission capacity of the log management device and the distance between the log management device.
[0153] The third computing sub-unit is configured to determine a battery capacity factor according to the battery residual capacity of the current data transmission device and the battery residual capacities of the data transmission devices of the other cabinets.
[0154] The first obtaining sub-unit is configured to obtain a first weight value corresponding to the load balancing factor, a second weight value corresponding to the transmission capacity factor, and a third weight value corresponding to the battery capacity factor.
[0155] The fourth computing sub-unit is configured to obtain the comprehensive evaluation index of the current data transmission device according to the first weight value, the second weight value, and the third weight value, in combination with the load balancing factor, the transmission capacity factor, and the battery capacity factor.
[0156] In some embodiments, the second determining unit comprises:
[0157] The second obtaining sub-unit is configured to obtain, by the current second wireless transceiver module, data information sent by the second wireless transceiver modules of the data transmission devices of the other cabinets.
[0158] The first determining sub-unit is configured to analyze each data information to determine the cabinet positions of the other cabinets and the comprehensive evaluation indexes of the data transmission devices.
[0159] The second determining sub-unit is configured to determine each adjacent cabinet within a preset range from each of the other cabinets according to the cabinet positions of the other cabinets and the cabinet position of the current cabinet.
[0160] The third determining sub-unit is configured to determine a data transmission device corresponding to a minimum comprehensive evaluation index according to the comprehensive evaluation indexes of the data transmission devices of the adjacent cabinets respectively, and take the data transmission device corresponding to the minimum comprehensive evaluation index as a target data transmission device.
[0161] In some embodiments, when the target data transmission device is determined from the data transmission devices of the other cabinets, the method further comprises:
[0162] The third determining unit is configured to take the current data transmission device as the target data transmission device simultaneously.
[0163] The sending module 13 comprises:
[0164] The first sending unit is configured to send a first preset proportion of the BMC system logs in the BMS logs to a second wireless transceiver module of a target data transmission device determined from the data transmission devices of the other cabinets through the current second wireless transceiver module, so that the target data transmission device determined from the data transmission devices of the other cabinets sends the first preset proportion of the BMC system logs to the log management device.
[0165] The second sending unit is configured to send the remaining BMC system logs in the BMS logs to the log management device through the current data transmission device.
[0166] In some embodiments, the first wireless transceiver module and / or the second wireless transceiver module is a wireless transceiver module based on the cooperative short wave communication technology; and the device further comprises:
[0167] The second obtaining module is configured to obtain a current environmental parameter.
[0168] The adjusting module is configured to adjust the wavelength of the current second wireless transceiver module according to the current environmental parameter.
[0169] In some embodiments, the BMC system logs are obtained by a BMC agent module on a server according to a pre-set log collection strategy.
[0170] It should be noted that the multi-server log collection device in the embodiment of the present application has the same beneficial effects as the multi-server log collection method provided in the above embodiment, and for the specific introduction of the multi-server log collection method involved in the embodiment of the present application, please refer to the above embodiment, which will not be repeated here.
[0171] On the basis of the above embodiment, the embodiment of the present application further provides a multi-server log collection system, comprising a first wireless transceiver module arranged on each server, a data transmission device arranged on each cabinet, a log management device connected with the data transmission device of each cabinet, and a second wireless transceiver module, a memory and a processor arranged in the data transmission device; wherein:
[0172] The memory is used for storing a computer program.
[0173] The processor is used for executing the computer program to realize the steps of the multi-server log collection method as described above.
[0174] The processor can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor can be realized in at least one hardware form of a DSP (Digital Signal Processing), a FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor can also include a main processor and a coprocessor. The main processor is a processor for processing data in a wake-up state, also known as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor can be integrated with a GPU (Graphics Processing Unit) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 can also include an AI (Artificial Intelligence) processor which is used for processing machine learning related computing operations.
[0175] The memory can include one or more computer-readable storage media, which can be non-transitory. The memory can also include a high-speed random access memory and a non-volatile memory such as one or more disk storage devices, flash storage devices.
[0176] It can be understood that if the multi-server log collection method in the above embodiments is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and performs all or part of the steps of the method of each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic disk or an optical disk, and various media that can store program codes.
[0177] The multi-server log collection method, device and system provided by the embodiments of the present application are described in detail above. Each embodiment in the specification is described in a progressive manner, and each embodiment mainly describes the differences from other embodiments. The same or similar parts of each embodiment can be referred to. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.
[0178] The skilled person can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solutions. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0179] The multi-server log collection method, device and system provided by the present application are described in detail above. The principles and implementation methods of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea. It should be noted that for ordinary skilled persons in the technical field, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A multi-server log collection method, characterized in that: Each server is provided with a first wireless transceiver module, and a data transmission device in each cabinet is provided with a second wireless transceiver module. The data transmission device is connected to the log management device. The first wireless transceiver module and / or the second wireless transceiver module are wireless transceiver modules implemented based on cooperative shortwave communication technology. The method is applied to the data transmission device, comprising: Receiving, through the second wireless transceiver module of the current cabinet, a baseboard management controller system log sent by the first wireless transceiver module of each server located in the current cabinet; Determine the target data transmission device based on the current load situation; The baseboard management controller system log is sent to the log management device through the target data transmission device; wherein: The determining of the target data transmission device according to the current load condition includes: Acquire data transmission status information of a current data transmission device, and calculate a comprehensive evaluation index of the current data transmission device based on the data transmission status information; If the comprehensive evaluation index of the current data transmission device is less than or equal to a preset threshold, the current data transmission device is used as a target data transmission device; When the comprehensive evaluation index of the current data transmission device is greater than the preset threshold, determining a target data transmission device from the data transmission devices of other cabinets; The process of determining the target data transmission device includes: determining the data transmission device corresponding to the minimum comprehensive evaluation index based on the comprehensive evaluation indexes corresponding to the data transmission devices of each adjacent cabinet, and using the data transmission device corresponding to the minimum comprehensive evaluation index as the target data transmission device; In the case of determining the target data transmission device from the data transmission devices of the other cabinets, the method further includes: taking the current data transmission device as the target data transmission device; The sending of the baseboard management controller system log to the log management device through the target data transmission device includes: sending a first preset proportion of the baseboard management controller system log in the baseboard management controller system log to the second wireless transceiver module of the target data transmission device determined from the data transmission devices of other cabinets through the current second wireless transceiver module, so that the target data transmission device determined from the data transmission devices of other cabinets sends the first preset proportion of the baseboard management controller system log to the log management device; sending the remaining baseboard management controller system log in the baseboard management controller system log to the log management device through the current data transmission device; The data transmission status information includes the current data load, the maximum processable data load, the remaining transmission capacity with the log management device, the distance between the log management device and the log management device, the remaining battery power of the battery used to power the current data transmission device, and the current data transmission efficiency.
2. The multi-server log collection method according to claim 1, characterized in that: Also includes: Obtain the remaining battery power sent by the data transmission devices of each other cabinet; Calculating the comprehensive evaluation index of the current data transmission device according to the data transmission status information includes: Calculating a load balancing factor according to the current data load and the maximum processable data load; Calculating a transmission capacity factor based on the remaining transmission capacity to the log management device and the distance between the log management device and the log management device; Determine a battery power factor based on the remaining battery power of the current data transmission device and the remaining battery power of the data transmission devices in other cabinets; Obtaining a first weight value corresponding to the load balancing factor, a second weight value corresponding to the transmission capability factor, and a third weight value corresponding to the battery power factor; A comprehensive evaluation index of the current data transmission device is obtained according to the first weight value, the second weight value, and the third weight value, combined with the load balancing factor, the transmission capability factor, and the battery power factor.
3. The multi-server log collection method according to claim 2, characterized in that: Determining the target data transmission device from the data transmission devices of other cabinets includes: Acquiring data information sent by the second wireless transceiver modules in the data transmission devices of each other cabinet through the current second wireless transceiver module; Analyze each of the data information to determine the cabinet position of each other cabinet and the comprehensive evaluation index of the data transmission device; According to the cabinet positions of other cabinets and the cabinet position of the current cabinet, adjacent cabinets located within a preset range are determined from other mechanisms; According to the comprehensive evaluation indicators respectively corresponding to the data transmission devices of the adjacent cabinets, the data transmission device corresponding to the minimum comprehensive evaluation indicator is determined, and the data transmission device corresponding to the minimum comprehensive evaluation indicator is used as the target data transmission device.
4. The multi-server log collection method according to claim 1, characterized in that: Said also includes: Get current environment parameters; The wavelength of the current second wireless transceiver module is adjusted according to the current environmental parameters.
5. The multi-server log collection method according to claim 1, characterized in that: The baseboard management controller system log is obtained by the baseboard management controller agent module on the server collecting the baseboard management controller log data of the server according to a pre-set log collection strategy; the log collection strategy is determined based on the specified log type and / or log level and / or collection frequency.
6. A multi-server log collection device, characterized in that: Each server is provided with a first wireless transceiver module, and each cabinet's data transmission device is provided with a second wireless transceiver module. The data transmission device is connected to the log management device by wire. The first wireless transceiver module and / or the second wireless transceiver module are wireless transceiver modules implemented based on cooperative shortwave communication technology. The device is applied to the data transmission device, including: a receiving module, configured to receive, through a second wireless transceiver module of a current cabinet, a baseboard management controller system log sent by a first wireless transceiver module of each server located in the current cabinet; A determination module, configured to determine a target data transmission device according to a current load condition; A sending module is used to send the baseboard management controller system log to the log management device through the target data transmission device; wherein: The determining module includes: A calculation unit, configured to obtain data transmission status information of a current data transmission device, and calculate a comprehensive evaluation index of the current data transmission device according to the data transmission status information; a first determining unit, configured to, when the comprehensive evaluation index of the current data transmission device is less than or equal to a preset threshold, determine the current data transmission device as a target data transmission device; a second determining unit configured to determine a target data transmission device from the data transmission devices of other cabinets when the comprehensive evaluation index of the current data transmission device is greater than the preset threshold; the process of determining the target data transmission device comprising: determining the data transmission device corresponding to the minimum comprehensive evaluation index based on the comprehensive evaluation indexes corresponding to the data transmission devices of each adjacent cabinet, and selecting the data transmission device corresponding to the minimum comprehensive evaluation index as the target data transmission device; In the case of determining the target data transmission device from the data transmission devices of the other cabinets, the method further includes a third determining unit configured to simultaneously use the current data transmission device as the target data transmission device; The sending module includes: a first sending unit, used to send a first preset proportion of the baseboard management controller system log in the baseboard management controller system log to the second wireless transceiver module of the target data transmission device determined from the data transmission devices of other cabinets through the current second wireless transceiver module, so that the target data transmission device determined from the data transmission devices of other cabinets sends the first preset proportion of the baseboard management controller system log to the log management device; a second sending unit, used to send the remaining baseboard management controller system log in the baseboard management controller system log to the log management device through the current data transmission device; The data transmission status information includes the current data load, the maximum processable data load, the remaining transmission capacity with the log management device, the distance between the log management device and the log management device, the remaining battery power of the battery used to power the current data transmission device, and the current data transmission efficiency.
7. A multi-server log collection system, characterized in that: The system comprises a first wireless transceiver module provided on each server, a data transmission device provided on each cabinet, a log management device connected to the data transmission device of each cabinet, and a second wireless transceiver module, a memory, and a processor provided in the data transmission device; wherein: Memory for storing computer programs; A processor is configured to execute the computer program to implement the steps of the multi-server log collection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Server log collection method and device and readable storage medium
CN113806127A
Server log collection method and device, communication equipment and storage medium
CN117093465A