Visualization method and device of server
By building a three-dimensional model of the server hardware device and generating placement areas and visual connections on the display interface, the lack of high visualization monitoring in the prior art is solved, real-time detection and display of abnormal situations are realized, and management efficiency is improved.
Patent Information
- Application Number
- CN202510087726.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-02-28
AI Technical Summary
When detecting server abnormalities, the prior art mainly relies on issuing alarm information, and lacks monitoring and management methods with high visualization.
By obtaining the device structure information of the server hardware device, a three-dimensional device model is built, and the device placement area and visual connection are generated on the preset display interface, and abnormal connections are detected and displayed in real time.
Improves the visualization of the server, enables real-time monitoring and display of abnormal situations in hardware devices and connections, and enhances the efficiency of management and troubleshooting.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] This application is filed on September 24, 2024, with application number 202411331586.X and invention name "Service This is a divisional application of a patent application entitled "Visualization method and device for a device", the entire contents of which are incorporated by reference in In this application. Technical Field
[0002] The present application relates to the technical field of data visualization, and in particular to a visualization method and device for a server. Background Art
[0003] A server is a computer system that is dedicated to providing data, services or resources to other devices or users. In a network environment, a server plays the role of receiving, processing and responding to requests from client devices. Servers usually have high-performance hardware configurations and stable network connections to ensure that they can efficiently handle a large number of requests and provide stable services. Servers are usually deployed in data centers or cloud platforms and communicate with client devices through the network. They can be physical servers (based on hardware) or virtual servers (based on virtualization technology), with different performance, reliability and scalability characteristics to meet the needs of different application scenarios. Server hardware usually includes the following main components and parts: Central Processing Unit (CPU): responsible for performing computing tasks and processing data. Servers are usually equipped with high-performance multi-core processors to provide powerful computing power. Memory (RAM): used for temporary storage of data and programs. Servers are usually equipped with large-capacity memory to support the processing of a large number of tasks and data at the same time. Hard disk drive: used for permanent storage of data and programs, including solid-state drives (SSD) and mechanical hard disks (HDD), used to store operating systems, applications and user data. Network interface card (NIC): used to connect the server to the network, support data transmission and communication, usually including Ethernet interface, wireless network interface, etc. Power supply unit (PSU): Provides power to various components of the server to ensure the normal operation of the server. Motherboard: Connects and supports communication and coordination between various hardware components, and is the core component of the server. These hardware components together constitute the basic architecture of the server. Different types of servers will be configured with different hardware components according to application scenarios and requirements to achieve high performance, reliability and scalability.
[0004] However, the existing technology mainly detects anomalies by issuing alarm information, and the degree of visualization is low. Summary of the invention
[0005] The embodiments of the present application provide a server visualization method and device, which can improve the visualization level of the server.
[0006] In a first aspect, the present application provides a server visualization method, comprising: Obtain device structure information of the hardware devices constituting the target server; Building a three-dimensional device model of each hardware device based on the device structure information of each hardware device, wherein different types of hardware devices correspond to different three-dimensional device models; Generating a plurality of first device placement areas on the first preset display interface, wherein one first device placement area corresponds to one type of the hardware device; placing each of the three-dimensional device models into a corresponding first device placement area based on the type of the three-dimensional device model; Building a visual connection between the three-dimensional models of each of the devices based on the device connection of each of the hardware devices; Detecting whether an abnormality occurs in the visualization connection; When an abnormal visualization connection is detected, the abnormal visualization connection is displayed in a preset manner.
[0007] Optionally, the first preset display interface includes a server status display area, and the server visualization method includes: Detecting whether the three-dimensional models of each of the devices are abnormal; When a three-dimensional model of an abnormal device is detected, the three-dimensional model of the abnormal device is displayed in a preset manner; Obtaining the abnormal number of times the abnormal device three-dimensional model and the abnormal visualization are connected; The abnormal device three-dimensional model and the abnormal number of abnormal visualization connections are displayed in the server status display area.
[0008] Optionally, the hardware devices constituting the target server include a processor device and a memory card, and the visual connection between the three-dimensional models of each device includes a connection between the processor device and the memory card; and detecting whether an abnormality occurs in the visual connection includes: Obtaining an average value of the data transmission speed of the device connection between the processor device and the memory card within a preset historical time period according to a preset period; Obtaining an overall speed average and a speed variance of an average of data transmission speeds of device connections between each of the processor devices and each of the memory cards; determining a normal speed range based on the overall speed average, the speed variance and a weighting coefficient; The visualization connection whose average data transmission speed does not belong to the normal speed range is determined as an abnormal visualization connection in which an abnormality occurs.
[0009] Optionally, the visualization method of the server includes: For a normal visual connection without any abnormality, the color brightness of the normal visual connection between the processor device and the memory card is determined based on the average data transmission speed, wherein the higher the average data transmission speed, the higher the color brightness of the corresponding normal visual connection.
[0010] Optionally, the obtaining of device structure information of hardware devices constituting the target server includes: Acquire a pre-built three-dimensional virtual model of a target computer room, wherein the three-dimensional model of the target computer room includes a plurality of cabinet equipment models; When an instruction for the user to click on the target cabinet device model is obtained, a second preset display interface is entered, wherein the second preset display interface displays a cabinet internal interface within the target cabinet device model, and the cabinet internal interface displays multiple cabinet device models, wherein the multiple cabinet device models include a target server model; When an instruction of the user clicking on the target server model is obtained, a server status pop-up window is displayed on one side of the target server model, and the server status pop-up window displays device information of the target server model; When an instruction of the user clicking the server status pop-up window is obtained, device structure information of the hardware devices constituting the target server corresponding to the target server model is obtained.
[0011] Optionally, the visualization method of the server includes: When an instruction of the user clicking on the target cabinet device model is obtained, a first cabinet interior image captured by a cabinet camera inside the cabinet corresponding to the target cabinet device model is obtained; Convert the first cabinet interior image based on a preset image conversion matrix to obtain a second cabinet interior image; The second cabinet interior image is pasted to the second preset display interface to be displayed as the cabinet interior interface in the target cabinet device model.
[0012] Optionally, the visualization method of the server includes: When an abnormal device three-dimensional model is detected, a plurality of associated visualization connections connected to the abnormal device three-dimensional model are obtained; The color brightness of the plurality of associated visual connections is increased by a preset brightness value.
[0013] In a second aspect, the present application provides a visualization device for a server, comprising: An acquisition module, used to acquire device structure information of hardware devices constituting a target server; A first construction module is used to construct a device three-dimensional model of each hardware device based on the device structure information of each hardware device, wherein different types of hardware devices correspond to different device three-dimensional models; A generating module, configured to generate a plurality of first device placement areas on a first preset display interface, wherein one first device placement area corresponds to one type of the hardware device; a placing module, used for placing each of the three-dimensional equipment models into the corresponding first equipment placement area based on the type of the three-dimensional equipment model; A second construction module is used to construct a visual connection between the three-dimensional models of each of the devices based on the device connection of each of the hardware devices; A detection module, used to detect whether an abnormality occurs in the visualization connection; The display module is used to display the abnormal visualization connection in a preset manner when an abnormal visualization connection is detected.
[0014] Optionally, the first preset display interface includes a server status display area, and the server visualization method includes: Detecting whether the three-dimensional models of each of the devices are abnormal; When a three-dimensional model of an abnormal device is detected, the three-dimensional model of the abnormal device is displayed in a preset manner; Obtaining the abnormal number of times the abnormal device three-dimensional model and the abnormal visualization are connected; The abnormal device three-dimensional model and the abnormal number of abnormal visualization connections are displayed in the server status display area.
[0015] Optionally, the hardware devices constituting the target server include a processor device and a memory card, and the visual connection between the three-dimensional models of each device includes a connection between the processor device and the memory card; and detecting whether an abnormality occurs in the visual connection includes: Obtaining an average value of the data transmission speed of the device connection between the processor device and the memory card within a preset historical time period according to a preset period; Obtaining an overall speed average and a speed variance of an average of data transmission speeds of device connections between each of the processor devices and each of the memory cards; determining a normal speed range based on the overall speed average, the speed variance and a weighting coefficient; The visualization connection whose average data transmission speed does not belong to the normal speed range is determined as an abnormal visualization connection in which an abnormality occurs.
[0016] Optionally, the visualization method of the server includes: For a normal visual connection without any abnormality, the color brightness of the normal visual connection between the processor device and the memory card is determined based on the average data transmission speed, wherein the higher the average data transmission speed, the higher the color brightness of the corresponding normal visual connection.
[0017] Optionally, the obtaining of device structure information of hardware devices constituting the target server includes: Acquire a pre-built three-dimensional virtual model of a target computer room, wherein the three-dimensional model of the target computer room includes a plurality of cabinet equipment models; When an instruction for the user to click on the target cabinet device model is obtained, a second preset display interface is entered, wherein the second preset display interface displays a cabinet internal interface within the target cabinet device model, and the cabinet internal interface displays multiple cabinet device models, wherein the multiple cabinet device models include a target server model; When an instruction of the user clicking on the target server model is obtained, a server status pop-up window is displayed on one side of the target server model, and the server status pop-up window displays device information of the target server model; When an instruction of the user clicking the server status pop-up window is obtained, device structure information of the hardware devices constituting the target server corresponding to the target server model is obtained.
[0018] Optionally, the visualization method of the server includes: When an instruction of the user clicking on the target cabinet device model is obtained, a first cabinet interior image captured by a cabinet camera inside the cabinet corresponding to the target cabinet device model is obtained; Convert the first cabinet interior image based on a preset image conversion matrix to obtain a second cabinet interior image; The second cabinet interior image is pasted to the second preset display interface to be displayed as the cabinet interior interface in the target cabinet device model.
[0019] Optionally, the visualization method of the server includes: When an abnormal device three-dimensional model is detected, a plurality of associated visualization connections connected to the abnormal device three-dimensional model are obtained; The color brightness of the plurality of associated visual connections is increased by a preset brightness value.
[0020] In a third aspect, the electronic device provided in the present application includes a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the steps in the visualization method of the server provided in the present application.
[0021] In a fourth aspect, the computer-readable storage medium provided in the present application stores a plurality of instructions, which are suitable for loading by a processor to implement the steps in the visualization method of the server provided in the present application.
[0022] In a fifth aspect, the computer program product provided in the present application includes a computer program or instructions, which, when executed by a processor, implement the steps in the server visualization method provided in the present application.
[0023] In this application, compared with the related art, the device structure information of the hardware devices constituting the target server is obtained; the device three-dimensional model of each hardware device is constructed based on the device structure information of each hardware device, wherein different types of hardware devices correspond to different device three-dimensional models; multiple first device placement areas are generated on the first preset display interface, wherein one first device placement area corresponds to a type of hardware device; each device three-dimensional model is placed in the corresponding first device placement area based on the type of the device three-dimensional model; a visual connection between each device three-dimensional model is constructed based on the device connection of each hardware device; whether an abnormality occurs in the visual connection; when an abnormal visual connection is detected, the abnormal visual connection is displayed in a preset manner. This application can improve the visualization of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 It is a scene diagram of a visualization system of a server provided in an embodiment of the present application; Figure 2 It is a flowchart of an embodiment of a visualization method of a server provided in an embodiment of the present application; Figure 3 is a structural diagram of a visualization device of a server provided in an embodiment of the present application; Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] It should be noted that the principles of the present application are illustrated by implementing them in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application and should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
[0027] In the following description of the present application, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0028] In the following description of the present application, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0030] In order to improve the visualization effect of the server, the embodiments of the present application provide a server visualization method, a server visualization device, an electronic device, a computer-readable storage medium, and a computer program product. The server visualization method can be executed by the server visualization device, or by an electronic device integrated with the server visualization device.
[0031] 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 those skilled in the art without creative work are within the scope of protection of this application.
[0032] Please refer to Figure 1 , the present application also provides a server visualization system, such as Figure 1 As shown, the visualization system of the server includes an electronic device 100, and the visualization device of the server provided by the present application is integrated in the electronic device 100.
[0033] Among them, the electronic device 100 can be any device equipped with a processor and has processing capabilities, such as mobile electronic devices with processors such as smart phones, tablet computers, PDAs, laptops, smart speakers, or fixed electronic devices with processors such as desktop computers, televisions, servers, industrial equipment, etc.
[0034] In addition, if Figure 1 As shown, the visualization system of the server may further include a memory 200 for storing original data, intermediate data and result data.
[0035] In the embodiment of the present application, the memory may be a cloud memory. Cloud storage is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as the storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of storage devices of various types (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.
[0036] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume, and the physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
[0037] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is divided into stripes in advance. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.
[0038] It should be noted that Figure 1 The scenario diagram of the server visualization system shown is merely an example. The server visualization system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the server visualization system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.
[0039] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0040] Please refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of an embodiment of a visualization method for a server provided in an embodiment of the present application. Figure 2 As shown, the process of the server visualization method provided by this application is as follows: 201. Obtain device structure information of hardware devices constituting the target server.
[0041] In the embodiment of the present application, the hardware devices constituting the target server include cooling fans, memory, and processor devices, etc. For example, the target server includes 5 cooling fans, 8 memory devices, and 2 processor devices, etc.
[0042] In the embodiment of the present application, the device structure information of the hardware device includes the size and shape of the hardware device, etc.
[0043] 202. Construct a three-dimensional device model of each hardware device based on the device structure information of each hardware device.
[0044] Among them, different types of hardware devices correspond to different device three-dimensional models.
[0045] In a specific embodiment, a pre-built three-dimensional model of a device is obtained, where the three-dimensional model of the device is a three-dimensional model obtained by scaling the hardware device according to a preset ratio.
[0046] In another specific embodiment, in order to improve the authenticity of the three-dimensional model of the device, a plurality of modeling images uploaded by the user are obtained, wherein the plurality of modeling images are collected by the user using different shooting angles for the hardware device; based on the target key feature points of the plurality of modeling images, the plurality of modeling images are combined to obtain a modeling image group; and the modeling image group is used to perform three-dimensional reconstruction to obtain a device three-dimensional model of the hardware device. The target key feature points are obtained by feature recognition according to the connection position and similarity of the images, and the modeling images are further combined to obtain a modeling image group.
[0047] In an embodiment of the present application, based on the target key feature points of the multiple modeling images, the multiple modeling images are combined to obtain a modeling image group, including: based on the target key feature points of the multiple modeling images, the multiple modeling images are arranged in a ring in a preset order to obtain a modeling image group. Specifically, according to the target key feature points of the multiple modeling images, the multiple modeling images are arranged in a ring in the order of shooting or the order of arrangement of the key feature points of the images to obtain a modeling image group. According to the order of image sorting in the modeling image group, the multiple modeling images are sequentially three-dimensionally reconstructed to obtain a three-dimensional model of the hardware device.
[0048] 203. Generate multiple first device placement areas on the first preset display interface.
[0049] Among them, a first device placement area corresponds to a type of hardware device.
[0050] In the embodiment of the present application, different first device placement areas are used to place device three-dimensional models of different types of hardware devices.
[0051] In the embodiment of the present application, the arrangement of the multiple first device mode areas is an array arrangement.
[0052] 204. Place each device 3D model into a corresponding first device placement area based on the type of the device 3D model.
[0053] In a specific embodiment, the first device placement area includes a plurality of first device sub-areas, and one first device sub-area is used to place a three-dimensional model of a device.
[0054] In the embodiment of the present application, the hardware serial number of each device three-dimensional model is obtained, and each device three-dimensional model is placed in each first device sub-area in sequence based on the hardware serial number of each device three-dimensional model.
[0055] 205. Construct a visual connection between the three-dimensional models of each device based on the device connection of each hardware device.
[0056] In the embodiment of the present application, the visual connection can be a connection channel model displayed on the first preset display interface. The two ends of the connection channel model are respectively connected to two device three-dimensional models. For example, a processor device and a memory card are connected through a connection channel model.
[0057] 206. Check whether the visualization connection is abnormal.
[0058] In the embodiment of the present application, the first preset display interface includes a server status display area.
[0059] In a specific embodiment, detecting whether the visualization connection is abnormal includes: (1) Obtaining an average value of the data transmission speed of the device connection between the processor device and the memory card within a preset historical time period according to a preset period.
[0060] In the embodiment of the present application, the preset period can be 10s, 20s, etc., which can be set according to the specific situation. The preset historical time period can be 1 minute, 2 minutes, etc., which can be set according to the specific situation.
[0061] (2) Obtain the average data transmission speed, overall speed average, and speed variance of the device connection between each processor device and each memory card.
[0062] In the embodiment of the present application, the overall speed average value and speed variance are calculated based on the average values of multiple data transmission speeds. The overall speed average value is denoted as a, and the speed variance is denoted as b.
[0063] (3) Determining a normal speed range based on the overall speed average, the speed variance, and the weighting coefficient.
[0064] In a specific embodiment, the normal speed range is [a-cb, a+cb], wherein the overall speed average is a, the speed variance is b, and the weighting coefficient is c. The weighting coefficient c is set according to the specific situation.
[0065] (4) The visualization connection whose average data transmission speed does not fall within the normal speed range is determined as an abnormal visualization connection in which an abnormality occurs.
[0066] The visualization connection whose average data transmission speed falls within the normal speed range is determined as a normal visualization connection without abnormality. When the average data transmission speed does not fall within the normal speed range, it indicates that the data transmission is abnormal at this time.
[0067] Further, determining a normal speed range based on the overall speed average, the speed variance, and the weighting coefficient includes: (1) Determine a weight coefficient of a visualization connection to which the processor device belongs based on the number of data processing requests received by the processor device within a preset historical time period.
[0068] The larger the number of requests, the larger the weighting coefficient.
[0069] Specifically, the number of data processing requests received by the processor device in a preset historical time period is obtained. The weight coefficient of the visualization connection where the processor device is located is determined based on the number of data processing requests received by the processor device in the preset historical time period. The more data processing requests received by the processor device, the more data the processor device processes in this section, and the larger the weight coefficient.
[0070] In a specific embodiment, a ratio between the number of requests of each processor device and the maximum number of requests of each processor device is determined as the weighting coefficient.
[0071] In another specific embodiment, the number of requests of each processor device is obtained, and the number of connection cards of the memory card connected to each processor device is obtained. The weight coefficient of the visualization connection where the processor device is located is determined based on the number of requests and the number of connection cards of each processor device. The larger the number of requests, the larger the weight coefficient; the larger the number of connection cards, the larger the weight coefficient.
[0072] Specifically, the weighting coefficient is denoted by c, and the value range of c is [1,2].
[0073] In a specific embodiment, the number of requests is normalized to obtain a normalized value m of the number of requests, and the number of connected cards is normalized to obtain a normalized value n of the number of connected cards.
[0074] In a specific embodiment, the calculation formula of the weighted coefficient c is as follows:
[0075] Among them, c is the weighting coefficient, m is the normalized value of the number of requests, and n is the normalized value of the number of connected cards.
[0076] (2) Determine the normal speed range based on the overall speed average, speed variance, and weighting coefficient, wherein the larger the weighting coefficient, the larger the normal speed range.
[0077] In a specific embodiment, the normal speed range is [a-cb, a+cb], wherein the overall speed average is a, the speed variance is b, and the weighting coefficient is c.
[0078] 207. When an abnormal visualization connection is detected, the abnormal visualization connection is displayed in a preset manner.
[0079] In the embodiment of the present application, when an abnormal visualization connection is detected, if the average value of the data transmission speed of the abnormal visualization connection is lower than the minimum value of the normal speed range, the abnormal visualization connection is displayed as a first preset color; if the average value of the data transmission speed of the abnormal visualization connection is higher than the maximum value of the normal speed range, the abnormal visualization connection is displayed as a second preset color. The first preset color may be yellow, and the second preset color may be red.
[0080] In the embodiment of the present application, the visualization method of the server further includes: (1) Check whether there are any abnormalities in the three-dimensional models of each device.
[0081] Specifically, it is detected whether the device operating parameters of each device three-dimensional model are abnormal. If the device operating parameters of the device three-dimensional model are abnormal, the device three-dimensional model is abnormal.
[0082] (2) When a three-dimensional model of an abnormal device is detected, the three-dimensional model of the abnormal device is displayed in a preset manner.
[0083] In the embodiment of the present application, the abnormal device three-dimensional model is displayed in a third preset color. The third preset color may be blue.
[0084] (3) Obtain the abnormal number of abnormal equipment 3D models and abnormal visualization connections.
[0085] (4) The abnormal device 3D model and the abnormal number of abnormal visualization connections are displayed in the server status display area.
[0086] In an embodiment of the present application, a visualization method of a server includes: for a normal visualization connection without any abnormality, determining the color brightness of the normal visualization connection between a processor device and a memory card based on an average data transmission speed, wherein the higher the average data transmission speed, the higher the color brightness of the corresponding normal visualization connection.
[0087] In the embodiment of the present application, obtaining the device structure information of the hardware devices constituting the target server includes: (1) Obtain a pre-built three-dimensional virtual model of a target computer room, where the three-dimensional model of the target computer room includes multiple cabinet equipment models.
[0088] The initial three-dimensional virtual model of the computer room includes a plurality of second equipment placement areas, wherein different second equipment placement areas are used to place different types of computer room equipment.
[0089] In the embodiment of the present application, the initial three-dimensional virtual model of the computer room can be manually created. Different types of computer room equipment can be distribution boxes, UPS equipment, air conditioning equipment, and temperature and humidity detection equipment.
[0090] In another specific embodiment, obtaining a pre-built initial three-dimensional virtual model of a computer room includes: obtaining architectural structure information of a real computer room, the architectural structure information including wall information and floor information, wherein the real computer room includes a plurality of sub-computer rooms separated by walls. Based on the architectural structure information, an initial three-dimensional virtual model of the computer room is constructed, the initial three-dimensional virtual model of the computer room including a floor model and a wall model on the floor model, the floor model being divided by the wall model into a plurality of second equipment placement areas corresponding to the plurality of sub-computer rooms one by one.
[0091] In the embodiment of the present application, the initial three-dimensional virtual model of the computer room is a three-dimensional model obtained by scaling the real computer room according to a preset ratio. The layout of the initial three-dimensional virtual model of the computer room is the same as that of the real computer room. Among them, the preset ratio can be 100:1 or other values, which are set according to the specific situation. Due to the addition of the wall model, the physical division between each device can be clearly seen, which is convenient for users to observe.
[0092] In the embodiment of the present application, the cabinet equipment model of each cabinet equipment in the real computer room is obtained, and the cabinet equipment model of each cabinet equipment is placed in the corresponding second equipment placement area. Each cabinet equipment contains at least one server model. The cabinet equipment model is a three-dimensional model obtained by scaling the real cabinet equipment according to a preset ratio.
[0093] (2) When an instruction is obtained for the user to click on the target cabinet device model, a second preset display interface is entered, wherein the second preset display interface displays an internal cabinet interface within the target cabinet device model, and multiple cabinet device models are displayed on the internal cabinet interface, and the multiple cabinet device models include the target server model.
[0094] (3) When the user receives an instruction to click on the target server model, a server status pop-up window is displayed on one side of the target server model. The server status pop-up window displays device information of the target server model.
[0095] (4) When an instruction is obtained that the user clicks on the server status pop-up window, the device structure information of the hardware devices constituting the target server corresponding to the target server model is obtained.
[0096] Furthermore, the visualization method of the server includes: (1) When an instruction is obtained that the user clicks on a target cabinet device model, a first cabinet interior image captured by a cabinet camera inside the cabinet corresponding to the target cabinet device model is obtained.
[0097] (2) The first cabinet interior image is transformed based on a preset image transformation matrix to obtain a second cabinet interior image.
[0098] Specifically, a cabinet test image taken by a cabinet camera installed inside the cabinet is obtained in advance, and a cabinet reference image taken by the cabinet camera is obtained. The cabinet reference image is a cabinet reference image taken by a user facing the cabinet. A plurality of candidate image conversion matrices are obtained, wherein the plurality of candidate image matrices can be obtained by traversal, and the cabinet test images are respectively converted based on the plurality of candidate image conversion matrices to obtain a plurality of conversion images, and the image similarity between each conversion image and the cabinet reference image is respectively calculated, and the candidate image conversion matrix corresponding to the conversion image with the greatest image similarity is determined as the preset image conversion matrix.
[0099] (3) Paste the second cabinet interior image to the second preset display interface to display it as the cabinet interior interface within the target cabinet device model.
[0100] By displaying the real captured image, it is easier for users to observe.
[0101] Furthermore, the visualization method of the server includes: (1) When a three-dimensional model of an abnormal device is detected, a plurality of associated visualization connections connected to the three-dimensional model of the abnormal device are obtained.
[0102] (2) Increase the color brightness of multiple associated visualization connections by a preset brightness value.
[0103] In a specific embodiment, all the multiple associated visualization connections connected to the abnormal device three-dimensional model are increased in preset brightness value, wherein the preset brightness value may be 20 or the like.
[0104] In order to facilitate better implementation of the server visualization method provided in the embodiment of the present application, the embodiment of the present application also provides a server visualization device based on the above server visualization method. The meanings of the terms are the same as those in the above server visualization method. For specific implementation details, please refer to the description in the above method embodiment.
[0105] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a visualization device of a server provided in an embodiment of the present application, wherein the visualization device of the server may include: The acquisition module 701 is used to acquire the device structure information of the hardware devices constituting the target server; A first construction module 702 is used to construct a device three-dimensional model of each hardware device based on the device structure information of each hardware device, wherein different types of hardware devices correspond to different device three-dimensional models; A generating module 703 is used to generate a plurality of first device placement areas on a first preset display interface, wherein one first device placement area corresponds to one type of the hardware device; A placing module 704 is used to place each of the three-dimensional device models into the corresponding first device placement area based on the type of the three-dimensional device model; The second construction module 705 is used to construct a visual connection between the three-dimensional models of each of the devices based on the device connection of each of the hardware devices; A detection module 706 is used to detect whether an abnormality occurs in the visualization connection; The display module 707 is used to display the abnormal visual connection in a preset manner when an abnormal visual connection is detected.
[0106] Optionally, the first preset display interface includes a server status display area, and the server visualization method includes: Detecting whether the three-dimensional models of each of the devices are abnormal; When a three-dimensional model of an abnormal device is detected, the three-dimensional model of the abnormal device is displayed in a preset manner; Obtaining the abnormal number of times the abnormal device three-dimensional model and the abnormal visualization are connected; The abnormal device three-dimensional model and the abnormal number of abnormal visualization connections are displayed in the server status display area.
[0107] Optionally, the hardware devices constituting the target server include a processor device and a memory card, and the visual connection between the three-dimensional models of each device includes a connection between the processor device and the memory card; and detecting whether an abnormality occurs in the visual connection includes: Obtaining an average value of the data transmission speed of the device connection between the processor device and the memory card within a preset historical time period according to a preset period; Obtaining an overall speed average and a speed variance of an average of data transmission speeds of device connections between each of the processor devices and each of the memory cards; determining a normal speed range based on the overall speed average, the speed variance and a weighting coefficient; The visualization connection whose average data transmission speed does not belong to the normal speed range is determined as an abnormal visualization connection in which an abnormality occurs.
[0108] Optionally, the visualization method of the server includes: For a normal visual connection without any abnormality, the color brightness of the normal visual connection between the processor device and the memory card is determined based on the average data transmission speed, wherein the higher the average data transmission speed, the higher the color brightness of the corresponding normal visual connection.
[0109] Optionally, the obtaining of device structure information of hardware devices constituting the target server includes: Acquire a pre-built three-dimensional virtual model of a target computer room, wherein the three-dimensional model of the target computer room includes a plurality of cabinet equipment models; When an instruction of the user clicking on the target cabinet device model is obtained, a second preset display interface is entered, wherein the second preset display interface displays a cabinet internal interface within the target cabinet device model, and the cabinet internal interface displays multiple cabinet device models, wherein the multiple cabinet device models include a target server model; When an instruction of the user clicking on the target server model is obtained, a server status pop-up window is displayed on one side of the target server model, and the server status pop-up window displays device information of the target server model; When an instruction of the user clicking the server status pop-up window is obtained, device structure information of the hardware devices constituting the target server corresponding to the target server model is obtained.
[0110] Optionally, the visualization method of the server includes: When an instruction of the user clicking on the target cabinet device model is obtained, a first cabinet interior image captured by a cabinet camera inside the cabinet corresponding to the target cabinet device model is obtained; Convert the first cabinet interior image based on a preset image conversion matrix to obtain a second cabinet interior image; The second cabinet interior image is pasted to the second preset display interface to be displayed as the cabinet interior interface in the target cabinet device model.
[0111] Optionally, the visualization method of the server includes: When an abnormal device three-dimensional model is detected, a plurality of associated visualization connections connected to the abnormal device three-dimensional model are obtained; The color brightness of the plurality of associated visual connections is increased by a preset brightness value.
[0112] The specific implementation of each of the above modules can be found in the previous embodiments and will not be described in detail here.
[0113] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the steps in the server visualization method provided in this embodiment by calling a computer program stored in the memory.
[0114] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0115] The electronic device may include components such as a processor 101 with one or more processing cores, a memory 102 with one or more computer-readable storage media, a power supply 103, and an input unit 104. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them: The processor 101 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 101 may include one or more processing cores; optionally, the processor 101 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 101.
[0116] The memory 102 can be used to store software programs and modules. The processor 101 executes various functional applications and data processing by running the software programs and modules stored in the memory 102. The memory 102 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 102 may also include a memory controller to provide the processor 101 with access to the memory 102.
[0117] The electronic device also includes a power supply 103 for supplying power to each component. Optionally, the power supply 103 can be logically connected to the processor 101 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 103 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0118] The electronic device may further include an input unit 104, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0119] Although not shown, the electronic device may also include a display unit, an image acquisition component, etc., which will not be described in detail here. Specifically in this embodiment, the processor 101 in the electronic device will load the executable code corresponding to one or more computer programs into the memory 102 according to the following instructions, and the processor 101 will execute the steps in the visualization method of the server provided in this application, such as: Obtain device structure information of the hardware devices constituting the target server; construct a device 3D model of each hardware device based on the device structure information of each hardware device, wherein different types of hardware devices correspond to different device 3D models; generate multiple first device placement areas on a first preset display interface, wherein a first device placement area corresponds to a type of hardware device; place each device 3D model in the corresponding first device placement area based on the type of the device 3D model; construct a visual connection between each device 3D model based on the device connection of each hardware device; detect whether an abnormality occurs in the visual connection; when an abnormal visual connection is detected, display the abnormal visual connection in a preset manner.
[0120] It should be noted that the electronic device provided in the embodiment of the present application and the visualization method of the server in the above embodiment belong to the same concept, and its specific implementation process is detailed in the above related embodiments and will not be repeated here.
[0121] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program stored therein is executed on a processor of an electronic device provided in an embodiment of the present application, the processor of the electronic device executes the steps in the visualization method of the server provided in the present application. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0122] The present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes various optional implementations of the visualization method of the server.
[0123] The above is a detailed introduction to a server visualization method and device provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0124] It should be noted that when the above embodiments of the present application are applied to specific products or technologies, the relevant data of the user is involved, and the user's permission or consent is required, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
Claims
1. A server visualization method, characterized in that: include: Pre-acquire a cabinet test image taken by a cabinet camera installed inside the cabinet, and obtain a cabinet reference image taken by the cabinet camera; wherein the cabinet reference image is a cabinet reference image taken by a user facing the cabinet; obtain multiple candidate image conversion matrices, convert the cabinet test images respectively based on the multiple candidate image conversion matrices to obtain multiple conversion images, calculate the image similarity between each conversion image and the cabinet reference image respectively, and determine the candidate image conversion matrix corresponding to the conversion image with the greatest image similarity as the preset image conversion matrix; obtain a pre-constructed target computer room three-dimensional virtual model, wherein the target computer room three-dimensional model includes multiple cabinet equipment models; when an instruction is obtained that the user clicks on the target cabinet equipment model, enter the second preset display interface, and obtain the first cabinet taken by the cabinet camera inside the cabinet corresponding to the target cabinet equipment model. internal image; converting the first cabinet internal image based on a preset image conversion matrix to obtain a second cabinet internal image; pasting the second cabinet internal image to the second preset display interface to display it as the cabinet internal interface within the target cabinet device model, wherein the second preset display interface displays the cabinet internal interface within the target cabinet device model; multiple cabinet device models are displayed on the cabinet internal interface, and the multiple cabinet device models include a target server model; when an instruction from the user to click on the target server model is obtained, a server status pop-up window is displayed on one side of the target server model, and the server status pop-up window displays the device information of the target server model; when an instruction from the user to click on the server status pop-up window is obtained, the device structure information of the hardware devices constituting the target server is obtained; Based on the device structure information of each of the hardware devices, a device three-dimensional model of each hardware device is constructed, wherein different types of hardware devices correspond to different device three-dimensional models, wherein a plurality of modeling images uploaded by a user are obtained, wherein the plurality of modeling images are collected by the user using different shooting angles for the hardware device; based on target key feature points of the plurality of modeling images, the plurality of modeling images are combined to obtain a modeling image group; three-dimensional reconstruction is performed using the modeling image group to obtain a device three-dimensional model of the hardware device, wherein based on target key feature points of the plurality of modeling images, the plurality of modeling images are arranged in a ring in a preset order to obtain a modeling image group; according to the image sorting order in the modeling image group, the plurality of modeling images are sequentially three-dimensionally reconstructed to obtain a three-dimensional model of the hardware device; Generating a plurality of first device placement areas on the first preset display interface, wherein one first device placement area corresponds to one type of the hardware device; placing each of the three-dimensional device models into a corresponding first device placement area based on the type of the three-dimensional device model; Building a visual connection between the three-dimensional models of each of the devices based on the device connection of each of the hardware devices; Detect whether the visualization connection is abnormal, wherein the hardware devices constituting the target server include processor devices and memory cards, and the visualization connection between each of the three-dimensional models of the devices includes the connection between the processor device and the memory card; obtain the average data transmission speed of the device connection between the processor device and the memory card in a preset historical time period according to a preset period; obtain the overall speed average and speed variance of the average data transmission speed of the device connection between each of the processor devices and each of the memory cards; determine the normal speed range based on the overall speed average, the speed variance and the weighting coefficient; wherein, obtain the number of requests for data processing requests received by the processor device in a preset historical time period, obtain the number of connection cards of the memory card connected to each processor device, and determine the weighting coefficient of the visualization connection where the processor device is located based on the number of requests and the number of connection cards of each processor device, wherein the normal speed range is [a-cb, a+cb], the overall speed average is a, the speed variance is b, and the weighting coefficient is c, wherein the number of requests is normalized to obtain a normalized value of the number of requests m, the number of connection cards is normalized to obtain a normalized value of the number of connection cards n, and the calculation formula for the weighting coefficient c is as follows: Where c is the weighting coefficient, m is the normalized value of the number of requests, and n is the normalized value of the number of connected cards; When an abnormal visualization connection is detected, the abnormal visualization connection is displayed in a preset manner, wherein if the average data transmission speed of the abnormal visualization connection is lower than the minimum value of the normal speed range, the abnormal visualization connection is displayed in a first preset color; if the average data transmission speed of the abnormal visualization connection is higher than the maximum value of the normal speed range, the abnormal visualization connection is displayed in a second preset color.
2. The server visualization method according to claim 1, characterized in that: The first preset display interface includes a server status display area, and the server visualization method includes: Detecting whether the three-dimensional models of each of the devices are abnormal; When a three-dimensional model of an abnormal device is detected, the three-dimensional model of the abnormal device is displayed in a preset manner; Obtaining the abnormal number of times the abnormal device three-dimensional model and the abnormal visualization are connected; The abnormal device three-dimensional model and the abnormal number of abnormal visualization connections are displayed in the server status display area.
3. The server visualization method according to claim 2, characterized in that: The visualization method of the server comprises: For a normal visual connection without any abnormality, the color brightness of the normal visual connection between the processor device and the memory card is determined based on the average data transmission speed, wherein the higher the average data transmission speed, the higher the color brightness of the corresponding normal visual connection.
4. The server visualization method according to claim 3, characterized in that: The visualization method of the server comprises: When an abnormal device three-dimensional model is detected, a plurality of associated visualization connections connected to the abnormal device three-dimensional model are obtained; The color brightness of the plurality of associated visual connections is increased by a preset brightness value.
5. A visualization device for a server, characterized in that: include: An acquisition module is used to pre-acquire a cabinet test image taken by a cabinet camera installed inside the cabinet, and to acquire a cabinet reference image taken by the cabinet camera; wherein the cabinet reference image is a cabinet reference image taken by a user facing the cabinet; acquire multiple candidate image conversion matrices, respectively convert the cabinet test images based on the multiple candidate image conversion matrices to obtain multiple conversion images, respectively calculate the image similarity between each conversion image and the cabinet reference image, and determine the candidate image conversion matrix corresponding to the conversion image with the greatest image similarity as the preset image conversion matrix; acquire a pre-constructed target computer room three-dimensional virtual model, wherein the target computer room three-dimensional model includes multiple cabinet equipment models; when an instruction is obtained that the user clicks on the target cabinet equipment model, enter a second preset display interface, and acquire the first image taken by the cabinet camera inside the cabinet corresponding to the target cabinet equipment model. An internal image of a cabinet; converting the first internal image of the cabinet based on a preset image conversion matrix to obtain a second internal image of the cabinet; pasting the second internal image of the cabinet to the second preset display interface to display it as the internal interface of the cabinet in the target cabinet device model, wherein the second preset display interface displays the internal interface of the cabinet in the target cabinet device model; multiple cabinet device models are displayed on the internal interface of the cabinet, and the multiple cabinet device models include a target server model; when an instruction of a user clicking on the target server model is obtained, a server status pop-up window is displayed on one side of the target server model, and the server status pop-up window displays the device information of the target server model; when an instruction of a user clicking on the server status pop-up window is obtained, the device structure information of the hardware devices constituting the target server is obtained; A first construction module is used to construct a device 3D model of each hardware device based on the device structure information of each of the hardware devices, wherein different types of hardware devices correspond to different device 3D models, wherein a plurality of modeling images uploaded by a user are obtained, wherein the plurality of modeling images are collected by the user using different shooting angles for the hardware device; based on target key feature points of the plurality of modeling images, the plurality of modeling images are combined to obtain a modeling image group; the modeling image group is used to perform 3D reconstruction to obtain a device 3D model of the hardware device, wherein based on target key feature points of the plurality of modeling images, the plurality of modeling images are arranged in a ring in a preset order to obtain a modeling image group; the plurality of modeling images are sequentially 3D reconstructed according to the image sorting order in the modeling image group to obtain a 3D model of the hardware device; A generating module, configured to generate a plurality of first device placement areas on a first preset display interface, wherein one first device placement area corresponds to one type of the hardware device; a placing module, used for placing each of the three-dimensional equipment models into the corresponding first equipment placement area based on the type of the three-dimensional equipment model; A second construction module is used to construct a visual connection between the three-dimensional models of each of the devices based on the device connection of each of the hardware devices; A detection module is used to detect whether the visual connection is abnormal, wherein the hardware devices constituting the target server include a processor device and a memory card, and the visual connection between each of the three-dimensional models of the device includes the connection between the processor device and the memory card; obtaining the average data transmission speed of the device connection between the processor device and the memory card in a preset historical time period according to a preset period; obtaining the overall speed average and speed variance of the average data transmission speed of the device connection between each of the processor devices and each of the memory cards; determining a normal speed range based on the overall speed average, the speed variance and the weighting coefficient; wherein the number of requests for data processing requests received by the processor device in a preset historical time period is obtained, the number of connection cards of the memory card connected to each processor device is obtained, and the weighting coefficient of the visual connection where the processor device is located is determined based on the number of requests and the number of connection cards of each processor device, wherein the normal speed range is [a-cb, a+cb], the overall speed average is a, the speed variance is b, and the weighting coefficient is c, wherein the number of requests is normalized to obtain a normalized value of the number of requests m, the number of connection cards is normalized to obtain a normalized value of the number of connection cards n, and the calculation formula for the weighting coefficient c is as follows: Where c is the weighting coefficient, m is the normalized value of the number of requests, and n is the normalized value of the number of connected cards; A display module is used to display an abnormal visualization connection in a preset manner when an abnormal visualization connection is detected, wherein if the average data transmission speed of the abnormal visualization connection is lower than the minimum value of the normal speed range, the abnormal visualization connection is displayed in a first preset color; if the average data transmission speed of the abnormal visualization connection is higher than the maximum value of the normal speed range, the abnormal visualization connection is displayed in a second preset color.
6. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the visualization method of the server according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the visualization method of the server according to any one of claims 1 to 4.