Key product data acquisition method and device, equipment and storage medium

By caching new key product data in the cluster and combining the initial data, the problem of timeout of key product data reading time is solved, improving cluster performance and stability.

CN119718213AActive Publication Date: 2025-03-28INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202412000162.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-03-28
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

In the prior art, the reading time of key product data may be increased due to the addition of new parameter fields, resulting in the reading time exceeding the regulations, entering the service mode, and affecting cluster performance.

Method used

The cluster platform module reads the added key product data from the backplane of the cluster device according to the first path and saves it to the cache; the chassis management module reads the initial key product data from the backplane according to the second path, and reads the added data from the cache, and merges it into complete data.

Benefits of technology

It reduces the reading time of key product data, avoids the time time of reading product data by the chassis management module, and improves the performance and stability of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718213A_ABST
    Figure CN119718213A_ABST
Patent Text Reader

Abstract

The invention discloses a key product data acquisition method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: reading newly-added key product data from a backboard of cluster equipment according to a first path through a platform module of a cluster, and storing the newly-added key product data to a cache; the first path comprises a platform module, a monitoring module, a storage case service module and a backboard in sequence; reading initial key product data from a backboard of cluster equipment according to a second path through a case management module of the cluster, and reading the newly added key product data from the cache through the case management module; the second path sequentially comprises a case management module, a storage case service module and a back plate; and obtaining complete key product data based on the newly added key product data and the initial key product data. The reading time of key product data can be shortened, and the case management module is prevented from reading the product data overtime.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for acquiring key product data. Background Art

[0002] Vital product data (VPD) can help maintenance personnel quickly confirm the characteristics of equipment during daily maintenance, or quickly confirm whether a certain device belongs to a faulty batch when a device fails.

[0003] In the related art, the acquisition of key product data of each device in the cluster is performed by reading the stored key product data by page through the enclosure management module (EN). However, since the key product data may be updated, such as adding one or several types of parameters on the original basis; the newly added parameter field will increase the length of the page to be read, which will increase the time to obtain the key product data, often causing the time to obtain the key product data to exceed the specified reading time, causing the node to report an alarm and enter the service mode (Service), making it unable to provide services to the outside world, affecting the cluster performance. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a key product data acquisition method, device, equipment and storage medium, which can reduce the reading time of key product data and avoid the timeout of the chassis management module reading product data. The specific scheme is as follows: In a first aspect, the present application discloses a method for acquiring key product data, comprising: 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, and saving the newly added key product data to the cache; the first path is the platform module, the monitoring module, the storage chassis service module, and the backplane in order; The chassis management module of the cluster reads the initial key product data from the backplane of the cluster device according to the second path, and reads the newly added key product data from the cache through the chassis management module; the second path is the chassis management module, the storage chassis service module, and the backplane in order; Based on the newly added key product data and the initial key product data, complete key product data is obtained.

[0005] Optionally, the reading of 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.

[0006] Optionally, 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; Acquire, through the platform module, a message receiving response fed back by the monitoring module after receiving the product data reading message; Closing a 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 comprises: 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 the instruction receiving response fed back by the storage chassis service module after receiving the product data reading instruction.

[0007] Optionally, before 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, the method further includes: Determine whether there is any 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.

[0008] Optionally, the step of saving the newly added key product data to a 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.

[0009] Optionally, the 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 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 detects 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.

[0010] Optionally, before 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, 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; Correspondingly, 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 according to 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 along the second path.

[0011] In a second aspect, the present application discloses a key product data acquisition device, comprising: A new key product data acquisition module is added, which is used to read the new 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 new key product data to the cache; the first path is the platform module, the monitoring module, the storage chassis service module, and the backplane in order; An initial key product data acquisition module is used 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 the order of chassis management module, storage chassis service module, and 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.

[0012] In a third aspect, the present application discloses an electronic device, including: Memory, used to store computer programs; The processor is used to execute the computer program to implement the aforementioned key product data acquisition method.

[0013] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned key product data acquisition method when executed by a processor.

