Information processing system, information processing method, and program

The system allows applications to be tested and released in a production environment using a load balancer and test container, addressing the challenge of development environment testing and enabling efficient production deployment.

JP7563061B2Active Publication Date: 2024-10-08NEC CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020152583
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-11
Publication Date
2024-10-08
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

Existing release functions require testing in the development environment, making it difficult to release applications to the production environment and complicating effective testing due to the need for test data.

Method used

An information processing system that includes a load balancer and a test container placed in the application before testing, allowing the application to be released to the production environment, where it performs tests based on requests and responses.

Benefits of technology

Enables testing of applications in a production environment, facilitating immediate release and validation without the need for additional modifications or proxies, and utilizing existing load balancer functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563061000001
    Figure 0007563061000001
  • Figure 0007563061000002
    Figure 0007563061000002
  • Figure 0007563061000003
    Figure 0007563061000003
Patent Text Reader

Abstract

To run a test on a developed application in a real environment.SOLUTION: An information processing system includes: a load balancer; and a first container arranged in a pre-reset application, for running a test on the application in a real environment. The application is released in the real environment, and the first container runs the test in the real environment on the basis of a request from the load balancer and a response to the request.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 information processing system, an information processing method, and a program. [Background technology]

[0002] Generally, when developing an application (AP) for a system that is integrated with a WebAPI such as a container, the AP is first developed and tested in a development environment, and then released to the production environment.

[0003] In addition, when releasing, techniques such as canary release are often used to gradually switch traffic to the new version of AP using a load balancer, or to roll back if a problem occurs. Such load balancer-based release functions are commonly available because they are built into industry-standard container platform software such as Kubernetes. There are also technologies, such as OSS such as Kayenta, that automate the production release in a canary release by collecting and analyzing metrics. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2016-149043 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, existing release functions require testing to be performed in a development environment, meaning that they cannot be released to the production environment until testing is complete, and they also require test data as input, making it difficult to conduct effective testing.

[0006] SUMMARY OF THE PRESENT DISCLOSURE An object of the present invention is to provide an information processing system, an information processing method, and a program that solve the above-mentioned problems. [Means for solving the problem]

[0007] According to a first aspect of this embodiment, an information processing system includes a load balancer and a first container that is placed in a pre-test application and tests the application in a production environment, the application is released to the production environment, and the first container performs the test in the production environment based on a request from the load balancer and a response to the request.

[0008] According to a second aspect of this embodiment, the information processing method includes placing a test container in a pre-test application, releasing the application to a production environment, and in the production environment, the container tests the application based on a request from a load balancer and a response to the request.

[0009] According to a third aspect of this embodiment, the program causes a computer to execute a process of releasing a pre-test application to a production environment, and having a test container placed within the application test the application in the production environment based on a request from a load balancer and a response to the request. Effect of the Invention

[0010] According to the present invention, a pre-test application can be tested in a production environment. [Brief description of the drawings]

[0011] [Figure 1] 1 is a diagram illustrating an example of a configuration of an information processing system according to a first embodiment. [Diagram 2] FIG. 2 is a diagram showing a processing flow of the information processing system according to the first embodiment. [Diagram 3]FIG. 11 is a diagram illustrating an example of a configuration of an information processing system according to a second embodiment. [Figure 4] FIG. 2 is a diagram illustrating an example of a minimum configuration of an information processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] (First embodiment) Hereinafter, an information processing system according to a first embodiment will be described with reference to the drawings.

[0013] FIG. 1 is a diagram showing an example of the configuration of an information processing system 100 according to the first embodiment.

[0014] The information processing system 100 is a container-based system that provides an operating environment for containers. Here, a container is a collection of libraries and applications required for running an application. The information processing system 100 is a container orchestration tool such as Kubernetes, and performs integrated management of containers.

[0015] Furthermore, when a new version of an application (AP) of a system that is combined by a WebAPI such as a container is developed, the information processing system 100 tests the AP. At that time, the information processing system 100 does not test the AP in a development environment, but releases the AP to a production environment and tests the AP in the production environment. The information processing system 100 tests the validity while capturing WebAPI requests and responses in the traffic of the production environment, and officially releases the AP when a certain standard is met. The configuration of the information processing system 100 shown in FIG. 1 is a configuration for testing a new version of an AP in the production environment.

[0016] The information processing system 100 is configured by one or more computers (information processing devices). The information processing system 100 includes a container base management function unit 110, a load balancer 120, an old AP 130, a developed AP 140, and a new AP 150.

[0017] The container-based management function unit 110 manages the entire information processing system 100 .

[0018] The load balancer 120 is a function for realizing the release function.

[0019] The old AP 130 is deployed in the information processing system 100. The old AP 130 is an application (AP) configured with a single container called a front end 131. The front end 131 provides a service to the client 200 via a WebAPI (Application Programming Interface).

