<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[GEHC Tech India Blog - Medium]]></title>
        <description><![CDATA[Learn more about Healthcare Technology updates, trends and innovations from GEHC Tech India that enables precision health in diagnostics, therapeutics and monitoring through intelligent devices, data analytics, applications and services. - Medium]]></description>
        <link>https://medium.com/gehc-tech-india-blog?source=rss----3d7b6c627ff6---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>GEHC Tech India Blog - Medium</title>
            <link>https://medium.com/gehc-tech-india-blog?source=rss----3d7b6c627ff6---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:35:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/gehc-tech-india-blog" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Super-resolution using Deep Learning methods: A Survey]]></title>
            <link>https://medium.com/gehc-tech-india-blog/super-resolution-using-deep-learning-methods-a-survey-80b7a86cba35?source=rss----3d7b6c627ff6---4</link>
            <guid isPermaLink="false">https://medium.com/p/80b7a86cba35</guid>
            <category><![CDATA[image-enhancement]]></category>
            <category><![CDATA[super-resolution]]></category>
            <category><![CDATA[image-super-resolution]]></category>
            <category><![CDATA[medical-imaging]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Rohan Patil]]></dc:creator>
            <pubDate>Wed, 16 Mar 2022 01:55:34 GMT</pubDate>
            <atom:updated>2022-03-16T01:55:34.014Z</atom:updated>
            <content:encoded><![CDATA[<p>Image super-resolution refers to the process of increasing the resolution of digital images. While super-resolution can be achieved by passing multiple low-resolution images (reference images) to algorithms, this article mainly focuses on single image supervised super-resolution (SR) techniques. While this problem has been tackled using analytical methods in the Computer Vision community [1][2], recent literature shows an upsurge in the usage of deep learning techniques to perform super-resolution [3][4]. In the field of medical imaging, image resolution is often limited by the constraints on acquisition time, radiation level and hardware costs. Hence, super-resolution techniques come to the rescue, to achieve desirable perceptual quality of the images acquired in such constrained environments.</p><h3>Problem Definition</h3><p>Super-resolution aims at recovering high-resolution (HR) images from the corresponding low-resolution (LR) images. The degradation process of generating LR from its HR counterpart can be modeled as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*b9tQspgAsQUR5bs8rCDFUw.png" /></figure><p>where <em>x </em>and <em>y </em>denote the HR and LR images respectively, <em>f </em>is the degradation function and <em>s </em>is the scale factor. The mathematical representation of <em>f </em>differs from one domain to another. A general formulation of f can be expanded in the above equation to get :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/189/1*cj3lNASkSHinMWF_i_LTwQ.png" /></figure><p>where * refers to the two-dimensional convolution operator with blur kernel <em>k</em>, followed by a down-sampling operator with a scale factor <em>s</em>, and <em>n </em>refers to the additive white Gaussian noise.</p><p>Based on this formulation, the super-resolution (SR) techniques can be divided into two categories — Non-blind SR and Blind SR, depending on whether the target degradation function is known or not. Although the Blind SR techniques try to bridge the generalization gap of the super-resolving methods from simulation to real-world data, they are out of the scope of this article. An interested reader can refer to [5] for such methods.</p><p>In the literature of SR techniques, and for fair comparison among different methods, the degradation function <em>f </em>is assumed to bicubic down-sampling :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*EuE0vZgSwfSGTRyIpnkFxA.png" /></figure><p>To this end, the objective of SR is to solve the inverse problem of restoring <em>x</em> back from <em>y </em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*v7rd3bxAU12ZNkPFTPGEWw.png" /></figure><p>where 𝜃 refers to the parameters of the super-resolution model and L refers to the loss function used to optimize it with 𝜙(𝜃) being the regularization term, and 𝜆 is the tradeoff value. Due to the inverse nature of the definition, super-resolution is inherently an ill-posed problem.</p><h3>Deep learning techniques for natural images</h3><p>In the last section, we formulated the inverse problem of SR and discussed its ill-posed nature. Such a problem was conventionally solved by constraining the solution space using well-defined prior information, typically learnt using example-based methods. As deep learning methods started evolving for low-level computer vision tasks, many prominent works were published that demonstrated the application of deep learning methods for solving the SR problem. This section touches upon some of the landmark papers, aimed at solving the SR problem for natural images. Readers are encouraged to follow the references to get a detailed understanding of each of these methods.</p><p><strong>A) Image Super-Resolution Using Deep Convolutional Networks [6]</strong></p><p>The conventional example-based methods had three typical steps in their solution pipeline:</p><p>i.<em> Patch extraction</em>: Dense cropping of overlapping patches from the input image and preprocessing them.</p><p>ii. <em>Encoding the patches</em>: Using a dictionary built on low-resolution images, with the patches being encoded to derive sparse coefficients.</p><p>iii. <em>Reconstruction</em>: The coefficients are decoded using a dictionary built on high-resolution images, and corresponding high-resolution patches are reconstructed.</p><p>Dong et al. [6] published one of the first works to use convolutional neural networks for the SR problem. The authors claimed and demonstrated that the above solution pipeline can be realized by a deep convolutional neural network, where each of the three tasks — viz. Patch extraction and representation, Non-linear mapping, and Reconstruction — are learnt implicitly by convolutional layers of a deep learning network. They proposed a simple three layer CNN named as Super-Resolution Convolutional Neural Network (SRCNN) that directly learns each of the three tasks respectively, as shown in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*tErw_jiFezddV51fF6ImAQ.png" /><figcaption>Fig 1. SRCNN architecture</figcaption></figure><p>The network takes a pre-interpolated image as an input and refines it further. The CNN based solution provides many advantages over the conventional dictionary-based method. It is comparatively faster, provides better reconstruction quality, and has performance that improves with more training data and deeper architecture. The authors also compared the effect of using different kernel sizes and number of layers, to analyze the effectiveness of the proposed schema.</p><p>This paper laid a cornerstone in the usage of deep learning methods to solve the SR problem, and inspired many other works in years to come.</p><p><strong>B) Enhanced Deep Residual Networks for Single Image Super-Resolution [7]</strong></p><p>After the success of deep neural network proposed by Dong et al. [6] in solving the SR problem, many researchers attempted to improve the network architecture and learning objectives to further improve the reconstruction quality. Meanwhile, deep convolutional networks witnessed a plethora of improvements and enhancements in terms of architecture, learning and optimization methods. With the introduction of residual connections [8] and the resulting possibility of training even deeper networks, many works [9][10] were proposed that used residual networks for solving the SR problem. However, the challenge in this was that employing deeper and wider networks resulted in high memory requirement and training instability, if used directly without any architectural modification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*5_xpNGO_RPYXnIMiN8E4Cg.png" /><figcaption>Fig. 2 a) The schema of the residual block proposed in the paper. b) EDSR architecture</figcaption></figure><p>With the objectives of better reconstruction quality, stable convergence and lesser memory footprint in mind, Lim et al. [7] proposed a deeper and wider convolutional neural network, named as Enhanced Deep Residual Network for Image SR (EDSR) that employed modified residual blocks and achieved state-of-the-art performance for SR. These modified residual blocks as shown in Figure 2(a) underline two important changes by the authors:</p><p>i. <em>Removing the Batch Normalization layers</em>: Batch normalization layers reduce the range flexibility, and also increase the memory footprint by the same amount as their preceding convolutional layers</p><p>ii. <em>Adopting residual scaling</em>: Constant scaling layers are placed in each residual block to stabilize the training procedure.</p><p>The complete network architecture is shown in Figure 2(b). On the optimization front, the authors empirically suggest that using L1 loss provides better convergence and reconstruction quality than L2 loss. The authors also proposed a multi-scale model in the same paper which reconstructs various scales of HR images. With the power of modified residual blocks, deeper network and better loss function, the method won the NTIRE 2017 SR [11] challenge in the second track of the competition.</p><p><strong>C) Image Super-Resolution Using Very Deep Residual Channel Attention Networks [12]</strong></p><p>Although deeper CNNs have shown better reconstruction for the SR task, they come with a disadvantage of increased memory consumption and training instability. Zhang et al. noted that the existing deep learning-based solutions for SR treat channel-wise features equally, which can prohibit the representation capability and flexibility in separating the information that needs to be restored and the information that needs to be retained. SR can be thought of as an image restoration problem, where the lost high frequency information in the LR image needs to be restored by the model. Hence, it becomes natural to think of a technique that can pay attention to the high frequency components in the image and retain the original low frequency components already present in the LR image. Zhang et al. [12] proposed a Residual Channel Attention Network (RCAN) exactly on this basis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*zyzBy4WSmW48oa1yU79DrA.png" /><figcaption>Fig. 4 a) Residual CA Block. b) RCAN network architecture</figcaption></figure><p>The important features of this method are — </p><p>a) <em>Residual-in-residual (RIR) structure</em>: RCAN mainly consists of three parts — shallow feature extractor (head), RIR module for deep feature extraction (body) and upscale module with reconstructor (tail). The core of the network is its body, which is an RIR module consisting of long and short skip connections, to help increase the network depth and still maintain training stability. The overall structure is as shown in Figure 4b).</p><p>b) <em>Channel Attention (CA) for frequency rescaling</em>: The authors are the first ones to apply Channel Attention method in the form of Squeeze-and-Excitation blocks for SR problem as shown in Figure 4a). The CA module consists of a global dimensionality reducer, followed by a series of convolutional layers that squeeze and excite features on channel dimension. This contraction and expansion of channel axis, helps to emphasize the features that are needed for better reconstruction.</p><p>As a result, the model outperformed all the previously proposed techniques with the advantage of having lesser parameters compared to most of the earlier network architectures. RCAN was also further used and modified for various other image restoration tasks [15], and the concept of Channel Attention is widely used till date in different domains [16][17].</p><p><strong>Comparison: Performance v/s Memory consumption</strong></p><p>As a result, the model outperformed all the previously proposed techniques with the advantage of having lesser parameters compared to most of the earlier network architectures. RCAN was also further used and modified for various other image restoration tasks [15], and the concept of Channel Attention is widely used till date in different domains [16][17].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*T7n0h0S8uWhFoLfKuTyG8g.png" /><figcaption>Table 1 Performance comparison on different test datasets [7]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*LGz0MKTDSitk6hRg8GBGiA.png" /><figcaption>Figure 5 Performance v/s Model size comparison [7]</figcaption></figure><p>The success of recent networks not only demands better performance, but also feasible memory requirements for them to run on limited compute. RCAN is clearly better in both these aspects, as compared to the other two solutions. Further research in this domain continues to be targeted towards proposing methods that can achieve sharper, visually better-looking images while maintaining lesser memory footprint during training and inference.</p><h3>Deep learning techniques for medical images</h3><p>Over-exposure to radiation dosage, longer scan times, increased patient discomfort and scanner hardware constraints, are some of the prominent reasons that make developing super-resolution methods extremely important in the world of medical imaging. While researchers continued developing deep learning-based methods that were trained and evaluated on natural images, many works were also proposed to apply such methods with appropriate modifications on medical images.</p><p>This section covers some of the papers in this direction, which shows promising results for employing deep learning methods for SR in medical imaging.</p><p><strong>A) Super-Resolution Musculoskeletal MRI Using Deep Learning [16]</strong></p><p>Clinical musculoskeletal scans offer good in-plane resolution, but there is always a risk associated for missing subtle lesions in slices with a high section thickness. Given a thick slice image, Chaudhari et al. [16] proposed a deep learning-based method, named <em>DeepResolve</em>, that generates a thin-slice image with the same field of view and matrix size. Inspired from the solution proposed by Kim et al. [17] for natural images, the authors employ a similar network but replace the 2D convolutions with their 3D counterparts to capture additional spatial information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*wbqLie0IVylGgAzbZMREJg.png" /><figcaption>Fig. 6 DeepResolve architecture</figcaption></figure><p>This method takes in pre-interpolated volumes as input, thus running at a risk of increased memory footprint. The reconstructed high-resolution thin-slice images obtained from <em>DeepResolve</em>, outperform simple interpolation-based and other shallow CNN-based methods. The authors also conducted a reader study with two musculoskeletal radiologists, to review the diagnostic quality of the images obtained from <em>DeepResolve</em>. These images were consistently rated higher by radiologists even with a down sampling factor of three, which shows the efficacy of this method.</p><p><strong>B) Efficient and Accurate MRI Super-Resolution using a GAN and 3D Multi-Level Densely Connected Network [18]</strong></p><p>The advances in deep neural networks targeted towards solving the SR problem, mainly included architectural modifications or learning objectives. However plain adaptation of these methods for medical 3D volumes, increases memory consumption and training issues. Also, these methods are usually trained to optimize L1 loss or L2 loss, in order to achieve better performance metrics. But these metrics do not necessarily represent the visual quality of the resulting images. Chen et al. [18] targeted these two objectives and proposed a 3D multi-level densely connected network, abbreviated as m-DCSRN, that is light-weight, and produces sharper images with better perceptual quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*Eznn60vjL-Yh3_C1e6KowQ.png" /><figcaption>Fig. 5 m-DCSRN architecture</figcaption></figure><p>In this paper, the authors proposed a 3D densely connected SR network for structural brain MR images. Inspired by the SR networks based on dense connections in natural image domain, the authors employed a similar network for 3D patches extracted from brain MR volumes. Figure 5 shows the network architecture, which consists of pairs of Dense blocks and Compressor modules. Moreover, this network was trained using a combination of pixel-based loss and adversarial loss. The features from all the former layers were made visible to the latter layers. During test time, the inference was done on patches which were then merged without overlapping. This combination of 3D dense network and a loss function targeted towards optimizing perceptual quality, leads to visually sharper images with lesser memory consumption.</p><h3>Discussion</h3><p>Deep-learning methods have become the de-facto choice for solving the SR problem. The field has evolved tremendously from simple non-linear mapping networks, to complex attention-based methods. Also, these methods have shown remarkable results in medical imaging. Not only do the resulting images have better image quality metrics, but they also have been picked up consistently by radiologists in the reader study conducted by the authors. With the limitations of radiation dosage, acquisition time, patient discomfort and hardware constraints, deep-learning methods offer an intelligent alternative to acquire images with high in-plane and/or through-plane resolution depending on the anatomy and purpose of the scan.</p><p>The methods suffer from generalization gap, as they tend to overfit to the blurring kernel used during the training process. Hence, if the images at the test time are blurred differently as compared to the training images, the performance of these models deteriorate [19]. The field is now moving towards solving this real-world SR problem, where the target blur kernel can be unknown [5] and more complicated than that used in the training simulation.</p><h3><strong>References</strong></h3><ol><li>Chang, Hong, Dit-Yan Yeung, and Yimin Xiong. “Super-resolution through neighbor embedding.” Proceedings of the 2004 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2004. CVPR 2004. Vol. 1. IEEE, 2004.</li><li>Bevilacqua, Marco, et al.. “Low-complexity single-image super-resolution based on nonnegative neighbor embedding.” (2012): 135–1.</li><li>Ha, Viet Khanh, et al.. “Deep learning based single image super-resolution: A survey.” International Conference on Brain Inspired Cognitive Systems. Springer, Cham, 2018.</li><li>Wang, Zhihao, Jian Chen, and Steven CH Hoi. “Deep learning for image super-resolution: A survey.” IEEE transactions on pattern analysis and machine intelligence (2020).</li><li>Liu, Anran, et al.. “Blind Image Super-Resolution: A Survey and Beyond.” arXiv preprint arXiv:2107.03055 (2021).</li><li>Dong, Chao, et al.. “Image super-resolution using deep convolutional networks.” IEEE transactions on pattern analysis and machine intelligence 38.2 (2015): 295–307.</li><li>Lim, Bee, et al.. “Enhanced deep residual networks for single image superresolution.” Proceedings of the IEEE conference on computer vision and pattern recognition workshops. 2017.</li><li>He, Kaiming, et al.. “Deep residual learning for image recognition.” Proceedings of the IEEE conference on computer vision and pattern recognition. 2016.</li><li>Kim, Jiwon, Jung Kwon Lee, and Kyoung Mu Lee. “Accurate image super-resolution using very deep convolutional networks.” Proceedings of the IEEE conference on computer vision and pattern recognition. 2016.</li><li>Kim, Jiwon, Jung Kwon Lee, and Kyoung Mu Lee. “Deeply-recursive convolutional network for image super-resolution.” Proceedings of the IEEE conference on computer vision and pattern recognition. 2016.</li><li>Timofte, Radu, et al.. “NTIRE 2017 challenge on single image super-resolution: Methods and results.” Proceedings of the IEEE conference on computer vision and pattern recognition workshops. 2017.</li><li>Zhang, Yulun, et al.. “Image super-resolution using very deep residual channel attention networks.” Proceedings of the European conference on computer vision (ECCV). 2018.</li><li>Zhang, Yulun, et al.. “Residual non-local attention networks for image restoration.” arXiv preprint arXiv:1903.10082 (2019).</li><li>Lee, Joonhyung, et al.. “Deep learning fast MRI using channel attention in magnitude domain.” 2020 IEEE 17th International Symposium on Biomedical Imaging (ISBI). IEEE, 2020.</li><li>Li, Hao, and Jianan Liu. “Edge, Structure and Texture Refinement for Retrospective High Quality MRI Restoration using Deep Learning.” arXiv preprint arXiv:2102.00325 (2021).</li><li>Chaudhari, Akshay S., et al.. “Super‐resolution musculoskeletal MRI using deep learning.” Magnetic resonance in medicine 80.5 (2018): 2139–2154.</li><li>Kim, Jiwon, Jung Kwon Lee, and Kyoung Mu Lee. “Accurate image super-resolution using very deep convolutional networks.” Proceedings of the IEEE conference on computer vision and pattern recognition. 2016.</li><li>Chen, Yuhua, et al.. “Efficient and accurate MRI super-resolution using a generative adversarial network and 3D multi-level densely connected network.” International Conference on Medical Image Computing and Computer-Assisted Intervention. Springer, Cham, 2018.</li><li>Cai, Jianrui, et al.. “Toward real-world single image super-resolution: A new benchmark and a new model.” Proceedings of the IEEE/CVF International Conference on Computer Vision. 2019.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80b7a86cba35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gehc-tech-india-blog/super-resolution-using-deep-learning-methods-a-survey-80b7a86cba35">Super-resolution using Deep Learning methods: A Survey</a> was originally published in <a href="https://medium.com/gehc-tech-india-blog">GEHC Tech India Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Chaos Engineering [Network Reliability Myths & Fault Injections] -Part 3]]></title>
            <link>https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-network-reliability-myths-fault-injections-part-3-f887c7f761db?source=rss----3d7b6c627ff6---4</link>
            <guid isPermaLink="false">https://medium.com/p/f887c7f761db</guid>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[resilency]]></category>
            <category><![CDATA[network-fault-injections]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Shiju Nair]]></dc:creator>
            <pubDate>Tue, 21 Dec 2021 12:22:23 GMT</pubDate>
            <atom:updated>2021-12-21T12:22:23.322Z</atom:updated>
            <content:encoded><![CDATA[<p>This is link to first two series for reading :</p><ul><li><a href="https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part1-a0f2dda30d8b">Demystifying Chaos Engineering -Part1</a></li><li><a href="https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part-2-4bbd2eac4a9f">Demystifying Chaos Engineering -Part 2</a></li></ul><p>In this article, we will share knowledge on how to do fault injections which simulates different types of network disruptions.</p><p>Often, we believe that network availability is implicit, or failure caused by network is transient in nature.</p><p>In other words, we categorize some common misconceptions as,</p><blockquote>Ø The network is always reliable and secure.</blockquote><blockquote>Ø The latency could be zero.</blockquote><blockquote>Ø Bandwidth is infinite.</blockquote><blockquote>Ø Topology doesn’t change.</blockquote><blockquote>Ø Transport cost is zero.</blockquote><blockquote>Ø The network is homogeneous.</blockquote><p>Despite above assumptions, network disruptions often occur which could lead to failures and bad user experience. It is therefore imperative that services or servers are resilient to these types of failures, and design controls built into place can reliably handle such types of network disruption or failures.</p><p>Chaos experiments help in simulating these types of network conditions and uncover reliability of fault tolerance implemented.</p><p><strong>Designing Chaos Experiments to simulate network failures</strong></p><p>While designing Chaos experiments for network failures, we used toxiproxy [https://github.com/Shopify/toxiproxy] as a proxy server. This framework simulates network conditions and chaostoxi extensions, which provide client APIs to inject different types of failures.</p><p>In this article, we will segment the knowledge on how toxiproxy and extensions, can be used in Kubernetes cluster to simulate network failures between,</p><p>· Kafka clients and Kafka brokers</p><p>· RabbitMQ &amp; application</p><p>· Application and Scylla DB.</p><h3>Experimenting network failures between Kafka Brokers and Kafka Clients.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KlwgDTIbcMUjvp9mWEhITw.png" /></figure><p><strong>Pre-set up activities -</strong></p><p><strong>1. Installing Toxiproxy</strong></p><p>Toxiproxy can be installed as Kubernetes pods inside the k8s cluster.</p><p>Follow the below steps for setup-</p><p>· Create separate namespace for deploying the toxiproxy pods</p><p>Ø kubectl create ns networkchaos</p><p>· Download the charts and deploy three replicas for toxiproxy pods</p><p>Ø helm install -name toxiproxy chart/ — namespace networkchaos</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*jzECLigWZg4VF1I2yBxUlg.png" /></figure><p>Ø All three pods will have default port 8084 on which toxiproxy can be listening</p><p>Ø During runtime, Chaos controller can send request to 8084 port for creating proxies for each Kafka client</p><p>Ø Proxy created can be listening on 9093 port</p><p><strong>· Create three separate service endpoints for each of the three pods</strong></p><p>Ø Expose 9093 ports using Node ports 31645,31646,31647 port, for each of the toxiproxy service endpoint.</p><p>Ø Expose 8084 ports using Node ports 30723, 31775, 30057 port, for each of toxiproxy service endpoint.</p><p>§ kubectl apply -f toxiproxy-toxiproxy0–0 toxiproxy-toxiproxy1–1 toxiproxy-toxiproxy2–2</p><p><strong>2. Patching KAFKA BROKERS</strong></p><p>Kafka directs the endpoint based on the incoming request of the port number.</p><p>Below is the configuration to enable advertised<em>.listener</em>, <em>listeners</em> and</p><p><em>listener.security.protocol.map</em> <em>&amp; inter.broker.listener.name</em> for enabling it.</p><p>Patch the Kafka Brokers by exporting KAFKA_ADVERTISED_LISTENERS &amp; KAFKA_LISTENERS</p><blockquote><strong>· export KAFKA_INTER_BROKER_LISTENER_NAME=SASL_PLAINTEXT &amp;&amp; \</strong></blockquote><blockquote><strong>· export KAFKA_ADVERTISED_LISTENERS=SASL_PLAINTEXT://${POD_IP}:9092, kafkaproxy${KAFKA_BROKER_ID}://toxiproxy-toxiproxy${KAFKA_BROKER_ID}-${KAFKA_BROKER_ID}: $((31645 + ${KAFKA_BROKER_ID})) &amp;&amp; \</strong></blockquote><blockquote><strong>· export KAFKA_LISTENERS=SASL_PLAINTEXT://0.0.0.0:9092,kafkaproxy$ {KAFKA_BROKER_ID}://0.0.0.0:9093 &amp;&amp; \</strong></blockquote><blockquote><strong>· export KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=SASL_PLAINTEXT: SASL_PLAINTEXT, kafkaproxy${KAFKA_BROKER_ID}: SASL_PLAINTEXT &amp;&amp; \</strong></blockquote><p>When Kafka broker receives the request to port 9092, it will advise <em>“</em><strong>SASL_PLAINTEXT://${POD_IP}:9092</strong><em>”</em> as a listener endpoint.</p><p>In case it receives request to either of port 31645 or 31646 or 31647, it will advise “<strong>kafkaproxy${KAFKA_BROKER_ID}://toxiproxy-toxiproxy${KAFKA_BROKER_ID}-${KAFKA_BROKER_ID}: $((31645 + ${KAFKA_BROKER_ID}))</strong>”. as a listener endpoint.</p><p><strong>3. Install Toxiproxy extension as part of chaos toolkit.</strong></p><p>This extension allows you to setup toxi proxy probes and methods from chaos toolkit.</p><p><strong>Running Chaos experiments-</strong></p><p>At runtime-</p><p>· Patch the Kafka client’s application so that it points the toxiproxy server to 9093 port.</p><p>Ø kubectl set env deployment/kafkaClientApp KAFKA_BROKER_API=toxiproxy-toxiproxy0–0.networkchaos:9093 -n &lt;namespace&gt;</p><p>· Update experiment.json files with IP address of Kafka brokers</p><p>Ø kubectl get po -A -o wide| grep kafka-’[[:digit:]]’ | awk ‘{print $7}’</p><p>· Execute experiment.json files using chaos run command.</p><h4><strong>Experiment.json files covers below type of Network condition simulations</strong></h4><p>1. <strong>Bandwidth Degradation</strong>- Limit the bandwidth of an upstream connection.</p><p>I. In the method section of the experiment file, first “action” type is to create a proxy call kafkaproxy1 on toxiproxy server which will listen on port 9093 for any incoming request from KAFKA clients, and then forward it to Kafka Broker which is the upstream service listening on port 9093.</p><p>II. Second “action” type induces the bandwidth degradation of 50% between the toxiproxy server and upstream server and waits for 200 secs before the bandwidth degradation is tear down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*zpEjvXBqGaEfVXYpAV2VBQ.png" /></figure><p>The purpose of the network condition is to understand the resiliency of the service when network bandwidth degrades and how it impacts the services.</p><p><strong>2.</strong> <strong>Latency- Add a delay and jitter to all data going through the proxy.</strong></p><p>I. In the method section of the experiment file, first “action” type describes creation of proxy server as mentioned above.</p><p>II. Second “action” type induces latency of 12000 ms between the packets, with jitter of 2000 ms between the toxiproxy server and upstream server. It then waits for 200 secs before the latency and jitter is removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*aBK3JUdYZJieS2TAsj6SBQ.png" /></figure><p><strong>3.</strong> <strong>Limiter- Close’s connections when transmitted data exceeds the number of bytes defined as limit.</strong></p><p>I. In the method section of the experiment file, first “action” type describes creation of proxy server and listening port as mention above.</p><p>II. Second “action” type simulates TCP connection getting closed after 1000 bytes of data is sent between the toxiproxy server and upstream server, and then waits for 200 secs before the connection is restored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*KZJy0EoAaeHeFGOENcL2LA.png" /></figure><p><strong>4.</strong> <strong>Slow Connection Close-Simulating delayed TCP connection close.</strong></p><p>I. In the method section of the experiment file, first “action” type describes creation of proxy server and listening port as mentioned above.</p><p>II. Second “action” type simulates delayed TCP connection close between the client and server, by 2000 ms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*fdOEQGU0-ZsWBNBF9AOhkQ.png" /></figure><p>Few graphs which reflect network variations induced by above methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*Z2tj_YjLsu4M9mmBcSYMGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*FXzRb89PlysHSnKf9BQ4zQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*kVRYDqP8xxRWA63F7J4Qzw.png" /></figure><h3>Experimenting network failures between RabbitMQ and Application Services.</h3><p><strong>Pre-setup activities -</strong></p><p>Steps done above for Kafka brokers are a pre-requisite. Additionally, follow the below steps as part of pre-setup activities.</p><p>1. Update experiment files with node port mapped for 8474 in config section.</p><p><strong>toxiproxy-toxiproxy-0–0.networkchaos</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*XFW2zQXhsPcc0kwkwK70rA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*fiz8wgSlQzAQ2xARQ0OApw.png" /></figure><p><strong>Running Chaos experiments-</strong></p><p>· At runtime, Update RabbitMQ service host name with toxiproxy svc</p><p>rabbitmq-service-host: toxiproxy-toxiproxy-0.networkchaos</p><p>· Execute experiment.json files using chaos run command for different network conditions as shown above for Kafka.</p><h3>Experimenting network failures between Application and Scylla DB</h3><p><strong>Pre-setup activities -</strong></p><p>1. Update experiment files with node port mapped for 8474 in config section.</p><p><strong>toxiproxy-toxiproxy-2–2.networkchaos**</strong></p><ul><li><strong>*Note-</strong>We can use any one of the <strong>toxiproxy </strong>svc</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*Sz5LBTNfBTkS8rUOYeAtgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*vS8L97jDu1ebEZashzoU4A.png" /></figure><p><strong>Running Chaos experiments-</strong></p><p>· At runtime, Update Cassandra IP with toxiproxy svc [CASSANDRA_IP=toxiproxy-toxiproxy2–2.networkchaos]</p><p>· Execute experiment.json files using chaos run command for different network conditions as shown above for Kafka.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*yi-hJvrf3JQEmYP48bkC5w.png" /></figure><p><strong>TO CONCLUDE…</strong></p><p>Building a system which is resilient to network disruptions and failures, is critical for increased customer satisfaction. Chaos engineering helps to achieve this by simulating these failure conditions and validating the reliability of the design controls in place. During this process, it also helps to improve the observability of the system to understand the network variations and root cause of the problem.</p><p>References :</p><ul><li><a href="https://github.com/Shopify/toxiproxy">GitHub - Shopify/toxiproxy: A TCP proxy to simulate network and system conditions for chaos and resiliency testing</a></li><li><a href="https://chaostoolkit.org/drivers/toxiproxy/">ToxiProxy -</a></li></ul><p><strong>Author — </strong>Shiju Nair</p><p>Thanks, Sathish Tiptur for your help and Inputs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f887c7f761db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-network-reliability-myths-fault-injections-part-3-f887c7f761db">Demystifying Chaos Engineering [Network Reliability Myths &amp; Fault Injections] -Part 3</a> was originally published in <a href="https://medium.com/gehc-tech-india-blog">GEHC Tech India Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Critical Need For MLOps To Manage AI Lifecycles]]></title>
            <link>https://medium.com/gehc-tech-india-blog/the-critical-need-for-mlops-to-manage-ai-lifecycles-c57425ded856?source=rss----3d7b6c627ff6---4</link>
            <guid isPermaLink="false">https://medium.com/p/c57425ded856</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mlflow]]></category>
            <category><![CDATA[kubeflow]]></category>
            <dc:creator><![CDATA[Arpit Srivastava]]></dc:creator>
            <pubDate>Tue, 21 Dec 2021 12:21:21 GMT</pubDate>
            <atom:updated>2021-12-21T12:21:21.724Z</atom:updated>
            <content:encoded><![CDATA[<p>MLOps is a means and enabler of traceable ML pipelines. With increasing focus and need for making end-to-end model lifecycles traceable, reproducible, and auditable, especially to vet AI properly and make sure that no biases creep in, the need is to move away from a manual experiment management effort to a more automated system.</p><p>Let’s take an example of the challenges involved in productionizing a model developed using a conventional ML pipeline –</p><p>· <em>Data Traceability</em> — In a conventional pipeline, data traceability is often hard-to-establish as the steps involved from data gathering to training on that data, are often disjointed and involve a lot of manual moving around of data.</p><p>· <em>Experiment Tracking</em> — Once the training is ready to begin, the experimental nature of ML, makes it important to have a means to track and version different iterations of the model building process. But this is something that conventional ML pipelines often struggle with as there is no central experiment management.</p><p>· <em>Model Deployment and Monitoring</em> — For models that get deployed to production, a conventional pipeline generally doesn’t have the set of tools that can seamlessly deploy models to the target and facilitate retraining if improvement is needed based on actual performance metrics.</p><p>With regards to this, there has been an increased demand for MLOps resources and tools to streamline and manage AI lifecycle, and make it easier to transition from development to production stage. The transition to production, both from a QMS and regulatory perspective which is the case for leveraging MLOps, increases manifold.</p><p>The open-source community has been actively producing tools, built around enabling MLOps with least amount of friction. The very popular MLFlow project and ClearML suite are examples of projects which aim to streamline experiment management process. Meanwhile, Kubeflow with its recent 2021 releases has introduced ML focused pipelining features. These integrate phenomenally with existing and popular data science tools such as Jupyter, and container orchestration tools such as Kubernetes to create a very coherent MLOps experience.</p><p>The following section will focus on some of the major features of popular open-source MLOps tools.</p><p><a href="https://mlflow.org/"><strong>MLFlow</strong></a><strong> –</strong></p><p>MLfow enables MLOps by taking care of the following components –</p><p>Ø Tracking a code run in the form of an experiment construct which allows the user to peruse low-level metadata such as the training environment, and hyperparameters used. High-level results such as the final artifacts are also perused and associated with a unique experiment ID.</p><p>Ø Tracking the code itself by means of a Project construct which allows the user to package the code and its dependencies, facilitating collaboration and reuse.</p><p>Ø Deployment of trained models as MLFlow models opening Model Evaluation and performance metrics that capture use cases.</p><p>Ø Extending experiment management construct to a model management construct, by allowing one click registration of trained artifacts to a MLFlow registry. This makes it easy to manage model versions and lifecycles, especially considering how iterative the data science process is.</p><p>In addition to above, being ‘library-agnostic’ is another plus point with MLFlow. MLFlow is an open-source project and can be hosted on-prem.</p><p><a href="https://clear.ml/"><strong>ClearML</strong></a><strong> –</strong></p><p>ClearML has suite of tools to facilitate effective MLOps pipelines –</p><p>Ø ClearML DataOps and ‘Hyper Data Sets’ add capabilities to provide ‘searchable metadata and visualizations’ on any object storage. Data visualization is an important component of a data science pipeline and by extension, MLOps as quick access to exploration tools can significantly address inherent bias in datasets.</p><p>Ø ClearML stitches together <em>Experiment</em> and <em>Orchestration </em>to build a coherent three pronged; training, resource, management experience for everyday users. This is achieved by extending experiments, and making them easily runnable (by reproducing the experiment base environment) onto a compute ‘pooled’ across environments with clearML.</p><p>Ø ClearML Deploy brings the engineering practices of Continuous Integration/Continuous Development to Data science, by providing an easy mechanism to deploy, serve and monitor model server.</p><p>ClearML is available both in managed and self-hosted flavors.</p><p><a href="https://www.kubeflow.org/"><strong>KubeFlow</strong></a><strong> -</strong></p><p>Kubeflow provides an experience knitted closely with Kubernetes. Kubernetes as a container orchestration engine inherently, has plenty of possibilities with regards to data science workflows, and Kubeflow helps making this experience seamless and intuitive for data scientists.</p><p>Ø Kubeflow Notebooks and Pipelines — Kubeflow provides easy access to Jupyter servers, allowing users to launch images with custom kernels and training libraries. The real differentiator about these servers is that with the additional installation of a package called <em>Kale,</em> users can very easily convert their existing Jupyter notebook code to a pipeline by adding extra markers to Jupyter notebook cells. This capability is very powerful because it is highly intuitive, user friendly and highly configurable.</p><p>Ø Kubeflow Experiments and Auto ML — Kubeflow Experiments and Auto ML extend these Kubeflow pipelines, to allow easy hyperparameter-tuning and traceability capabilities to users’ plain python code.</p><p>Ø Kubeflow Model Server — Kubeflow Model server stitches it all together by providing one click deployment and model serving capabilities by means of <em>KFServing.</em></p><p>Kubeflow is an opensource project and can be both self-hosted, while integrating with popular cloud providers.</p><p>With respect to the problems that we discussed during the beginning of this article, here’s how the above tools fare –</p><p>1. Data Traceability — With respect to data traceability<strong><em>, clear ML is better suited</em></strong> as the ‘DataOps’ capabilities specifically address this.</p><p>2. Experiment Tracking — All of the above provide capabilities to track a code run and manage artifacts and hyperparameters. However, explicit model versioning is available as a <strong><em>plus in MLFlow</em></strong>.</p><p>3. Model Deployment and Monitoring — Model deployment and monitoring tools are natively available in <strong><em>ClearML and MLflow</em></strong>. Model Serving capabilities are available in Kubeflow.</p><p>MLOps is now both a necessity and obvious choice for staying competitive and productive while shipping quality AI products for consumers!</p><p><em>The information about tools and services contained on this post does not constitute an endorsement or recommendation by GE and the views expressed are strictly the author’s observations.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c57425ded856" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gehc-tech-india-blog/the-critical-need-for-mlops-to-manage-ai-lifecycles-c57425ded856">The Critical Need For MLOps To Manage AI Lifecycles</a> was originally published in <a href="https://medium.com/gehc-tech-india-blog">GEHC Tech India Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons from Kubernetes paradigm and being cloud native]]></title>
            <link>https://medium.com/gehc-tech-india-blog/lessons-from-kubernetes-paradigm-and-being-cloud-native-1eafb696b199?source=rss----3d7b6c627ff6---4</link>
            <guid isPermaLink="false">https://medium.com/p/1eafb696b199</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Arun Prakash p]]></dc:creator>
            <pubDate>Mon, 26 Jul 2021 11:09:06 GMT</pubDate>
            <atom:updated>2021-07-26T11:09:06.606Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://kubernetes.io/">Kubernetes </a>(k8s) is a fascinating invention which has helped lot of application developers and organizations in recent times. What are your options to provide k8s based solutions for your customers? Its either cloud or on-premise.</p><p>The following article will explore our options to provide k8s clusters on VMware as IAAS. The article does not give you answer to send a hardware or enable k8s clusters in existing VMware cluster rather it will help you to understand following aspects of the solution:</p><ol><li>How can we architect k8s clusters infra agnostic using cloud native tools?</li><li>What are the lessons we learned adopting VMware as infrastructure as a service ?</li><li>What are some of the application design optimization we have done to gain better abstraction for underlying infrastructure?</li><li>How can we respond to customer needs quickly and how it will benefit the product?</li></ol><p>If you are searching for the answers for Hardware vs VMware virtualized solution, there is no right answer to this. The options are as limited as the constraints customer/solution puts on you .</p><p>Kubernetes was at the heart of our platform and we initially designed this platform to be run on specific hardware using custom infrastructure as a service like Open Shift.</p><p>These custom hardware-based workloads for customers had few challenges</p><p>1. Managing hardware lifecycle management was challenging</p><p>2. Scaling beyond the current hardware resource was not easy</p><p>3. High availability requirements were difficult to meet</p><p>4. Custom infrastructure as a service had a steep learning curve</p><p>5. Customers preferred to manage the platform in their datacenter and did not prefer a hardware being shipped.</p><p>The above listed challenges pushed us to decide to virtualize the platform and adopt VMware as a common infrastructure as a service for solution. Making the shift from hardware-based solution to a virtualized world comes with its own challenges. We were engulfed with lot of questions in our minds around the approach.</p><p>1. How do we ensure exclusive resources in a shared VMware datacenter and will there be any performance impact?</p><p>2. How do we ensure network isolations to the VM’s which need not be exposed to the external network?</p><p>3. How do we adopt different storage solutions given by different IT teams?</p><p>4. How do we address scaling and high availability?</p><p>5. How do we handle complicated clustering of Kubernetes in VMware environment?</p><p>We started off with a Proof of concept to ensure that we can realize this approach along with a hackathon to figure out the challenges.</p><p>The outcome of the hackathon was encouraging but still had lot of gaps. Our common vision helped us to make this a reality in just under a year. We also were able to run our platform in customers datacenter. Following are some of the benefits we had:</p><ol><li>Helped us to move away from hardware based solution to fully virtualized platform helping our processes to work as a software only solution</li><li>Same design can be used for Hardware based solution too which helped us to maintain unified design for k8s clusters</li><li>Enabled remote installation of platform and removed travel to the site</li><li><a href="https://en.wikipedia.org/wiki/Infrastructure_as_code">IAC</a> (Infrastructure as code ) helped us to fasten our cluster creation and lifecycle management</li><li>Was able to support multiple form factors for platform (Small, large , hardware based , VMware based )</li></ol><p>The journey was not easy but it was definitely a worth having one. Below are a gist of the learnings:</p><h3>Lesson 1: We can create cloud like infrastructure using cloud native tools in any commodity hardware</h3><p>Times have changed and we can have the power of cloud like environment anywhere even in a custom datacenter thanks to <a href="https://landscape.cncf.io/">CNCF </a>(Cloud Native Computing Foundation ) and their efforts to centralize technologies for cloud native applications.</p><p>One of the major issues we had to deal with when we move away from custom hardware-based solution to virtualized solution is that of storage. In the VMware world storage can be provided differently and we had to be abstracting these complexities and ensure that read write IOPS are as per the need of the workloads. Some of the different ways the customers can provide storage are</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/0*KHcTLKkPvN28Rzkx" /></figure><p>When we have a distributed Kubernetes cluster on premise it will be difficult to adopt to each of such on-premise infrastructure variations. We needed a solution which would help us to abstract the underlying storage from applications and provide us with distributed storage , redundancy and failover mechanism.</p><p>Another thing to notice is High Availability of storage. This can have variation from customer to customer</p><p>1. Customer can provide VMware DRS settings enabled for storage</p><p>2. Customers may also have embedded storage hence having a proper DRS might be difficult</p><p>This is where <a href="https://rook.io/">Rook</a>-ceph helped us to isolate underlying infrastructure and enable efficient redundancy for data storage. This works even of customer has enabled DRS or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*pK9H8efT7Kol9-ks" /></figure><p>Rook is an operator which helps in managing ceph clusters and ceph manages storage clusters.</p><p>Rook brings orchestration benefits to Ceph storage clusters like simplified deployment, bootstrapping, configuration, provisioning, scaling (up and down), upgrading, migration, monitoring and resource management.</p><p>Benefits of rook-ceph</p><p>1. Simple and reliable automated resource management</p><p>2. Hyper-scale or hyper-converge your storage clusters</p><p>3. Efficiently distribute and replicate data to minimize loss</p><p>4. Provision, file, block, and object with multiple storage providers</p><p>5. Manage open-source storage technologies</p><p>6. Easily enable elastic storage in your datacenter</p><p>7. Open source software released under the Apache 2.0 license</p><p>8. Optimize workloads on commodity hardware</p><p>The developer community for rook-ceph is very active and prompt in giving fixes or builds out fast.</p><h3>Lesson 2: Security is important and shutting off internet connectivity is not ideal for security</h3><p>Securing your K8s cluster can be done using right design principles like policies and dns isolations and right processes. Security is always the combination of efficient design and process. This is where active monitoring plays an important role. Shutting off internet connectivity does not help in increasing observability of the system.</p><p><a href="https://thenewstack.io/monitoring-and-observability-whats-the-difference-and-why-does-it-matter/">Observability </a>is considered as a feature of the system and better observable clusters can be managed well. We could only do this by enabling active monitoring for these clusters.</p><p>Filtering your traffic from vm’s are good but not closing it down.</p><p>Imagine if you can get proactive alerts on symptoms rather than the causes? That would be an ideal world. Few things will help you reach that ideal world.</p><p>1) Ensure all the vm’s and k8s cluster has egress connectivity to internet</p><p>2) Use tools like <a href="https://www.datadoghq.com/product/apm/">data dog</a> or <a href="https://newrelic.com/lp/apm?utm_campaign=Brand-IND&amp;utm_medium=cpc&amp;utm_source=google&amp;utm_content=APM_LP&amp;fiscal_year=FY21&amp;quarter=Q2&amp;gtm=DEV&amp;program=P2P&amp;ad_type=TXT&amp;geo=APJ&amp;utm_term=new%20relic%20apm&amp;utm_device=c&amp;_bt=479164152460&amp;_bm=e&amp;_bn=g&amp;gclid=CjwKCAjwqIiFBhAHEiwANg9szp28fgWzR66rOBI_njQj--dgCLDSqb3qyTb1WWcZr7_YetbUkPsQtRoCzccQAvD_BwE">new relic</a> to manage your fleets so that we can actively monitor clusters</p><p>3) Enable relevant alerts from your software which has intelligence to predict a symptom and proactively alert</p><p>Another key aspect to take care as part of your design is network design. The cloud way of isolating vm’s based on subnets can be done on-premise too. Ensure that we expose only load balancer or ingress gateway IP using a public IP either to customer LAN or WAN. rest all the vm’s should be isolated in a different subnet which cannot be accessed form LAN or WAN.</p><p>The above approach helps us to reduce the attack surface.</p><h3>Lesson 3: High availability design is good addon which can be realized</h3><p>We can create availability zone based on different hardware and then distribute Kubernetes worker nodes on that hardware. The Kubernetes worker nodes can be marked with labels and applications getting installed on the cluster can be distributed accordingly. This design was put together with the help of few features from VMware</p><p>1) VMotion and DRS must be enabled in VMware cluster for the vm’s to be moved to any exsi host during any hardware failure</p><p>2) Distributed storage should be available attached to all the three exsi host as virtual disks</p><p>Generally, Highly Available clusters are costly mainly due to investment in hardware and software features like DRS and <a href="https://www.vmware.com/in/products/vsphere/vmotion.html">vmotion </a>from VMware. However ,its good to have this as an option for the customers who demand a hardware, high available cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/0*3ix5wndkOJGcyJo5" /></figure><p>LB: Load balancer, M: Master Node, W: Worker Node, AZ: Availability Zone</p><h3>Lesson 4: Right packaging and online software delivery strategy will help you to reduce downtime</h3><p><a href="https://helm.sh/">Helm </a>is the package manager we used, and we realized how efficient that decision was in no time because of the following reasons</p><p>1) Creating a custom software packaging mechanism does not scale and cannot be maintained for long time</p><p>2) Adopting a packaging standard like helm helped us to use same packaging across different applications 2p and 3p</p><p>3) Upgrade rollback features are extremely important in the world where we try to reduce the downtime during updates. These features are inbuilt in helm which helped us to go with standards</p><p>4) In a microservice world when we have umpteen of containers and double the count yaml’s the only way to version manage your deployment is to adopt a package mechanism like helm</p><p>5) Helm integration with many CI/CD pipelines are inbuilt which will help us to automate the software install/upgrade procedures</p><p>6) Having the packages available in online chart museum gives us benefit to enable upgrades globally and efficiently</p><h3>Lesson 5: Infrastructure as code (IAC) is a cure to complexity</h3><p>Traditional approach: Create a big instruction document to customer on how to create vm’s and have pages detailing out the configuration of such vm’s. Now this approach has issues when we try to install complicated platforms like Kubernetes on-premise</p><p>1) K8s cluster creation has complicated requirements and doing all the vm creation and configurations manually is time consuming and error prone</p><p>2) Not having good automation will also increase cluster creation time</p><p>3) We will also not be able to ensure consistent cluster creation in different iterations if we don’t have good automation</p><p>Enter <a href="https://www.terraform.io/">Terraform</a>, terraform has VMware plugin using which we can automate pretty much everything related to infrastructure provisioning. We have following benefits.</p><p>1) Prevents configuration drift</p><p>2) Enables collaboration using terraform registry</p><p>3) Helps you with lifecycle management for clusters (init, plan, apply, destroy)</p><p>4) Helps you manage state of cluster so that we can scale from the current state anytime</p><p>5) Helps faster cluster creation during a datacenter disaster management for creating cluster from scratch</p><p>Terraform is widely adopted and not only manages infrastructure like VMware, azure, aws but also manages paas services like SQL and nodejs services.</p><p>More and more capabilities with terraform will enable efficient infrastructure provisioning and its hugely beneficial not to burden field engineers from complicated cluster creation procedures such as Kubernetes.</p><h3>Lesson 6: Don’t shy away from taking technical risks for a better product</h3><p>Quickly responding to customer needs defines the success of your product. If you are working on a platform engineering team it is important that you have a flexible platform to meet customer needs so that it will help the applications running on the platform.</p><p>Our cloud native approach has helped us to quickly respond to customer because platform design has helped us achieving:</p><ul><li>Support multiple form factors for hardware and virtualized environments using VMware.</li><li>Enable fool proof remote installation of cluster using Terraform by reducing datacenter activities.</li><li>Have better observability/security standards for our clusters.</li></ul><p>1) Always remember 90% of the time, the problem that you are trying to solve is already solved by someone or by some platform.</p><p>2) There is a high possibility that existing CNCF component is available for us to use.</p><p>3) Build your platform on existing standards and components and try not to reinvent the wheel.</p><p>“Never ever shy away from responding to customers, even if that means you must completely change your tech stack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eafb696b199" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gehc-tech-india-blog/lessons-from-kubernetes-paradigm-and-being-cloud-native-1eafb696b199">Lessons from Kubernetes paradigm and being cloud native</a> was originally published in <a href="https://medium.com/gehc-tech-india-blog">GEHC Tech India Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Chaos Engineering -Part 2]]></title>
            <link>https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part-2-4bbd2eac4a9f?source=rss----3d7b6c627ff6---4</link>
            <guid isPermaLink="false">https://medium.com/p/4bbd2eac4a9f</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Shiju Nair]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 09:56:17 GMT</pubDate>
            <atom:updated>2021-06-22T09:56:17.598Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part1-a0f2dda30d8b">Demystifying Chaos Engineering -Part1</a></p><p>This is part 2 of a multi-part series of demystifying chaos engineering practices.</p><p><strong>THE EMERGING OF OBSERVABILITY</strong></p><p>Building Observability in the system is key to predicting failures and measuring effectiveness of fault tolerance.</p><p>The primary reasons for building observability include providing proactive monitoring of system health and alerting support personal &amp; engineers to act even before failures occur.</p><p>Another key reason is to understand the state of the system at any given point in time. This helps in debugging &amp; gaining insights into the conditions that exist before and during failures, which leads to system chaos.</p><p>One of the biggest lessons learnt while building patient monitoring applications in our organization, is troubleshooting and understanding the root cause of failures. The challenge becomes two-fold, since reproducing some of the failures is difficult or requires considerable wait time. Another reason is lack of metrics or insights which makes it extremely difficult to understand the nature of the failure, and what circumstances led to the failure including whether the failure can be effortlessly reproduced.</p><p>In the Chaos Engineering process, every failure that occurs should be looked at from the prism of the below points-</p><p>1. What happened?</p><p>2. When did it happen?</p><p>3. What is the impact?</p><p>4. Why did the error occur?</p><p>5. How can it be prevented from happening again in the future?</p><p>All the above points can be accomplished by building robust observability.</p><p>Observability is a strategic tool of the chaos engineering process. As systems change swiftly, they become more multifaceted and more inclined to failure. Observability is the key that helps bring accountability into the system where there are then possibilities to investigate, inspect, and piece everything together.</p><p>Observability conveys the power of data to discover and understand the root cause of issues, which further helps resolve and improve the quality of products.</p><p>Observability can be built at different echelons of the system. Primary of them being,</p><p>• Metrics</p><p>• Logs</p><p>• Traces</p><p>The basic objective behind building observability is to lead an investigation which is data and fact driven, using the pointers to study and advance product quality.</p><p><strong>Metrics</strong> are quantifiable parameters which can be predominantly categorized into three areas: latency, throughput &amp; failures. Building metrics in any of these areas should be done with deep understanding of the workflows and mapping the way communication happens between interconnected systems. The idea is to break down the system into its granular state and build these metrics, so that it can be quantifiable. This helps in understanding the original state or change in state of the system while collecting metrics when failures occur.</p><p>The important point to remember while building metrics, is to mark the boundary of entry and exit of every call and expose the parameters in terms of latency and throughput.</p><p><strong><em>Examples-</em></strong></p><p><em>Throughput</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdkxCusFW_dnowAUukOLxg.png" /></figure><p><em>Latency</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8Vq0k0-n0hPHh1GeJy8-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*VknjCkLwhM68ORibLelqeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*cJdtsJgXIRoCNoQa_0uTNw.png" /></figure><p><em>Failures</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kyf2Hv-mXEafoNdM_dp6iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ivQ6P1AuPLWsVbjIZBgiw.png" /></figure><p><strong>Logs</strong> are another effective way of finding the fine details for the reason of failures. It is therefore important to build robust and relatable logs, which can be used to deep dive and correlate the state change in the system when failures happen. Proactive and critical system thinking is required, which helps in characterizing the areas that are potential candidates for system change and may require logging.</p><p>Excessive logging can be a killer for the system and its components, which could impact the system resources. We must be watchful and provide useful information with minimal content.</p><p><strong>Traces</strong> are more spontaneous way to co-relate the flow path of the communication between multiple components. They help in finding out what is broken, providing the latency of the individual components of the whole path. Identifying performance bottlenecks always helps. Understanding the variation or state change between two components when there are failures is also important. This is a vital point that emphasizes the need for building traceability and observability in the system.</p><p><strong>TO CONCLUDE…</strong></p><p>One of the lessons learned is that Metrics, Logs &amp; Traces are implicit requirements for the systems that we build today. Many a times, we overlook their importance and start building the observability much later when issues surface. This results in delays, and lack of understanding of the issues and observations. Due to the lack of information, it also becomes difficult to replicate the issue thereby instilling doubts on the issues identified and their eventual impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bbd2eac4a9f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part-2-4bbd2eac4a9f">Demystifying Chaos Engineering -Part 2</a> was originally published in <a href="https://medium.com/gehc-tech-india-blog">GEHC Tech India Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Chaos Engineering -Part1]]></title>
            <link>https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part1-a0f2dda30d8b?source=rss----3d7b6c627ff6---4</link>
            <guid isPermaLink="false">https://medium.com/p/a0f2dda30d8b</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Shiju Nair]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 09:37:24 GMT</pubDate>
            <atom:updated>2021-06-22T09:37:23.962Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>DEFINING THE PROBLEM STATEMENT</strong></p><p>The software industry is today widely using microservices-based architecture and technologies, such as containerization (Docker), Container Orchestrators like Kubernetes, Cloud Computing and Server less Computing. This is fundamentally changing the way applications and products are designed, built and operated. As a result of this,</p><p>· Systems being built have become more distributed and complex, and in case of containerization, more short-lived. It also means components can be torn down much faster, facilitating adaptability to customer requirements.</p><p>· Systems are being built with more ambitious availability &amp; reliability requirements.</p><p>With the advent of cloud computing, network and underlying hardware failures will soon be robustly abstracted away. This leaves software engineers with the sole responsibility of ensuring, that the applications they build are highly resilient to failures.</p><p>Most organizations are at the stage of early adoption of cloud native technologies. The failure modes of these new concepts remain slightly unclear and are not widely presented. To successfully maneuver through these technology challenges, gaining insights into applications behavior has become most imperative.</p><p>Building Software in the Healthcare services comes with additional complexity, which needs more consideration when compared to other less regulated domains. Patient safety is paramount, any failure of which impacts diagnosis or delays treatment subsequently ending in more detrimental results.</p><p><strong>CONTEXTUAL OVERVIEW</strong></p><p>Waiting for failure to happen cannot be the best course of action. Addressing the weaknesses proactively, goes beyond the reactive processes that currently dominates most incident response models.</p><p>Alternatively, failure eventually leads to chaos. The word ‘chaos’ is descriptive of the meaning in the literal sense. The system will not be able to withstand a chaotic state caused by erratic failures, thus being unable to successfully recover from the failures, leading the system to chaos and setting forth a vicious cycle.</p><p>We need a more proactive approach which can help understand failures and build counter measures around it.</p><p><strong>THE CHAOS ENGINEERING PROCESS</strong></p><p>Chaos Engineering is the process of building highly resilient and fault tolerant systems. It encourages and builds observability, as it seeks to help the proactive discovery and overcoming of system weaknesses.</p><p>It also involves a process which seeks to expose, explore, and validate against system weaknesses, through careful and controlled chaos experiments.</p><p>Building chaos experiments to simulate failure scenarios or induce chaos in the system, helps in measuring the resiliency of the system. It helps in validating whether fault tolerance and redundancy built into the system, is good enough to withstand the failures.</p><p>During the Chaos Engineering process, experiments are induced to learn about the system. By designing and executing Chaos Engineering experiments, we expose weaknesses that could potentially lead to failures impacting customer experience and reducing confidence in the system.</p><p>Building resiliency or reliability is a continuous process. Learning is sought from system outages that occur, and improving systems is a continuous process.</p><p><strong>Chaos Engineering Early in SDLC- Shift Left</strong></p><p>The<strong> </strong>Chaos Engineering discipline should be applied and practiced as early as possible in the software development life cycle.</p><p>In other words, to achieve better resilience and failure tolerance, any failures arising due to complex interactions between various applications must be addressed early.</p><p>Why Early Intervention?</p><p>➢ To understand the effectiveness and limits of fault tolerance mechanisms, at the components level.</p><p>➢ To understand the possible failure modes between the complex interactions of the components.</p><p>➢ To understand and improve the observability of the components.</p><p>Learning from outages or failures early in the development life cycle when they occur, and working to detect, diagnose and fix the failures or their effects, is the process of continuous improvement. It is also called as <em>incident-response learning.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*3lCRNhS152zpZLWMlfbKJA.png" /></figure><p>Chaos engineering can begin early during the development phase and must be a part of the shift left strategy.</p><p><strong>UNFOLDING OF THE PROCESS</strong></p><p>In the Chaos Engineering process, focus must be on the smallest subsystems and building resiliency around them. Every component or micro service must have enough fault tolerance and redundancy built in, to withstand failures. In the case of unavoidable failures, it must be designed in a way for easy exit and recovery thereafter. Metrics must be generated for each sub system or component and exported, so that they can be visualized in time-series format using appropriate tools.</p><p>Generating metrics which represents the state of each component in terms of compute and storage utilization, should be an implicit requirement. However, it cannot be limited. Chaos Engineering gives weightage to building observability so that application metrics like latency, throughput, number of threads and connections and failures or exceptions can be exposed focusing on the status of the components. Having a proactive approach in applying chaos engineering early in the development life cycle, yields long term benefits.</p><p>Chaos experiments must be premeditated and executed, targeting dependent and inter-dependent components, while measuring bearings on the sub-system being tested. Experiments can be used to measure and verify the faults tolerance and redundancy. Thus, assertion can be made about the workings of the system and establishing the resilience of the components.</p><p><strong>Chaos Statistics-</strong></p><p>Below is the statistical representation of patterns, where failures were induced and measured.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nF2RGVZjN7I1FTvZt0Fo1w.png" /></figure><p><strong>Conclusion</strong></p><p>Organizations embarking on the chaos engineering journey, should follow the iterative process to achieve target maturity model. Attempts must be made to achieve shift left approach while adopting the chaos engineering process.</p><p>Established processes mentioned at model maturity, must be categorized and executed for successful implementation of the chaos engineering processes.</p><p>It is imperative that organizations acknowledge that chaos engineering as a branch of software engineering, which is essential in establishing quality gates.</p><p>Every organization goes through its own learning curve, maturing over a period of time. However, maintaining resiliency in establishing these processes, is key to successful implementation of chaos engineering.</p><p>Chaos Tests or experiments to simulate failure modes in a controlled fashion with some amount randomness, is key to verifying the quality of fault tolerance implemented.</p><p>Opensource frameworks like Chaos toolkit, Chaos Mesh provide methods to define and execute experiments. Based on requirements, these frameworks can be extended to bring more depth and coverage in defining and executing various failure modes. Frameworks available from VMware -Mangle, Gremlin are also great tools to use. Strategies are driven by factors such as test depth and level of resiliency.</p><p><strong>References</strong></p><p><a href="http://principlesofchaos.org/?lang=ENcontent">http://principlesofchaos.org/?lang=ENcontent</a></p><p><a href="https://netflixtechblog.com/chaos-engineering-upgraded-878d341f15fa">https://netflixtechblog.com/chaos-engineering-upgraded-878d341f15fa</a></p><p><a href="https://www.oreilly.com/library/view/chaos-engineering/9781491988459/ch01.html%23chapter_background">https://www.oreilly.com/library/view/chaos-engineering/9781491988459/ch01.html#chapter_background</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0f2dda30d8b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gehc-tech-india-blog/demystifying-chaos-engineering-part1-a0f2dda30d8b">Demystifying Chaos Engineering -Part1</a> was originally published in <a href="https://medium.com/gehc-tech-india-blog">GEHC Tech India Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>