[0014] In the present application, the newly added key product data is read from the backplane of the cluster device by the platform module of the cluster according to the first path, and the newly added key product data is saved to the cache; the first path is platform module, monitoring module, storage chassis service module, and backplane in order; the initial key product data is read from the backplane of the cluster device by the chassis management module of the cluster according to the second path, and the newly added key product data is read from the cache by the chassis management module; the second path is chassis management module, storage chassis service module, and backplane in order; based on the newly added key product data and the initial key product data, complete key product data is obtained. It can be seen that by using the platform module, monitoring module, and storage chassis service module to read the newly added key product data from the backplane of the device, and save the newly added key product data to the cache, when the chassis management module reads the key product data, part of the newly added key product data can be directly read from the cache, and the reading of the newly added key product data will not occupy the resources of the chassis management module. The chassis management module only needs to read the initial key product data, which reduces the reading time of the key product data and avoids the timeout of the chassis management module reading product data. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0016] Figure 1 A flow chart of a key product data acquisition method provided for this application; Figure 2 A specific flow chart of a method for obtaining key product data provided for this application; Figure 3 A schematic diagram of the structure of a key product data acquisition device provided in this application; Figure 4 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] In the prior art, since key product data may have update operations, such as adding one or several types of parameters on the original basis; the newly added parameter fields will increase the length of the page to be read, which will increase the time to obtain key product data, often causing the time to obtain key product data to exceed the specified reading time, causing the node to report an alarm and enter the service mode, making it unable to provide services to the outside world, affecting cluster performance. In order to overcome the above technical problems, this application proposes a key product data acquisition method that can reduce the reading time of key product data and avoid the timeout of the chassis management module reading product data.

[0019] The present application embodiment discloses a method for obtaining key product data. Figure 1 As shown, the method may include the following steps: Step S11: read the newly added key product data from the backplane of the cluster device through the cluster platform module according to the first path, and save the above-mentioned newly added key product data to the cache; the above-mentioned first path is platform module, monitoring module, storage chassis service module, and backplane in order.

[0020] In this embodiment, after the cluster is created, during the initialization process of the platform module of the cluster, the newly added key product data can be read from the backplane of the cluster device according to the first path through the platform module; the cluster can be a storage cluster, and a cluster has at least one platform module (PL, Plateform), one monitoring module (EC, EngineeringChange), one storage chassis service (i.e., unified SCSI storage chassis service, OSES, Organic SCSI (SmallComputer System Interface, Small Computer System Interface) Enclosure service) module, and one chassis management module (Enclosure Mangement, EN). The backplane can be a double-sided backplane (Midplane), that is, a backplane of a double-sided plug-in board, connected to the storage module.

[0021] The platform module specifically reads the newly added key product data from the backplane according to the first path, that is, the platform module cannot read data directly from the backplane, and the storage chassis service module performs the reading of the key product data (VPD, Vital Product Data) in the backplane through the platform module, the monitoring module and the storage chassis service module. After the newly added key product data is read, the data is temporarily stored in the cache. It can be understood that the key product data may include data such as name and ID, but there will be new field filling later, such as adding type information. At this time, the reading time will be longer due to the increase in the length of the entire page (page), and the reading time will exceed the specified reading time and time out. After the timeout, the storage will report an alarm and enter the storage service mode service mode, causing the node to exit the cluster and affect the stability of the business. Therefore, the newly added key product data is first read into the cache through the platform module, the monitoring module and the storage chassis service module, and then the newly added key product data can be directly read from the cache.

[0022] In some embodiments, the above-mentioned reading of 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 may include: sending the above-mentioned product data reading message to the monitoring module of the cluster through the above-mentioned platform module; generating a product data reading instruction based on the above-mentioned product data reading message through the above-mentioned monitoring module, and sending the above-mentioned product data reading instruction to the storage chassis service module; reading the newly added key product data from the backplane of each device in the cluster through the above-mentioned storage chassis service module, and saving the above-mentioned newly added key product data to the cache. That is, firstly, the platform module sends a product data reading message to the monitoring module of the cluster; the monitoring module generates a product data reading instruction based on the above-mentioned product data reading message, and sends the above-mentioned product data reading instruction to the storage chassis service module, and then, the storage chassis service module reads the newly added key product data from the backplane of each device in the cluster, and saves the above-mentioned newly added key product data to the cache.

[0023] In some embodiments, sending the product data reading message to the monitoring module of the cluster through the platform module may 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 through 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 through 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 and the monitoring module of the cluster within the cluster, by establishing inter-process communication (IPC, Inter-Process Communication) between the platform module and the monitoring module, the platform module sends the product data reading message to the monitoring module through inter-process communication. Further, the product data reading instruction is sent to the storage chassis service module, including: 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; obtaining the instruction receiving response fed back by the storage chassis service module after receiving the product data reading instruction through the monitoring module; that is, serial communication is adopted between the monitoring module and the storage chassis service module, 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 newly added key product data according to the product data reading instruction. Among them, the serial bus can be specifically an I2C (Inter-Integrated Circuit) bus.

