A storage system access method, device, apparatus and storage medium

By introducing concurrent multi-threaded access interfaces into the storage system and allocating different types of operation interfaces, the problems of GUI lag and slow loading in the storage system were solved, and more efficient command execution was achieved.

CN114328631BActive Publication Date: 2025-11-11GUANGDONG INSPUR BIG DATA RES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111452715.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2025-11-11
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The GUI of the existing storage system suffers from lag and slow loading during use, mainly due to the low efficiency caused by the excessive number of CLI commands executed serially.

Method used

By adding a concurrent multi-threaded access interface to the storage system, different access interfaces are assigned to query operations and configuration operations. Query operations are accessed through the concurrent multi-threaded interface, while configuration operations are accessed through the command-line interface. Data can be directly queried and configured using a preset database.

Benefits of technology

It improves command execution speed, alleviates lag and slow loading issues in the storage system GUI during use, and enhances operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328631B_ABST
    Figure CN114328631B_ABST
Patent Text Reader

Abstract

This application discloses a storage system access method, apparatus, device, and storage medium. The method includes: obtaining access requests from the graphical user interface (GUI) corresponding to the storage system and determining the corresponding operation type; if it is a query operation, receiving the access request through the storage system's concurrent multi-threaded access interface and forwarding it to a local preset database, then responding to the access request through the preset database to obtain the corresponding query result, and forwarding the query result to the GUI through the concurrent multi-threaded access interface; if it is a configuration operation, receiving the access request through the storage system's command-line interface and forwarding it to the corresponding local object to be configured, so as to use the configuration data in the access request to configure the object accordingly. Through the technical solution of this application, different access interfaces are allocated for different operation types, improving command execution efficiency and alleviating the slow loading phenomenon of the GUI.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of storage technology, and in particular to a storage system access method, apparatus, device, and storage medium. Background Technology

[0002] The GUI (Graphical User Interface) of current storage systems frequently experiences lag and slow loading issues. Analysis suggests this is because the storage system only provides a CLI (Command Line Interface), leading to a large number of commands being executed, and the CLI's serial execution requires queuing. Using the CLI interface has two drawbacks: First, both query and configuration operations need to be managed through the CLI queue. Furthermore, configuration operations require synchronization locks and must be executed serially, resulting in low efficiency as the CLI interface only supports serial execution. Second, the CLI interface for query operations is inherently slow due to its characteristics. The query operation process consists of five steps: 1. GUI sends a request; 2. CLI executes the command; 3. CLI returns data; 4. GUI reads the data returned by CLI; 5. GUI parses the data.

[0003] Therefore, improving command execution speed and resolving the issue of lag and slow loading in the graphical user interface of the storage system caused by excessive CLI command execution are problems that need to be addressed. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a storage system access method, apparatus, device, and storage medium that can improve command execution speed and solve the problem of lag and slow loading of the corresponding graphical user interface of the storage system during use due to excessive CLI command execution. The specific solution is as follows:

[0005] In a first aspect, this application discloses a storage system access method, including:

[0006] Obtain the access request from the graphical user interface corresponding to the storage system to the storage system, and determine the operation type corresponding to the access request;

[0007] If the operation type is a query operation, the access request is received through the concurrent multi-threaded access interface of the storage system and forwarded to the local preset database. Then, the access request is responded to through the preset database to obtain the corresponding query results and the query results are forwarded to the graphical user interface through the concurrent multi-threaded access interface.

[0008] If the operation type is a configuration operation, the access request is received through the command-line interface of the storage system and forwarded to the corresponding object to be configured locally, so as to use the configuration data in the access request to configure the object accordingly.

[0009] Optionally, before obtaining the access request from the graphical user interface corresponding to the storage system, the method further includes:

[0010] Add the concurrent multi-threaded access interface to the storage system that has been pre-configured with the command-line interface, and count the operation types of all access requests initiated by the graphical user interface to the storage system;

[0011] Based on the respective interface characteristics of the command-line interface and the concurrent multi-threaded access interface, a first operation type matching the command-line interface and a second operation type matching the concurrent multi-threaded access interface are determined from the operation types of all access requests collected; the first operation type includes configuration operations, and the second operation type includes query operations.

