A multi-tier cache mesh system for multi-tenant serverless environments
The cache mesh system addresses the challenge of state management in cloud computing environments by enabling efficient state sharing and secure communication across nodes, optimizing resource allocation and reducing operational costs.
Patent Information
- Application Number
- JP2022558182
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-30
- Filing Date
- 2021-02-11
- Publication Date
- 2024-10-30
- Estimated Expiration
- 2041-02-11
AI Technical Summary
Existing cloud computing environments face challenges in managing state information for stateless services due to limitations in sharing data between execution cycles or functions, leading to inefficiencies in resource allocation and operational costs.
A cache mesh system is introduced, comprising a network of cache components that communicate through protocols to share state information across nodes, utilizing a centralized cache component for persistent storage and secure routing, enabling state management across different clusters and environments.
The cache mesh system facilitates efficient state sharing and management in multi-tenant serverless environments, enhancing performance and reducing operational costs by ensuring consistent caching and secure communication between nodes.
Smart Images

Figure 0007575845000001 
Figure 0007575845000002 
Figure 0007575845000003
Abstract
Description
[Technical field]
[0001] The present invention relates generally to the field of digital computer systems, and more specifically to executing computer implementations of stateless services on nodes within a workload environment. [Background technology]
[0002] Modern computing environments, often deployed on cloud computing platforms and in cloud frameworks, consist of multiple interacting services and / or microservices. One of the characteristics of such microservices is that they are often stateless, i.e. the state does not persist from one invocation of the microservice to the next. However, in some cases it is useful to have the state of a microservice available for the next call of the microservice. This is interesting not only as a base technology for transactional applications, e.g. technical electronic trading infrastructure, but also for the management of cloud computing frameworks, or multiprocessor systems within a cloud computing environment, or both. Such resources may be available from different provider mechanisms, under different conditions, performance levels and service level agreements. However, if the resource management of such resources is also based on the interaction of stateless services and / or microservices, in such situations it may also be useful to have access to the "old" state of the respective service / microservice.
[0003] Cloud providers typically offer physical or virtual computing resources that clients can subscribe to and use in a service computing environment, while the cloud provider manages the allocation and the underlying computing and network infrastructure. This operational model is advantageous for clients, as it allows them to optimize their operational costs. On the other hand, the legitimate interest of cloud providers is to minimize operational and investment costs so that their business model is viable. Thus, cloud providers typically limit computer resource allocation, and the limitations are usually supported by specific programming methods. Thus, the underlying programming model is a serverless model with stateless, event-driven, time-bound processing.
[0004] Although advantageous for certain execution requirements, this model also has several drawbacks. Obviously, one drawback is that it is stateless, i.e. data or state information cannot be easily shared from one execution cycle of a function to the next, or between different functions or services.
[0005] There are several disclosures relating to methods for execution of stateless services on nodes within a workload execution environment.
[0006] Patent document US 8112525 B2 discloses a Session Initiation Protocol (SIP) server with an engine layer and a state layer distributed over a cluster network environment. The engine layer can send, receive and process various messages. The state layer can maintain in-memory state data associated with various SIP sessions. A near cache can reside in the engine layer to maintain a local copy of some of the state data contained in the state layer. The various engines of the engine layer can determine whether the near cache contains a current version of the state required to process a message before retrieving the state data from the state layer.
[0007] Patent document US 8161163 B2 discloses a stateless distributed computer architecture that allows state caching objects that hold server state information to be maintained in the client or network, rather than on the server. In one implementation, the computer architecture implements object-oriented program modules according to the Distributed Component Object Model (DCOM). Using an object-oriented network protocol (e.g., remote procedure call), a client-side application calls a program object residing on a server computer through an application program interface. In response to the call, the program object creates a state caching object that contains state information appropriate for the client connection. The server inserts the state caching object into the local thread context to process the request and generate a response.
[0008] However, a drawback of known solutions is that they often focus on maintaining state via persistent storage within the workload execution environment. Thus, there is a need to provide more dynamic state management for stateless software containers within flexible workload execution environments. Summary of the Invention
[0009] Embodiments of the present invention disclose a method, computer system, and computer program product for executing a stateless service on a node in a workload environment, which may include defining at least one workload container for each node of a plurality of nodes, the at least one workload container including a cache component of a cache mesh, the cache mesh including a plurality of cache components, the plurality of cache components including a protocol for communication between each other.
[0010] According to one aspect, the invention may include, in response to receiving a state request from a stateless request service from one of a plurality of cache components of a cache mesh within an execution container, determining whether a requested state associated with the state request exists within the cache component of the associated execution container.
[0011] According to one aspect, the invention can include broadcasting a state request to other cache components of a plurality of cache components of a cache mesh in response to a cache miss.
[0012] According to one aspect, the invention may include determining, by other cache components of a plurality of cache components of a cache mesh, whether the requested state exists within the respective caches of the other cache components.
[0013] According to one aspect, the invention may include, in response to any cache component identifying the requested state, transmitting the requested state to a requesting service using a communications protocol.
[0014] According to another aspect of the invention, an associated cache mesh system for executing stateless services on nodes in a workload execution environment can be provided. The workload execution environment can include a plurality of nodes. The cache mesh system can include a storage adapted to store, for each of the plurality of nodes, a definition of at least one workload container that includes a cache component that is part of the cache mesh. The cache components of the cache mesh can use a protocol for communication between each other.
[0015] The cache mesh system may further include, upon receiving a state request from one of the cache components of the cache mesh within the execution container, determining whether the requested state is present within the cache component of the associated execution container, and, upon a cache miss, broadcasting the state request to the cache components of the cache mesh, causing other cache components of the cache mesh to determine whether the requested state is present within their respective caches, and, upon any cache component identifying the requested state, transmitting the requested state to the request service using the protocol.
[0016] The proposed computer-implemented method for executing stateless services on nodes in a workload environment may provide multiple advantages, technical effects, and / or improvements.
[0017] In particular, the limitations of the prior art are overcome by its ability to also function securely in a multi-tenant environment, which can be achieved by layered encryption of the communication protocol between the cache mesh components. Furthermore, the concept proposed herein overcomes the missing isolation between different pods by using so-called sidecar containers in the form of cache mesh components. The existing original sidecar concept and Kubernetes were not designed to allow multi-tenancy.
[0018] The proposed concept can therefore enable exchanging content between Level 1 (L1) caches of stateless services. A pool of L1 cache services can thus be referred to as a cache mesh. Furthermore, the proposed concept can be enhanced by multi-tier caches that are configured to exchange common state between cache mesh components. To that end, a cache mesh is a pool of caching services, especially for services with similar types of workloads, using the same execution language, e.g. Java, node.js, Python, etc., or running in the same execution environment of a workload container.
[0019] Thus, the concept proposed here can rely on a sidecar component next to the actual workload execution environment that maintains the cache mesh implementation. The protocol used to configure the cache mesh can be extended with an understanding of the workload type. Thereby, workload types can be defined based on their execution patterns (e.g., runtime engine, tenant information or other metadata or both). The workload execution engine can interact with the cache mesh sidecar in a pull-and-push based model. To ensure a consistent second level cache, a central cache component (L2) can be used to share state between workloads of different types. Thus, the state of the L1 cache mesh can be converted to a unified format that is stored in the central cache component (L2). Finally, a global scheduler component is introduced, which can ensure the proper routing of a user's workload based on a secure encryption key, even between different clusters in different locations.
[0020] Finally, in a traditional multi-tenant serverless environment, there is no correlation between the executing code and the node it is scheduled to run on. The same node cannot be used for the execution of the same function. However, every node that is up can store the same state in its cache. By creating a sidecar mesh, the cached state can be shared between different cache mesh components.
[0021] Below, additional embodiments of the inventive concepts applicable to the present methods and associated systems will be described.
[0022] According to one useful embodiment of the method, the communication protocol can be encrypted. Therefore, the security of the inter-cache communication will not be compromised. Therefore, the workload environment provided can also be adapted to comply with security standards. Users can use it without security concerns.
[0023] According to an advantageous embodiment, the method may further include broadcasting the end state to the cache mesh upon or in response to completion of execution of the execution container on the node, so that any other nodes requesting the state of the execution container that has finished executing may be notified. No additional communication protocols may be required.
[0024] According to another advantageous embodiment, the method may further include providing a first centralized cache component for the plurality of nodes, which may be considered as a level 2 cache for the nodes (and workload containers, e.g., pods) that may persistently store received data, e.g., state information.
[0025] According to another advantageous embodiment, the method may further include, upon determining that the requested state is not available in any cache component of the cache mesh, loading the requested state from a first central cache component, which may represent a situation involving a permanent cache miss. Thus, data, e.g., a previous state, may be loaded from a first central cache storage, e.g., acting as a level 2 cache.
[0026] According to one permissive embodiment of the method, the communication protocol may include a component selected from the group consisting of an identifier for the user, a key identifying the cached value, and the cached value (e.g., via a cache identifier). Additionally, other parameters, such as parameters for a specific workload execution environment, may augment the exchanged protocol data.
[0027] According to another permissive embodiment, the method may further include broadcasting a final state to the first central cache component in response to completion of execution of the execution container on the respective node. This state transmission may occur in parallel with state transmission to other members (e.g., cache components) of the cache mesh. Thus, the final state of the execution container may be durably saved in any event. It may also be used by the same service (e.g., a new instance) after re-instantiating the service (e.g., a workload container).
[0028] According to one enhanced embodiment of the method, the cache components of the cache mesh include a pool of cache components having equivalent workload types. The equivalent workload types may include an execution pattern selected from the group consisting of the same runtime engine (e.g., Java or node.js), user information (e.g., user ID), and the same programming language. In some embodiments, other metadata may further define the equivalent workload types. This may also be defined as a function of the workload execution environment used.
[0029] According to one enhanced embodiment, the method may further include synchronizing a second central cache component with the first central cache component using a replication protocol. In one embodiment, the second central cache component may be maintained in a second remote workload execution environment, thereby allowing the proposed concept to function not only in a local computing environment (e.g., one single data center), but across data centers and even across countries and continents, thus enabling worldwide use of the proposed concept in globally operating cloud computing providers.
[0030] Furthermore, embodiments may take the form of an associated computer program product accessible from a computer usable or computer readable medium providing program code for use by or in connection with a computer or any instruction execution system. For purposes of this description, a computer usable or computer readable medium may be any apparatus that includes means for storing, communicating, propagating, or transporting a program for use by or in connection with an instruction execution system, apparatus, or device.
[0031] It should be noted that the embodiments of the present invention are described with respect to different subject matters. In particular, some embodiments are described with respect to method type claims, and other embodiments are described with respect to device type claims. However, a person skilled in the art will infer from the above and following description that, unless otherwise stated, in addition to any combination of features belonging to one type of subject matter, any combination between features related to different subject matters, in particular between features of method type claims and features of device type claims, is also considered to be disclosed in this document.
[0032] The above and further aspects of the invention will be apparent from and will be elucidated with reference to the example embodiments described hereinafter, to which the invention is not limited. [Brief description of the drawings]
[0033] Preferred embodiments of the present invention will now be described, by way of example only, with reference to the following drawings, in which:
[0034] [Figure 1] 1 is an operational flowchart illustrating a process for execution of a stateless service on a node in a workload environment according to at least one embodiment. [Diagram 2] FIG. 1 is a block diagram of an execution environment involving several nodes, according to at least one embodiment. [Diagram 3] FIG. 1 is a block diagram of a remote extension of an execution environment according to at least one embodiment. [Figure 4] FIG. 1 is a block diagram of a cache mesh system for execution of stateless services on nodes in a workload environment, according to at least one embodiment. [Diagram 5] FIG. 5 is a block diagram of internal and external components of a computer system including the cache mesh system of FIG. 4 in accordance with at least one embodiment. [Figure 6] FIG. 6 is a block diagram of an illustrative cloud computing environment including the computer system shown in FIG. 5, in accordance with one embodiment of the present disclosure. [Figure 7] FIG. 7 is a block diagram of functional layers of the illustrative cloud computing environment of FIG. 6 in accordance with one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0035] In the context of the present description, the following conventions, terms and / or expressions may be used:
[0036] In accordance with at least one embodiment of the present disclosure, the term "stateless service" may refer to a computing function based on design principles applied within a service-oriented design paradigm to design scalable services by separating them from state data whenever possible. The interaction of any two software programs may include keeping track of interaction-specific data since a subsequent interaction may depend on the outcome of a previous interaction between the two software programs. However, in a stateless computing environment, the state of the software is not maintained after its execution has ended. The transport of state may be required to use other mechanisms.
[0037] In accordance with at least one embodiment of the present disclosure, the term "node" can refer to a physical computing machine or a virtual machine, depending on the cluster used. Each node can be managed by a master component. A single function or service can be implemented as a workload container, a workload execution container, or a so-called pod when using Kubernetes as the workload execution environment.
[0038] In accordance with at least one embodiment of the present disclosure, the term “workload execution environment” can refer to a programming framework that enables the definition of clusters, nodes, as well as workload containers, e.g., pods within nodes, for filing a particular service. Examples of workload execution environments include Marathon for Apache Mesos® (Apache Mesos and all Apache based trademarks and logos are trademarks or registered trademarks of the Apache Software Foundation and / or its affiliates), Docker® Swarm (Docker and all Docker based trademarks and logos are trademarks or registered trademarks of Docker Inc. and / or its affiliates), CoreOS® (CoreOS and all CoreOS based trademarks and logos are trademarks or registered trademarks of CoreOS Inc. and / or its affiliates), RED Hat Openshift® (RED Hat Openshift and all RED Hat based trademarks and logos are trademarks or registered trademarks of RED Hat Inc. and / or its affiliates), and Kubernetes® (Kubernetes and all Kubernetes based trademarks and logos are trademarks or registered trademarks of the Linux Foundation and / or its affiliates).
[0039] In accordance with at least one embodiment of the present disclosure, the term "workload container" may refer to the smallest self-contained unit capable of providing a service or micro-service within a workload execution environment. In various embodiments, the term "workload execution container" may be used.
[0040] In accordance with at least one embodiment of the present disclosure, the term "cache component" may refer to a particular component within a workload container that is used as a local memory for the workload container. The memory associated with the cache component may store the state of a workload container or a service. However, when a workload container terminates its execution, the data in the cache component and the associated memory may disappear. Thus, in traditional workload execution environments, state information in the workload container and cache component may not persist. Embodiments of the present disclosure may overcome this limitation.
[0041] In accordance with at least one embodiment of the present disclosure, the term "cache-mesh" can refer to a loosely coupled network of cache components across different nodes in a cluster that can exchange state data, for example across nodes and across workload containers within the same node.
[0042] In accordance with at least one embodiment of the present disclosure, the term "cache miss" can represent a service's inability to access necessary state data in its cache memory.
[0043] In accordance with at least one embodiment of the present disclosure, the term "protocol for a communication between each other" may refer to a communication protocol for exchanging messages and data between cache components in a cluster. With an extended version of the proposed concept, the protocol for communication between cache components may also work across clusters in different regions. The protocol may use encrypted messages.
[0044] In accordance with at least one embodiment of the present disclosure, the term "state request" may refer to a request from one cache component to any other cache component within (or across) a cluster. A state request may be issued in the form of a broadcast. A receiving cache component that is capable of delivering the requested state may transmit the requested state back to the requesting cache component.
[0045] According to at least one embodiment of the present disclosure, the term "centralized cache component" can denote a persistent storage in a cluster adapted to persistently store state information of various execution containers in various nodes. Thus, instead of exchanging state data between various cache components of various workload containers, state information can also be requested from a first centralized cache component. The proposed concept concerns a first centralized cache component and a second centralized cache component. They are only related to each other in the sense that they can make the contents of the first centralized cache component available to remote clusters and other centralized cache components (and vice versa). Both centralized cache components can be synchronized by a predefined protocol using a state router.
[0046] In accordance with at least one embodiment of the present disclosure, the term "remote workload execution environment" may refer to a second cluster that is remote from the initial workload execution environment.
[0047] In accordance with at least one embodiment of the present disclosure, the terms "cloud computing" and "cloud service environment" in this context may be interpreted as a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and torn down with minimal management effort or service provider interaction. This cloud model enhances availability and is comprised of at least five essential characteristics, three service models, and four deployment models.
[0048] The essential characteristics of cloud computing include: (i) On-Demand Self-Service. Consumers can automatically and unilaterally provision computing capabilities, such as server time and network storage, as needed, without the need for human interaction with each service provider. (ii) Broad Network Access. Functionality is available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin- and thick-client platforms (e.g., mobile phones, laptops, and PDAs). (iii) Resource Pooling. A provider's computing resources are pooled and, using a multi-tenant model, offer multiple consumers a variety of physical and virtual resources that are dynamically allocated and reallocated according to consumer demand. Customers generally have no control or knowledge of the exact location of the resources provided, but can specify a high-level abstracted location (e.g., country, state, or data center). Examples of resources include storage, processing, memory, network bandwidth, and virtual machines. (iv) Rapid Elasticity. Capabilities can be provisioned rapidly and elastically, sometimes automatically, to scale out quickly and release quickly and scale in quickly. To the consumer, the capabilities available for provisioning often appear unlimited, and any amount can be purchased at any time. (v) Measured Service. Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at an abstraction level appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services being utilized.
[0049] The cloud computing service models used include: (i) Cloud Software as a Service (SaaS). The functionality offered to the Consumer is the use of the Provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The Consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or even the functionality of individual applications, with the possible exception of limited user-specific application configuration settings. (ii) Cloud Platform as a Service (PaaS): The functionality offered to the Consumer is the deployment of Consumer-created or acquired applications, written using programming languages and tools supported by the Provider, onto a cloud infrastructure. The Consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly the application hosting environment configuration. (iii) Cloud Infrastructure as a Service (IaaS): The functionality provided to the Consumer is the provision of processing, storage, network, and other basic computing resources onto which the Consumer can deploy and run any software, which may include operating systems and applications. The Consumer does not manage or control the underlying cloud infrastructure, but has control over the operating systems, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0050] Deployment models for cloud computing include: (i) Private Cloud. The cloud infrastructure is operated solely by one organization. The cloud infrastructure may be controlled by that organization or a third party and may be located on-premise or off-premise. (ii) Community Cloud. Cloud infrastructure is shared by several organizations to support a particular community with shared concerns (e.g., mission, safety requirements, policies, and compliance considerations). The cloud infrastructure may be managed by those organizations or by a third party and may reside on-premise or off-premise. (iii) Public Cloud: Cloud infrastructure is made available to the general public or large industry groups and is owned by organizations that sell cloud services. (iv) Hybrid Cloud: A cloud infrastructure is a hybrid of two or more clouds (private, community, or public) coupled by standardized or proprietary technologies that enable data and application portability while remaining a unique entity (e.g., cloud bursting for load balancing between clouds).
[0051] Note that cloud software takes full advantage of the cloud paradigm by being service-oriented with a focus on statelessness (with exceptions), low coupling, modularity, and semantic interoperability.
[0052] Below, a detailed description of the figures will be given. All descriptions in the figures are general. First, a block diagram of one embodiment of a computer-implemented method for executing stateless services on nodes in a workload execution environment will be given. Then, further embodiments as well as embodiments of a cache mesh system for executing stateless services on nodes in a workload execution environment will be described.
[0053] 1, an operational flow diagram illustrates an exemplary embodiment of a computer-implemented process 100 for executing, and in particular accelerating, stateless services (e.g., applications) on nodes in a workload execution environment. A primary target for the workload execution environment may be Kubernetes. However, the concept may also be compatible with other comparable workload execution environments, such as Marathon for Apache Mesos, Docker Swarm, CoreOS, and Red Hat Openshift.
[0054] At 102, the process 100 includes defining at least one workload container for each of a plurality of nodes. According to one embodiment, the workload execution environment can include a plurality of nodes. For each of the plurality of nodes, at least one workload container including (at least) a cache component, e.g., one pod in Kubernetes, can be defined. In one embodiment, the cache component can be part of a cache mesh. As described, the cache can function as a level 1 cache. The workload container can also include a runtime environment, e.g., similar to a Java runtime, a node.js runtime, or the like.
[0055] In one embodiment, the cache components of a cache mesh may not be fully coupled. Therefore, the cache components may implement a protocol for communication between each other. The general principle of communication is by broadcasting the same or similar execution patterns to the caches of the workload containers. This limits the scope of the broadcast and therefore supports a high performance environment.
[0056] At 104, the process 100 includes receiving a state request from one of the cache components of the cache mesh within an execution container (e.g., within a pod) from a stateless request service, and determining at 106 whether the requested state exists within the cache component of the associated execution container, specifically the cache component associated with the stateless request service.
[0057] At step 108, process 100 includes, upon a cache miss, broadcasting a state request to cache components of the cache mesh having similar execution patterns at 110. Process 100 further includes determining, by other cache components of the cache mesh, whether the requested state exists in their respective caches at 112, and upon any cache component identifying the requested state, transmitting the requested state (e.g., sending it back) to the requesting service using the protocol at 114. Note that the nodes may be implemented as other devices or as virtual machines.
[0058] The process 100 can be illustrated using the following example where a user wants to set up an electronic trading site based on serverless functions with state manipulation.
[0059] A shopping cart is an example that requires state information. Thus, when a customer adds an item to his cart, a serverless function will be triggered by the e-commerce stateless application which will populate his encryption key. The scheduler component will identify the customer and notify the L2 cache (e.g., the central cache component) to prepare for a possible cache miss. Furthermore, the request will be scheduled against a workload execution engine of the determined function type (which can be, for example, a node.js environment in this case). Once the function is scheduled and executed, it will attempt to access the current state of the shopping cart based on the cache mesh protocol.
[0060] 2, a block diagram 200 of an execution environment with several nodes in a near-field embodiment is shown, according to one embodiment. One or more clusters 202 can include multiple nodes 204, 206, 208 (e.g., node1, node2, node3). Each of the nodes can include one or more pods 210, 216, 222, 228 (e.g., podA, podB, podC, pod_) representing workload containers. Each of the workload containers (e.g., pods) can include a cache component (also referred to as a cache mesh component (CMC)) 214, 220, 226, 232, respectively. Each of the pods 210, 216, 222, 228 can further include a runtime environment 212, 218, 224, 230 (e.g., Java Runtime Engine (Java), node.js (NJS), Python engine). Each of the cache mesh components 214, 220, 226, 232 receives a state request from one of the other cache components of the cache mesh. If the cache component is not in an associated execution container, a broadcast message is sent out and received by other members of the cache mesh. Preferably, only cache mesh components that have an associated or comparable workload time with the requesting cache mesh component are addressed. This may be controlled by the type of protocol.
[0061] If the requested cache component is identified in any of the other addressed cache components, the requested state is sent back to the requesting service using the underlying communication cache mesh protocol. If the workload execution environment is Kubernetes, the cache mesh component can be implemented, for example, as a "sidecar".
[0062] However, if the state component is not found in any of the other cache mesh components in the various pods in the cluster 202, the requested state may be requested from the central caching component 234, which may persistently store the state of the pods 210, 216, 222, 228. While this may be a workaround solution, the execution time to access the central caching component 234 for multiple nodes 204, 206, 208 in the cluster 202 may take longer than the proposed direct communication between the cache mesh components 214, 222, 226, 232 for the state request. By way of example, the arrow between the cache mesh component 214 and the cache mesh component 232 indicates a direct communication between the two cache mesh components. Additionally, the double arrow and the connection line between the cache mesh components 220 and 226 indicate such a direct state exchange using the cache mesh protocol.
[0063] Additionally, the central caching component 234 may include central cluster-oriented persistent storage of the state of the various pods 210, 216, 222, 208, as indicated by the dotted lines between the central caching component 234 and the cache mesh components 214, 222, 226, 232.
[0064] Additionally, the scheduler / gateway 236 may control the scheduling of execution invocations of the local execution environments 212, 218, 224, 230. It may also allow for receiving cryptographic keys for secure protocol management of the cache mesh components, for example from a user or another control process.
[0065] According to one embodiment, the scheduler / gateway 236 may include a state router 238 that may be adapted to synchronize state information between different clusters 202 and 302 (compare, e.g., FIG. 3).
[0066] Following the example given above (shopping cart), the scenario can be extended as follows: A user submits a REST request for the execution of a snippet in the workload execution environment. With each request, based on the user's identity and the request type, the Cache Mesh Sidecar Service loads the previously stored state (if it exists) into its L1 cache, or creates a cache mesh if it does not exist (protocol explained later).
[0067] On the node where the execution is about to take place, the cache mesh component decides to load the previously existing state into the corresponding L1 cache. Since the size of the L1 cache is limited, the contents of the L1 cache are broadcast to other cache mesh components and are then loaded back into the L2 cache (i.e., the central cache component 234) after the execution is completed. The cache mesh components behave as controlled by the protocol described next.
[0068] A cache mesh component is a pool of caching services that each act as a sidecar to associated execution nodes. A mesh can be formed by nodes that 1. host node execution environments (e.g., nodes with the same or similar execution environments) and 2. can be used by a single application for execution.
[0069] When a user request arrives, a cache mesh sidecar component checks if the previous state exists in its cache. In case of a cache miss, the cache mesh sidecar component requests the cached state from other cache mesh components (by broadcasting a message). The requesting cache mesh sidecar component can then broadcast the user's identity and the request type within the cache mesh.
[0070] Any other cache mesh sidecar component in the mesh can send the cached state to the requesting cache mesh sidecar component after validating the user and request type upon a cache hit. If the state does not exist within the cache mesh (e.g., within another cache mesh component), the state is loaded from the L2 cache. Upon a cache miss in the L2 cache, the cached content and / or state does not exist.
[0071] Once execution on a node is completed, the ending state is broadcast in the cache mesh. Thus, if the next execution request arrives from the same user and is scheduled on any other node in the mesh, the cache mesh component may have the previously loaded state in its L1 cache. The L1 cache has a limited size and the contents are stored based on an underlying FIFO (First In, First Out) protocol.
[0072] To ensure an appropriate level of security, along with each request may be transmitted an encryption key that can be used to encrypt / decrypt the contents of each cache mesh component.
[0073] Referring now to FIG. 3, a block diagram of an extension of an execution environment at a remote location is shown according to at least one embodiment. Two clusters 302 and 202 (compare FIG. 2) can be connected via a public network, e.g., the Internet. Further, cluster 302 can include multiple nodes (e.g., “node_”), of which only node 304 is shown. Further, here, multiple workload execution containers 310 (e.g., multiple pods “pod_”) can each include an execution environment (e.g., Java 312) and an associated cache mesh component 314. Further, cluster 302 can include a central caching component 334 that can be in communicative contact with the cache mesh components 314 of the pods 310 of the nodes 304 of cluster 302. Further, here, different workload execution containers / pods 310 can be stored in the central caching component 334.
[0074] Symbol 340 may represent a public network (e.g., the Internet) from which a dashed arrow may point to the central caching component 234 of Figure 2. This link may be used for replication of state information between the central caching component 234 and the remote central caching component 334. This process may be controlled by the state router 238 of Figure 2, as indicated by the two dashed arrows 240, 242.
[0075] 4, a cache mesh system 400 for executing stateless services on nodes in a workload environment is illustrated, according to at least one embodiment. In one embodiment, the workload execution environment can include multiple nodes (not shown). The cache mesh system 400 can store (e.g., in storage system 402) a definition for each of the multiple nodes, where the definition indicates at least one workload container (for each of the multiple nodes). In one embodiment, the workload container can include a cache component of the cache mesh. The cache components of the cache mesh can use a protocol for communication between each other.
[0076] The cache mesh system 400 may include a receiving component (e.g., receiver or transceiver component 404) configured to receive a state request from a stateless request service from one of the cache components of a cache mesh in an execution container, determine whether the requested state is present in the cache component of the associated execution container, broadcast the state request to the cache components of the cache mesh in the event of a cache miss, determine by the other cache components of the cache mesh whether the requested state is present in their respective caches, and, upon any cache component identifying the requested state, transmit the requested state to the request service using a protocol. As noted above, the protocol may be encrypted for a higher degree of security.
[0077] 5, there is shown a computing system 500 suitable for executing program code associated with embodiments of the present disclosure. The embodiments may be practiced in conjunction with virtually any type of computer platform, regardless of whether the platform is suitable for storing and / or executing program code.
[0078] The computing system 500 is merely one example of a suitable computer system and is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the invention described herein. Nevertheless, the computer system 500 may implement and / or execute any of the above-described sets of functions. There are components in the computer system 500 that operate in numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments and / or configurations that may be suitable for use with the computer system / server 500 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above-mentioned systems or devices. The computer system / server 500 may be described in the general context of computer system executable instructions, such as program modules, executed by the computer system 500. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system / server 500 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media, including memory storage devices.
[0079] As shown in the figure, computer system / server 500 is depicted in the form of a general-purpose computing device. Components of computer system / server 500 may include, but are not limited to, one or more processors 502, a system memory 504, and a bus 506 coupling various system components including system memory 504 to processor 502. Bus 506 represents any one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus. Computer system / server 500 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer system / server 500 and includes both volatile and non-volatile media, removable and non-removable media.
[0080] The system memory 504 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 508 or cache memory 510, or both. The computer system / server 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 812 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown, typically referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from and writing to a removable, non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical medium. In such an example, each may be connected to the bus 506 by one or more data media interfaces. As further shown and described below, the system memory 504 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.
[0081] By way of example and not limitation, a program / utility having a set (at least one) of program modules 516 may be stored within the system memory 504, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or any combination thereof, may include an implementation of a networking environment. The program modules 516 generally perform the functions and / or methods of the embodiments of the present disclosure described herein.
[0082] The computer system / server 500 may also communicate with one or more external devices 518, such as a keyboard, a pointing device, a display 520, or the like, one or more devices that allow a user to interact with the computer system / server 500, and / or any device (e.g., a network card, a modem, or the like) that allows the computer system / server 500 to communicate with one or more other computing devices. Such communication may occur via an input / output (I / O) interface 514. Furthermore, the computer system / server 500 may also communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), or a public network (e.g., the Internet), or combinations thereof, via a network adapter 522. As shown, the network adapter 522 communicates with other components of the computer system / server 500 via a bus 506. Although not shown, it is understood that other hardware and / or software components may be used with the computer system / server 500. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.
[0083] Additionally, a cache mesh system 400 for executing stateless services on nodes in a workload execution environment may be attached to the bus system 506 .
[0084] Referring now to FIG. 6, an exemplary cloud computing environment 1000 is shown. As shown, the cloud computing environment 1000 includes one or more cloud computing nodes 100 that can communicate with a local computing device used by a cloud consumer, such as, for example, a personal digital assistant (PDA) or cell phone 1000A, a desktop computer 1000B, a laptop computer 1000C, or a computer system 1000N, or a combination thereof. The nodes 100 can communicate with each other. These nodes can be physically or virtually grouped in one or more networks, such as a private cloud, a community cloud, a public cloud, or a hybrid cloud, or a combination thereof (not shown). This enables the cloud computing environment 1000 to provide infrastructure as a service, platform as a service, or software as a service, or a combination thereof, without the cloud consumer having to maintain resources on a local computing device. It should be understood that the types of computing devices 1000A-N shown in FIG. 6 are intended to be exemplary only, and that the computing nodes 100 and cloud computing environment 1000 can communicate with any type of computerized device over any type of network or over a network-addressable connection (e.g., using a web browser), or both.
[0085] 7, there is shown a set of functional abstraction layers provided by the cloud computing environment 1000. It should be understood in advance that the components, layers, and functions shown in FIG. 7 are intended to be merely illustrative, and that embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0086] Hardware and software layer 1102 includes hardware and software components. Example hardware components include mainframe 1104, RISC (Reduced Instruction Set Computer) architecture based servers 1106, servers 1108, blade servers 1110, storage devices 1112, and networks and network components 1114. In some embodiments, software components include network application server software 1116 and database software 1118.
[0087] The virtualization layer 1120 provides an abstraction layer that can provide the following examples of virtual entities: virtual servers 1122, virtual storage 1124, virtual networks including virtual private networks 1126, virtual applications and operating systems 1128, and virtual clients 1130.
[0088] In one example, the management layer 1132 can provide the functionality described below. Resource provisioning 1134 provides dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 1136 provides cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the consumption of these resources. In one example, these resources can include application software licenses. Security provides identity verification for cloud consumers and tasks, and protection for data and other resources. User portal 1138 provides access to the cloud computing environment for consumers and system administrators. Service level management 1140 provides allocation and management of cloud computing resources such that required service levels are met. Service level agreement (SLA) planning and fulfillment 1142 provides pre-positioning and procurement of cloud computing resources where future requirements are forecasted according to SLAs.
[0089] Workloads layer 1144 provides examples of functionality that can utilize a cloud computing environment. Examples of workloads and functionality that can be provided from this layer include mapping and navigation 146, software development and lifecycle management 1148, virtual classroom instructional delivery 1150, data analytics processing 1152, transaction processing 1154, and cache mesh systems (compare FIG. 4, 400).
[0090] 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 described embodiments. The terms used in this specification are selected to best explain the principles, practical applications, or technical improvements of the embodiments over the art found in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
[0091] The present invention may be embodied as a system, method, or computer program product, or a combination thereof. The computer program product may include a computer readable storage medium or mediums having computer readable program instructions for causing a processor to perform aspects of the present invention.
[0092] The medium can be an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system for propagation media. Examples of computer-readable media include semiconductor or solid state memory, magnetic tape, removable computer diskettes, random access memory (RAM), read-only memory (ROM), rigid magnetic disk, and optical disk. Current examples of optical disks include Compact Disk-Read Only Memory (CD-ROM), Compact Disk-Read / Write (CD-R / W), DVD, and Blu-Ray-Disk.
[0093] A computer readable storage medium may be any tangible device capable of holding and storing instructions for use by an instruction execution device. A 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 above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves having instructions recorded thereon, and any suitable combination of the above. As used herein, a computer-readable storage medium is not to be construed as a transitory signal per se, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or an electrical signal sent through a wire.
[0094] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device 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, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium in the respective computing / processing device.
[0095] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk, C++, and traditional procedural programming languages such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on a remote computer or server. In the last scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) can execute computer readable program instructions to individualize the electronic circuitry by utilizing state information of the computer readable program instructions to perform aspects of the invention.
[0096] Aspects of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will 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, can be implemented by computer readable program instructions.
[0097] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, whereby the instructions executed by the processor of the computer or other programmable data processing apparatus create means for performing the functions / operations specified in one or more blocks of the flowcharts or block diagrams, or both. These computer program instructions may also be stored in a computer readable medium capable of directing a computer, other programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, whereby the instructions stored in the computer readable medium include an article of manufacture including instructions implementing aspects of the functions / operations specified in one or more blocks of the flowcharts or block diagrams, or both.
[0098] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, such that the instructions executing on the computer or other programmable apparatus provide a process for performing the functions / operations specified in one or more blocks of the flowcharts or block diagrams or both.
[0099] 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 regard, each block in the flowcharts may represent a module, segment, or portion of code, including one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions shown in the blocks may occur in a different order than that shown in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or these blocks may sometimes be executed in the reverse order, depending on the functionality involved. 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 a dedicated hardware-based system that executes the specified functions or operations, or executes a combination of dedicated hardware and computer instructions.
[0100] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprise" and / or "comprising", when used herein, indicate the presence of stated features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0101] Corresponding structures, materials, acts, and equivalents of the "means or step plus function" elements in the following claims are intended to include any structure, material, or act for performing a function in conjunction with other claimed elements as specifically claimed. The description in the present disclosure has been presented for purposes of illustration and description only, and is not intended to be exhaustive or to limit the invention to the disclosed form. Numerous modifications and variations will be apparent to those skilled in the art that do not depart from the scope of the invention. The embodiments have been chosen and described in order to best explain the principles and practical applications of the invention, and to enable those skilled in the art to understand the invention in terms of various embodiments with various modifications as suited to the particular applications contemplated.
Claims
1. 1. A method for executing a stateless service on a node in a workload execution environment by a computer, comprising: defining at least one workload container for each node of a plurality of nodes, the at least one workload container including a cache component of a cache mesh, the cache mesh including a plurality of cache components, the plurality of cache components including a protocol for communication between each other; in response to receiving a state request from a stateless request service from one of the cache components of the cache mesh in an execution container, determining whether a requested state associated with the state request exists within the cache component of an associated execution container; broadcasting the state request to other cache components of the plurality of cache components of the cache mesh in response to a cache miss; determining, by the other cache components of the plurality of cache components of the cache mesh, whether the requested state exists within a respective cache of the other cache components; in response to any cache component identifying the requested state, transmitting the requested state to the requesting service using the communications protocol; The method includes:
2. The method of claim 1 , wherein the protocol for communication is encrypted.
3. The method of claim 1 or claim 2, further comprising broadcasting a termination state to the cache mesh in response to completion of execution of the execution container on the respective node.
4. The method of any one of claims 1 to 3, further comprising providing a first central cache component for the plurality of nodes.
5. 5. The method of claim 4, further comprising, in response to determining that the requested state is not available within the plurality of cache components of the cache mesh, loading the requested state from the first central cache component.
6. The method of any one of claims 1 to 5, wherein the communication protocol includes a component selected from the group consisting of a user identifier, a key identifying a cached value, and the cached value.
7. 5. The method of claim 4, further comprising broadcasting a termination state to the first central cache component in response to completion of the execution of the execution container on the respective node.
8. The method of any one of claims 1 to 7, wherein the plurality of cache components of the cache mesh comprises a pool of cache components having similar workload types.
9. 9. The method of claim 8, wherein the comparable workload types include execution patterns selected from the group consisting of the same runtime engine, user information, and the same programming language.
10. 5. The method of claim 4, further comprising synchronizing a second central cache component with the first central cache component using a replication protocol, the second central cache component being maintained within a second remote workload execution environment.
11. 1. A computer system for executing a stateless service on a node in a workload execution environment, comprising: one or more processors; one or more computer readable memories; one or more computer readable tangible storage media; and program instructions stored in at least one of the one or more computer readable storage media for execution by at least one of the one or more processors via at least one of the one or more memories; defining at least one workload container for each node of a plurality of nodes, the at least one workload container including a cache component of a cache mesh, the cache mesh including a plurality of cache components, the plurality of cache components including a protocol for communication between each other; in response to receiving a state request from a stateless request service from one of the cache components of the cache mesh in an execution container, determining whether a requested state associated with the state request exists within the cache component of an associated execution container; broadcasting the state request to other cache components of the plurality of cache components of the cache mesh in response to a cache miss; determining, by the other cache components of the plurality of cache components of the cache mesh, whether the requested state exists within a respective cache of the other cache components; in response to any cache component identifying the requested state, transmitting the requested state to the requesting service using the communications protocol; A method comprising: Computer system.
12. 12. The computer system of claim 11, further comprising broadcasting a termination state to the cache mesh in response to completion of execution of the execution container on the respective node.
13. 13. The computer system of claim 11 or claim 12, further comprising providing a first central cache component for the plurality of nodes.
14. 14. The computer system of claim 13, further comprising, in response to determining that the requested state is not available within the plurality of cache components of the cache mesh, loading the requested state from the first central cache component.
15. The computer system of any one of claims 11 to 14, wherein the communication protocol includes a component selected from the group consisting of a user identifier, a key that identifies a cached value, and the cached value.
16. 14. The system of claim 13, further comprising broadcasting a termination state to the first central cache component in response to completion of the execution of the execution container on the respective node.
17. The computer system of any one of claims 11 to 16, wherein the plurality of cache components of the cache mesh comprises a pool of cache components having similar workload types.
18. 20. The computer system of claim 17, wherein the comparable workload types include execution patterns selected from the group consisting of the same runtime engine, user information, and the same programming language.
19. 14. The computer system of claim 13, further comprising: synchronizing a second central cache component with the first central cache component using a replication protocol, the second central cache component being maintained within a second remote workload execution environment.
20. A computer program for executing a stateless service on a node in a workload execution environment, the computer program comprising program instructions causing a computer to perform a method according to any one of claims 1 to 10. Computer program.
21. 21. A computer readable storage medium having stored thereon the computer program of claim 20.
Citation Information
Patent Citations
Method for controlling distributed object and its execution system
JP2004030486A
Event-driven cache
US10467143B1
Engine Near Cache for Reducing Latency in a Telecommunications Environment
US20090019158A1
Coordination of cache memory operations
US20190303295A1