[0024] Step S12: 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 chassis management module, storage chassis service module, and backplane in sequence.

[0025] The chassis management module of the cluster reads the initial key product data from the backplane of the cluster device according to the second path. The second path is the chassis management module, the storage chassis service module, and the backplane in order; that is, the chassis management module notifies the storage chassis service module, and the storage chassis service module performs the reading of the initial key product data. At the same time, the chassis management module is also used to read the above-mentioned newly added key product data from the above-mentioned cache. After the chassis management module obtains the newly added key product data and the initial key product data, it is provided for use by the upper-layer application.

[0026] That is to say, the chassis management module reads key product data in two forms. One is to maintain the original page length to read the key product data information of the initial field for use by upper-level applications; the other is to read the newly added key product data in the cache, that is, there is no need to increase the page length to read the key product data, which reduces the reading time and can solve the problem of timeout in reading key product data due to excessive offset of the newly added field. It solves the problem of timeout in reading key product data by the storage chassis service module due to the newly added fields of key product data in the storage field.

[0027] In some embodiments, 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 may include: 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 detects a change in the external signal interface, and the change in the external signal interface is caused by the storage device driver loading process; reading the initial key product data from the backplane of the cluster device according to the target data page request through the storage chassis service module, and reporting the initial key product data to the chassis management module.

[0028] It is understandable that after the cluster is established, the storage chassis service module will report a broadcast event because the loading of the SAS driver (Serial Attached SCSI driver, a driver for connecting storage devices) will cause a change in the PHY state (Physical, external signal interface). After receiving the broadcast event, the chassis management module sends a target data page request (such as the pageD4 instruction) so that the storage chassis service module can read the key product information of the backplane according to the pageD4 instruction. Since the key product information is a shared device, the reading of the key product information is performed by the main storage chassis service module by default; the chassis management module communicates with the storage chassis service module according to the target protocol, and the chassis management module parses the corresponding information of pageD4 through the corresponding protocol for display by the upper-level application. The chassis management module sends the target data page request by sending the entire page length. If there is a new field in the key product information and the offset of the field is far from the starting offset, it will inevitably increase the length of the entire page, which will eventually increase the time it takes for the storage chassis service module to read key product data. This may cause the event to exceed the specified reading time and then time out, causing the storage node to report an alarm and enter service mode and be unable to provide external services.

[0029] Specifically, saving the newly added key product data to the cache may include: 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: reading the newly added key product data from the cache of the monitoring module through the chassis management module, and sending the newly added key product data to the upper layer application. That is, temporarily storing the newly added key product data in the cache corresponding to the monitoring module, and then the chassis management module reads the newly added key product data from the cache of the monitoring module.

[0030] In some embodiments, it is characterized in that before 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, it may also include: 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 first path by the platform module according to the offset address of the newly added key product data; that is, reading the newly added key product data from the backplane by using the platform module, the monitoring module, and the storage chassis service module according to the offset address of the newly added 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 includes: 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 according to the offset address of the initial key product data; that is, reading the initial key product data from the backplane by using the chassis management module and the storage chassis service module according to the offset address of the initial key product data.

[0031] Further, 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, it can 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 If the sum of the above data volumes is less than the above-mentioned maximum single data read volume, the initial key product data and the newly added key product data are directly read from the backplane of the cluster device according to the second path using the chassis management module of the cluster; if the sum of the above data volumes is greater than the above-mentioned maximum single data read volume, the newly added key product data is read from the backplane of the cluster device according to the first path through the platform module of the cluster, and the initial key product data is read from the backplane of the cluster device according to the second path through the chassis management module of the cluster; the determination process of the above-mentioned maximum single data read volume is: according to the specified key product data reading time and data reading speed, determine the maximum single data read volume without timeout. The data reading method is flexibly analyzed through the offset address to improve the flexibility of key product data reading.

[0032] Step S13: Based on the newly added key product data and the initial key product data, complete key product data is obtained.

[0033] 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. Figure 2 As shown in the figure, after the storage cluster is established, the platform module PL sends a product data read message (IPC message) to the monitoring module EC module. After receiving the IPC message, the EC module sends a product data read instruction (DMP_READ instruction) to the storage chassis service module OSES through I2C. OSES executes the DMP_READ instruction to read the VPD information from the backplane and uses EC to cache the VPD information read by OSES. Subsequently, the EN module sends a PageD4 request to OSES to read the original VPD information. The EN module parses the VPD information returned by PageD4 for use by upper-layer applications. The newly added field is the VPD information cached by EC read by the EN module for use by upper-layer applications. On the basis of ensuring the acquisition of complete key product data, the reading time of the newly added key product data is saved, and the overall reading time of the key product data is reduced, thereby avoiding the node from entering the storage service mode and improving the stability of cluster operation.