[0012] Configure the processing interface for the access request corresponding to the first operation type as the command-line interface, and configure the processing interface for the access request corresponding to the second operation type as the concurrent multi-threaded access interface.

[0013] Optionally, the step of receiving the access request through the concurrent multi-threaded access interface of the storage system and forwarding it to a local preset database, then responding to the access request through the preset database to obtain the corresponding query results, and forwarding the query results to the graphical user interface through the concurrent multi-threaded access interface includes:

[0014] The access request is received through the presentation layer state transition interface of the storage system and forwarded to the local preset database;

[0015] The system responds to the access request through the preset database to obtain the corresponding query results and forwards the query results to the graphical user interface through the presentation layer state transition interface so that the query results can be displayed through the graphical user interface.

[0016] Optionally, after receiving the access request through the command-line interface of the storage system and forwarding it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request, the method further includes:

[0017] The configuration data in the access request and / or the configuration result corresponding to the access request are saved to the preset database.

[0018] Optionally, receiving the access request through the command-line interface of the storage system and forwarding it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request, includes:

[0019] The access request is received through the command-line interface of the storage system, and the access request is added to the configuration request execution queue so that the access request is forwarded to the corresponding local object to be configured based on the serial execution mode of the configuration request execution queue.

[0020] The single-threaded execution method based on the synchronization lock uses the configuration data in the access request to configure the object to be configured, and releases the synchronization lock after the configuration is completed.

[0021] Optionally, the storage system access method further includes:

[0022] The management commands for the configuration request execution queue are obtained through the command-line interface of the storage system, and the corresponding management operations are performed on the configuration request execution queue through the management commands.

[0023] Optionally, obtaining management commands for the configuration request execution queue through the command-line interface of the storage system, and performing corresponding management operations on the configuration request execution queue through the management commands, includes:

[0024] The command line interface of the storage system is used to obtain a position adjustment command for the target configuration request in the configuration request execution queue, and the position of the target configuration request in the configuration request execution queue is adjusted accordingly based on the position adjustment command.

[0025] Secondly, this application discloses a storage system access device, comprising:

[0026] The request acquisition module is used to acquire the access request of the storage system to the storage system corresponding to the graphical user interface, and determine the operation type corresponding to the access request;

[0027] The query operation response module is used to receive the access request through the concurrent multi-threaded access interface of the storage system and forward it to the local preset database if the operation type is a query operation. Then, it responds to the access request through the preset database to obtain the corresponding query result and forwards the query result to the graphical user interface through the concurrent multi-threaded access interface.

[0028] The configuration operation module is used to receive the access request through the command line interface of the storage system and forward it to the corresponding object to be configured locally if the operation type is a configuration operation, so as to use the configuration data in the access request to configure the object to be configured accordingly.

[0029] Thirdly, this application discloses an electronic device, including:

[0030] Memory is used to protect computer programs;

[0031] A processor is used to execute the computer program to implement the aforementioned storage system access method.

[0032] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the storage system access method as described above.

[0033] In this application, the system first obtains the access request from the graphical user interface corresponding to the storage system and determines the operation type of the access request. If the operation type is a query operation, the system receives the access request through the concurrent multi-threaded access interface of the storage system and forwards it to a local preset database. Then, the system responds to the access request through the preset database to obtain the corresponding query result and forwards the query result to the graphical user interface through the concurrent multi-threaded access interface. If the operation type is a configuration operation, the system receives the access request through the command-line interface of the storage system and forwards it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request. As can be seen, by separating query operations and configuration operations and assigning different access interfaces to different operation types, query operations can be accessed through the concurrent multi-threaded access interface of the storage system, while configuration operations can be accessed through the command-line interface of the storage system. At the same time, query operations can directly query data from the database of the storage system through the interface without having to access it through the command-line interface. This improves command execution efficiency and alleviates the phenomenon of lag and slow loading of the corresponding graphical user interface of the storage system caused by too many command-line interface commands during use. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0035] Figure 1 This is a flowchart of a storage system access method disclosed in this application;

[0036] Figure 2 This is a flowchart of a specific storage system access method disclosed in this application;