[0020] The development AP 140 is an AP under development, and is deployed to the information processing system 100. The development AP 140 includes a front end 141 and a validator 142, which are two containers.

[0021] Frontend 141 is a container under development and is an improvement over frontend 131.

[0022] The validator 142 is a container that captures requests from the load balancer 120 and responses from the frontend 141, and verifies whether the frontend 141 is operating correctly.

[0023] The validator 142 is an example of a "first container" of the present invention. The front end 141 is an example of a "second container" of the present invention.

[0024] The new AP 150 is deployed in the information processing system 100. The new AP 150 is an AP configured of a single container called a front end 151. The front end 151 is a container having the same program code as the front end 141. The new AP 150 is an AP that is released as a new version if testing is successful. Therefore, the new AP 150 does not include the validator 142.

[0025] The client 200 is a client that uses a service provided by the AP, and communicates with an end point of the AP using a WebAPI.

[0026] In addition, Figure 1 shows the state in which testing is being carried out to release a new version of AP. In the load balancer 120, the old AP 130 and the development version AP 140 are released simultaneously in the same way as the canary release. In other words, most of the workload is transferred to the old AP 130, and the remaining workload is transferred to the development version AP 140. No workload is transferred to the new AP 150.

[0027] The following describes the flow of operations of the information processing system 100. Fig. 2 is a diagram for explaining the flow of a method for testing an application under development, and is a flow diagram of the processing operations of the validator 142 in the information processing system 100.

[0028] First, when the validator 142 receives a WebAPI request from the load balancer 120 (step S101), it transfers the request to the front end 141 (step S102). Next, when the validator 142 receives a WebAPI response from the front end 141 (step S103), it performs a test (step S104). The content of the test may be, for example, "whether an expected response to the request has been returned" or "whether a response has been returned within a certain period of time." Note that in the present invention, the content of the test is not particularly limited, and there is also no particular limitation on the specific method of implementing the test.

[0029] The validator 142 checks the test results and determines whether or not there are any problems in the test results (step S105). If no problems are detected in the test results, the validator 142 checks whether the criteria for determining whether to release a new version are met (step S106). Here, the criteria may be, for example, that no problems are detected for a certain number of requests, or that no problems are detected within a certain period of time.

[0030] If the criteria are met, the validator 142 rolls out the new version of the AP (step S107). For example, the validator 142 uses the container-based management function unit 110 to control the load balancer 120 so as to transfer all workloads to the new AP 150. Also, for example, the validator 142 may stop the old AP 130 and the development AP 140 that are no longer needed.

[0031] If the criteria are not met in step S106, the validator 142 returns to the process of step S101 and repeats the processes from step S101 to step S105 until the criteria are met.

[0032] If a problem is detected in the test in step S105, the validator 142 returns a response including an error to the client 200 (step S108), and rolls back the new version AP (step S109). For example, the validator 142 uses the container-based management function 11 to control the load balancer 120 to transfer all workloads to the old AP 130. For example, if a problem is detected in the test, the load balancer 120 transfers all workloads to the front end 151 having the same program code as the development version front end 141. The validator 142 may also stop the development version AP 140 and the new AP 150 that are no longer needed.

[0033] In this way, the information processing system 100 releases the AP under development to the production environment and tests the AP in the production environment. More specifically, the information processing system 100 places a test container in the AP under development and captures the WebAPI request and response to check the validity of the AP response. This allows the information processing system 100 to immediately release the developed AP and test it within the workload of the production environment.

[0034] Second embodiment The information processing system of the second embodiment will be described below with reference to the drawings.

[0035] 3 is a diagram showing an example of the configuration of an information processing system 100A according to the second embodiment. The information processing system 100A according to the second embodiment is different from the first embodiment in that the AP to be released operates as a client of the external AP 300, which is another AP. In the following embodiments, the same reference numerals are used for the contents similar to those described in the first embodiment, and the description is omitted as appropriate.

[0036] The information processing system 100A is a system that provides an operating environment for containers, similar to the first embodiment.

[0037] The information processing system 100A includes a container infrastructure management function unit 110, a load balancer 120, an old AP 130, a development version AP 140A, and a new AP 150.

[0038] The development AP 140A is deployed in the information processing system 100A. The development AP 140A includes three containers: a front end 141, a validator 142, and a validator 143.

[0039] The validator 143 captures a WebAPI request from the front end 141 to the external AP 300. The validator 143 checks, for example, whether the validator 142 transmits an expected request to the external AP 300 in response to a received request, or whether the validator 142 transmits a request to the external AP 300 within a certain time period after receiving a request from the load balancer 120. Note that there is no need to check the validity of a response from the external AP 300.

[0040] It should be noted that the method for testing an application under development in the second embodiment is the same as the test method shown in FIG. 2, and therefore a description thereof will be omitted.

