API execution control system, API execution control method, and API execution control program

The API execution control system addresses the lack of collective QoS management for multiple storage APIs by detecting patterns in end-user operations and prioritizing API groups for efficient execution and resource allocation.

JP2024154303AActive Publication Date: 2024-10-30HITACHI VANTARA LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023068071
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-30
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

Existing systems fail to collectively manage multiple storage APIs executed as an extension of end-user operations and perform Quality of Service (QoS) control based on end-user operations, despite conventional methods queuing individual storage APIs by priority.

Method used

An API reception unit detects multiple consecutive API execution requests, stores patterns in an API group management table, and an API execution prediction unit increases execution priority for matching requests, using an API execution control system to manage and prioritize API groups.

Benefits of technology

The system effectively controls QoS by prioritizing and managing multiple storage APIs based on end-user operations, ensuring efficient execution and resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154303000001_ABST
    Figure 2024154303000001_ABST
Patent Text Reader

Abstract

To provide an API execution control system that controls QoS based on a user operation.SOLUTION: An API execution control system includes: an API reception unit configured to receive a plurality of successive API execution requests from a user; a table update unit configured to detect patterns of the plurality of received successive API execution requests and register the detected patterns of the plurality of successive API execution requests in an API group management table; an API execution prediction unit configured to determine whether the API execution request received by the API reception unit matches the pattern registered in the API group management table; and an API execution control unit configured to, when it is determined that the API execution request received by the API execution prediction unit matches the pattern registered in the API group management table, raise execution priority of the next API for which execution request is to be received.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an API execution control system, an API execution control method, and an API execution control program. [Background technology]

[0002] In recent years, multi-tenancy has progressed, and users are executing storage APIs more frequently than before. In addition, because storage resources are limited, the number of APIs that can be executed simultaneously is also limited. Among these, there is a growing need to prioritize APIs of high importance. Furthermore, with cloud systems and other systems acting as intermediaries for storage operations from end users, it is becoming increasingly common for cloud systems to issue dozens of storage APIs (storage API groups) to the storage for a single end-user operation, and the frequency of storage API execution is increasing even more.

[0003] For example, Patent Document 1 discloses a system comprising an API message receiving unit that identifies the requester and / or requesting system of an API request and authenticates the API request, a requestor-specific priority registration table that holds a combination of a unique identifier indicating the requester and / or requesting system of each API request and a priority, a priority determination unit that determines the priority of the API request by referring to the requestor-specific priority registration table based on the requester and / or requesting system of the API request, and a control target determination unit that decides whether to give priority to processing of the API request in accordance with the determined priority. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Publication 2017-16408 Summary of the Invention [Problem to be solved by the invention]

[0005] There is a one-to-many relationship between end-user operations and the number of storage APIs executed. Conventional technology involves queuing individual storage APIs according to priority, but no study has been conducted on a method for collectively managing and controlling QoS for multiple storage APIs executed as an extension of end-user operations. In other words, while QoS control based on individual storage APIs exists, no study has been conducted on a system that can provide QoS based on end-user operations. [Means for solving the problem]

[0006] The object of the present invention is achieved by an API execution control system including an API reception unit that receives multiple consecutive API execution requests from a user, a table update unit that detects a pattern of the received multiple consecutive API execution requests and registers the detected multiple consecutive API execution request patterns in an API group management table, an API execution prediction unit that determines whether the API execution request received by the API reception unit matches a pattern registered in the API group management table, and an API execution control unit that increases the execution priority of the next API for which it will accept an execution request when the API execution prediction unit determines that the received API execution request matches a pattern registered in the API group management table. Effect of the Invention