[0034] As can be seen from the above, in this embodiment, 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, and saves the newly added key product data to the cache; the first path is the platform module, the monitoring module, the storage chassis service module, and the backplane in order; the chassis management module of the cluster reads the initial key product data from the backplane of the cluster device according to the second path, and reads the newly added key product data from the cache through the chassis management module; the second path is the chassis management module, the storage chassis service module, and the backplane in order; based on the newly added key product data and the initial key product data, the complete key product data is obtained. It can be seen that by using the platform module, the monitoring module, and the storage chassis service module to read the newly added key product data from the backplane of the 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 can be directly read from the cache, and the reading of the newly added key product data will not occupy the resources of the chassis management module. The chassis management module only needs to read the initial key product data, which reduces the reading time of the key product data and avoids the timeout of the chassis management module reading the product data.

[0035] Correspondingly, the embodiment of the present application also discloses a key product data acquisition device, see Figure 3 As shown, the device comprises: A newly added key product data acquisition module 11 is used 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 the platform module, the monitoring module, the storage chassis service module, and the backplane in order; The initial key product data acquisition module 12 is used 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 the chassis management module, the storage chassis service module, and the backplane in order; The complete key product data determining module 13 is used to obtain the complete key product data based on the newly added key product data and the initial key product data.

[0036] As can be seen from the above, in this embodiment, 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, and saves the newly added key product data to the cache; the first path is in the order of platform module, monitoring module, storage chassis service module, and backplane; the chassis management module of the cluster reads the initial key product data from the backplane of the cluster device according to the second path, and reads the newly added key product data from the cache through the chassis management module; the second path is in the order of chassis management module, storage chassis service module, and backplane; based on the newly added key product data and the initial key product data, complete key product data is obtained. It can be seen that by using the platform module, monitoring module, and storage chassis service module to read the newly added key product data from the backplane of the 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 can be directly read from the cache, and the reading of the newly added key product data will not occupy the resources of the chassis management module. The chassis management module only needs to read the initial key product data, which reduces the reading time of the key product data and avoids the timeout of the chassis management module reading product data.

[0037] In some specific embodiments, the newly added key product data acquisition module 11 may specifically include: A product data reading message sending unit, configured to send the product data reading message to the monitoring module of the cluster through the platform module; A product data read instruction sending unit, configured to generate a product data read instruction based on the product data read message through the monitoring module, and send the product data read instruction to a storage chassis service module; A newly added key product data reading unit is used to read the newly added key product data from the backplane of each device in the cluster through the storage chassis service module, and save the newly added key product data to the cache.

[0038] In some specific embodiments, the product data reading message sending unit may specifically include: A communication channel creation unit, used to create a communication channel between the platform module and the monitoring module of the cluster, and configure communication parameters; An inter-process connection creation unit, used to establish an inter-process connection between the platform module and the monitoring module of the cluster based on the communication channel; a message transmission unit, configured to write 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; A response acquisition unit, configured to acquire, through the platform module, a message receiving response fed back by the monitoring module after receiving the product data reading message; 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 reception response; In some specific embodiments, the product data reading instruction sending unit may specifically include: A serial port initialization unit, used to initialize the serial ports of the monitoring module and the storage chassis service module; A connection unit, configured to establish a connection between the monitoring module and the storage chassis service module based on the serial port; An instruction sending unit, configured to send the product data reading instruction to the storage chassis service module via the serial interface using the monitoring module; The response receiving unit is used to obtain, through the monitoring module, an instruction receiving response fed back by the storage chassis service module after receiving the product data reading instruction.

[0039] In some specific embodiments, the key product data acquisition device may specifically include: A judging unit, used to judge whether there is newly added key product data 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; A first execution unit is configured to execute an operation of reading the newly added key product data from a backplane of a cluster device according to a first path through a platform module of the cluster if the newly added key product data exists; The second execution unit is configured to directly execute an operation of 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 if no newly added key product data exists.

[0040] In some specific embodiments, the newly added key product data acquisition module 11 may specifically include: A storage unit, used for storing the newly added key product data in the cache of the monitoring module; Accordingly, the initial key product data acquisition module 12 may specifically include: The reading unit is used to read the newly added key product data from the cache of the monitoring module through the chassis management module, and send the newly added key product data to the upper layer application.