[0037] Figure 3 This is a flowchart of a specific storage system access method disclosed in this application;

[0038] Figure 4 This is a schematic diagram of a storage system access method before optimization disclosed in this application;

[0039] Figure 5 This is a schematic diagram of a specific storage system access method disclosed in this application;

[0040] Figure 6 This is a schematic diagram of the structure of a storage system access device disclosed in this application;

[0041] Figure 7 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0043] Currently, during the process of accessing the storage system, there is a problem where excessive execution of command-line interface commands causes the corresponding graphical user interface of the storage system to lag and load slowly.

[0044] To address this issue, this application provides a storage system access scheme that can improve command execution speed and resolve the problem of lag and slow loading in the graphical user interface of the storage system caused by excessive command-line interface command execution.

[0045] This invention discloses a storage system access method, see [link to relevant documentation]. Figure 1 As shown, the method includes:

[0046] Step S11: Obtain the access request of the storage system from the graphical user interface corresponding to the storage system, and determine the operation type corresponding to the access request.

[0047] In this embodiment, a user can send an access request to the storage system through a graphical user interface (GUI), which is an operation interface displayed to the user in a graphical manner. The access request may carry an operation type identifier, and the storage system can parse the access request carrying the operation type identifier to determine the corresponding operation type.

[0048] It should be noted that, based on the usage of the command-line interface of the storage system, query operations account for the vast majority, while configuration operations are only a small number of requests. Currently, access to the storage system is only conducted through the command-line interface. However, in this embodiment, an interface that can provide concurrent multi-threaded access is added on the basis of the original command-line interface of the storage system. Then, based on the two access interfaces, the operation types of all access requests initiated by the graphical user interface to the storage system are counted.

[0049] Furthermore, different operation types are matched to the two interfaces with different attributes, allowing different types of operations to be processed separately. Specifically, based on the interface characteristics of the command-line interface and the concurrent multi-threaded access interface, a first operation type matching the command-line interface and a second operation type matching the concurrent multi-threaded access interface are determined from all the operation types of the collected access requests. Then, the processing interface for the access request corresponding to the first operation type is configured as the command-line interface, and the processing interface for the access request corresponding to the second operation type is configured as the concurrent multi-threaded access interface. It can be understood that the first operation type includes configuration operations, and the second operation type includes query operations.

[0050] Step S12: In this embodiment of the application, query operations do not require synchronization locks or queuing, and can also support concurrent requests. When the operation type is a query operation, the access request is received through the concurrent multi-threaded access interface of the storage system and forwarded to the local preset database. Then, the access request is responded to through the preset database to obtain the corresponding query results, and the query results are forwarded to the graphical user interface through the concurrent multi-threaded access interface.

[0051] In this embodiment, when it is determined that the operation type corresponding to the graphical user interface's access request to the storage system is a query operation, the access request is received using a pre-configured concurrent multi-threaded access interface in the storage system and forwarded to a local preset database. The access request is then responded to through the preset database to obtain the corresponding query results, which are then forwarded to the graphical user interface through the concurrent multi-threaded access interface. It is understood that the data for query operation access requests is stored in the local preset database. Thus, when the operation type is a query operation, data can be queried directly from the database in the storage system through the concurrent multi-threaded access interface, without needing to access it through the command-line interface, thereby improving execution speed.

[0052] Step S13: If the operation type is a configuration operation, the access request is received through the command line interface of the storage system and forwarded to the corresponding object to be configured locally, so as to use the configuration data in the access request to configure the object accordingly.

[0053] In this embodiment, when it is determined that the operation type corresponding to the graphical user interface's access request to the storage system is a configuration operation, the access request is received through the storage system's command-line interface and forwarded to the corresponding local object to be configured. Furthermore, the command-line interface is a visual prompt interface provided by the computer operating system or application to the user. Using the command-line interface, commands can be entered on specific lines, and responses can be received from the operating system. It is understood that the corresponding local object to be configured is also stored in the database. Thus, when the user initiates a configuration operation request through the graphical user interface, the configuration data in the access request can be used to configure the object stored in the database.