[0007] According to the present invention, it is possible to control the QOS of an API execution system. Problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram for explaining a system overview according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a block diagram illustrating a storage device according to an embodiment of the present invention. [Diagram 3] Example of QoS Management Table in the Embodiment of the Present Invention [Figure 4]Example of API group management table in the embodiment of this invention [Diagram 5] 1. Example of API group operation interval management table in the embodiment of this invention [Figure 6] Example of an API cache table in an embodiment of the present invention [Figure 7] 13 is a flowchart illustrating an API group management table update process according to an embodiment of the present invention. [Figure 8] 13 is a flowchart illustrating a process for deleting an API group from an API group management table according to an embodiment of the present invention. [Figure 9] 13 is a flowchart illustrating an example of an API group operation interval management table update process according to an embodiment of the present invention. [Figure 10] 1 is a flowchart illustrating an example of an API execution prediction process according to an embodiment of the present invention. [Figure 11] 1 is a flowchart illustrating a resource allocation process according to an embodiment of the present invention. [Figure 12] FIG. 1 is a diagram for explaining a queue control process according to an embodiment of the present invention. [Figure 13] 1 is a flowchart illustrating an execution API queue process according to an embodiment of the present invention. [Figure 14] 1 is a flowchart illustrating a process for allocating resources to a periodic request according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, embodiments of the present invention will be described with reference to the drawings. In each drawing for explaining the embodiments, the same components are given the same names and reference numerals as much as possible, and repeated description thereof will be omitted.

[0010] The present invention is not limited to the following examples, and includes various modifications and equivalent configurations within the spirit of the appended claims. For example, the above-mentioned examples have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to those including all of the described configurations.

[0011] In addition, the processing units described in the examples may be realized in hardware, some or all of which may be designed as integrated circuits, or may be realized in software by a processor interpreting and executing a program that realizes each function.

[0012] The tables, areas, etc. described in the embodiments may be a database (DB) or may be data stored in the main memory. EXAMPLES

[0013] 1 is a diagram for explaining an overview of a system in an embodiment of the present invention. A user 4 inputs commands to a cloud system 1 and storage management software 2. The cloud system 1 is provided with multiple hosts 6. The commands input to the cloud system 1 and storage management software 2 are converted into multiple APIs (Application Interfaces) and transmitted to a storage device 3 via a network 5. The APIs function like commands or programs that operate the storage device.

[0014] The storage device includes an API processing control device 7 and a memory unit 8. The API processing control device 7 is composed of a computer equipped with a CPU (Central Processing Unit) 9, memory 11, an external storage device 10, an input / output unit 12, etc. The memory unit 8 is composed of multiple storage devices 14 and is connected to the API processing control device 7, and receives APIs from the API processing control device 7 to execute processing instructed by the user 4.

[0015] FIG. 2 illustrates the software modules of the API processing control device 7, the hardware configuration of which is explained in FIG. 1, and various tables that are stored in the external storage device 10 and accessed by the software modules.

[0016] The API processing control device 7 includes an API reception unit 21 that receives APIs from the cloud system 1 or storage management software, and an API execution control unit 22 that controls the execution of the API received by the API reception unit 21.

[0017] The API reception unit 21 includes a user information acquisition unit 24 that acquires information about the user who issued the API, and an API information acquisition unit 25 that acquires the API information itself.

[0018] The API execution control unit 22 includes a table update unit 30 that updates various tables, an API execution prediction unit 31 that predicts API execution, a resource allocation control unit 32 that allocates resources such as a CPU for executing the API, a storage information acquisition unit 33 that acquires storage information, and an API processing request unit 34 that requests the memory unit 8 to process the API.

[0019] The API processing request unit 34 includes an API cache 35 that stores a group of APIs currently being executed, and an execution API queue 36 that maintains a queue of APIs to be executed.

[0020] Furthermore, the external storage device 10 stores a QoS management table 26, an API group management table 27, an API execution log 29, and an API group operation interval management table .

[0021] 3 is an example of a QoS management table in the embodiment of the present invention. End users 41 who execute APIs, QoS types 42 indicating the priority of QoS, and QoS contents 43 indicating the priority contents for each QoS type are stored in association with each other.

[0022] In this example, the end users 41 are defined as three types of users 4, A, B, and C, as well as the storage management software and the system end users of the cloud system. The QoS type 42 has three levels of user priority, Gold, Silver, and Bronze, and a system priority of Special. The priority increases in the order of Bronze, Silver, Gold, and Special.