[0041] In some specific embodiments, the initial key product data acquisition module 12 may specifically include: a target data page request sending unit, configured for the chassis management module to send 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 a change in an external signal interface, and the change in the external signal interface is caused by a storage device driver loading process; The reading unit is used to read the initial key product data from the backplane of the cluster device through the storage chassis service module according to the target data page request, and report the initial key product data to the chassis management module.

[0042] In some specific embodiments, the key product data acquisition device may specifically include: An offset address acquisition unit, used to acquire the offset address of the newly added key product data and the offset address of the initial key product data 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; Accordingly, the newly added key product data acquisition module 11 may specifically include: A newly added key product data acquisition unit, configured to read 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 and along the first path; Accordingly, the initial key product data acquisition module 12 may specifically include: The initial key product data acquisition unit is used to read 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 through the chassis management module of the cluster.

[0043] Furthermore, the present application also discloses an electronic device, see Figure 4 As shown, the contents in the drawings should not be considered as any limitation on the scope of use of the present application.

[0044] Figure 4 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may 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 used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the key product data acquisition method disclosed in any of the aforementioned embodiments.

[0045] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0046] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including newly added key product data, etc. The storage method can be temporary storage or permanent storage.

[0047] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the key product data acquisition method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0048] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored, and when the computer executable instructions are loaded and executed by a processor, the steps of the key product data acquisition method disclosed in any of the aforementioned embodiments are implemented. Specifically, it is possible 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 the order of platform module, monitoring module, storage chassis service module, and backplane; the initial key product data is read from the backplane of the cluster device through the chassis management module of the cluster according to the second path, and the newly added key product data is read from the cache through the chassis management module; the second path is in the order of chassis management module, storage chassis service module, and backplane; based on the newly added key product data and the initial key product data, complete key product data is obtained. It can be seen that by utilizing the platform module, the monitoring module, and the storage chassis service module, the newly added key product data is read from the backplane of the device and saved to the cache. When the chassis management module reads the key product data, the newly added key product data can be directly read from the cache. The reading of the newly added key product data will not occupy the resources of the chassis management module. The chassis management module only needs to read the initial key product data, which reduces the reading time of the key product data and avoids the timeout of the chassis management module reading the product data.

[0049] Furthermore, an embodiment of the present application also discloses a computer program product, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the key product data acquisition method disclosed in any of the above embodiments are implemented. Specifically, it is possible 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 the order of platform module, monitoring module, storage chassis service module, and backplane; the initial key product data is read from the backplane of the cluster device through the chassis management module of the cluster according to the second path, and the newly added key product data is read from the cache through the chassis management module; the second path is in the order of chassis management module, storage chassis service module, and backplane; based on the newly added key product data and the initial key product data, complete key product data is obtained. It can be seen that by utilizing the platform module, the monitoring module, and the storage chassis service module, the newly added key product data is read from the backplane of the device and saved to the cache. When the chassis management module reads the key product data, the newly added key product data can be directly read from the cache. The reading of the newly added key product data will not occupy the resources of the chassis management module. The chassis management module only needs to read the initial key product data, which reduces the reading time of the key product data and avoids the timeout of the chassis management module reading the product data.

[0050] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0051] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may 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 art.

[0052] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0053] The above is a detailed introduction to a key product data acquisition method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, 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 invention.

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, a platform module, a monitoring module, a storage chassis service module, and a 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, a chassis management module, a storage chassis service module, and a backplane; Based on the newly added key product data and the initial key product data, complete key product data is obtained.

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; Acquire, through the platform module, a message receiving response fed back by the monitoring module after receiving the product data reading message; Closing a 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 comprises: 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 the 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 platform module of the cluster according to the first path, the method further includes: Determine whether there is any 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 through the platform module of the cluster is executed; 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: The step of 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 detects 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 platform module of the cluster 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; Correspondingly, 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 according to 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 along the second path.

8. A key product data acquisition device, characterized in that: include: A newly added key product data acquisition module is used 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, a platform module, a monitoring module, a storage chassis service module, and a backplane; An initial key product data acquisition module is used 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 the order of chassis management module, storage chassis service module, and 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 as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer programs are 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

  • Original equipment information management method and system, terminal and storage medium

    CN114296813A

  • Hot update method and device, computer equipment and storage medium

    CN118092972A

  • Storage control device, storage system, and storage control method

    JP2023014715A

  • Rapid caching and data delivery system and method

    US20090198892A1

Cited By

  • Data loading method and electronic equipment

    CN121681427A

  • Data loading method and electronic device

    CN121681427B