[0054] It should be noted that after receiving the access request through the command line interface of the storage system and forwarding it to the corresponding object to be configured locally, so as to use the configuration data in the access request to configure the object to be configured accordingly, the method further includes: saving the configuration data in the access request and / or the configuration result corresponding to the access request to the preset database, so that query operations can query the configured data and / or configuration result.

[0055] In this application, the system first obtains the access request from the graphical user interface corresponding to the storage system and determines the operation type of the access request. If the operation type is a query operation, the system receives the access request through the concurrent multi-threaded access interface of the storage system and forwards it to a local preset database. Then, the system responds to the access request through the preset database to obtain the corresponding query result and forwards the query result to the graphical user interface through the concurrent multi-threaded access interface. If the operation type is a configuration operation, the system receives the access request through the command-line interface of the storage system and forwards it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request. As can be seen, by separating query operations and configuration operations and assigning different access interfaces to different operation types, query operations can be accessed through the concurrent multi-threaded access interface of the storage system, while configuration operations can be accessed through the command-line interface of the storage system. At the same time, query operations can directly query data from the database of the storage system through the interface without having to access it through the command-line interface. This improves command execution efficiency and alleviates the phenomenon of lag and slow loading of the corresponding graphical user interface of the storage system caused by too many command-line interface commands during use.

[0056] This application discloses a specific storage system access method in its embodiments. See [link to relevant documentation] Figure 2 As shown, the method includes:

[0057] Step S21: Obtain the access request of the storage system from the graphical user interface corresponding to the storage system, and determine the operation type corresponding to the access request.

[0058] For a more detailed description of the process of step S21, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0059] Step S22: If the operation type is a query operation, the access request is received through the presentation layer state transition interface of the storage system and forwarded to the local preset database.

[0060] In this embodiment of the application, the data interface provided by the storage system with concurrent multi-threaded access is specifically a Representational State Transfer (REST) ​​interface. When the Representational State Transfer interface receives a query operation from the user's graphical interface on the storage system, it forwards the access request to a local preset database to query the data in the database.

[0061] Step S23: Respond to the access request through the preset database to obtain the corresponding query results and forward the query results to the graphical user interface through the presentation layer state transition interface so that the query results can be displayed through the graphical user interface.

[0062] In this embodiment, when the preset database receives a query request, it responds to the received access request to obtain the corresponding query results. It should be noted that the presentation layer state transition interface (REST interface) divides the entire query operation process into four steps: 1. The graphical user interface (GUI) sends a request; 2. The presentation layer state transition REST interface queries data; 3. The presentation layer state transition REST interface returns data; 4. The GUI parses the data. Therefore, after obtaining the corresponding query results, the query results are forwarded to the GUI through the presentation layer state transition interface, allowing the user to obtain the query results via the GUI.

[0063] In this application, the access request from the graphical user interface (GUI) corresponding to the storage system is first obtained, and the operation type corresponding to the access request is determined. If the operation type is a query operation, the access request is received through the presentation layer state transition interface of the storage system and forwarded to a local preset database. The preset database responds to the access request to obtain the corresponding query results, and the query results are forwarded to the GUI through the presentation layer state transition interface for display. It is evident that assigning query operations to the presentation layer state transition interface, which provides concurrent multi-threaded access, allows access to the storage system. Furthermore, when the operation type is a query operation, data can be directly queried from the database in the storage system through the presentation layer state transition interface without needing to access it through the command-line interface. This improves the execution speed and alleviates the current problem of lag and slow loading in the GUI caused by excessive command-line interface commands.

[0064] This application discloses a specific storage system access method in its embodiments. See [link to relevant documentation] Figure 3 As shown, the method includes:

[0065] Step S31: Obtain the access request of the storage system from the graphical user interface corresponding to the storage system, and determine the operation type corresponding to the access request.

[0066] For a more detailed description of the process of step S31, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0067] Step S32: If the operation type is a configuration operation, the access request is received through the command line interface of the storage system, and the access request is added to the configuration request execution queue so that the access request is forwarded to the corresponding local object to be configured based on the serial execution mode of the configuration request execution queue.

[0068] In this embodiment, when the access request received by the storage system is a configuration-type operation, it is accessed through a command-line interface. Because the command-line interface has synchronization lock and queue management functions, when it receives an access request, it adds the request to the configuration request execution queue. Furthermore, the storage system's command-line interface obtains management commands for the configuration request execution queue and performs corresponding management operations on the queue using these commands. It should be noted that the command-line interface needs to execute configuration-type operations serially. Therefore, after an access request is added to the configuration request execution queue, the queue executes commands serially, forwarding the access request to the corresponding local object to be configured.

[0069] In this embodiment, when managing the configuration request execution queue using management commands, the positions of different configuration requests can be adjusted accordingly. Specifically, a position adjustment command for a target configuration request in the configuration request execution queue is obtained through the command-line interface of the storage system, and the arrangement of the target configuration request in the queue is adjusted accordingly based on the position adjustment command. It can be understood that the target configuration request is the request whose position needs to be adjusted; once the position adjustment command for the target configuration request is obtained, the arrangement of the target configuration request in the configuration request execution queue that needs adjustment can be adjusted accordingly.

[0070] Step S33: Using a single-threaded execution method based on a synchronization lock, configure the object to be configured using the configuration data in the access request, and release the synchronization lock after the configuration is completed.

[0071] In this embodiment, the access request obtained by the storage system is a configuration operation, accessed via a command-line interface. Configuration operations require support for synchronization locks; that is, a lock is stored in the shared data. When no thread accesses the data, the lock is empty. When the first thread accesses the data, the thread's identifier is stored in the lock, and access is granted. Before the current thread releases the lock, any other thread attempting to access the shared data must wait for it to be released. Therefore, the command-line interface uses a single-threaded execution method based on synchronization locks. After configuring the object to be configured using the configuration data in the access request, the synchronization lock is released.

[0072] like Figure 4 The diagram illustrates the current storage system access method. The storage system only provides a command-line interface, while the presentation layer state transition interface is provided by a graphical user interface (GUI). Furthermore, the GUI also interacts with the storage system through the command-line interface. In other words, all types of operations in the current storage system's GUI access the storage system via the command-line interface. It should be noted that using the command-line interface has two drawbacks: First, both query and configuration operations need to be managed through a command-line interface queue. Configuration operations also require synchronization locks and must be executed serially, resulting in the command-line interface only supporting serial execution and thus lower efficiency. Second, the command-line interface for query operations is inherently slow due to its characteristics. The entire query operation process consists of five steps: 1. The GUI sends a request; 2. The command-line interface executes the command; 3. The command-line interface returns data; 4. The GUI reads the data returned by the command-line interface; 5. The GUI parses the data.

[0073] It's worth noting that when the operation type is query-based, using the presentation layer state transition interface (PRSE) significantly improves execution speed. This is because the PSE query operation process consists of four steps: 1. The graphical user interface sends a request; 2. The PSE queries the data; 3. The PSE returns the data; 4. The graphical user interface parses the data. This process is significantly faster than the command-line interface, eliminating the fourth step. Furthermore, the PSE query process is much faster than command-line execution. Therefore, compared to the command-line interface... Figure 4 This application discloses a specific schematic diagram of a storage system access method, such as... Figure 5 As shown, its implementation mainly includes the following steps: 1) The storage system itself provides a command-line interface and a presentation layer state transition interface. 2) Its presentation layer state transition interface only provides query-type interfaces and supports concurrent operations. 3) Its command-line interface supports configuration-type operations, supports synchronization locks, and serial execution. 4) The presentation layer state transition interface can directly access storage configuration data, instead of accessing data through the command-line interface. In this way, this optimized method of accessing the storage system can improve command execution efficiency and also alleviate the lag and slow loading issues of the graphical user interface.

[0074] In this application, the access request from the graphical user interface corresponding to the storage system is first obtained, and the operation type corresponding to the access request is determined. If the operation type is a configuration operation, the access request is received through the command-line interface of the storage system, and the access request is added to the configuration request execution queue. This allows the access request to be forwarded to the corresponding object to be configured locally based on the serial execution method of the configuration request execution queue. Using a single-threaded execution method based on a synchronization lock, the configuration data in the access request is used to configure the object to be configured, and the synchronization lock is released after the configuration is completed. Therefore, assigning configuration operations to the command-line interface with synchronization lock and queue management functions for access to the storage system, and ensuring that configuration operations are accessed only through the command-line interface, improves the current phenomenon of lag and slow loading in the graphical user interface of the storage system caused by excessive command-line interface command execution.

[0075] Accordingly, embodiments of this application also disclose a storage system access device, see [link to relevant documentation]. Figure 6 As shown, the device includes:

[0076] The request acquisition module 11 is used to acquire the access request of the storage system to the storage system corresponding to the graphical user interface, and determine the operation type corresponding to the access request;

[0077] The query operation response module 12 is used to receive the access request through the concurrent multi-threaded access interface of the storage system and forward it to the local preset database if the operation type is a query operation. Then, it responds to the access request through the preset database to obtain the corresponding query result and forwards the query result to the graphical user interface through the concurrent multi-threaded access interface.

[0078] The configuration operation module 13 is used to receive the access request through the command line interface of the storage system and forward it to the corresponding object to be configured locally if the operation type is a configuration operation, so as to use the configuration data in the access request to configure the object to be configured accordingly.

[0079] For more detailed information on the working process of each of the above modules, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0080] Therefore, the above-described scheme in this embodiment first obtains the access request from the graphical user interface corresponding to the storage system and determines the operation type corresponding to the access request. If the operation type is a query operation, the access request is received through the concurrent multi-threaded access interface of the storage system and forwarded to the local preset database. Then, the access request is responded to through the preset database to obtain the corresponding query result, and the query result is forwarded to the graphical user interface through the concurrent multi-threaded access interface. If the operation type is a configuration operation, the access request is received through the command-line interface of the storage system and forwarded to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request. As can be seen, by separating query operations and configuration operations and assigning different access interfaces to different operation types, query operations can be accessed through the concurrent multi-threaded access interface of the storage system, while configuration operations can be accessed through the command-line interface of the storage system. At the same time, query operations can directly query data from the database of the storage system through the interface without having to access it through the command-line interface. This improves command execution efficiency and alleviates the phenomenon of lag and slow loading of the corresponding graphical user interface of the storage system caused by too many command-line interface commands during use.

[0081] Furthermore, embodiments of this application also disclose an electronic device, Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0082] Figure 7 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this 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 storage system access method disclosed in any of the foregoing embodiments.

[0083] In this embodiment, the power supply 23 is used to provide operating 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 external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire 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.

[0084] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored on it can include an operating system 221, computer programs 222, and data 223, etc. The data 223 can include various types of data. The storage method can be temporary storage or permanent storage.

[0085] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the storage system access method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0086] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed storage system access method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0087] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0088] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0089] The present invention has provided a detailed description of a storage system access method, apparatus, device, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A storage system access method, characterized in that, include: Obtain the access request from the graphical user interface corresponding to the storage system to the storage system, and determine the operation type corresponding to the access request; If the operation type is a query operation, the access request is received through the presentation layer state transition interface with concurrent multi-threaded access function of the storage system and forwarded to the local preset database. Then, the access request is responded to through the preset database to obtain the corresponding query results and the query results are forwarded to the graphical user interface through the presentation layer state transition interface so that the query results can be displayed through the graphical user interface. If the operation type is a configuration operation, the access request is received through the command line interface of the storage system and forwarded to the corresponding object to be configured locally, so as to use the configuration data in the access request to configure the object accordingly. The storage system itself provides a command-line interface and a presentation layer state transition interface. The presentation layer state transition interface provides query operations and supports concurrent operations; the command-line interface supports configuration operations and supports synchronization locks for serial execution. Prior to obtaining the access request from the graphical user interface corresponding to the storage system, the method further includes: Add a concurrent multi-threaded access interface to the storage system that has been pre-configured with the command-line interface, and count the operation types of all access requests initiated by the graphical user interface to the storage system based on the two access interfaces; Different operation types are matched to two interfaces with different attributes to separate different types of operations; based on the interface characteristics of the command line interface and the concurrent multi-threaded access interface, a first operation type matching the command line interface and a second operation type matching the concurrent multi-threaded access interface are determined from the operation types of all access requests collected; the first operation type includes configuration operations, and the second operation type includes query operations; Configure the processing interface for the access request corresponding to the first operation type as the command line interface, and configure the processing interface for the access request corresponding to the second operation type as the concurrent multi-threaded access interface. The step of receiving the access request through the command-line interface of the storage system and forwarding it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request, includes: The access request is received through the command-line interface of the storage system, and the access request is added to the configuration request execution queue so that the access request is forwarded to the corresponding local object to be configured based on the serial execution mode of the configuration request execution queue. The single-threaded execution method based on the synchronization lock uses the configuration data in the access request to configure the object to be configured, and releases the synchronization lock after the configuration is completed.

2. The storage system access method according to claim 1, characterized in that, After receiving the access request through the command-line interface of the storage system and forwarding it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request, the method further includes: The configuration data in the access request and / or the configuration result corresponding to the access request are saved to the preset database.

3. The storage system access method according to claim 1 or 2, characterized in that, Also includes: The management commands for the configuration request execution queue are obtained through the command-line interface of the storage system, and the corresponding management operations are performed on the configuration request execution queue through the management commands.

4. The storage system access method according to claim 3, characterized in that, The step of obtaining management commands for the configuration request execution queue through the command-line interface of the storage system, and performing corresponding management operations on the configuration request execution queue through the management commands, includes: The command line interface of the storage system is used to obtain a position adjustment command for the target configuration request in the configuration request execution queue, and the position of the target configuration request in the configuration request execution queue is adjusted accordingly based on the position adjustment command.

5. A storage system access device, characterized in that, include: The request acquisition module is used to acquire the access request of the storage system to the storage system corresponding to the graphical user interface, and determine the operation type corresponding to the access request; The query operation response module is used to receive the access request through the presentation layer state transition interface with concurrent multi-threaded access function of the storage system and forward it to the local preset database if the operation type is a query operation. Then, it responds to the access request through the preset database to obtain the corresponding query result and forwards the query result to the graphical user interface through the presentation layer state transition interface so that the query result can be displayed through the graphical user interface. The configuration operation module is used to receive the access request through the command line interface of the storage system and forward it to the corresponding object to be configured locally if the operation type is a configuration operation, so as to use the configuration data in the access request to configure the object to be configured accordingly. The storage system itself provides a command-line interface and a presentation layer state transition interface. The presentation layer state transition interface provides query operations and supports concurrent operations; the command-line interface supports configuration operations and supports synchronization locks for serial execution. Prior to obtaining the access request from the graphical user interface corresponding to the storage system, the method further includes: Add a concurrent multi-threaded access interface to the storage system that has been pre-configured with the command-line interface, and count the operation types of all access requests initiated by the graphical user interface to the storage system based on the two access interfaces; Different operation types are matched to two interfaces with different attributes to separate different types of operations; based on the interface characteristics of the command line interface and the concurrent multi-threaded access interface, a first operation type matching the command line interface and a second operation type matching the concurrent multi-threaded access interface are determined from the operation types of all access requests collected; the first operation type includes configuration operations, and the second operation type includes query operations; Configure the processing interface for the access request corresponding to the first operation type as the command line interface, and configure the processing interface for the access request corresponding to the second operation type as the concurrent multi-threaded access interface. The step of receiving the access request through the command-line interface of the storage system and forwarding it to the corresponding object to be configured locally, so as to configure the object to be configured using the configuration data in the access request, includes: The access request is received through the command-line interface of the storage system, and the access request is added to the configuration request execution queue so that the access request is forwarded to the corresponding local object to be configured based on the serial execution mode of the configuration request execution queue; the command-line interface has the functions of synchronization lock and queue management; The single-threaded execution method based on the synchronization lock uses the configuration data in the access request to configure the object to be configured, and releases the synchronization lock after the configuration is completed.

6. An electronic device, characterized in that, include: Memory is used to protect computer programs; A processor for executing the computer program to implement the storage system access method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, Used for storing computer programs; wherein the computer programs, when executed by a processor, implement the storage system access method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Synchronizing JAVA resource access

    US20130145374A1