[0023] The QoS content indicates that QoS type Bronze has the lowest priority and therefore no priority control is performed. QoS type Silver controls the execution order in the execution API queue 36 to process requests preferentially. QoS type Gold further increases the API execution priority, so not only does it control the execution API queue 36 but it also secures the resources necessary for API execution. QoS type Special has the highest priority and therefore it controls the execution API queue 36 and secures resources so that requests can be executed immediately.

[0024] The extent to which the execution API queue 36 is controlled and resources are secured for the user's QoS type Silver or Gold depends on the system to which it is applied. Therefore, the extent to which the API execution order is advanced in the control of the execution API queue 36, the type of CPU secured in the resource securing, the time to secure, etc. will change.

[0025] Also, a QoS type that lowers the priority may be prepared so that it is executed when the load on the storage system decreases. 4 shows an example of an API group management table in an embodiment of the present invention. The table stores an API group 45 to be executed, an API execution user 46 who is the user who executes the API group, an end user 47, and a last execution date and time 48 in association with each other.

[0026] The GET / ldevs and POST / ldevs in the first line are APIs for creating new volumes, and are executed from both the cloud system and the storage management software. There are records of execution by three end users, A, B, and C, and the last execution date and time was 2023 / 2 / 13 8:00:00.

[0027] Similarly, the second line is a mapping process that connects the server and the volume, the third line is a backup process that takes a snapshot, and the fourth line is a process that takes performance information and configuration information. End users are not necessarily people, but may be scripts or tools. 5 is an example of an API group operation interval management table in an embodiment of the present invention. Information on an execution interval 54 and a next execution time 55, which is a predicted next execution time, is added to the API group management table in FIG. Figure 6 shows an example of an API cache table in an embodiment of the present invention. This table stores information on APIs that are currently being executed and APIs that have been executed recently. For example, this is information on APIs that have been executed within the past second, and also includes information on APIs that have completed processing. 7 is an example of a flowchart of API group management table update processing in an embodiment of the present invention. The API reception unit 21 receives an API execution request (S71). Next, the user information acquisition unit 24 acquires user information such as the API execution user 46 and end user 47 of the received request and stores this in the API group management table 27 (S72). If there is an API execution request from the same user within a certain period of time (S73), there is a possibility that this is a request to execute an API group, so the API in question is registered in the API cache 35 (S74).

[0028] If there is no request from the same user within a certain period of time, in other words, when it is determined that the API group execution request from that user has ended, it is determined whether the API group requested by that user is registered in API group management table 27 (S75).

[0029] When the API group requested for execution by the user is registered in the API group management table 27, the last execution date and time 48 of the API group management table 27 is updated (S76).

[0030] If the API group for which the execution request has been made by the user has not been registered in the API group management table 27, the API group for which the execution request has been made is added to the API group management table 27 (S77).

[0031] 8 is an example of a flowchart of the process of deleting an API group from the API group management table in an embodiment of the present invention. The last execution date and time 48 of each API group registered in the API group management table is referenced (S81).

[0032] If the API group has not been executed for a certain period of time since the last execution date and time 48 (S82), the API group is deleted from the API group management table (S83).If the API group has been executed, the API group is retained.

[0033] Although this process depends on the use of the storage system, if the API group deletion process is performed about once a month, it is possible to prevent the API group management table from becoming bloated and the processing performance of the storage system from decreasing.

[0034] 9 is an example of a flowchart of API group operation interval management table update processing in an embodiment of the present invention. API execution log information is acquired (S91), and it is determined whether there is periodicity for each API group executed by each user (S92). If it is determined that there is periodicity (S93), the API group is registered in the API group operation interval management table 28 together with the execution interval 54 and next execution time 55. Furthermore, if the API group is already registered in the API group operation interval management table, it is confirmed whether there has been a change in the registered execution interval 54, and if there has been a change, the execution interval 54 and next execution time 55 are updated. If it is determined that there is no periodicity, no registration is made.

