SYSTEMS AND METHODS FOR EFFICIENT SCALABILITY AND HIGH AVAILABILITY OF APPLICATIONS IN CONTAINER ORCHESTRATION CLOUD ENVIRONMENT
The disclosure provides efficient scalability and high availability of applications in a container orchestration cloud environment. A readiness orchestrator monitors the readiness of an application. Configuration data is managed by a configuration cache manger and can be stored locally or in a centralized database. The configuration for each subsystem is managed using a fully-qualified domain name (FQDN). The FQDN can be obtained using a Domain Name System (DNS) service. The load data of a content server (CS) subsystem and an independent Java method server (iJMS) subsystem are obtained and stored in the database. A helper pod is adapted for auto-scaling depending upon the load data and the configuration data of the CS subsystem and the iJMS subsystem to thereby maintain high availability of the CS subsystem and the iJMS subsystem in the container orchestration cloud environment.
This is a continuation of, and claims a benefit of priority under 35 U.S.C. § 120 from, U.S. patent application Ser. No. 16/843,671, filed Apr. 8, 2020, entitled “SYSTEMS AND METHODS FOR EFFICIENT SCALABILITY AND HIGH AVAILABILITY OF APPLICATIONS IN CONTAINER ORCHESTRATION CLOUD ENVIRONMENT,” which is fully incorporated by reference herein for all purposes.
TECHNICAL FIELDThis disclosure relates generally to the field of content management. More particularly, this disclosure relates to systems, methods, and computer program products for providing efficient scalability and high availability of applications in a container orchestration cloud environment.
BACKGROUND OF THE RELATED ARTContent management refers to the creation and modification of digital content. A content management system (CMS) refers to a computer system that can be used to manage the creation and modification of digital content. Traditionally, a content management system operates the premises of an enterprise, generally at the backend of a secure enterprise computing network.
Cloud computing refers to the on-demand availability of computer system resources, particularly data storage and computational power of data centers. End users are generally not involved in the direct, active management of cloud computing.
From the perspective of an enterprise, moving content management to the cloud can provide some flexibility in customization and integrations. However, session management, load balancing, and payload environment can impose major obstacles.
For instance, a session is a temporary and interactive information interchange between two or more communicating devices. Session management refers to the process of securing multiple requests to a service from the same device or entity (e.g., a user). In many cases, a session is initialized by authenticating a user or entity with factors such as a password. Traditionally, cookies are used as session identifiers for session management. Cookies are small pieces of information that are sent in response from a server to a client. This means that an intermediary, such as a monitoring system, cannot intercept or read session activities through existing protocols (such as the transmission control protocol or TCP) when two enterprise systems, acting as a server and a client, are in a session communicating with each other through a socket connection.
In view of the foregoing, there is room for innovations and improvements for providing content management in a cloud environment.
SUMMARY OF THE DISCLOSUREAn object of the invention is to provide a container orchestration cloud environment adapted for efficient scalability and high availability applications. In some embodiments, the container orchestration cloud environment has the following features: a readiness monitor configured for keeping track of which system in the container orchestration cloud environment is ready, a helper pod configured for tracking the load of each system, a host name Domain Name System (DNS) for providing a fully-qualified domain name for each system in the container orchestration cloud environment, and a configuration cache manager configured for keeping track of configuration information for each instance of the system.
In some embodiments, the readiness monitor can be implemented using a container orchestration system. Such a container orchestration system automates the deployment, management, scaling, and networking of containers. A “container” refers to an application deployment unit that provides a self-contained execution environment, useful for deploying microservice-based applications. Containers make it possible to run multiple parts of an application independently in microservices, on the same hardware, with much greater control over individual pieces and life cycles. Containers and container orchestration systems are known to those skilled in the art and thus are not further described herein.
In a container orchestration system, a readiness probe or monitor can be used to determine whether a container is ready to service requests. In this disclosure, the readiness monitor is configured for tracking the number of user requests for an application (e.g., a cloud-based content server). If the load increases, it spawns additional instances of the application dynamically. This allows the application to scale automatically and maintain high availability in the container orchestration cloud environment.
In this disclosure, the system load is managed by a helper pod. In a container orchestration system, a pod generally refers to a higher level of abstraction that groups containerized components. The helper pod disclosed herein is assigned a unique Internet Protocol (IP) address in the container orchestration cloud environment and is configured for updating load balancing data stored in a database.
The load balancing data populated/updated by the readiness monitor and the helper pod disclosed herein can be used by a session manager for load balancing and payload management. For instance, a client system may send a request to a content server to execute a method. To service this request, the content server initiates a session with a Java Method Service (JMS) server. In this case, both the content server and the JMS server operate in the container orchestration cloud environment. In an on-premises enterprise architecture, high availability between enterprise systems can be maintained through configuration management of settings in a centralized database. However, a conventional cloud environment does not have an infrastructure that supports configuration management of settings in a centralized database. Thus, a cloud-based session manager ordinarily cannot obtain load balancing data or payload data from the communication between the content server (CS) and the JMS server.
The invention addresses this drawback by adding tables in a CS database and employing the readiness monitor and the helper pod disclosed herein to populate and update the tables with up-to-date readiness information and load balancing information. As the load of a system increases, the number of instances also increases dynamically automatically. All the configurations of the instances are managed using fully-qualified domain names provided by the host name DNS. In embodiments disclosed herein, when a new instance is initiated, the configuration details can be provided by the configuration cache manager or from the database. The configuration cache manager, in turn, checks the status of the instance periodically and updates the database accordingly (e.g., when the instance is killed).
One embodiment comprises a system comprising a processor and a non-transitory computer-readable storage medium that stores computer instructions translatable by the processor to perform a method substantially as described herein. Another embodiment comprises a computer program product having a non-transitory computer-readable storage medium that stores computer instructions translatable by a processor to perform a method substantially as described herein. Numerous other embodiments are also possible.
These, and other, aspects of the disclosure will be better appreciated and understood when considered in conjunction with the following description and the accompanying drawings. It should be understood, however, that the following description, while indicating various embodiments of the disclosure and numerous specific details thereof, is given by way of illustration and not of limitation. Many substitutions, modifications, additions, and/or rearrangements may be made within the scope of the disclosure without departing from the spirit thereof, and the disclosure includes all such substitutions, modifications, additions, and/or rearrangements.
The drawings accompanying and forming part of this specification are included to depict certain aspects of the invention. A clearer impression of the invention, and of the components and operation of systems provided with the invention, will become more readily apparent by referring to the exemplary, and therefore non-limiting, embodiments illustrated in the drawings, wherein identical reference numerals designate the same components. Note that the features illustrated in the drawings are not necessarily drawn to scale.
The invention and the various features and advantageous details thereof are explained more fully with reference to the non-limiting embodiments that are illustrated in the accompanying drawings and detailed in the following description. Descriptions of well-known starting materials, processing techniques, components, and equipment are omitted so as not to unnecessarily obscure the invention in detail. It should be understood, however, that the detailed description and the specific examples, while indicating some embodiments of the invention, are given by way of illustration only and not by way of limitation. Various substitutions, modifications, additions, and/or rearrangements within the spirit and/or scope of the underlying inventive concept will become apparent to those skilled in the art from this disclosure.
In container orchestration cloud environment 100, scalability is done dynamically. For instance, a readiness monitor 150 tracks the number of user requests for an application (which is a subsystem of a CMS) and if the load increases, it spawns additional instances of the application (e.g., CS1 . . . CSn 160, independent JMS1 . . . iJMSn 170, etc.) dynamically.
In some embodiments, readiness monitor 150 (which, in some embodiments, implements a readiness script) can be adapted for monitoring the state of each container running in container orchestration cloud environment 100. Readiness monitor 150 can run periodically. The period value is configurable. Outcome of readiness monitor 150 can be used to track the pod status by executing a scalability command (which is typically used in a container orchestration system). A table is maintained in a database 110 (e.g., Content Server Docbase) and readiness monitor 150 can send the periodic refreshment command to the main subsystem running in container orchestration cloud environment 100. As discussed below, the status of each corresponding system is checked and the table is updated accordingly.
Although the cloud infrastructure also supports auto scalability, the auto scaling feature is not available for native applications. This is because a request for a native application does not go through the cloud infrastructure. To achieve auto scalability for native applications, a helper pod 140 is deployed in container orchestration cloud environment 100. Helper pod 140 is adapted for monitoring the load of a system and proactively increases or decreases the number of instances of the system, depending on the load.
In container orchestration cloud environment 100, all the configurations are managed using the hostnames. In container orchestration cloud environment 100, either fixed hostnames are supported inherently or it must be done using a third party (e.g., Host Name DNS 130). To communicate among the pods using the hostname, the hostname must be a fully-qualified domain name (FQDN). In some environment, the mapping between a host name (which can be found in the instance data) and its FQDN must be done explicitly in the operation system level which can be achieved using a startup script.
Getting the configuration object from the database for each operation can be very costly. Also, ignoring the new instances will reduce the efficiency of the overall system. Thus, the invention includes a configuration cache management system 120 (which is referred to herein as a configuration cache manager).
Configuration cache manager 120 is adapted for inquiring database 110 for the instance status periodically. Whenever a new instance spawns up, configuration cache manager 120 can get the configuration details either locally from a configuration cache managed by configuration cache manager 120 or directly from database 110.
In some cases, the configuration version numbers can be validated by configuration cache manager 120 before any operation, for instance, by checking a configuration version number stored in the cache with a configuration version number in the instance data. If the numbers match, the new instance can continue. Otherwise, configuration cache manager 120 will update the configuration information before continuing.
In the example of
In a container orchestration system, “statefulset” refers to a workload application programming interface (API) object used to manage stateful applications. A statefulset manages pods that are based on an identical container specification and maintains a sticky identity for each of the pods.
In the example of flow 300, depending on the load, a helper pod (e.g., auto scaling helper pod 340) can scale a CS statefulset (1) in a similar manner as described above with reference to
As shown in
The hostname in the instance data obtained from the discovery service can be mapped to a FQDN using a DNS service or similar mechanism 330 (5). Using the CS FQDN and internal load balancing mechanism, DFC client 350 and iJMS 370 can then make the connections to CS subsystem 360 (6).
In the example of flow 400, depending on the load, a helper pod (e.g., auto-scaling helper pod 440) can scale an iJMS statefulset for JMS subsystem 470 in a similar manner as described above with reference to
As illustrated in
In summary, embodiments disclosed herein take a four-step approach which includes providing a readiness monitor or orchestrator with the ability to monitor the readiness of an application in a container orchestration cloud environment, establishing a communication with each subsystem, providing an efficient configuration management to manage availability of each subsystem (e.g., as load increases, increase instances), and using an auto-scaling helper pod for scaling. With this approach, embodiments disclosed herein can efficiently manage the changing of instances and corresponding configuration data, allowing the number of instances to scale (increase or decrease) dynamically to provide content management in a cloud computing environment.
Those skilled in the relevant art will appreciate that the invention can be implemented or practiced with other computer system configurations, including without limitation multi-processor systems, network devices, mini-computers, mainframe computers, data processors, and the like. The invention can be embodied in a computer, or a special purpose computer or data processor that is specifically programmed, configured, or constructed to perform the functions described in detail herein. The invention can also be employed in distributed computing environments, where tasks or modules are performed by remote processing devices, which are linked through a communications network such as a LAN, WAN, and/or the Internet. In a distributed computing environment, program modules or subroutines may be located in both local and remote memory storage devices. These program modules or subroutines may, for example, be stored or distributed on computer-readable media, including magnetic and optically readable and removable computer discs, stored as firmware in chips, as well as distributed electronically over the Internet or over other networks (including wireless networks). Example chips may include Electrically Erasable Programmable Read-Only Memory (EEPROM) chips. Embodiments discussed herein can be implemented in suitable instructions that may reside on a non-transitory computer readable medium, hardware circuitry or the like, or any combination and that may be translatable by one or more server machines. Examples of a non-transitory computer readable medium are provided below in this disclosure.
Suitable computer-executable instructions may reside on a non-transitory computer readable medium (e.g., ROM, RAM, and/or HD), hardware circuitry or the like, or any combination thereof. Within this disclosure, the term “non-transitory computer readable medium” is not limited to ROM, RAM, and HD and can include any type of data storage medium that can be read by a processor. Examples of non-transitory computer-readable storage media can include, but are not limited to, volatile and non-volatile computer memories and storage devices such as random access memories, read-only memories, hard drives, data cartridges, direct access storage device arrays, magnetic tapes, floppy diskettes, flash memory drives, optical data storage devices, compact-disc read-only memories, and other appropriate computer memories and data storage devices. Thus, a computer-readable medium may refer to a data cartridge, a data backup magnetic tape, a floppy diskette, a flash memory drive, an optical data storage drive, a CD-ROM, ROM, RAM, HD, or the like.
The processes described herein may be implemented in suitable computer-executable instructions that may reside on a computer readable medium (for example, a disk, CD-ROM, a memory, etc.). Alternatively, the computer-executable instructions may be stored as software code components on a direct access storage device array, magnetic tape, floppy diskette, optical storage device, or other appropriate computer-readable medium or storage device.
Any suitable programming language can be used to implement the routines, methods or programs of embodiments of the invention described herein, including C, C++, Java, JavaScript, HTML, or any other programming or scripting code, etc. Other software/hardware/network architectures may be used. For example, the functions of the disclosed embodiments may be implemented on one computer or shared/distributed among two or more computers in or across a network. Communications between computers implementing embodiments can be accomplished using any electronic, optical, radio frequency signals, or other suitable methods and tools of communication in compliance with known network protocols.
Different programming techniques can be employed such as procedural or object oriented. Any particular routine can execute on a single computer processing device or multiple computer processing devices, a single computer processor or multiple computer processors. Data may be stored in a single storage medium or distributed through multiple storage mediums, and may reside in a single database or multiple databases (or other data storage techniques). Although the steps, operations, or computations may be presented in a specific order, this order may be changed in different embodiments. In some embodiments, to the extent multiple steps are shown as sequential in this specification, some combination of such steps in alternative embodiments may be performed at the same time. The sequence of operations described herein can be interrupted, suspended, or otherwise controlled by another process, such as an operating system, kernel, etc. The routines can operate in an operating system environment or as stand-alone routines. Functions, routines, methods, steps, and operations described herein can be performed in hardware, software, firmware or any combination thereof.
Embodiments described herein can be implemented in the form of control logic in software or hardware or a combination of both. The control logic may be stored in an information storage medium, such as a computer-readable medium, as a plurality of instructions adapted to direct an information processing device to perform a set of steps disclosed in the various embodiments. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the invention.
It is also within the spirit and scope of the invention to implement in software programming or code an of the steps, operations, methods, routines or portions thereof described herein, where such software programming or code can be stored in a computer-readable medium and can be operated on by a processor to permit a computer to perform any of the steps, operations, methods, routines or portions thereof described herein. The invention may be implemented by using software programming or code in one or more digital computers, by using application specific integrated circuits, programmable logic devices, field programmable gate arrays, optical, chemical, biological, quantum or nano-engineered systems, components, and mechanisms may be used. In general, the functions of the invention can be achieved by any means as is known in the art. For example, distributed, or networked systems, components, and circuits can be used. In another example, communication or transfer (or otherwise moving from one place to another) of data may be wired, wireless, or by any other means.
A “computer-readable medium” may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, system, or device. The computer readable medium can be, by way of example only but not by limitation, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, system, device, propagation medium, or computer memory. Such computer-readable medium shall generally be machine readable and include software programming or code that can be human readable (e.g., source code) or machine readable (e.g., object code). Examples of non-transitory computer-readable media can include random access memories, read-only memories, hard drives, data cartridges, magnetic tapes, floppy diskettes, flash memory drives, optical data storage devices, compact-disc read-only memories, and other appropriate computer memories and data storage devices. In an illustrative embodiment, some or all of the software components may reside on a single server computer or on any combination of separate server computers. As one skilled in the art can appreciate, a computer program product implementing an embodiment disclosed herein may comprise one or more non-transitory computer readable media storing computer instructions translatable by one or more processors in a computing environment.
A “processor” includes any, hardware system, mechanism or component that processes data, signals or other information. A processor can include a system with a central processing unit, multiple processing units, dedicated circuitry for achieving functionality, or other systems. Processing need not be limited to a geographic location, or have temporal limitations. For example, a processor can perform its functions in “real-time,” “offline,” in a “batch mode,” etc. Portions of processing can be performed at different times and at different locations, by different (or the same) processing systems.
As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, product, article, or apparatus that comprises a list of elements is not necessarily limited only those elements but may include other elements not expressly listed or inherent to such process, product, article, or apparatus.
Furthermore, the term “or” as used herein is generally intended to mean “and/or” unless otherwise indicated. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present). As used herein, including the accompanying appendices, a term preceded by “a” or “an” (and “the” when antecedent basis is “a” or “an”) includes both singular and plural of such term, unless clearly indicated otherwise (i.e., that the reference “a” or “an” clearly indicates only the singular or only the plural). Also, as used in the description herein and in the accompanying appendices, the meaning of “in” includes “in” and “on” unless the context clearly dictates otherwise.
Although the foregoing specification describes specific embodiments, numerous changes in the details of the embodiments disclosed herein and additional embodiments will be apparent to, and may be made by, persons of ordinary skill in the art having reference to this disclosure. In this context, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of this disclosure. The scope of the present disclosure should be determined by the following claims and their legal equivalents.
Claims
1. A method, comprising:
- obtaining, by a configuration cache manager locally from a configuration cache or directly from a database, configuration details for an instance of an application newly spawned in a container orchestration cloud environment, the configuration details comprising a configuration version number, the instance of the application comprising instance data, the instance data comprising a configuration version number;
- validating, by the configuration cache manager, the configuration version number from the configuration details, wherein the validating comprises comparing the configuration version number from the configuration details with the configuration version number from the instance data; and
- responsive to the configuration version number from the configuration details not matching the configuration version number from the instance data, updating the configuration details stored in the configuration cache, the database, or both with the configuration version number from the instance data.
2. The method according to claim 1, further comprising:
- tracking a number of user requests for the application in the container orchestration cloud environment; and
- dynamically spawning the instance of the application to accommodate the number of user requests.
3. The method according to claim 1, further comprising:
- inquiring the database for a status of the instance periodically; and
- updating the database in response to the instance being killed.
4. The method according to claim 1, wherein the database stores configurations of instances of the application.
5. The method according to claim 4, wherein the configurations are managed using hostnames.
6. The method according to claim 5, wherein each of the hostnames is a fully-qualified domain name.
7. The method according to claim 1, wherein the configuration cache is managed by the configuration cache manager.
8. A system, comprising:
- a processor;
- a non-transitory computer-readable medium; and
- instructions stored on the non-transitory computer-readable medium and translatable by the processor for: obtaining, locally from a configuration cache or directly from a database, configuration details for an instance of an application newly spawned in a container orchestration cloud environment, the configuration details comprising a configuration version number, the instance of the application comprising instance data, the instance data comprising a configuration version number; validating the configuration version number from the configuration details, wherein the validating comprises comparing the configuration version number from the configuration details with the configuration version number from the instance data; and responsive to the configuration version number from the configuration details not matching the configuration version number from the instance data, updating the configuration details stored in the configuration cache, the database, or both with the configuration version number from the instance data.
9. The system of claim 8, wherein the instructions are further translatable by the processor for:
- tracking a number of user requests for the application in the container orchestration cloud environment; and
- dynamically spawning the instance of the application to accommodate the number of user requests.
10. The system of claim 8, wherein the instructions are further translatable by the processor for:
- inquiring the database for a status of the instance periodically; and
- updating the database in response to the instance being killed.
11. The system of claim 8, wherein the database stores configurations of instances of the application.
12. The system of claim 11, wherein the configurations are managed using hostnames.
13. The system of claim 12, wherein each of the hostnames is a fully-qualified domain name.
14. The system of claim 8, wherein the configuration cache is managed by a configuration cache manager.
15. A computer program product comprising a non-transitory computer-readable medium storing instructions translatable by a processor for:
- obtaining, locally from a configuration cache or directly from a database, configuration details for an instance of an application newly spawned in a container orchestration cloud environment, the configuration details comprising a configuration version number, the instance of the application comprising instance data, the instance data comprising a configuration version number;
- validating the configuration version number from the configuration details, wherein the validating comprises comparing the configuration version number from the configuration details with the configuration version number from the instance data; and
- responsive to the configuration version number from the configuration details not matching the configuration version number from the instance data, updating the configuration details stored in the configuration cache, the database, or both with the configuration version number from the instance data.
16. The computer program product of claim 15, wherein the instructions are further translatable by the processor for:
- tracking a number of user requests for the application in the container orchestration cloud environment; and
- dynamically spawning the instance of the application to accommodate the number of user requests.
17. The computer program product of claim 15, wherein the instructions are further translatable by the processor for:
- inquiring the database for a status of the instance periodically; and
- updating the database in response to the instance being killed.
18. The computer program product of claim 15, wherein the database stores configurations of instances of the application.
19. The computer program product of claim 18, wherein the configurations are managed using hostnames.
20. The computer program product of claim 19, wherein each of the hostnames is a fully-qualified domain name.
Type: Application
Filed: Sep 23, 2022
Publication Date: Oct 26, 2023
Inventor: Dhatchana Moorthy Sekar (Bangalore)
Application Number: 17/951,639