CONTAINER-BASED APPLICATIONS

DE112020002189B4Active Publication Date: 2024-09-19INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
DE112020002189
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-05
Filing Date
2020-06-30
Publication Date
2024-09-19
Estimated Expiration
2040-06-30

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A computer-implemented method comprising: receiving one or more function calls to a container-based application; processing the function call of the one or more function calls using the container-based application; obtaining performance data from the container-based application based on the processing of the one or more function calls;Analyzing performance data against a performance measurement limit, wherein the analysis of the performance data includes: detecting a knee of a curve based on the analyzed performance data, wherein the curve describes a relationship between a number of function calls received by the container-based application and a time required for a function call process, and the knee of the curve is used to detect a sharp increase in the time required for a function call process, wherein the knee of the curve is defined as a region of the curve in which there is an exponential change, the exponential change being in the form of an exponential increase in the time required for a function call process, and the knee of the curve being understood as the point at which the performance measurement limit is reached;and discontinuing an aspect of the container-based application based on the analysis of performance data when the performance measurement limit is reached, wherein the aspect is one or more selected from the group comprising a resource and functionality of the container-based application.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND This disclosure relates to container-based applications and, in particular, to the setting of a container-based application. Cloud-native applications, such as container-based applications, are designed to grow and consume system resources based on an increase in workload / demand. While this scalability is desirable under many conditions, it is undesirable to have the service become unavailable as a result of meeting system constraints. For example, an application may reach a scaling limit, which can be a hard limit (related to hardware capabilities) or a soft limit (related to resource allocation for an application), where adding additional computing power no longer allows the application to process additional incoming requests. In other words, at this point, the application can no longer scale to meet demand.In this case, typical applications queue all new requests to be processed at a later time when a processing resource is available, thereby increasing the system's latency. US 10,268,514 B1 describes a method in which an instance of a stateless computation function is created in a container, the stateless computation function is monitored using a container agent, and a first time value is captured as a result of intercepting an outgoing function call. Furthermore, the method captures a second time value as a result of intercepting a response to the outgoing function call, and calculates a lapsed time based on the first and second time values. Furthermore, the method provides for generating a performance date for the outgoing function call based on the lapsed time, comparing the performance date with an expected time value, and providing information indicating the result of this comparison. US 2018 / 0183858 A1 describes how computing resources from a cloud computing network are adapted for virtualized operations. To do this, data on the computing sources and metrics of the virtualized operation are received and compared with the parameters associated with the virtualized operation. If the data and metrics lie outside the parameters, the virtualized operation and computing sources can be adjusted to make the use of the cloud computing system and resources more efficient. US 2014 / 0181896 A1 describes a system and method for protecting computer resources from unauthorized access. The system provides a library of functions that control application access to protected resources on a computing device. The system associates a security policy with the library of functions. The security policy specifies access rules for applications' access to protected resources. The system also modifies applications to access the library of functions instead of accessing API functions of the computing device. When a function receives an API function call from a modified application, it can determine whether the received API function call complies with the access rules. If the API function call complies with the access rules, the function executes the application's API function call on the protected resources.If the API function call violates the access rules, the function blocks this API function call. SUMMARY Embodiments of the present disclosure provide a method, a computer program product, and a system for tuning a container-based application. A processor may receive one or more function calls at a container-based application. A processor may process the one or more function calls using the container-based application. The processor may obtain performance data from the container-based application based on the processing of the one or more function calls. The processor may analyze the performance data against a performance measurement threshold. The processor may tune an aspect of the container-based application based on the analysis of the performance data. The aspect may be one or more selected from the group comprising a resource and a functionality of the container-based application. BRIEF DESCRIPTION OF THE DRAWINGS The drawings included in the present disclosure are incorporated into and constitute a part of the specification. They illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the disclosure. The drawings merely illustrate typical embodiments and do not limit the disclosure. Fig. 1 shows a cloud computing environment according to an embodiment of the present disclosure. Fig. 2 shows abstraction model layers according to an embodiment of the present disclosure. Fig. 3 illustrates a flowchart of an example process for setting up container-based applications according to embodiments of the present disclosure. Fig. 4 shows a graphical representation of a knee of the curve according to embodiments of the present disclosure. Fig.5 illustrates a high-level block diagram of an example computer that may be used to implement one or more of the methods, tools, and modules described herein, as well as any associated functionality, in accordance with embodiments of the present disclosure. While the embodiments described herein are susceptible to various modifications and alternative forms, their specifics are shown by way of example in the drawings and will be described in detail. It should be understood, however, that the described embodiments are not intended to be limiting. On the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the disclosure. DETAILED DESCRIPTION It should be understood that the figures are merely schematic and not drawn to scale. It should also be understood that the same reference numerals are used throughout the figures to indicate the same or similar parts. In the context of the present application, where the embodiments of the present disclosure represent a method, it is to be assumed that such a method is a process for execution by a computer, i.e., a computer-implementable method. The various steps of the method therefore correspond to different parts of a computer program, e.g., different parts of one or more algorithms. In the context of the present application, a (processing) system may also be a single device or a collection of distributed devices capable of performing one or more embodiments of the methods of the present disclosure. A system may, for example, be a personal computer (PC), a server, or a collection of PCs and / or servers connected via a network such as a local area network, the Internet, etc., to collectively perform at least one embodiment of the methods of the present disclosure. It should be understood that although this disclosure includes a detailed description of cloud computing, the implementation of the teachings presented herein is not limited to a cloud computing environment. Rather, embodiments of the present disclosure may be implemented in connection with any other type of computing environment now known or later developed. Cloud computing is a service delivery model that enables convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a service provider. This cloud model can include at least five characteristics, at least three service models, and at least four deployment models. The characteristics are as follows: On-demand self-service: A cloud consumer can unilaterally provision resources for computation, such as server time and network storage, automatically, without requiring human interaction with the service provider. Broad network access: Resources are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin- or thick-client platforms (e.g., mobile phones, laptops, and PDAs). Resource pooling: The provider's computing resources are pooled in a multi-tenant model to serve multiple consumers, with various physical and virtual resources dynamically allocated and reassigned as needed. There is a degree of location independence, as the consumer typically has no control or knowledge over the exact location of the deployed resources, but can specify the location at a higher level of abstraction (e.g., country, state, or data center). Flexible adaptability: Resources can be provisioned quickly and elastically, in some cases automatically, for rapid scaling, and released quickly for rapid scaling. To the consumer, the resources available for provisioning often appear unlimited and can be acquired in any quantity and at any time. Service metering: Cloud systems automatically control and optimize resource usage by using a control unit appropriate to the service type at a specific abstraction level (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency for both the provider and the user of the service. The service models are as follows: Software as a Service (SaaS): The resource provided to the consumer consists of using the provider's applications running on a cloud infrastructure. The applications are accessed from various tenant devices via a thin-client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, control units, or even individual application resources, with the possible exception of limited user-specific application configuration settings. Platform as a Service (PaaS): The resource provided to the consumer consists of deploying applications created or collected by the consumer, built using programming languages and tools supported by the provider, into the cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, which includes networks, servers, operating systems, or control units, but has control over the deployed applications and possibly the configurations of the application hosting environment. Infrastructure as a Service (IaaS): The resource provided to the consumer consists of processing, storage, networking, and other basic computing resources, allowing the consumer to deploy and run any software, including operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but rather has control over operating systems, storage, deployed applications, and possibly limited control over selected network components (e.g., host firewalls). The deployment models are as follows: Private Cloud: The cloud infrastructure is operated for a single organization. It can be managed by the organization itself or by a third party, and can be located on-premises or off-site. Community Cloud: The cloud infrastructure is shared by multiple organizations and supports a specific community with common concerns (e.g., mission, security requirements, policy, and compliance with laws and regulations). It can be managed by the organizations themselves or by a third party, and can be located on-premises or off-site. Public Cloud: The cloud infrastructure is provided to the general public or a large industry group and is owned by an organization that sells cloud services.Hybrid cloud: Cloud infrastructure is a composite of two or more (private, community, or public) clouds that remain independent entities but are interconnected by a standardized or vendor-specific technology that enables data and application portability (e.g., cloud bursting for load balancing between clouds). A cloud computing environment is service-oriented, with an emphasis on statelessness, low coupling, modularity, and semantic compatibility. At the core of cloud computing is an infrastructure comprising a network of interconnected nodes. The illustrative embodiments provide concepts for tuning a container-based application, in particular for tuning a resource or functionality of the container-based application. The concept may include: receiving one or more function calls at the container-based application; processing the one or more function calls using the container-based application; obtaining performance data from the container-based application based on the processing of the one or more function calls; analyzing the performance data against a performance measurement threshold; and tuning a resource and / or functionality of the container-based application based on the analysis of the performance data. Embodiments include a concept for adjusting a container-based application in response to a comparison between the obtained performance data and a predefined performance measurement threshold. The evaluation of the performance measurement threshold may be based on an analysis of performance data obtained from the container-based application when a function call is executed. Embodiments may enable a container-based application to receive one or more function calls and adjust a functionality or resource of the application by analyzing a set of performance data obtained by the application while processing the function calls. The functionality or resource may be adjusted when it is determined that a performance measurement limit has been reached or when it is determined that a performance measurement limit will be reached within a predetermined period of time. In this way, the disclosure may provide a means for tuning a container-based application in response to a comparison between performance data and a performance measurement boundary. For example, if a measure of the application's performance exceeds a certain limit, such as the time required to execute a function call exceeds a time limit, an application resource or functionality can be discontinued. Similarly, if a measure of the application's performance indicates that performance will exceed a certain limit within a certain time period, an application resource or functionality can be discontinued. In typical container-based applications, any setting of the application parameters is usually determined before the application begins running, which means that typical container-based applications are unable to dynamically adapt their behavior, for example, in response to an unexpectedly high processing load.In some cases, simply allocating more computer power to process the function calls cannot solve the problem. For example, by analyzing the performance of the application, a performance measurement can be used to tune the functionality or resources of the application to allow additional function calls to be executed that would otherwise be queued and cause latency. The container-based application can thus dynamically obtain and analyze performance data related to the processing of received function calls and adapt a functionality or resource of the container-based application accordingly. Embodiments may provide for tuning a resource or functionality of a container-based application based on analysis of performance data obtained from the container-based application. Containers are packages that rely on virtual isolation to deploy and run applications that access a common operating system kernel without the need for virtual machines. A container-based application refers to any software application that can run on a system that uses containers. In one embodiment, analyzing the performance data against the performance measurement threshold includes determining whether the performance measurement threshold has been reached or determining whether the performance measurement threshold will be reached within a certain time period. This allows the container-based application to dynamically adapt to current or predicted demand. In one embodiment, analyzing the performance data comprises determining a processing time for processing the one or more function calls; and detecting a knee of the curve based on the analyzed performance data, wherein the knee of the curve is detected when the processing time exceeds a predetermined threshold. The knee of the curve can be used to detect a sharp increase in a performance metric. In this case, the knee of the curve can be used to detect a sharp increase in the time required to process a function call (e.g., a sharp increase in latency). The knee of the curve can be identified by a feature within the performance data, for example, within performance data presented as a two-variable graph, such as the number of function calls and the time elapsed for each function call. The knee of the curve can be identified as any change, such as the point at which an increase or decrease in a particular variable occurs. For example, the time required to process a function call may increase when a certain number of function calls are received. The point in this relationship at which the increase occurs can be identified as a knee of the curve. In a specific example, the point at which the increase occurs can only be identified as a knee of the curve if the increase is determined to be exponential. The same applies to decreases in a particular variable of the performance data. In other words, the knee of the curve can be identified by a knee-of-the-curve feature that indicates a change in a variable of the performance data. In this way, the knee of the curve can be identified based on a change in a relationship between variables of the performance data. In one embodiment, the performance measurement limit comprises one or more of the following features: a scalability limit, wherein the scalability limit comprises one or more of the following features: a physical resource limit; a virtual resource limit; a container resource limit; and a predefined scaling limit; a cost limit; a feedback limit; a CPU utilization per execution; a CPU utilization for a container; a memory utilization; a network throughput; a network latency; a memory throughput; a memory latency; a request response time; a number of transactions per second (or other agreed-upon time period); and a failure rate. In this way, a variety of performance measurement limits may be used depending on the implementation of the container-based application. In one embodiment, the resource comprises one or more of the following elements: a computing resource and an execution architecture resource. This allows the resource to take a form appropriate for the respective scenario. In one embodiment, the execution architecture comprises one or more of the following: a software-as-a-service architecture; and a function-as-a-service architecture. This allows the application to leverage readily available execution architectures. In one embodiment, the functionality comprises front-end functionality, wherein the front-end functionality comprises one or more of the following elements: a set of displayed data; a number of permitted complex transactions; and a number of available application options. In this way, the front-end functionality can be configured in various ways according to the implementation of the application. In one embodiment, the functionality comprises backend functionality, wherein the backend functionality comprises one or more of the following: a number of synthetic transactions; a set of logging; a number of synchronous transactions; and a number of asynchronous transactions. In this way, the backend functionality can be configured in various ways according to the application's implementation. In one embodiment, tuning the functionality of the container-based application includes executing a back-end function using a front-end functionality. In this way, the back-end functionality can be maintained for increased back-end performance. Modifications and additional steps for a traditional container-based application can also be suggested that can increase the value and usefulness of the proposed concepts. The illustrated embodiments may be used in many different types of computing environments. To provide context for describing elements and functions of the illustrative embodiments, FIGS. 1 and 2 are presented below as example environments in which aspects of the illustrative embodiments may be implemented. It should be appreciated that FIGS. 1 and 2 are only examples and are not intended to assert or imply any limitation regarding the environments in which aspects or embodiments of the present disclosure may be implemented. Numerous changes may be made to the illustrated environments without affecting the spirit and scope of the present disclosure. Fig. 1 shows an illustrative cloud computing environment 50. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which local computing devices used by consumers in the cloud, such as PDAs (Personal Digital Assistant) or mobile phones 54A, desktop computers 54B, laptops 54C, and / or automotive computer systems 54N, can communicate. The nodes 10 can communicate with each other. They can be physically or virtually grouped in one or more networks (not shown), such as private, community, public, or hybrid clouds as described above, or a combination thereof. In this way, the cloud computing environment 50 can offer infrastructure, platforms, and / or software as services for which a consumer in the cloud does not need to maintain resources on a local computing device. It is understood that the computing devices shown in Fig.1 are for illustrative purposes only, and that the compute nodes 10 and the cloud computing environment 50 may communicate with any type of computing device over any type of network and / or network-addressable connection (e.g., using a web browser). Referring now to Fig. 2, a number of functional abstraction layers provided by the cloud computing environment 50 (Fig. 1) are shown. It should be understood in advance that the components, layers, and functions depicted in Fig. 2 are for illustrative purposes only, and the embodiments of the disclosure are not limited thereto. As shown, the following layers and corresponding functions are provided: The hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframe computers 61; servers based on the RISC (Reduced Instruction Set Computer) architecture 62; servers 63; blade servers 64; storage devices 65; and networks and network components 66. In some embodiments, the software components include network application server software 67 and database software 68. The virtualization layer 70 includes an abstraction layer on which the following examples of virtual entities can be deployed: virtual servers 71, virtual storage 72, virtual networks 73, including virtual private networks, virtual applications and operating systems 74, and virtual tenants 75. In one example, the management layer 80 may provide the functions described below. Resource provisioning 81 provides the dynamic procurement of computing resources and other resources used to perform tasks within the cloud computing environment. Metering and pricing 82 provide cost tracking for the use of resources in the cloud computing environment, as well as billing or invoicing for the consumption of those resources. In one example, these resources may include licenses for application software. Security provides identity verification for consumers and tasks in the cloud, as well as the protection of data and other resources. The user portal 83 provides access to the cloud computing environment for consumers and system administrators.Service Level Management 84 provides the allocation and management of cloud computing resources so that the required service levels are met. Service Level Agreement (SLA) Planning and Fulfillment 85 provides the arrangement and procurement of cloud computing resources for which future demand is expected according to an SLA. Layer 90, "Workloads," provides examples of functions for which the cloud computing environment can be used. Examples of workloads and functions that can be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom delivery 93; data analytics processing 94; transaction processing 95; and any other suitable function 96. In one embodiment, a method for managing a container-based application may be implemented in the management layer 80. Figure 3 illustrates a flowchart of an exemplary process 300 for setting up container-based applications according to embodiments of the present disclosure. Process 300 begins at step 310, where one or more function calls are received at the container-based application. In step 320, the received one or more function calls are processed by the container-based application. The container-based application may, for example, be deployed in a cloud-based environment, such as the cloud computing environment 50 described in detail in FIGS. 1 and 2. Typically, applications deployed in containers are designed to scale to the predefined resources of their environment. These resources can be physical, virtual, or artificial. Once these resources are exhausted, additional function calls are queued for processing, contributing to application latency. In step 330, performance data is obtained from the container-based application based on the processing of the one or more function calls. The containers of a container-based application are typically managed by placing them on worker nodes, the combination of which can be referred to as a pod. Management software is used to manage these pods. Typically, the management software will not provide any tracing, logging, or metrics related to the pods. However, there are various tools that perform this function, often referred to as service mesh, which deploy a sidecar in each pod. Such a tool can be used to obtain performance data from each container. It should be noted that this is serverless monitoring as far as the container is concerned for most functions. For example, performance data can be obtained from the Linux® address space on which the container-based application runs. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. In step 340, the performance data is analyzed against a performance measurement limit. Analyzing the performance data may include determining a processing time for processing the one or more function calls and detecting a knee of the curve based on the analyzed performance data, wherein the knee of the curve is detected when the processing time exceeds a predetermined threshold. By analyzing performance data, it is possible to determine when the container-based application has scaled to its maximum hardware potential. This can be done, for example, by exploiting the knee of the performance data curve. This technique is explained in more detail below with reference to Fig. 4. In addition to adding hardware capability as a performance measurement boundary, one can also determine when a maximum cost boundary is reached, where cost refers to the financial cost of running the container-based application in a specific processing environment. In this case, the resource may be an execution architecture resource that can be configured to utilize an alternative environment (e.g., switching from a software-as-a-service (SAAS) architecture to a function-as-a-service (FAAS) architecture). In embodiments, process 300 may proceed to step 350, where, based on the analysis of the performance data, it is determined whether the performance measurement threshold has been reached. The performance measurement threshold may be any measurable threshold that indicates a change in the performance of the container-based application. For example, the performance measurement limit can be a scalability limit, which refers to the traditional ability of such an application to scale to meet increases in processing demands. Once a scalability limit is reached, the container-based application can no longer scale to handle the workload. An example of a scalability limit might be a physical limit on resources. A physical limit might refer to the physical limits of the underlying physical infrastructure of the system running the container-based application, for example, the physical limits of a server hosting a cloud environment. A physical limit might refer, for example, to the CPU of the underlying architecture, the memory of the underlying architecture, the disk of the underlying architecture, the network of the underlying architecture, and the like. Another example of a scalability limit may be a virtual resource limit. A virtual resource limit may refer, for example, to a virtual machine (VM) limit on which the container-based application or any aspect of the container-based application can run. A virtual limit may refer, for example, to the VM's CPU allocation, the VM's allocated memory, the VM's disk allocation, the VM's network, and the like. Another example of a scalability limit may be a container resource limit, which may be similar to the limits described above with reference to virtual resource limits. A container resource limit refers to a limit on an individual container, which may, for example, relate to the container's CPU allocation, the container's allocated memory, the container's disk allocation, the container's network, and the like. Another example of a scalability limit can be a predefined scaling limit, where a predefined scaling limit can be a limit related to a desired level of resource consumption by the container-based application, rather than a limit defined by a maximum (virtual or other) hardware capacity. Such a predefined scaling limit can serve to limit the amount of resources an application can consume, for example, to avoid unexpected costs. As described below with reference to Fig. 4, the scalability limit can be evaluated by identifying a knee of the curve from the performance data obtained from the container-based application. Another example of a performance measurement limit, as mentioned above, can be a cost limit. For example, the cost can be linked to the amount of resources of a processing system consumed to process the received function calls. If these costs exceed a certain amount, a functionality or resource of the container-based application can be adjusted to maintain the cost of running the application at a certain level. Another example of a performance measurement limit might be a response time limit, which refers to the amount of time required to execute a specific function call. For example, if the processing time for a function call exceeds a certain value, e.g., because the application stops responding to new function calls, a resource or functionality can be tuned to improve the responsiveness of the container-based application. For example, the feedback threshold can be reached by also reaching a scalability threshold. In other words, when a scalability threshold is reached, the application can no longer scale to meet processing demand, so additional function calls are queued, reducing the application's feedback capability. Alternatively, an automatic scaling / provisioning process may be unable to provision additional containers to respond to the increase in workload, resulting in the feedback threshold being reached before the scalability threshold is reached. A performance measurement limit can also refer to the overall utilization of the underlying physical computing resources and / or the resources of virtual machines on which the container(s) themselves run (i.e., data not normally accessible to the container). Even if the container doesn't see the specific details of the external resources or resource utilization as part of the performance data, the container may detect that it cannot handle the incoming workload (e.g., because resources have been exhausted or a performance measurement limit has been reached). Each of the limits described above and any other limit suitable for monitoring the performance of an application can be monitored through the analysis and evaluation of performance data in order to automatically tune the resources and / or features provided by an application service in order to maximize availability and, for example, increase the number of concurrent requests that can be processed within a dynamic but limited pool of processing capacity, cost factors, and knee-of-the-curve constraints. Furthermore, the limits described above can be used in any combination to adjust the resources / functionality of the container-based application. In embodiments, the analysis and evaluation of performance data may be performed using a cognitive engine. The cognitive engine may consider known characteristics of the broader computing platform. Such details are typically invisible to a container and may include resources such as the utilization of the physical host, the workload of other containers, or other virtual machines. Furthermore, the cognitive engine can consider characteristics for optimizing the container's workload to predict whether a performance measurement threshold is about to be reached or has already been reached based on historical workload characteristics. For example, it may be known that an application's resource requirements double between 2 a.m. and 7 a.m. on the second Sunday of every month. The cognitive engine can then predict the usage of the container in question. For example, if a tenant has only purchased N resources for a month, and the application with all features enabled would only run until the 23rd of the month, rather than the service being completely unavailable when the resource allocation is exhausted, the cognitive engine can examine the expected availability if the application's functionality were reduced. In a specific example, the cognitive engine can determine whether a banking application could last until the end of the month (e.g., by extending resources for another week) if the display of active balances were no longer automatic but required user input. To determine the settings for an application's resources / functionality, such as scaling and performance, various rules can be applied to performance data. The results of these determinations and their impact on the application's availability and performance can be stored in a database. If it is determined in step 350 that the performance measurement limit has been reached, the process 300 proceeds to step 360. In step 360, a resource or functionality of the container-based application is adjusted based on the analysis of the performance data. The specified resource may include a computing resource used by the container-based application. A computing resource may include, for example, CPU usage, memory usage, disk usage, network usage, and the like. The set resource may also include an execution architecture resource, wherein the execution architecture resource may include a software-as-a-service architecture and / or a function-as-a-service architecture. Cloud-based applications, such as container-based applications, are inherently independent of the underlying execution architecture and system resources (although, like any application, they run on hardware). Therefore, these factors can be used to dynamically configure container-based applications and migrate from SAAS to FAAS. The set functionality may include front-end functionality, where the front-end functionality may include: a set of displayed data; a number of permitted complex transactions; and a number of available application options. In other words, based on the determination that a performance measurement limit has been reached and that a functionality of the container-based application needs to be reduced / removed in order to maintain service and maximize throughput (processing of received function calls), various functionalities within the application logic can be adjusted. For example, pre-loaded data may be replaced with an option that allows the user to explicitly request the data when needed, thereby reducing the amount of unnecessary data presented to the user. Furthermore, the overall amount of data presented to the user may be limited (and / or pre-loaded), for example, by reducing content such as videos and / or image quality. Furthermore, complex transactions normally performed by the application may be removed. As another example, options may be removed from menus normally available to the user, particularly options that could lead to performing complex transactions. The functionality may also include back-end functionality, where the back-end functionality may include: a number of synthetic transactions; a set of logging; a number of synchronous transactions; and a number of asynchronous transactions. In this way, back-end service functionality, which includes features not directly accessible to the end user, can be discontinued as a result of determining when the performance measurement threshold has been reached. For example, the container-based application can switch from synchronous to asynchronous transactions by queuing transactions for batch processing at a later time. Furthermore, setting the functionality of the container-based application may include executing a back-end function using a front-end functionality. For example, back-end services can apply "call forward" to front-end services to automatically reduce functionality and thus preserve resources for back-end processing. For example, long-running batch processing operations overnight can trigger an anticipated delay of front-end service functionality via FAAS to reduce the load of online (real-time) processing. After step 360, the process 300 may return to step 310, and the process 300 may continue as described above. If it is determined in step 350 that the performance measurement limit has not been reached, the process 300 may proceed to step 355, where it is determined based on the analysis of the performance data whether the performance measurement limit will be reached within a certain time period. Will a future performance measurement limit be reached? In other words, the analysis of the performance data may indicate that the performance measurement limit will be reached by the application within a certain time period. If it is determined that the performance measurement limit will be reached within a predetermined time period, the process 300 may proceed to step 360, where a resource and / or functionality may be adjusted to account for the predicted performance of the application. Note that the methods described above for analyzing the performance data and the various performance measurement limits may also apply to determining whether a performance measurement limit will be reached within a certain time period. If it is determined in step 355 that the power measurement limit is not reached within a certain period of time, the process 300 may return to step 310 and continue as described above. In summary, the present disclosure can analyze and evaluate the performance of an application and provide dynamic tuning of resources / functionality to maximize availability and the number of concurrent requests that can be processed. In other words, the present disclosure can provide services that limit functionality to increase available resources, thus circumventing hardware issues that can be used to process new or future incoming requests from end users. Figure 4 shows a graphical representation 400 of the curve knee according to embodiments of the present disclosure. The diagram 400 shows a curve 410 described by the function xy=sin(x+y), where x>0, to demonstrate the principle of the curve knee. In this example, the x-axis can represent the number of function calls received by the container-based application, and the y-axis can represent the time required to process a function call. In general, the x-axis can represent the application's demand, and the y-axis can represent a performance measure. The knee of curve 420 is defined as the region of the curve where an exponential change occurs. In this example, the knee of the curve is an exponential increase in the time required to process a function call. In general, the knee of the curve can be understood as the point at which a performance measurement limit, such as a scalability limit, of the application is reached. Mathematically, the knee of the curve can be described using diagram 430. Orthogonal vectors N and T are shown for a first point 440 on the curve and a second point 450 on the curve. The vectors at the second point 450 are translated and superimposed on the first point 440 (shown as dotted lines). The change in vector T between the first point and the second point, δT, is displayed. To calculate the knee of the curve in the performance data, δT can be compared between three points to identify the onset of exponential CPU time, which is typically accompanied by a decrease in transaction completions or even timeouts. At this point, a resource or functionality of the container-based application can be decommissioned, for example, by decommissioning containers and migrating to a FAAS architecture. Conversely, a flat δT can encourage the application to deploy more containers until the optimal (fluctuating) point is identified and executed. Note that the above mathematics assumes that the legacy system as a whole behaves like a serial bottleneck. The point at which δT peaks is typically an exponential slope associated with a knee in the curve. By calculating a knee of the curve based on the obtained performance data, the future performance of the application can be determined, providing a means of predicting when a performance measurement limit may be reached within a given time period. Referring to Fig. 5, a high-level block diagram of an example computer 500 is shown that may be used in implementing one or more of the methods, tools, and modules described herein, as well as any associated functionality, in accordance with embodiments of the present disclosure. Various operations described above may utilize the resources of computer 500. For example, one or more portions of a system for generating textual feedback data by analyzing the feedback text may be incorporated into any element, module, application, and / or component described herein. Computer 500 includes, but is not limited to, PCs, workstations, laptops, PDAs, handheld devices, servers, storage, and the like. In general, in terms of hardware architecture, computer 500 may include one or more processors 510, memory 520, and one or more I / O devices 570 communicatively coupled via a local interface (not shown). The local interface may include, for example, but not limited to, one or more buses or other wired or wireless connections as known in the art. The local interface may include additional elements such as controllers, buffers (caches), drivers, repeaters, and receivers to enable communication. Further, the local interface may include address, control, and / or data connections to enable appropriate communication between the aforementioned components. Processor 510 is a hardware unit for executing software that may be stored in memory 520. Processor 510 may be virtually any custom or off-the-shelf processor, a central processing unit (CPU), a digital signal processor (DSP), or an auxiliary processor among several processors associated with computer 500, and processor 510 may be a semiconductor-based microprocessor (in the form of a microchip) or a microprocessor. Memory 520 may include any combination of volatile storage elements (e.g., random-access memory (RAM), such as dynamic random-access memory (DRAM), static random-access memory (SRAM), etc.) and non-volatile storage elements (e.g., ROM, erasable programmable read-only memory (EPROM), electronically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), tape, compact disc read-only memory (CD-ROM), disk, floppy disk, cartridge, cassette, or the like, etc.). In addition, memory 520 may also include electronic, magnetic, optical, and / or other types of storage media. It should be noted that memory 520 may have a distributed architecture, with various components remote from each other but accessible by processor 510. The software in memory 520 may include one or more separate programs, each comprising an ordered collection of executable instructions for implementing logical functions. The software in memory 520 includes a suitable operating system (O / S) 550, a compiler 540, source code 530, and one or more applications 560 according to example embodiments. As illustrated, the application 560 includes numerous functional components for implementing the features and operations of the example embodiments. The application 560 of the computer 500 may represent various applications, computational units, logic, functional units, processes, operations, virtual units, and / or modules according to the example embodiments, with application 560 not being limiting. Operating system 550 controls the execution of other computer programs and provides scheduling, input / output control, file and data management, memory management, and communication control, as well as related services. The inventors believe that application 560 for implementing the exemplary embodiments may be applicable to all commercially available operating systems. The application 560 may be a source program, an executable program (object code), a script, or another unit comprising a set of instructions to be executed. If it is a source program, the program is typically compiled using a compiler (such as compiler 540), assembler, interpreter, or the like, which may or may not be included in memory 520, in order for it to function properly in conjunction with the operating system 550. The I / O devices 570 may include input devices, such as, but not limited to, a mouse, a keyboard, a scanner, a microphone, a camera, etc. In addition, the I / O devices 570 may also include output devices, such as, but not limited to, a printer, a display, etc. Finally, the I / O devices 570 may further include devices that convey both input and output, e.g.,, but not limited to, a network card or modulator / demodulator (for accessing remote devices, other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephone interface, a bridge, a router, etc. The I / O units 570 also include components for communicating over various networks, such as the Internet or intranet. If the computer 500 is a PC, workstation, intelligent device, or the like, the software in memory 520 may further include a basic input / output system (BIOS) (omitted for simplicity). The BIOS is a set of essential software routines that initialize and test the hardware at startup, launch the operating system 550, and support data transfer between the hardware units. The BIOS is stored in some type of read-only memory, such as ROM, PROM, EPROM, EEPROM, or the like, so that the BIOS can be executed when the computer 500 is activated. When computer 500 is operating, processor 510 is configured to execute the software stored in memory 520, transfer data to and from memory 520, and generally control the operation of computer 500 according to the software. Application 560 and operating system 550 are read, in whole or in part, by processor 510, possibly cached in processor 510, and then executed. It should be noted that the application 560, when implemented in software, may be stored on virtually any computer-readable medium for use by or in connection with any computer-implemented method or system. In the context of this document, a computer-readable medium may be any electronic, magnetic, optical, or other physical device or means capable of containing or storing a computer program for use by or in connection with a computer-related system or method. The application 560 may be embodied in any computer-readable embodiment for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a processor-containing system, or any other system capable of retrieving the instructions from the instruction execution system, apparatus, or device and executing the instructions. In the context of this document, a "computer-readable medium" may be any means capable of storing, communicating, distributing, or transporting the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or distribution medium. In the context of the present application, where the embodiments of the present disclosure constitute a method, it should be understood that such a method is a process for execution by a computer, i.e., a computer-implementable method. The various steps of the method therefore correspond to different parts of a computer program, e.g., different parts of one or more algorithms. The present invention may be a system, a method, and / or a computer program product at any possible technical level of integration. The computer program product may include a computer-readable storage medium (or media) having computer-readable program instructions embodied thereon that cause a processor to perform aspects of the present invention. The computer-readable storage medium may be a tangible device capable of containing and storing instructions for use by an instruction-executing device. The computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.A non-exhaustive list of more specific examples of the computer-readable storage medium includes the following: a portable computer diskette, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punched cards or raised structures in a groove with instructions recorded therein, and any suitable combination of the foregoing. A computer-readable storage medium as used in this document is not intended to be construed as transient signals in and of themselves, for example, radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g.,light pulses passing through a fiber optic cable, or electrical signals transmitted through a cable. Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to respective computing / processing units or to an external computer or external storage unit over a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, fiber optic cables, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing unit receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing / processing unit. Computer-readable program instructions for carrying out functions of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or either source code or object code written in any combination of one or more programming languages, including an object-oriented programming language such as Smalltalk, C++, or the like, and conventional procedural programming languages such as the "C" programming language or similar programming languages.The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the latter case, the remote computer may be connected to the user's computer over any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (for example, over the Internet via an Internet service provider).In some embodiments, electronic circuits, including, for example, programmable logic circuits, field programmable gate arrays (FPGA), or programmable logic arrays (PLA), may execute the computer-readable program instructions by using state information of the computer-readable program instructions to customize the electronic circuits to carry out aspects of the present invention. Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, may be implemented with computer-readable program instructions. These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus for manufacturing a machine, such that the instructions, executing via the processor of the computer or other programmable data processing apparatus, produce means for implementing the functions / acts specified in the block or blocks of flowchart and / or block diagrams.These computer-readable program instructions may also be stored in a computer-readable storage medium that can instruct a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer-readable storage medium having instructions stored therein comprises an article of manufacture that includes instructions that implement aspects of the function / act specified in the block or blocks of flowchart and / or block diagrams. The computer-readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to cause a series of operations to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, such that the instructions executing on the computer, other programmable apparatus, or other device implement the functions / acts specified in the block or blocks of flowcharts and / or block diagrams. The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this context, each block in the flowcharts or block diagrams may represent a module, segment, or instruction component comprising one or more executable instructions for implementing the specified logical function(s). In some implementation alternatives, the functions specified in the blocks may occur in a different order than indicated in the figures.For example, two blocks shown in sequence may actually occur as a single step, execute concurrently, substantially concurrently, partially or completely overlap in time, or the blocks may sometimes execute in reverse order, depending on the respective function. It should also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by special-purpose hardware-based systems that perform the specified functions or acts, or by combinations of special-purpose hardware and computer instructions. The description of various embodiments of the present invention has been presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The terminology used herein has been chosen to best explain the principles of the embodiment, practical application, or technical improvement over available technologies, or to enable others skilled in the art to understand the embodiments disclosed herein. The present disclosure provides a method for tuning a container-based application, the container-based application being adapted to process one or more function calls. Such a method includes receiving one or more function calls at the container-based application and processing the one or more function calls using the container-based application. Based on the processing of the one or more function calls, performance data is obtained from the container-based application, and the performance data is analyzed against a performance measurement boundary. A resource or functionality of the container-based application is tuned based on the analysis of the performance data. The present disclosure further aims to provide a computer program product comprising computer program code for implementing the proposed concepts when executed on a processor. The present disclosure further aims to provide a system (such as a processing unit and / or a network component) capable of executing this computer program code. According to further embodiments of the disclosure, there is provided a computer program product for configuring a container-based application, the container-based application being adapted to process one or more function calls, the computer program product comprising a computer-readable storage medium having program instructions embodied therein, the program instructions being executable by a processing unit to cause the processing unit to perform a method comprising: receiving one or more function calls at the container-based application; processing the one or more function calls using the container-based application; obtaining performance data from the container-based application based on the processing of the one or more function calls; analyzing the performance data against a performance measurement limit;and adjusting a resource and / or functionality of the container-based application based on the analysis of the performance data.; According to another aspect, a system is provided for tuning a container-based application, the container-based application being adapted to process one or more function calls, the system comprising: a receiving unit adapted to receive one or more function calls; and a processing unit adapted to: process the one or more function calls using the container-based application; obtain performance data from the container-based application based on the processing of the one or more function calls; analyze the performance data against a performance measurement boundary; and tune a resource and / or functionality of the container-based application based on the analysis of the performance data.

Claims

A computer-implemented method, comprising:receiving one or more function calls at a container-based application;processing the function call of the one or more function calls using the container-based application;obtaining performance data from the container-based application based on the processing of the one or more function calls;Analyzing the performance data against a performance measurement limit, wherein analyzing the performance data comprises:detecting a knee of a curve based on the analyzed performance data, wherein the curve describes a relationship between a number of function calls received by the container-based application and a time required to process a function call, and the knee of the curve is used to detect a sharp increase in the time required to process a function call, wherein the knee of the curve is defined as a region of the curve in which an exponential change exists, wherein the exponential change is in the form of an exponential increase in the time required to process a function call, and the knee of the curve is understood as the point at which the performance measurement limit is reached;andadjusting an aspect of the container-based application based on the analysis of the performance data when the performance measurement limit is reached, wherein the aspect is one or more selected from the group comprising a resource and a functionality of the container-based application; The computer-implemented method of claim 1, wherein analyzing the performance data against the performance measurement limit comprises determining whether the performance measurement limit has been reached. The computer-implemented method of claim 1, wherein analyzing the performance data against the performance measurement limit comprises determining whether the performance measurement limit is reached within a predetermined period of time. The computer-implemented method of claim 1, wherein analyzing the performance data comprises determining a processing time for processing the one or more function calls; and detecting a knee of the curve based on the analyzed performance data, wherein the knee of the curve is detected when the processing time exceeds a predetermined threshold. The computer-implemented method of claim 1, wherein the performance measurement limit is selected from the group comprising: a scalability limit, wherein the scalability limit is selected from the group comprising: a physical resource limit; a virtual resource limit; and a container resource limit; and a predefined scaling limit; a cost limit; a feedback limit; a CPU utilization per execution; a CPU utilization for a container; a memory utilization; a network throughput; a network latency; a memory throughput; a memory latency; a request response time; a number of transactions per second; and a failure rate. The computer-implemented method of claim 1, wherein the resource is selected from the group comprising: a computer resource; and an execution architecture resource. The computer-implemented method of claim 1, wherein the resource is an execution architecture resource selected from the group comprising: a software-as-a-service architecture; and a function-as-a-service architecture. The computer-implemented method of claim 1, wherein the functionality comprises a front-end functionality, the front-end functionality being selected from the group comprising: a set of displayed data; a number of allowable complex transactions; and a number of available application options. The computer-implemented method of claim 1, wherein the functionality comprises a back-end functionality, the back-end functionality being selected from the group comprising a number of synthetic transactions; a set of logging; a number of synchronous transactions; and a number of asynchronous transactions. The computer-implemented method of claim 1, wherein adjusting the functionality of the container-based application comprises executing a back-end function using a front-end functionality. A computer program product, the computer program product comprising a computer-readable storage medium having program instructions embodied therein, the computer-readable storage medium not being a transitory signal per se, the program instructions being executable by a processor to cause the processor to perform a method comprising: receiving one or more function calls at a container-based application; processing the one or more function calls using the container-based application; obtaining performance data from the container-based application based on the processing of the one or more function calls; analyzing the performance data against a performance measurement limit;wherein analyzing the performance data comprises:detecting a knee of a curve based on the analyzed performance data, wherein the curve describes a relationship between a number of function calls received by the container-based application and a time required for a function call process, and the knee of the curve is used to detect a sharp increase in the time required for the function call process, wherein the knee of the curve is defined as a region of the curve in which an exponential change exists, wherein the exponential change is in the form of an exponential increase in the time required for the function call process, and the knee of the curve is understood as the point at which the performance measurement limit is reached;and adjusting an aspect of the container-based application based on the analysis of the performance data when the performance measurement limit is reached, wherein the aspect is one or more selected from the group comprising a resource and a functionality of the container-based application; The computer program product of claim 11, wherein analyzing the performance data against the performance measurement limit comprises:determining whether the performance measurement limit will be reached within a predetermined period of time. The computer program product of claim 11, wherein analyzing the performance data comprises: determining a processing time for processing the one or more function calls; and detecting a knee of the curve based on the analyzed performance data, wherein the knee of the curve is detected when the processing time exceeds a predetermined threshold. The computer program product of claim 11, wherein the performance measurement limit is selected from the group comprising: a scalability limit, wherein the scalability limit is selected from the group comprising: a physical resource limit; a virtual resource limit; and a container resource limit; and a predefined scaling limit; a cost limit; a feedback limit; a CPU utilization per execution; a CPU utilization for a container; a memory utilization; a network throughput; a network latency; a memory throughput; a memory latency; a request response time; a number of transactions per second; and a failure rate. A system comprising: a processor; and a computer-readable storage medium communicatively coupled to the processor and storing program instructions that, when executed by the processor, cause the processor to perform a method comprising: receiving one or more function calls at a container-based application; processing the one or more function calls using the container-based application; obtaining performance data from the container-based application based on the processing of the one or more function calls; analyzing the performance data against a performance measurement boundary;wherein analyzing the performance data comprises:detecting a knee of a curve based on the analyzed performance data,wherein the curve describes a relationship between a number of function calls received by the container-based application and a time required for a function call process, and the knee of the curve is used to detect a sharp increase in the time required for the function call process, wherein the knee of the curve is defined as a region of the curve in which an exponential change exists, wherein the exponential change is in the form of an exponential increase in the time required for the function call process, and the knee of the curve is understood as the point at which the performance measurement limit is reached;andadjusting an aspect of the container-based application based on the analysis of the performance data when the performance measurement limit is reached, wherein the aspect is one or more selected from the group comprising a resource and a functionality of the container-based application; The system of claim 15, wherein analyzing the performance data against the performance measurement limit comprises determining whether the performance measurement limit has been reached. The system of claim 15, wherein analyzing the performance data against the performance measurement limit comprises determining whether the performance measurement limit will be reached within a given time period. The system of claim 15, wherein analyzing the performance data against the performance measurement limit comprises:determining a processing time for processing the one or more function calls; anddetecting a knee of the curve based on the analyzed performance data, wherein the knee of the curve is detected when the processing time exceeds a predetermined threshold. The system of claim 15, wherein the functionality comprises front-end functionality selected from the group comprising: a set of displayed data; a number of allowable complex transactions; and a number of available application options. The system of claim 15, wherein the functionality comprises back-end functionality selected from the group comprising: a number of synthetic transactions; a set of logging; a number of synchronous transactions; and a number of asynchronous transactions. A computer program comprising program code means suitable for carrying out the method according to any one of claims 1 to 10 when the program is executed on a computer.

Citation Information

Patent Citations

  • Performance analysis of stateless compute functions using function call intercept

    US10268514B1

  • System and Method for Protecting Computer Resources from Unauthorized Access Using Isolated Environment

    US20140181896A1

  • Method and System for Managing Cloud Based Operations

    US20180183858A1

  • US000010268514B1