<?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[Stories by Radheshayam kumar on Medium]]></title>
        <description><![CDATA[Stories by Radheshayam kumar on Medium]]></description>
        <link>https://medium.com/@radheshayamsingh47?source=rss-d3c58424de10------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8OhBNQXS9azxpxC4</url>
            <title>Stories by Radheshayam kumar on Medium</title>
            <link>https://medium.com/@radheshayamsingh47?source=rss-d3c58424de10------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:33:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@radheshayamsingh47/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Health Checks in Docker Compose: Ensuring Your Services Are Ready]]></title>
            <link>https://radheshayamsingh47.medium.com/understanding-health-checks-in-docker-compose-ensuring-your-services-are-ready-9a1027b2dfc3?source=rss-d3c58424de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a1027b2dfc3</guid>
            <category><![CDATA[articles]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Radheshayam kumar]]></dc:creator>
            <pubDate>Fri, 08 Nov 2024 16:15:02 GMT</pubDate>
            <atom:updated>2024-11-08T16:15:02.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBxV2KOPcIR5GeHOwFhosg.png" /></figure><p><em>When running multiple containers with Docker Compose, it’s essential to ensure that services are ready and healthy before other services depend on them. Health checks in Docker Compose allow us to specify commands and parameters that test if a service is running correctly. Let’s break down a sample health check configuration to understand how these parameters work.</em></p><pre>healthcheck:<br> test: [&quot;CMD-SHELL&quot;, &quot;curl -f http://localhost:5000 || exit 1&quot;] <br>interval: 10s<br> timeout: 5s<br> retries: 3 <br>start_period: 10s</pre><p><strong><em>test: [“CMD-SHELL”, “curl -f </em></strong><a href="http://localhost:5000/"><strong><em>http://localhost:5000</em></strong></a><strong><em> || exit 1”]</em></strong></p><p><em>This line defines a test command using </em><em>curl to check if a service (like a web app) is available at </em><em>localhost:5000. Here’s how it works:</em></p><ul><li><strong>Successful Response</strong>: If curl receives a response with a 2xx or 3xx status code (indicating the server is up), the test passes.</li><li><strong>Failure</strong>: If curl receives an error or no response, the health check fails, indicating that the service isn’t ready yet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTMSMXXnlDwprJVlWPYDGg.jpeg" /></figure><h3><strong>Health Check Parameters Explained</strong></h3><p>1. <strong>Interval</strong>: interval: 10s</p><p><em>This parameter sets the frequency of the health check, in this case, every 10 seconds.</em></p><ul><li><strong>Analogy</strong>: Imagine checking your car every 10 seconds to ensure the engine is functioning correctly. Similarly, Docker checks the service every 10 seconds to verify its health status.</li></ul><p><strong>2. Timeout: </strong><strong>timeout: 20s</strong></p><p><em>The timeout parameter defines how long Docker should wait for a response before considering the health check a failure. Here, the timeout is set to 20 seconds.</em></p><ul><li><strong>Analogy</strong>: It’s like giving your car 20 seconds to start; if it doesn’t start within that time, you assume there’s a problem.</li></ul><p><strong>3. Retries: </strong><strong>retries: 10</strong></p><p><em>Retries determine the number of times Docker will attempt the health check before marking the container as unhealthy. In this example, it retries the health check 10 times.</em></p><ul><li><strong>Analogy</strong>: Think of this as trying to restart your car’s engine up to 10 times before deciding that it won’t start.</li></ul><p>4. <strong>Start Period</strong>: <strong>start_period: 60s</strong></p><p><em>The start period gives a grace period (in this case, 60 seconds) before Docker considers health check failures. During this time, any failures are ignored, allowing the container some time to fully initialize.</em></p><ul><li><strong>Analogy</strong>: Like starting your car and letting it warm up for a minute before beginning any tests, this gives the service time to stabilize.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*sv4tZ5AOmJcBroD-grjE7Q.png" /></figure><h3><strong>Example Docker Compose File with Health Check</strong></h3><p>Here’s how a complete Docker Compose file might look with health checks for a service:</p><pre>version: &quot;3.8&quot;<br><br>services:<br>  flaskapp:<br>    image: myflaskapp:latest<br>    ports:<br>      - &quot;5000:5000&quot;<br>    healthcheck:<br>      test: [&quot;CMD-SHELL&quot;, &quot;curl -f http://localhost:5000/&quot;]<br>      interval: 10s<br>      timeout: 20s<br>      retries: 10<br>      start_period: 60s</pre><p><strong>In this example:</strong></p><ul><li>The service checks every 10 seconds if the application responds on localhost:5000.</li><li>If there’s no response within 20 seconds, the check is considered a failure.</li><li>Docker retries up to 10 times if the service isn’t healthy.</li><li>A start period of 60 seconds ensures the service has time to initialize before starting checks.</li></ul><p><strong>Why Health Checks Are Important</strong></p><p><em>Health checks are crucial for maintaining the stability and reliability of containerized applications. By defining specific tests and parameters, we can make sure that each service in a multi-container application is fully ready before other services attempt to connect to it. This can prevent common issues, like connection errors and service timeouts, and helps create a more resilient deployment environment.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a1027b2dfc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: Virtualization vs. Containerization]]></title>
            <link>https://radheshayamsingh47.medium.com/docker-virtualization-vs-containerization-f4edc49a6b0b?source=rss-d3c58424de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4edc49a6b0b</guid>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[virtualbox]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[virtualization]]></category>
            <dc:creator><![CDATA[Radheshayam kumar]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 08:03:33 GMT</pubDate>
            <atom:updated>2024-11-04T08:04:33.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*ghDE_-d3T38Qr89ap-bRxQ.jpeg" /></figure><p><strong>Introduction to Docker</strong><br>Docker is a platform that allows developers to package, deploy, and run applications in containers. Containers are lightweight, isolated environments that bundle an application and its dependencies, ensuring compatibility across various environments.</p><p><strong>Problem Scenario: Application Compatibility Issue</strong></p><p>Imagine an application developed on your local machine, running perfectly with a specific setup. However, when you try to deploy it on an AWS EC2 instance, it fails to run due to version or dependency mismatches. This is a common issue in software development and deployment, where different environments have different configurations, leading to compatibility problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dycKiRBTTBZHOPnAcQcYwQ.jpeg" /><figcaption>Meme : How DOcker was born</figcaption></figure><h3>Example 1: Application Dependency Problem</h3><p><strong>1. Local Machine Setup:</strong><br> — Operating System: Windows<br> — Installed Software:<br> — Python 3.2<br> — Django 3.2<br> — Application runs successfully.</p><p><strong>2. AWS EC2 Setup:</strong><br> — Operating System: Linux (Ubuntu)<br> — Installed Software:<br> — Python 3.9<br> — Django not installed<br> <strong>— Issue: </strong><em>The application fails to run on EC2 due to different versions and missing dependencies.</em></p><p><strong>Solution:</strong> <em>Before Docker, developers often used virtualization to handle these issues.</em></p><h3>Virtualization as a Solution</h3><p>Virtualization enables the creation of virtual machines (VMs) that emulate entire operating systems on a single physical machine. Each VM operates independently, with its own OS, libraries, and applications.</p><p><strong>How Virtualization Works</strong></p><p><strong>- Virtual Machine (VM):</strong> <em>A VM is an emulated environment that includes an entire OS and applications.</em><br><strong>- Hypervisor:</strong> <em>A layer that manages multiple VMs on a single physical machine. It allocates resources like RAM, CPU, and storage to each VM.</em></p><h3><strong>Example 2: Plot vs. Apartment Analogy</strong></h3><p><strong>1. Plot with Individual Buildings (Virtualization):</strong><br> — Imagine a plot with multiple buildings.<br> — Each building has its own:<br> — Parking space<br> — Electricity supply<br> — Water tank<br> <strong>— Problem:</strong> <em>High costs and resource wastage, as each building requires separate utilities and infrastructure.</em></p><p><strong>2. Apartment with Shared Resources (Containerization):</strong><br> — Now imagine an apartment building on the same plot with multiple flats.<br> — All flats share:<br> — Common parking<br> — Shared electricity<br> — Shared water supply<br><strong> — Benefit:</strong> <em>Reduced costs and efficient resource utilization.</em></p><p>This analogy illustrates the problem with virtualization and the efficiency brought by containerization.</p><p><strong>Containerization with Docker</strong></p><p>Docker provides a way to package applications with their dependencies in lightweight containers that run consistently across different environments.</p><p><strong>Advantages of Docker over Virtualization</strong></p><p><strong><em>1. Resource Efficiency:</em></strong><br> — Containers share the host OS kernel, making them more lightweight compared to VMs.<br> — Multiple containers can run on a single host without needing separate OS instances.</p><p><strong><em>2. Consistency Across Environments:</em></strong><br> — Containers package the application and all its dependencies.<br> — Ensures the application runs the same on any machine, eliminating “it works on my machine” issues.</p><p><strong><em>3. Speed and Portability:</em></strong><br> — Containers are faster to start and stop compared to VMs.<br> — Containers can be easily moved across different environments without compatibility issues.</p><p><strong>Diagram Comparison</strong></p><p>Here’s a comparison illustration of Virtualization vs. Containerization to better understand the differences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mRZOzKD2nklkAPFREkS1Q.png" /><figcaption>Virtualization vs Docker</figcaption></figure><p><strong>Summary</strong></p><p><strong><em>- Virtualization:</em></strong> Uses VMs that emulate entire OS instances, leading to higher resource usage.<br><strong><em>- Containerization: </em></strong>Uses Docker containers that share the host OS kernel, making them more lightweight and efficient.</p><p>By using Docker, developers can overcome compatibility issues, reduce resource usage, and ensure their applications run consistently across different environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4edc49a6b0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Users and Groups in Linux: A Case Study]]></title>
            <link>https://radheshayamsingh47.medium.com/managing-users-and-groups-in-linux-a-case-study-e5d1ddf4108e?source=rss-d3c58424de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5d1ddf4108e</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[commands]]></category>
            <dc:creator><![CDATA[Radheshayam kumar]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 15:06:35 GMT</pubDate>
            <atom:updated>2024-10-31T15:06:35.167Z</atom:updated>
            <content:encoded><![CDATA[<p><em>User and group management is a critical aspect of Linux system administration. Understanding how to create, modify, and manage users and groups can help maintain the security and functionality of a system. In this article, we will explore two case studies that delve into the process of creating users, managing groups, and granting administrative privileges using the sudo command in Linux.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*u1sCJ7s8i5LyTFwsaha8Rg.jpeg" /></figure><h3><strong>Case Study 1: Creating Users and Groups</strong></h3><p><em>In Linux, when you create a user, a group is automatically created with the same name as the user. This process helps isolate user permissions and makes file ownership more organized. Here’s a step-by-step breakdown of the process:</em></p><p><strong>1. Creating a User:</strong></p><p>When you create a user using commands like useradd or adduser, Linux automatically creates a group with the same name as the user.</p><p>The user is automatically added as a member of this group. This group is called a user private group (UPG).</p><p>Example command:</p><p>sudo useradd username</p><p>This command adds a new user named username, and the system automatically creates a group named username.</p><p><strong>2. Viewing Users and Groups:</strong></p><p>To view all users on the system, you can check the /etc/passwd file using the following command:</p><p>cat /etc/passwd</p><p>This file contains information about the users on the system, including their user ID (UID), group ID (GID), and other details.</p><p>To view all groups, you can check the /etc/group file using the following command:</p><p>cat /etc/group</p><p>This file lists all groups and the users associated with them. When a user is created, their default group is displayed here.</p><p>By creating users in this manner, Linux simplifies the management of file permissions and system security. Each user has their own group, making it easier to control access to files and directories.</p><h3>Case Study 2: Managing Superuser Privileges with sudo</h3><p><em>The second case study focuses on the sudo group in Linux, particularly in Ubuntu, where sudo plays a crucial role in granting administrative privileges.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*tdN23DOa2PM5uJeIUflZwA.jpeg" /></figure><p><strong>1. Understanding the sudo Command:</strong></p><p>The sudo command allows users to execute commands with superuser (root) privileges. Instead of logging in as the root user, which can pose security risks, users can execute specific commands with elevated permissions.</p><p>When a user runs a command prefixed by sudo, they temporarily gain superuser privileges to perform administrative tasks, such as installing software, managing services, or modifying system files.</p><p>Example:</p><p>sudo apt update</p><p>This command updates the package list, but it requires superuser privileges, hence the use of sudo.</p><p><strong>2. The sudo Group:</strong></p><p>In Ubuntu, users who belong to the sudo group have the ability to execute commands using sudo. When a user is added to this group, they inherit administrative privileges.</p><p>To add a user to the sudo group, use the following command:</p><p>sudo usermod -aG sudo username</p><p>This command adds the user username to the sudo group, giving them permission to run commands with sudo.</p><p><strong>3. Viewing the sudo Group:</strong></p><p>To verify which users belong to the sudo group, you can inspect the /etc/group file:</p><p>cat /etc/group | grep sudo</p><p>This will list all users who have been assigned administrative privileges via the sudo group.</p><p><strong>4. sudo vs. Root:</strong></p><p>It’s important to note that while sudo provides temporary superuser privileges, the root user is the ultimate administrator. Root has unrestricted access to the system, which is why it’s generally safer to use sudo for tasks that require elevated privileges rather than logging in as root.</p><p><strong><em>Summary of Key Points</em></strong></p><p>User and Group Creation: When you create a user in Linux, a corresponding group is automatically created with the same name as the user. This default behavior helps manage file permissions and system security.</p><p>Managing Users and Groups: Viewing users and groups can be done using the /etc/passwd and /etc/group files. These files provide detailed information about user accounts and group memberships on the system.</p><p>Using sudo for Administrative Tasks: The sudo command allows users to execute commands with root privileges without logging in as the root user. Users who are part of the sudo group can use this command to perform administrative tasks safely.</p><h3><strong>Conclusion</strong></h3><p>Understanding how to create and manage users and groups, along with the proper use of sudo, is a fundamental skill for Linux system administrators. These case studies demonstrate the basics of user and group management, as well as how to grant users superuser privileges securely. By following these practices, you can maintain a well-organized and secure Linux system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5d1ddf4108e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is devOps ?]]></title>
            <link>https://radheshayamsingh47.medium.com/what-is-devops-d3973ebf6af6?source=rss-d3c58424de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3973ebf6af6</guid>
            <category><![CDATA[benifits-of-devops]]></category>
            <category><![CDATA[what-is-devops]]></category>
            <category><![CDATA[how-devops-worls]]></category>
            <dc:creator><![CDATA[Radheshayam kumar]]></dc:creator>
            <pubDate>Wed, 16 Oct 2024 18:25:04 GMT</pubDate>
            <atom:updated>2024-10-16T18:25:04.862Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is devOps ?</strong></h3><p>DevOps is a way of working that combines development (creating software) and operations (running software) teams. It helps companies deliver new software features and updates much faster than traditional methods. By working together and using the right tools, teams can quickly improve products, fix problems, and meet customer needs. This faster process helps companies serve their customers better and stay ahead in the competition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RG5UR1MirUduYtuNNMP6Tg.jpeg" /></figure><h3><strong>How DevOps Works?</strong></h3><p>DevOps brings together development (those who write code) and operations (those who manage servers) teams to work as one. They use automation tools to speed up tasks like testing, building, and deploying software. Instead of waiting for long periods between updates, they release small changes more often. This allows teams to catch and fix problems early, making the software better over time.</p><h3><strong>Benefits of DevOps :</strong></h3><p><strong>1.</strong> <strong>Faster delivery:</strong> Software updates are released quickly and regularly.<br><strong>2. Better quality: </strong>Bugs are caught and fixed faster, improving software quality.<br><strong>3. More collaboration:</strong> Teams work closely together, reducing miscommunication.<br><strong>4. Increased efficiency: </strong>Repetitive tasks are automated, saving time and reducing errors.<br><strong>5. Customer satisfaction:</strong> Faster improvements and fixes lead to happier customers.</p><p>DevOps helps businesses grow and respond to customer needs in real-time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3973ebf6af6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAS Affiliate — The Easy Way to Grab Commissions]]></title>
            <link>https://radheshayamsingh47.medium.com/sas-affiliate-the-easy-way-to-grab-commissions-2fc2bb9a6b79?source=rss-d3c58424de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fc2bb9a6b79</guid>
            <category><![CDATA[bussiness]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[online-business]]></category>
            <category><![CDATA[affiliate-marketing]]></category>
            <category><![CDATA[online-marketing]]></category>
            <dc:creator><![CDATA[Radheshayam kumar]]></dc:creator>
            <pubDate>Thu, 15 Apr 2021 08:42:22 GMT</pubDate>
            <atom:updated>2021-04-15T08:42:22.615Z</atom:updated>
            <content:encoded><![CDATA[<h3>SAS Affiliate — The Easy Way to Grab Commissions</h3><h3>SAS Affiliate — The Easy Way to Grab Commissions</h3><p>What is Affiliate Marketing?</p><p><strong>Affiliate marketing is a type of marketing strategy that involves you (the Affiliate) actively promoting and connecting business’ product, service, or sites to customers.</strong></p><p><strong>You, as the successful affiliate, are rewarded a commission when a sale has been transacted with each and every time.</strong></p><p>Advantages of Affiliate Marketing</p><p><strong>Easy Setup </strong>— An affiliate needs to:</p><ul><li>Sign-up with an affiliate program</li><li>Pick a product</li><li>Paste your tracking code to your website</li><li>Wait until a customer makes a purchase of the product</li></ul><p>READ MORE : <a href="https://bit.ly/2Q2COoM">https://bit.ly/2Q2COoM</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fc2bb9a6b79" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>