[0035] The API group operation interval management table update process depends on the use of the storage system, but if it is performed about once a month, API execution that is in line with the latest storage operation methods will be possible.

[0036] 10 is a flowchart showing an example of an API execution prediction process in the embodiment of the present invention. The API reception unit 21 receives an API execution request (S101), acquires user information (S102), and adds the information to the API cache 35 (S103).

[0037] The API execution prediction unit 31 refers to the API group management table and determines whether the currently executing API group is registered (S104). In this determination, it determines whether the sequence of APIs included in the API group matches completely. When it is determined that the currently executing API group is registered, it determines whether the registered API group has a subsequent API (S105). If it has a subsequent API, it predicts that the next registered API will be executed (S106).

[0038] When it is determined in S104 that the API group is not registered, it is determined whether there are multiple registered API group candidates and there is a subsequent API (S107).If there are multiple registered API group candidates and there is a subsequent API, it is predicted that the next registered API will be executed (S106).

[0039] 11 is an example of a flowchart of a resource allocation process in an embodiment of the present invention. In the API execution prediction process, it is determined whether the next API is one of the APIs predicted to be executed (S111). If the next API is not to be executed, the process ends.

[0040] If there is a possibility that there are multiple APIs in the API group for which the next API is executed in S111, it is determined whether the user is the same user (S112). If it is not the same user, the process ends. If it is the same user, the QoS information of the user executing the API group is obtained (S113), and the operation information of the MPU (Micro Processor Unit) is obtained from the storage information acquisition unit (S114).

[0041] Until the processing of the relevant API group is completed, the QoS level based on the user's QoS type is set and the MPU is reserved. However, if an API group with a higher QoS level than the relevant API group is issued, the reserved processor may be taken away. Not only the MPU but also memory and volumes may be reserved.

[0042] Then, when the processing of the API group is completed, the secured resources such as the MPU are released.

[0043] 12 is a diagram illustrating the queue control process in an embodiment of the present invention. The API processing request unit 34 of the storage device 3 has an execution API queue 36. An API for which an execution request has been received is registered in the execution API queue. In this example, APIs B-2 and C-2 are registered, and APIs B-1 and C-1 registered in the execution API queue 36 are executed by MPU2 and MPU3, respectively. MPU1 is reserved for executing user A's API with a QoS type of Gold.

[0044] In this state, when an execution request for API A-2 is received from end user A, A-2 is registered to the top of the execution API queue. It is then immediately executed by MPU1 reserved for Gold.

[0045] By implementing this type of control, it becomes possible to execute APIs with a higher priority. However, if multiple API execution requests from Gold end user A are received in the same time slot, since only one MPU can be reserved for each end user, there is a possibility that the reserved MPU will be assigned to another newly received request.

[0046] 13 is an example of a flowchart of execution API queue processing in an embodiment of the present invention. The API reception unit 21 receives an API execution request (S131), acquires user information (S132), and determines whether the request is for execution of the next API registered in the API group management table 27 as an API group (S133). If the request is not for execution of the next registered API, the API is registered at the end of the execution API queue 36 (S135).

[0047] If it is the next registered API (YES), it is determined whether an API with a higher priority than the QoS type of the user is registered in the queue (S134).

[0048] If an API with a high priority is not registered in the queue (YES), the API is registered at the top of the execution API queue 36, where it will be executed first. If an API with a high priority is registered in the execution API queue 36 (NO), the API is registered in the execution API queue 36 next to the process with a higher priority than the API in question.

[0049] 14 is an example of a flowchart of resource allocation processing for periodic requests in an embodiment of the present invention. It is determined whether there is an API group whose next execution time is approaching in the API group operation interval management table (S141). The determination of whether it is approaching depends on the operation of the storage system, but usually the time is set to one to several seconds.

[0050] When there is an API group whose next execution time is approaching, the MPU 123 is reserved for executing the API group according to the QoS type until the execution of the API group is completed (S142). When the execution of the API group is completed, the reserved MPU 123 is released (S143).

[0051] In this example, an MPU is used as an example, but memory and disk volume allocation is also controlled as necessary. [Explanation of symbols]

[0052] 1 cloud system, 2 storage management software, 3 storage device, 4 user, 6 host, 7 API processing control device, 8 storage unit, 9 CPU, 10 external storage device, 11 memory, 12 input / output unit, 14 storage device, 21 API reception unit, 22 API execution control unit, 24 user information acquisition unit, 25 API information acquisition unit, 26 QoS management table, 27 API group management table, 28 API group operation interval management table, 29 API execution log, 30 table update unit, 31 API execution prediction unit, 32 resource allocation control unit, 33 storage information acquisition unit, 34 API processing request unit, 35 API cache, 36 execution API queue, 123 MPU

Claims

1. an API reception unit that receives a plurality of successive API execution requests from a user; a table update unit that detects a plurality of consecutive API execution request patterns received and registers the detected plurality of consecutive API execution request patterns in an API group management table; an API execution prediction unit that determines whether an API execution request received by the API reception unit matches a pattern registered in an API group management table; When the API execution prediction unit determines that the received API execution request matches a pattern registered in the API group management table, the API execution control unit increases the execution priority of the API that will next receive an execution request. An API execution control system comprising:

2. a QoS management table for registering users and their priorities in association with each other; 2. The API execution control system according to claim 1, wherein the API execution control unit refers to the QoS management table and changes a priority improvement method for increasing the execution priority of an API for which an execution request has been received, based on the priority of the user who made the API execution request.

3. 3. The API execution control system of claim 2, wherein the priority increasing method reserves a processor for API execution to increase execution priority.

4. Further, a queue for registering the execution order of the API is provided, 3. The API execution control system according to claim 2, wherein the priority improvement method advances the execution order in a queue of an API whose execution priority is to be increased.

5. The table update unit detects a pattern of an API that periodically receives an execution request from a user, and registers the detected API pattern in the API group management table. The API execution control system of claim 2, wherein the API execution control unit executes a priority improvement method based on a priority associated with a user of an API at a predetermined time that is the next scheduled execution time of the API that periodically accepts execution requests and is registered in the API group management table.

6. 3. The API execution control system according to claim 2, wherein the table update unit deletes any pattern that has not been executed within a predetermined time from among the patterns registered in the API group management table.

7. 3. The API execution control system according to claim 2, wherein the API group management table includes information indicating the last execution date and time for each registered pattern, and the table update unit updates the last execution date and time corresponding to the executed pattern when a pattern registered in the API group management table is executed.

8. The API reception unit receives a plurality of successive API execution requests from a user, A table update unit detects a plurality of consecutive API execution request patterns received, and registers the detected plurality of consecutive API execution request patterns in an API group management table; The API execution prediction unit determines whether the API execution request received by the API reception unit matches a pattern registered in the API group management table; The API execution control method increases the execution priority of the next API that receives an execution request when the API execution control unit determines that the API execution request received by the API execution prediction unit matches a pattern registered in the API group management table.

9. a QoS management table for registering users and their priorities in association with each other; The API execution control method according to claim 8, wherein the API execution control unit refers to a QoS management table and changes a priority improvement method for increasing the execution priority of an API for which an execution request has been received based on the priority of the user who made the API execution request.

10. receiving a plurality of successive API execution requests from a user on a computer; a step of detecting a plurality of consecutive API execution request patterns received and registering the detected plurality of consecutive API execution request patterns in an API group management table; a step of determining whether an API execution request received by an API receiving unit matches a pattern registered in an API group management table; A program for executing a procedure for increasing the execution priority of the next API that receives an execution request when the API execution prediction unit determines that the received API execution request matches a pattern registered in the API group management table.

Citation Information

Patent Citations

  • API provision system and API provision method

    JP2017016408A

  • API providing system

    JP2021177310A

  • Service group interaction management

    US10362141B1

  • Requesting embedded hypermedia resources in data interchange format documents

    US10536390B1

  • Embedding hypermedia resources in data interchange format documents

    US10567469B1