[0041] The information processing system 100A of the second embodiment described above verifies the validity of the AP response by placing a test container in the AP under development and capturing the WebAPI request and response. Therefore, the information processing system 100A of the second embodiment has the same effects as the information processing system 100 of the first embodiment.

[0042] The minimum configuration of the information processing systems 100, 100A of the above-mentioned embodiments will be described with reference to FIG. 4. The information processing systems 100, 100A according to this embodiment include a load balancer 120 and a validator 142, which is an example of a first container. The validator 142 is placed in a pre-test development version AP 140, and tests an application in a production environment. The AP 140 is released to the production environment. In the production environment, the validator 142 performs a test based on a request from the load balancer 120 and a response to the request. This allows an application under development to be tested in the production environment.

[0043] However, existing release functions are premised on testing in the development environment, so there are issues such as not being able to release to production until testing is complete, and it is difficult to perform effective testing because test data is used as input. To address these issues, a technology called dark launch can be used. Dark launch is a technology that does not load balance requests in the production environment, but transfers (mirrores) all requests to the new version of the AP and checks their validity in the production environment.

[0044] However, with dark launch, although a new version of the AP is deployed to the production environment, the new version of the AP is discarded without returning a response to the client, so it is not actually released to the production environment.In addition, to achieve dark launch, the release management function of the existing load balancer cannot be used, and there was also the issue that measures such as modifying the AP or client for mirroring or placing a proxy were required.

[0045] In this embodiment, the AP under development (a new version of the AP before testing) is released to the production environment, and the validator 142, which is a testing container placed in the AP, tests the application in the production environment based on requests from the load balancer 120 and responses to the requests. This is essentially a release to the production environment, and the release management function of the existing load balancer can be used. Furthermore, there is no need to modify the AP or client for mirroring, or to place a proxy.

[0046] The information processing system 100 may be realized in whole or in part by a computer. In this case, the computer may include a processor such as a CPU or a GPU, and a computer-readable recording medium. The information processing system 100 may be realized by recording a program for realizing all or in part of the functions of the information processing system 100 by a computer in the computer-readable recording medium, and reading and executing the program recorded in the recording medium into the processor. Here, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, an optical magnetic disk, a ROM, a CD-ROM, and a storage device such as a hard disk built into a computer system. Furthermore, the "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or a client in that case. The program may be a program for realizing a part of the functions described above, or may be a program that can realize the functions described above in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA.

[0047] The above program may also be transmitted from a computer system in which the program is stored in a storage device or the like to another computer system via a transmission medium, or by transmission waves in the transmission medium. Here, the "transmission medium" that transmits the program refers to a medium that has the function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line. The above program may also be for realizing part of the above-mentioned functions. Furthermore, it may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.

[0048] Throughout the specification, when a part is described as "comprising" or "having" a certain element, this does not mean that it excludes other elements, but that it may further include other elements, unless specifically stated to the contrary.

[0049] Each configuration described in Figures 1, 3, and 4 means a unit that processes at least one function or operation, and may be embodied as hardware or software, or as a combination of hardware and software. [Explanation of symbols]

[0050] 100 Information Processing Systems 110 Container Infrastructure Management Function Unit 120 Load Balancer 130 Old AP 140 Development AP 141 Front End 142 Validator 150 new AP

Claims

1. A load balancer and a first container that is placed in an application under test to test said application in a production environment; Equipped with The application is released into the production environment; The first container performs the test in the production environment based on a request from the load balancer and a response to the request. Information processing system.

2. a second container that is a test front end that is placed into the application; When the first container receives a request from the load balancer in the production environment, the first container transfers the request to the second container, and when the first container receives a response from the second container, the first container performs the test based on the request and the response. The information processing system according to claim 1 .

3. the first container verifies the validity of the response to the request as the test; 3. The information processing system according to claim 1 or 2.

4. The test is to confirm whether the response to the request is returned as expected, or whether the response is returned within a certain time period. The information processing system according to claim 3 .

5. the first container determines whether or not a certain criterion for determining whether or not the application is released is met if there is no problem as a result of the test, and rolls out the application if the criterion is met; The information processing system according to claim 1 .

6. a test container is placed in a pre-test application, an information processing system releases the application to a production environment, and in the production environment, the container of the information processing system tests the application based on a request from a load balancer and a response to the request; Information processing methods.

7. On the computer, A process of releasing a pre-test application into a production environment and having a test container placed in the application test the application based on a request from a load balancer in the production environment and a response to the request; A program that executes the following.

Citation Information

Patent Citations

  • Test support system

    JP2010086109A

  • Network system, monitoring control unit, and software verification method

    JP2015114952A

  • Decentralized processing system and decentralized processing method

    JP2016143202A

  • Test device and test method

    JP2016149043A

  • Using canary instances for software analysis

    US20140282422A1