A key product data acquisition method, device, equipment and storage medium
Key product data is read through two paths, the platform module and the chassis management module, solving the reading timeout problem caused by the newly added parameter fields and improving the stability and performance of the cluster.
Patent Information
- Application Number
- CN202412000162.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2044-12-30
AI Technical Summary
In the existing technology, the reading time of key product data causes timeout due to the addition of new parameter fields, affecting cluster performance.
Key product data is read through the cluster's platform module and chassis management module in two paths: the platform module first saves the new data to the cache, and the chassis management module reads from the cache, avoiding direct reading from the backplane and reducing reading time.
This effectively reduces the time it takes to read key product data, avoids chassis management module reading timeouts, and improves cluster stability and performance.
Smart Images

Figure CN119718213B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a vital product data acquisition method and device, equipment and storage medium. BACKGROUND
[0002] Vital product data (vpd) can help maintenance personnel to quickly confirm the characteristics of the equipment in daily maintenance, or to quickly confirm whether a device belongs to a fault batch when the device fails.
[0003] In related technologies, the acquisition of vital product data of each device in the cluster is performed by reading the storage vital product data by the enclosure management module (EN) in pages. However, since the vital product data may be updated, such as adding one or several types of parameters based on the original; the newly added parameter field will increase the length of the read page, and thus will increase the time of acquiring vital product data, often causing the time of acquiring vital product data to exceed the specified reading time, so that the node reports an alarm into service mode (Service) and thus cannot provide services externally, affecting the performance of the cluster. SUMMARY
[0004] Therefore, the purpose of the present application is to provide a vital product data acquisition method, device, equipment and storage medium, which can reduce the reading time of vital product data and avoid the time of reading product data by the enclosure management module exceeding the time limit. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a vital product data acquisition method, comprising:
[0006] reading the newly added vital product data from the backplane of the cluster device through the platform module of the cluster according to a first path, and saving the newly added vital product data to a cache; the first path is in order of the platform module, the monitoring module, the storage enclosure service module, and the backplane;
[0007] reading the initial vital product data from the backplane of the cluster device through the enclosure management module of the cluster according to a second path, and reading the newly added vital product data from the cache through the enclosure management module; the second path is in order of the enclosure management module, the storage enclosure service module, and the backplane;
[0008] Based on the newly added vital product data and the initial vital product data, complete vital product data is obtained.
[0009] Optionally, the reading of the newly added vital product data from the backplane of the cluster device through the platform module of the cluster according to the first path comprises:
[0010] sending, by the platform module, the product data reading message to a monitoring module of the cluster;
[0011] generating, by the monitoring module, a product data reading instruction based on the product data reading message, and sending the product data reading instruction to a storage chassis service module;
[0012] reading, by the storage chassis service module, the newly-added key product data from the backplane of each device in the cluster, and saving the newly-added key product data to a cache.
[0013] Optionally, the sending, by the platform module, the product data reading message to the monitoring module of the cluster comprises:
[0014] creating a communication channel between the platform module and the monitoring module of the cluster, and configuring communication parameters;
[0015] establishing an inter-process connection between the platform module and the monitoring module of the cluster based on the communication channel;
[0016] writing, by the platform module, the product data reading message into the communication channel, so that the monitoring module obtains the product data reading message through the communication channel;
[0017] obtaining, by the platform module, a message receiving response fed back by the monitoring module after receiving the product data reading message;
[0018] closing the communication channel between the platform module and the monitoring module of the cluster according to the message receiving response;
[0019] The sending, by the platform module, the product data reading instruction to the storage chassis service module comprises:
[0020] initializing a serial port of the monitoring module and the storage chassis service module;
[0021] establishing a connection between the monitoring module and the storage chassis service module based on the serial port;
[0022] sending, by the monitoring module, the product data reading instruction to the storage chassis service module through the serial interface;
[0023] obtaining, by the monitoring module, an instruction receiving response fed back by the storage chassis service module after receiving the product data reading instruction.
[0024] Optionally, before the reading, by the platform module, the newly-added key product data from the backplane of the cluster device according to the first path, the method further comprises:
[0025] determining whether there is new key product data;
[0026] If there is new key product data, performing an operation of reading the new key product data from the backplane of the cluster device according to a first path by a platform module of the cluster;
[0027] If there is no new key product data, directly performing an operation of reading initial key product data from the backplane of the cluster device according to a second path by a chassis management module of the cluster.
[0028] Optionally, the saving of the new key product data to the cache comprises:
[0029] saving the new key product data to the cache of the monitoring module;
[0030] Correspondingly, the reading of the new key product data from the cache by the chassis management module comprises:
[0031] reading the new key product data from the cache of the monitoring module by the chassis management module, and sending the new key product data to an upper layer application.
[0032] Optionally, the reading of the initial key product data from the backplane of the cluster device according to the second path by the chassis management module of the cluster comprises:
[0033] the chassis management module issues a target data page request to the storage chassis service module after receiving a broadcast event reported by the storage chassis service module, the broadcast event is generated when the storage chassis server detects external signal interface changes, and the external signal interface changes are caused by a storage device driver loading process;
[0034] reading the initial key product data from the backplane of the cluster device according to the target data page request by the storage chassis service module, and reporting the initial key product data to the chassis management module.
[0035] Optionally, before the reading of the new key product data from the backplane of the cluster device according to the first path by the platform module of the cluster, the method further comprises:
[0036] obtaining an offset address of the new key product data and an offset address of the initial key product data;
[0037] Correspondingly, the reading of the new key product data from the backplane of the cluster device according to the first path by the platform module of the cluster comprises:
[0038] read the new key product data from the backboard of the cluster device according to the offset address of the new key product data by the platform module according to the first path;
[0039] Accordingly, the initial key product data is read from the backboard of the cluster device by the chassis management module of the cluster according to the second path, comprising:
[0040] The initial key product data is read from the backboard of the cluster device by the chassis management module of the cluster according to the offset address of the initial key product data according to the second path.
[0041] In a second aspect, the application discloses a key product data acquisition device, comprising:
[0042] The new key product data is read from the backboard of the cluster device by the platform module of the cluster according to the first path, and the new key product data is saved to the cache; the first path is in order of the platform module, the monitoring module, the storage chassis service module and the backboard.
[0043] The initial key product data is read from the backboard of the cluster device by the chassis management module of the cluster according to the second path, and the new key product data is read from the cache by the chassis management module; the second path is in order of the chassis management module, the storage chassis service module and the backboard.
[0044] The complete key product data is determined based on the new key product data and the initial key product data.
[0045] In a third aspect, the application discloses an electronic device, comprising:
[0046] A memory is used to save a computer program;
[0047] A processor is used to execute the computer program to realize the key product data acquisition method.
[0048] In a fourth aspect, the application discloses a computer readable storage medium for storing a computer program; wherein the computer program is executed by a processor to realize the key product data acquisition method.
[0049] In the present application, the platform module of the cluster reads the new key product data from the backplane of the cluster device according to a first path, and saves the new key product data to a cache; the first path is in order of the platform module, the monitoring module, the storage chassis service module, and the backplane; the chassis management module of the cluster reads the initial key product data from the backplane of the cluster device according to a second path, and reads the new key product data from the cache through the chassis management module; the second path is in order of the chassis management module, the storage chassis service module, and the backplane; based on the new key product data and the initial key product data, complete key product data is obtained. As can be seen, by using the platform module, the monitoring module, and the storage chassis service module to read the new key product data from the backplane of the device and save the new key product data to the cache, when the chassis management module reads the key product data, the part of the new key product data is directly read from the cache, the reading of the new key product data does not occupy the resources of the chassis management module, the chassis management module only needs to read the initial key product data, the reading time of the key product data is reduced, and the time of the chassis management module reading the product data is avoided to be exceeded. BRIEF DESCRIPTION OF DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor based on the provided drawings.
[0051] Figure 1 A key product data acquisition method flowchart is provided for the present application;
[0052] Figure 2 A specific key product data acquisition method flowchart is provided for the present application;
[0053] Figure 3 A key product data acquisition device structure schematic diagram is provided for the present application;
[0054] Figure 4 An electronic device structure diagram is provided for the present application. DETAILED DESCRIPTION
[0055] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0056] In the prior art, since the key product data can be updated, for example, one or more types of parameters are added on the basis of the original; the added parameter field increases the length of the read page, and further increases the time of obtaining the key product data, which often causes the time of obtaining the key product data to exceed the specified reading time, so that the node reports an alarm into a service mode and cannot provide services to the outside, thereby affecting the performance of the cluster. To overcome the above technical problems, the present application provides a key product data obtaining method, which can reduce the reading time of the key product data and avoid the time of reading the product data by the chassis management module being timed out.
[0057] The embodiments of the present application disclose a key product data obtaining method, as shown in Figure 1 The method can include the following steps:
[0058] Step S11: reading, by a platform module of a cluster, new key product data from a backplane of a cluster device according to a first path, and saving the new key product data to a cache; the first path is in order of the platform module, a monitoring module, a storage chassis service module, and the backplane.
[0059] In the embodiments, after the cluster is created, the new key product data can be read from the backplane of the cluster device by the platform module according to the first path in the initialization process of the platform module of the cluster; the cluster can be a storage cluster, and at least one platform module (PL, Plateform), one monitoring module (EC, Engineering Change), one storage chassis service module (i.e., unified SCSI storage chassis service, OSES, Organic SCSI (Small Computer System Interface, small computer system interface) Enclosure service), and one chassis management module (Enclosure Mangement, EN) are included in one cluster. The backplane can be a double-sided backplane (Midplane), i.e., the backplane of a double-sided board, which is connected to a storage module.
[0060] The platform module reads the new key product data from the backboard according to the first path, that is, the platform module cannot directly read the data from the backboard, and the reading of the key product data (VPD, Vital Product Data) in the backboard is performed by the storage chassis service module through the platform module, the monitoring module and the storage chassis service module. After reading the new key product data, the data is temporarily stored in the cache. It can be understood that the key product data can include data such as name and ID, but there will be new field filling in the future, such as adding type information. At this time, the length of the entire page (page) is larger, so the reading time will be longer, which will exceed the specified reading time and timeout. After timeout, the storage will report an alarm and enter the storage service mode, causing the node to exit the cluster and affecting the stability of the business. Therefore, the new key product data is first read to the cache through the platform module, the monitoring module and the storage chassis service module, and then the new key product data is directly read from the cache.
[0061] In some embodiments, the above reading of the new key product data from the backboard of the cluster device by the platform module of the cluster according to the first path can include: sending the product data reading message to the monitoring module of the cluster by the platform module; generating a product data reading instruction based on the product data reading message by the monitoring module, and sending the product data reading instruction to the storage chassis service module; reading the new key product data from the backboard of each device in the cluster by the storage chassis service module, and saving the new key product data to the cache. That is, the platform module first sends the product data reading message to the monitoring module of the cluster; the monitoring module generates a product data reading instruction based on the product data reading message, and sends the product data reading instruction to the storage chassis service module; then, the storage chassis service module reads the new key product data from the backboard of each device in the cluster, and saves the new key product data to the cache.
[0062] In some embodiments, sending the product data reading message to the monitoring module of the cluster by the platform module described above can include the following steps: creating a communication channel between the platform module and the monitoring module of the cluster and configuring communication parameters; establishing an inter-process connection between the platform module and the monitoring module of the cluster based on the communication channel; writing the product data reading message into the communication channel by the platform module, so that the monitoring module obtains the product data reading message through the communication channel; obtaining the message receiving response fed back by the monitoring module after receiving the product data reading message by the platform module; closing the communication channel between the platform module and the monitoring module of the cluster according to the message receiving response; that is, according to the characteristics of the platform module in the cluster and the monitoring module of the cluster, the platform module sends the product data reading message to the monitoring module through inter-process communication (IPC, Inter-Process Communication). Further, sending the product data reading instruction to the storage chassis service module includes: initializing the serial port of the monitoring module and the storage chassis service module; establishing a connection between the monitoring module and the storage chassis service module based on the serial port; sending the product data reading instruction to the storage chassis service module by the monitoring module through the serial interface; obtaining the instruction receiving response fed back by the storage chassis service module after receiving the product data reading instruction by the monitoring module; that is, the monitoring module and the storage chassis service module use serial communication, and the monitoring module sends the product data reading instruction to the storage chassis service module through the serial bus, so that the storage chassis service module executes the reading of the new key product data according to the product data reading instruction. The serial bus can be an I2C (Inter-Integrated Circuit) bus.
[0063] Step S12: reading the initial key product data from the backplane of the cluster device through the chassis management module of the cluster according to a second path, and reading the new key product data from the cache through the chassis management module; the second path is in the order of the chassis management module, the storage chassis service module, and the backplane.
[0064] The initial key product data is read from the backplane of the cluster device through the chassis management module of the cluster according to a second path, and the second path is in the order of the chassis management module, the storage chassis service module, and the backplane; that is, the storage chassis service module is notified by the chassis management module to execute the reading of the initial key product data. At the same time, the new key product data is also read from the cache by the chassis management module. After obtaining the new key product data and the initial key product data, the chassis management module is used by the upper layer application.
[0065] That is, the chassis management module reads the key product data in two forms, one of which is to read the initial field of the key product data information to maintain the original page length for the upper application, and the other is to read the cached new key product data, that is, the key product data does not need to be read by increasing the length of the page, which reduces the reading time and solves the problem of reading key product data timeout caused by the large offset of the new field, and solves the problem of reading key product data timeout of the storage chassis service module caused by the new field of the key product data in the storage field.
[0066] In some embodiments, the chassis management module reads the initial key product data from the backplane of the cluster device according to the second path, which can include: the chassis management module issues a target data page request to the storage chassis service module after receiving the broadcast event reported by the storage chassis service module; the broadcast event is generated when the storage chassis server detects external signal interface changes, and the external signal interface changes are caused by the storage device driver loading process; the storage chassis service module reads the initial key product data from the backplane of the cluster device according to the target data page request, and reports the initial key product data to the chassis management module.
[0067] It can be understood that after the cluster is established, the loading of the SAS driver (Serial Attached SCSI driver, a driver for connecting storage devices) will cause changes in the PHY state (Physical, external signal interface), so the storage chassis service module will report a broadcast event. After receiving the broadcast event, the chassis management module issues a target data page request (such as pageD4 instruction) so that the storage chassis service module reads the key product information of the backplane according to the pageD4 instruction. Since the key product information is a shared device, the master storage chassis service module performs the reading of the key product information by default; the chassis management module and the storage chassis service module communicate according to the target protocol, and the chassis management module parses the information corresponding to pageD4 through the corresponding protocol for display by the upper application. The chassis management module issues a target data page request by sending the entire page length. If there is a new field in the key product information, and the offset distance of the field from the starting offset is far, it will inevitably increase the length of the entire page, and ultimately increase the time for the storage chassis service module to read the key product data, which may cause the event to exceed the specified reading time, and thus timeout, so that the storage node reports an alarm and enters the service mode, which cannot provide services externally.
[0068] Specifically, saving the new key product data to the cache can include: saving the new key product data to the cache of the monitoring module; correspondingly, reading the new key product data from the cache by the chassis management module, including: reading the new key product data from the cache of the monitoring module by the chassis management module, and sending the new key product data to the upper application. That is, the new key product data is temporarily stored in the cache corresponding to the monitoring module, and then the new key product data is read from the cache of the monitoring module by the chassis management module.
[0069] In some embodiments, characterized in that, before reading the new key product data from the backplane of the cluster device according to the first path by the platform module of the cluster, the method can further include: obtaining the offset address of the new key product data and the offset address of the initial key product data; correspondingly, reading the new key product data from the backplane of the cluster device according to the first path by the platform module of the cluster, including: reading the new key product data from the backplane of the cluster device according to the first path by the platform module according to the offset address of the new key product data; that is, the new key product data is read from the backplane by the platform module, the monitoring module and the storage chassis service module according to the offset address of the new key product data. Correspondingly, reading the initial key product data from the backplane of the cluster device according to the second path by the chassis management module of the cluster, including: reading the initial key product data from the backplane of the cluster device according to the second path by the chassis management module according to the offset address of the initial key product data; that is, the initial key product data is read from the backplane by the chassis management module and the storage chassis service module according to the offset address of the initial key product data.
[0070] Furthermore, after obtaining the offset address of the newly added key product data and the offset address of the initial key product data, and before reading the newly added key product data from the backplane of the cluster device according to the first path through the platform module of the cluster, the method may also include: determining the data volume of the newly added key product data according to the offset address of the newly added key product data to obtain the newly added data volume; determining the data volume of the initial key product data according to the offset address of the initial key product data to obtain the initial data volume; obtaining the total data volume based on the newly added data volume and the initial data volume; comparing the total data volume with the maximum single data reading volume; if the total data volume is If the sum of the above data amounts is less than the aforementioned maximum single data read amount, the initial key product data and newly added key product data are directly read from the cluster device's backplane via the second path using the cluster's chassis management module. If the sum of the above data amounts is greater than the aforementioned maximum single data read amount, the newly added key product data are read from the cluster device's backplane via the cluster's platform module via the first path, and the initial key product data are read from the cluster device's backplane via the cluster's chassis management module via the second path. The aforementioned maximum single data read amount is determined by determining the maximum single data read amount without timeout based on the specified key product data read time and data read speed. Flexible analysis of data reading methods is achieved through offset addresses, improving the flexibility of key product data reading.
[0071] Step S13: Based on the newly added key product data and the initial key product data, complete key product data is obtained.
[0072] Finally, based on reading the newly added key product data from the backplane through the platform module, monitoring module, and storage chassis service module, and reading the initial key product data from the backplane through the chassis management module and storage chassis service module, the complete key product data is obtained. For example Figure 2 As shown, after establishing a storage cluster, the platform module (PL) sends a product data read message (IPC message) to the monitoring module (EC module). Upon receiving the IPC message, the EC module sends a product data read command (DMP_READ command) via I2C to the storage chassis service module (OSES). OSES executes the DMP_READ command to read the VPD information from the backplane, using the EC module to cache the VPD information read by OSES. Subsequently, the EN module sends a PageD4 request to OSES to read the existing VPD information. The EN module parses the VPD information returned by PageD4 for use by upper-layer applications. The EN module reads the newly added VPD information from the EC cache for use by upper-layer applications. While ensuring complete critical product data, this reduces the time it takes to read newly added critical product data, lowering the overall read time. This prevents nodes from entering storage service mode and improves cluster stability.
[0073] As can be seen from the above, in the embodiment, the platform module of the cluster reads the newly added key product data from the backboard of the cluster device according to a first path, and saves the newly added key product data to a cache; the first path is in order of the platform module, the monitoring module, the storage chassis service module, and the backboard; the chassis management module of the cluster reads the initial key product data from the backboard of the cluster device according to a second path, and reads the newly added key product data from the cache through the chassis management module; the second path is in order of the chassis management module, the storage chassis service module, and the backboard; and the complete key product data is obtained based on the newly added key product data and the initial key product data. As can be seen, by using the platform module, the monitoring module, and the storage chassis service module to read the newly added key product data from the backboard of the cluster device and save the newly added key product data to the cache, when the chassis management module reads the key product data, the part of the newly added key product data is directly read from the cache, the reading of the newly added key product data does not occupy the resources of the chassis management module, the chassis management module only needs to read the initial key product data, the reading time of the key product data is reduced, and the time of the chassis management module reading the product data is prevented from being timed out.
[0074] Correspondingly, the embodiment of the application further discloses a key product data acquisition device, as shown in Figure 3 The device comprises:
[0075] A newly added key product data acquisition module 11 is configured to read newly added key product data from a backboard of a cluster device through a platform module of the cluster according to a first path, and save the newly added key product data to a cache; the first path is in order of the platform module, the monitoring module, the storage chassis service module, and the backboard.
[0076] An initial key product data acquisition module 12 is configured to read initial key product data from the backboard of the cluster device through a chassis management module of the cluster according to a second path, and read the newly added key product data from the cache through the chassis management module; the second path is in order of the chassis management module, the storage chassis service module, and the backboard.
[0077] A complete key product data determination module 13 is configured to obtain complete key product data based on the newly added key product data and the initial key product data.
[0078] As can be seen, in the embodiment, the platform module of the cluster reads the new key product data from the backboard of the cluster device according to a first path, and saves the new key product data to a cache; the first path is in order of the platform module, the monitoring module, the storage chassis service module, and the backboard; the chassis management module of the cluster reads the initial key product data from the backboard of the cluster device according to a second path, and reads the new key product data from the cache through the chassis management module; the second path is in order of the chassis management module, the storage chassis service module, and the backboard; based on the new key product data and the initial key product data, complete key product data is obtained. As can be seen, by using the platform module, the monitoring module, and the storage chassis service module to read the new key product data from the backboard of the device and save the new key product data to the cache, when the chassis management module reads the key product data, the part of the new key product data is directly read from the cache, the reading of the new key product data does not occupy the resources of the chassis management module, the chassis management module only needs to read the initial key product data, the reading time of the key product data is reduced, and the time of the chassis management module reading the product data is prevented from being timed out.
[0079] In some specific embodiments, the new key product data obtaining module 11 can specifically include:
[0080] A product data reading message sending unit, configured to send, by the platform module, the product data reading message to the monitoring module of the cluster;
[0081] A product data reading instruction sending unit, configured to generate, by the monitoring module, a product data reading instruction based on the product data reading message, and send the product data reading instruction to the storage chassis service module;
[0082] A new key product data reading unit, configured to read, by the storage chassis service module, new key product data from the backboard of each device in the cluster, and save the new key product data to a cache.
[0083] In some specific embodiments, the product data reading message sending unit can specifically include:
[0084] A communication channel creating unit, configured to create a communication channel between the platform module and the monitoring module of the cluster, and configure a communication parameter;
[0085] An inter-process connection creating unit, configured to establish an inter-process connection between the platform module and the monitoring module of the cluster based on the communication channel;
[0086] a message transmission unit, configured to write the product data read message to the communication channel by the platform module, so that the monitoring module acquires the product data read message through the communication channel;
[0087] a response acquisition unit, configured to acquire, by the platform module, a message receiving response fed back by the monitoring module after the monitoring module receives the product data read message;
[0088] a channel closing unit, configured to close the communication channel between the platform module and the monitoring module of the cluster according to the message receiving response;
[0089] In some specific embodiments, the product data read instruction sending unit can specifically include:
[0090] a serial port initialization unit, configured to initialize serial ports of the monitoring module and the storage chassis service module;
[0091] a connection unit, configured to establish a connection between the monitoring module and the storage chassis service module based on the serial ports;
[0092] an instruction sending unit, configured to send the product data read instruction to the storage chassis service module by the monitoring module through the serial interface;
[0093] a response receiving unit, configured to acquire, by the monitoring module, an instruction receiving response fed back by the storage chassis service module after the storage chassis service module receives the product data read instruction.
[0094] In some specific embodiments, the key product data acquisition device can specifically include:
[0095] a judgment unit, configured to judge whether there is newly added key product data before reading the newly added key product data from a backboard of a cluster device by a platform module of the cluster according to a first path;
[0096] a first execution unit, configured to execute an operation of reading the newly added key product data from the backboard of the cluster device by the platform module of the cluster according to the first path if there is the newly added key product data;
[0097] a second execution unit, configured to directly execute an operation of reading initial key product data from the backboard of the cluster device by a chassis management module of the cluster according to a second path if there is no newly added key product data.
[0098] In some specific embodiments, the newly added key product data acquisition module 11 can specifically include:
[0099] a saving unit, configured to save the newly added key product data to a cache of the monitoring module;
[0100] Correspondingly, the initial key product data acquisition module 12 can specifically include:
[0101] The reading unit is configured to read the new key product data from the cache of the monitoring module by the chassis management module, and send the new key product data to an upper application.
[0102] In some specific embodiments, the initial key product data acquisition module 12 can specifically include:
[0103] The target data page request sending unit is configured to send a target data page request to the storage chassis service module after the chassis management module receives a broadcast event reported by the storage chassis service module; the broadcast event is generated when the storage chassis server detects an external signal interface change, and the external signal interface change is caused by a storage device driver loading process;
[0104] The reading unit is configured to read initial key product data from the backplane of the cluster device according to the target data page request by the storage chassis service module, and report the initial key product data to the chassis management module.
[0105] In some specific embodiments, the key product data acquisition device can specifically include:
[0106] The offset address acquisition unit is configured to acquire an offset address of the new key product data and an offset address of the initial key product data before reading the new key product data from the backplane of the cluster device according to a first path by the platform module of the cluster.
[0107] Correspondingly, the new key product data acquisition module 11 can specifically include:
[0108] The new key product data acquisition unit is configured to read the new key product data from the backplane of the cluster device according to the first path by the platform module according to the offset address of the new key product data.
[0109] Correspondingly, the initial key product data acquisition module 12 can specifically include:
[0110] The initial key product data acquisition unit is configured to read the initial key product data from the backplane of the cluster device according to the second path by the chassis management module of the cluster according to the offset address of the initial key product data.
[0111] Further, the embodiment of the present application also discloses an electronic device, as shown in Figure 4The contents of the figures should not be considered limiting of the scope of the application.
[0112] Figure 4 A structural schematic diagram of an electronic device 20 is provided in the embodiment of the present application. The electronic device 20 can specifically include at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26. The memory 22 is configured to store a computer program, and the processor 21 is configured to load and execute the computer program to implement the related steps in the key product data acquisition method disclosed in any of the foregoing embodiments.
[0113] In the embodiment, the power supply 23 is configured to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 is capable of creating a data transmission channel between the electronic device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input / output interface 25 is configured to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which is not specifically limited herein.
[0114] In addition, the memory 22 as a carrier for resource storage can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon include an operating system 221, a computer program 222 and data 223 including newly added key product data, etc., and the storage mode can be temporary storage or permanent storage.
[0115] The operating system 221 is configured to manage and control each hardware device on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, and the operating system 221 can be Windows Server, Netware, Unix, Linux, etc. The computer program 222 can further include computer programs capable of completing other specific work in addition to the computer programs capable of completing the key product data acquisition method executed by the electronic device 20 disclosed in any of the foregoing embodiments.
[0116] Further, the embodiment of the present application further discloses a computer storage medium, the computer storage medium stores computer executable instructions, the computer executable instructions are loaded and executed by a processor, and the method steps of acquiring the key product data disclosed by any of the foregoing embodiments are realized. Specifically, the platform module of the cluster can read the new key product data from the backboard of the cluster device according to a first path, and save the new key product data to the cache. The first path is in order of the platform module, the monitoring module, the storage chassis service module, and the backboard. The chassis management module of the cluster reads the initial key product data from the backboard of the cluster device according to a second path, and reads the new key product data from the cache through the chassis management module. The second path is in order of the chassis management module, the storage chassis service module, and the backboard. Based on the new key product data and the initial key product data, complete key product data is obtained. As can be seen, by using the platform module, the monitoring module, and the storage chassis service module to read the new key product data from the backboard of the device and save the new key product data to the cache, when the chassis management module reads the key product data, part of the new key product data is directly read from the cache. The reading of the new key product data does not occupy the resources of the chassis management module. The chassis management module only needs to read the initial key product data, reduces the reading time of the key product data, and avoids the time-out of the chassis management module reading the product data.
[0117] Further, the embodiment of the present application further discloses a computer program product, wherein the computer program product stores a computer program, and the computer program is loaded and executed by a processor to implement the method steps of acquiring key product data disclosed in any of the foregoing embodiments. Specifically, the method steps can be implemented by a platform module of a cluster to read new key product data from a backboard of a cluster device according to a first path, and save the new key product data to a cache; the first path is in order of the platform module, a monitoring module, a storage chassis service module, and the backboard; the method steps can be implemented by a chassis management module of the cluster to read initial key product data from the backboard of the cluster device according to a second path, and read the new key product data from the cache by the chassis management module; the second path is in order of the chassis management module, the storage chassis service module, and the backboard; and the complete key product data is obtained based on the new key product data and the initial key product data. It can be seen that, by using the platform module, the monitoring module, and the storage chassis service module to read the new key product data from the backboard of the cluster device and save the new key product data to the cache, when the chassis management module reads the key product data, the part of the new key product data is directly read from the cache, the reading of the new key product data does not occupy the resources of the chassis management module, the chassis management module only needs to read the initial key product data, the reading time of the key product data is reduced, and the time of the chassis management module reading the product data is prevented from being timed out.
[0118] The embodiments in the specification are described in progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiments, the description is relatively simple because the device corresponds to the method disclosed in the embodiments. The relevant parts can be referred to the description of the method.
[0119] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0120] Finally, it needs to be pointed out that in this document, relational terms such as first and second and the like can only be intended to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any such actual relationship or order between such entities or operations. Moreover, the terms "comprising", "including", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element defined by the statement "comprising a" does not exclude the existence of additional identical elements in the process, method, article, or apparatus including the stated element.
[0121] The above describes in detail the key product data acquisition method, device, equipment and storage medium provided by the present application. The principles and implementation manners 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. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A method for acquiring key product data, characterized in that: include: Reading the newly added key product data from the backplane of the cluster device according to the first path through the platform module of the cluster, and saving the newly added key product data to the cache; The first path is, in order, the platform module, the monitoring module, the storage chassis service module, and the backplane; Reading the initial key product data from the backplane of the cluster device according to the second path through the chassis management module of the cluster, and reading the newly added key product data from the cache through the chassis management module; The second path is, in order, the chassis management module, the storage chassis service module, and the backplane; Complete key product data is obtained based on the newly added key product data and the initial key product data.
2. The key product data acquisition method according to claim 1, characterized in that: The step of reading the newly added key product data from the backplane of the cluster device through the platform module of the cluster according to the first path includes: Sending the product data reading message to the monitoring module of the cluster through the platform module; Generate a product data read instruction based on the product data read message by the monitoring module, and send the product data read instruction to the storage chassis service module; The storage chassis service module reads the newly added key product data from the backplane of each device in the cluster and saves the newly added key product data to the cache.
3. The key product data acquisition method according to claim 2, characterized in that: The sending the product data reading message to the monitoring module of the cluster through the platform module includes: Creating a communication channel between the platform module and the monitoring module of the cluster, and configuring communication parameters; Establishing an inter-process connection between the platform module and the monitoring module of the cluster based on the communication channel; Writing the product data reading message into the communication channel through the platform module so that the monitoring module obtains the product data reading message through the communication channel; Acquiring, through the platform module, a message receiving response fed back by the monitoring module after receiving the product data reading message; Closing the communication channel between the platform module and the monitoring module of the cluster according to the message reception response; The step of sending the product data reading instruction to the storage chassis service module includes: Initializing the serial ports of the monitoring module and the storage chassis service module; Establishing a connection between the monitoring module and the storage chassis service module based on the serial port; Using the monitoring module to send the product data reading instruction to the storage chassis service module through the serial interface; The monitoring module obtains an instruction receiving response fed back by the storage chassis service module after receiving the product data reading instruction.
4. The key product data acquisition method according to claim 1, characterized in that: Before reading the newly added key product data from the backplane of the cluster device through the cluster platform module according to the first path, the method further includes: Determine whether there is new key product data; If there is newly added key product data, an operation of reading the newly added key product data from the backplane of the cluster device according to the first path is executed through the platform module of the cluster; If there is no newly added key product data, the operation of directly reading the initial key product data from the backplane of the cluster device according to the second path through the chassis management module of the cluster is performed.
5. The key product data acquisition method according to claim 1, characterized in that: Saving the newly added key product data to the cache includes: Saving the newly added key product data to the cache of the monitoring module; Correspondingly, reading the newly added key product data from the cache through the chassis management module includes: The newly added key product data is read from the cache of the monitoring module through the chassis management module, and the newly added key product data is sent to an upper layer application.
6. The key product data acquisition method according to claim 1, characterized in that: The reading of the initial key product data from the backplane of the cluster device through the chassis management module of the cluster according to the second path includes: After receiving the broadcast event reported by the storage chassis service module, the chassis management module sends a target data page request to the storage chassis service module; the broadcast event is generated when the storage chassis server monitors a change in the external signal interface, and the change in the external signal interface is caused by the storage device driver loading process; The storage chassis service module reads initial key product data from the backplane of the cluster device according to the target data page request, and reports the initial key product data to the chassis management module.
7. The key product data acquisition method according to any one of claims 1 to 6, characterized in that: Before reading the newly added key product data from the backplane of the cluster device through the cluster platform module according to the first path, the method further includes: Obtaining the offset address of the newly added key product data and the offset address of the initial key product data; Accordingly, the platform module of the cluster reads the newly added key product data from the backplane of the cluster device according to the first path, including: Reading the newly added key product data from the backplane of the cluster device according to the offset address of the newly added key product data through the platform module along the first path; Correspondingly, the reading of the initial key product data from the backplane of the cluster device through the chassis management module of the cluster according to the second path includes: The chassis management module of the cluster reads the initial key product data from the backplane of the cluster device according to the offset address of the initial key product data and along the second path.
8. A key product data acquisition device, characterized in that: include: A newly added key product data acquisition module is configured to read the newly added key product data from the backplane of the cluster device through the platform module of the cluster according to the first path, and save the newly added key product data to the cache; The first path is, in order, the platform module, the monitoring module, the storage chassis service module, and the backplane; an initial key product data acquisition module, configured to read the initial key product data from the backplane of the cluster device through the chassis management module of the cluster according to the second path, and read the newly added key product data from the cache through the chassis management module; The second path is, in order, the chassis management module, the storage chassis service module, and the backplane; The complete key product data determination module is used to obtain the complete key product data based on the newly added key product data and the initial key product data.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the key product data acquisition method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that Used to store a computer program; wherein when the computer program is executed by a processor, the key product data acquisition method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Distributed data cache management method, device and equipment and storage medium
CN112039979A
Storage control device, storage system, and storage control method
JP2023014715A