The present invention relates to the field of configuration file management and more particularly to the modeling and visualization of a system configuration.
Conventionally, computer programs execute within an operating system environment on the bare metal of a computer with the operating system processing the program instructions of the computer program and providing moderated access to the resources of the computer. In the modern era of computing, however, the execution of multiple different programs within the same computer has become an essential requirement. To that end, virtualization is a technology that permits the execution of different computer program instances in different isolated virtual machines, known as “guests” and managed by a supervising process, known as a “hypervisor”. Each virtual machine is isolated from each other virtual machine such that each instance of a computer program executing within a corresponding virtual machine remains completely isolated from other instances of the same program or other programs.
The use of virtualization, however, is not without consequence. Each virtual machine, as a guest operating system, must in of itself, support the operation of an operating system able to host the execution of a corresponding computer program instance. As will be understood, multiple different operating systems executing within corresponding virtual machines in a single computing system can consume substantial resources of the computing system thus affecting the performance of all host applications in their respective virtual machines.
To address the excess resource consumption of virtualization, containerization oftentimes is employed as a suitable substitute—especially where multiple instances of a single computer program are to be deployed within the same host computing system. Unlike virtualization, in containerization, no separate operating system is deployed in each container. Thus, containerization demands less resource consumption and thus higher operational performance for all instance of a computer program executing in a containerized host computing system. Even still, like a virtualized environment, in a containerized environment, each container must be configured with respect to the underlying resources of the host computing system such as permitted memory utilization, processor utilization, persistent storage, access control and the like. Whether in a virtualized environment or a containerized environment, managing the configuration of multiple containers within multiple containerized computing systems presents an enormous challenge.
In order to manage a coordinated configuration of a containerized host environment, standardized methods of defining different configurations have been developed so that a container may be configured simply in reference to a configuration definition and so that a configuration of a container may be expressed as a definition. Popularly, YAML as a serialization language is employed to describe a configuration of a container. A YAML conformant document is able to be parsed and its content interpreted so as to produce a defined configuration. Notably, while reading a YAML conformant configuration file is easy enough, reading and comparing multiple different YAML conformant configuration files in order to best understand the differences and similarities therebetween can become increasingly difficult if not impossible for many different configurations for many different containers.
Embodiments of the present invention address deficiencies of the art in respect to configuration file management and provide a novel and non-obvious method, system and computer program product for YAML configuration exploration. In an embodiment of the invention, a YAML configuration exploration method includes importing from fixed storage into memory of a computing system, a multiplicity of YAML conformant configuration files, parsing each of the imported YAML conformant configuration files and storing each element of each of the parsed YAML conformant configuration files in a database. The method additionally includes generating a data model from the stored elements in the database. Finally, the method includes presenting a data visualization of at least a portion of the generated data model including elements from at least two different ones of the imported YAML conformant configuration files.
In one aspect of the embodiment, the method additionally includes showing in the data visualization, a comparison of a configuration reflected by a comparison of two or more different imported YAML conformant configuration files. To that end, the comparison may indicate a deviation of the configuration of the one of the imported YAML conformant configuration files from a standard configuration reflected by another of the imported YAML conformant configuration files. For instance, the YAML conformant configuration files each may reflect a configuration of a corresponding short-lived Linux container.
Hence, the presentation of the data visualization may be a data visualization of at least a portion of the generated data model that includes elements from one of the imported YAML conformant configuration files reflecting a configuration of a contemporaneously executing short-lived Linux container and elements from another of the YAML conformant configuration files reflecting a configuration of a similar previously executed short-lived Linux container. Finally, in yet another aspect of the embodiment, the YAML conformant configuration file of the similar previously executed short-lived container may be applied to the contemporaneously executing short-lived Linux container responsive to a determination of sub-standard performance in the contemporaneously executing short-lived Linux container.
In another embodiment of the invention, a YAML configuration exploration data processing system includes a host computing platform that includes one or more computers, each with memory and at least one processor. The system additionally includes a database accessible in the host computing platform and a data modeling system executing in the host computing platform and adapted to model data in the database and to generate data visualizations of the modeled data. Finally, the system includes a YAML configuration exploration module also executing in the host computing platform, the module including computer program instructions enabled upon execution to import from fixed storage into the memory of the host computing platform, a multiplicity of YAML conformant configuration files, to parse each of the imported YAML conformant configuration files and store each element of each of the parsed YAML conformant configuration files in the database, to direct the data modeling system to generate a data model from the stored elements in the database, and to direct the data modeling system to present a data visualization of at least a portion of the generated data model including elements from at least two different ones of the imported YAML conformant configuration files.
Additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The aspects of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
The accompanying drawings, which are incorporated in and constitute part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention. The embodiments illustrated herein are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown, wherein:
Embodiments of the invention provide for YAML configuration exploration. In accordance with an embodiment of the invention, two or more different YAML conformant configuration files are parsed into different elements for each of the files and the different elements are stored in a database. A model then may be generated from the stored elements in the database. Finally, a data visualization of at least a portion of the generated data model may be presented including elements from at least two different imported YAML conformant configuration files. In this way, the differences and similarities between the YAML conformant configuration files may be visually observable.
In further illustration,
The process described in connection with
Notably, a YAML configuration exploration visualization module 300 executes in the memory of the host computing system 210. The YAML configuration exploration visualization module 300 includes computer program instructions enabled during execution in the memory of the host computing system 210 to parse each of the YAML configuration files 260 into their constituent elements and to insert those elements into the database 240. The program instructions are further enabled to generate a data model from the elements stored in the database 240. Finally, the program instructions are enabled to present a data visualization of the data model in a display of the host computing system 210.
To that end, the data visualization can include a visualized comparison of a configuration reflected by one of the different ones of the YAML configuration files 260 with another configuration reflected by another of the YAML configuration files 260 so that similarities and differences therebetween can be recognized by a comparison of a visualization of elements of each of the YAML configuration files 260 in the data model. Alternatively, to the extent that one of the YAML configuration files 260 reflects a standardized configuration of a container within the containerized computing environment, the comparison indicates a deviation from the standard configuration by another configuration reflected by the other of the YAML configuration files 260. As yet another alternative, the visualization can include a visualization of the elements of one of the YAML configuration files 260 for a contemporaneously executing container in the containerized computing environment 250 as compared to the elements of another of the YAML configuration files 260 for a previously executed container in the containerized computing environment 260. In the latter instance, the visualization can be presented in response to a determination of sub-standard performance in the contemporaneously executing container in the containerized computing environment 250.
In even yet further illustration of the operation of the YAML configuration exploration visualization 300,
In block 360, a data model is then generated from the elements in the database. Then, in block 370 a specific visualization is selected such as a visualization comparing elements of two contemporaneously executing containers, one contemporaneously executing container and a previously executing container, or a contemporaneously executing container and a standard container. Optionally, the visualization can be selected in response to a determination that the contemporaneously executing container performs below a threshold value. Finally, in block 380, the selected visualization is executed so as to display the visualization in a display of the host computing system.
The present invention may be embodied within a system, a method, a computer program product or any combination thereof. The computer program product may include a computer readable storage medium or media having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention. The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network. The computer readable program instructions may execute 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 the remote computer or server. Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It 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.
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, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein includes an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
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 apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart 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 flowchart or block diagrams may represent a module, segment, or portion of instructions, which includes one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
Finally, 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 “includes” and/or “including,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Having thus described the invention of the present application in detail and by reference to embodiments thereof, it will be apparent that modifications and variations are possible without departing from the scope of the invention defined in the appended claims as follows: