<?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 Xgrid - Cloud Services &amp; Custom App Development on Medium]]></title>
        <description><![CDATA[Stories by Xgrid - Cloud Services &amp; Custom App Development on Medium]]></description>
        <link>https://medium.com/@xgrid?source=rss-8f31c5877004------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IBcPmQLiJfwxJMEy2vCpbw.png</url>
            <title>Stories by Xgrid - Cloud Services &amp;amp; Custom App Development on Medium</title>
            <link>https://medium.com/@xgrid?source=rss-8f31c5877004------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:04:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xgrid/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[Streamline Your Application Delivery with AWS AppStream 2.0: An Introduction]]></title>
            <link>https://xgrid.medium.com/streamline-your-application-delivery-with-aws-appstream-2-0-an-introduction-f760c6b04ff4?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/f760c6b04ff4</guid>
            <category><![CDATA[application-delivery]]></category>
            <category><![CDATA[amazon-appstream]]></category>
            <category><![CDATA[aws-appstream]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 09:35:07 GMT</pubDate>
            <atom:updated>2023-08-28T09:35:07.662Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Streamline Your Application Delivery with AWS AppStream 2.0: An Introduction" src="https://cdn-images-1.medium.com/max/1024/0*tiitiT55c8VjW7Nz.jpg" /><figcaption>Streamline Your Application Delivery with AWS AppStream 2.0: An Introduction</figcaption></figure><h3>Introduction</h3><p>In recent years, there has been a trend among software vendors to shift their applications to the cloud. This means that rather than installing software on individual devices, users access the software and its associated data over the internet. There are several reasons why software vendors are shifting their applications to the cloud:</p><ol><li>Increased accessibility: Cloud-based applications can be accessed from any device with an internet connection, making it easy for users to access the software from multiple locations or while on the go.</li><li>Ease of use: Cloud-based applications are generally easier to use and require less setup than traditional desktop applications. This can be particularly useful for businesses that have a diverse range of users, as it allows them to quickly and easily access the applications they need without having to go through a complex installation process.</li><li>Cost savings: Cloud-based applications can be more cost-effective than traditional desktop applications, as they do not require the purchase of expensive hardware or the installation of software on each individual device. This can be particularly useful for businesses looking to reduce their IT costs.</li><li>Security: Cloud-based applications are generally more secure than traditional desktop applications, as all data is stored in the cloud and accessed via secure streaming. This can be particularly useful for businesses that handle sensitive data, such as financial or personal information.</li></ol><p>Overall, the trend of software vendors shifting their applications to the cloud offers a number of benefits for both software vendors and users, including increased accessibility, ease of use, cost savings, and improved security. One of the services that has made application delivery management possible is AWS Appstream.</p><h3>What is AWS AppStream 2.0?</h3><p>AWS AppStream is a fully managed, secure application streaming service that allows you to stream desktop applications from the cloud to any device running a web browser, without rewriting them. This means that you can run your desktop applications on a variety of devices, including laptops, tablets, and even smartphones, without having to install them.</p><h3>Use Cases</h3><p>Appstream is a versatile service that can be used for a variety of use cases. Here is a list of some of the most common use cases for AWS Appstream:</p><ol><li>Remote Workforce</li><li>Bring Your Own Device (BYOD)</li><li>High Performance Computing (HPC)</li><li>Graphics-Intensive Applications</li><li>Software Demos and Trials</li></ol><h3>Basic Components needed for an end to end Deployment</h3><p>In order to stream your applications on Appstream, you need to use the following components of appstream:</p><ul><li>Image Builder</li><li>Stack and Fleets</li></ul><h3>AWS AppStream Image Builder</h3><p>AWS AppStream Image Builder is a fully managed service that makes it easy to create and maintain custom image versions of your applications. With AppStream Image Builder, you can create custom images that include your applications, custom settings, and any required dependencies.</p><p>AppStream Image Builder can help you automate the process of building and updating custom images, which can save time and effort compared to manually building and maintaining images. It helps ensure that the images are working correctly before you deploy them.</p><p>You can create an image builder using AWS CLI, console, or the AWS SDK. While calling the CreateImageBuilder API you need to provide the following:</p><ul><li>Subnet ID</li><li>Security Group</li><li>Base Image</li></ul><p>Subnet ID, and Security Group are for configuring the network of the image builder, and the base image is actually the operating system you want to use to build your application. AWS Appstream provides a wide variety of base images that you can use to build your applications.</p><p>Inside these base images AWS has all the necessary components pre-installed so that you only need to focus on adding the relevant components for your application to function. Monitoring, and patching services like SSM, and Cloudwatch already have their agents installed in the image builder instance. Furthermore, there is an Image-Assistant CLI present in the image builder that helps you build an image by walking you through guided instructions.</p><h3>Stack and Fleets</h3><h4>Overview</h4><p>AWS AppStream Stacks and Fleets allow you to stream desktop applications from the cloud to any device running a web browser, without rewriting them.</p><p>An AppStream Stack is a collection of resources that are required to run a specific application or set of applications. This can include the applications themselves, as well as any required dependencies, custom settings, and user data.</p><p>An AppStream Fleet is a group of streaming instances that are used to run and scale your applications. You can create multiple fleets in a single stack, and each fleet can be configured with different instance types, capacity settings, and other parameters to meet the needs of your applications.</p><p>Using AppStream Stacks and Fleets, you can easily scale your application usage up or down based on demand, and you can also customize the environment in which your applications are run to meet your specific needs. This can be particularly useful for businesses that experience spikes in usage at certain times of the year, as it allows them to quickly and easily accommodate the increase in demand without having to invest in additional hardware or infrastructure.</p><h4>Fleet Types</h4><p>There are 3 types of Fleet in AWS Appstream:</p><ul><li>AlwaysOn</li><li>OnDemand</li><li>Elastic</li></ul><p>The main difference between the fleet types is how the streaming instances are run, and managed. In AlwaysOn, the streaming session remains on regardless of the demand, whereas in OnDemand fleets are launched when the user starts streaming, and they are shut down when the streaming session ends. Elastic fleets are the ones that are managed by AWS, and you don’t need auto scaling policies to address changes in demand. However, you need to configure the maximum concurrency you expect when creating and updating the fleet, and ensure that you have sufficient streaming instance limits to meet your user demand.</p><h3>Step By Step Process of using Appstream</h3><p>1. Navigate to the Appstream console, and click on images from the menu on your left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-iRWpS5e59zXgI1-.png" /></figure><p>2. Select image builders, and click on launch an image builder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EtyTsENXMefSH5x7.png" /></figure><p>3. In the image builder console, you need to select the OS on which you want to install your application, and package it as an image. In this example I am using a general purpose Windows server image: <strong>AppStream-WinServer2019–03–29–2023 (Public). </strong>Give the image builder an appropriate name, and for this example I am selecting a standard general purpose instance. While configuring the networking side select the VPC, and subnet IDs along with the security group. Now you have added all the relevant parameters, and it is time to launch the image builder.</p><p>4. Connect to the demo-builder, and install any application that you want to install on that builder. In my case I am installing Google Chrome from firefox, and I will package that in my image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lfJwcFFx5AdqUuQd.png" /></figure><p>5. After installing your applications you need to open the Appstream Image Assistant, and then add the applications you want your users to stream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0qYHqkGnnWpSFjQ-.png" /></figure><p>When you select an application then you need to set application launch settings if you have any, otherwise you can leave it to default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wfXHHyCv-Nzj_KUj.png" /></figure><p>6. After adding the application you need to configure it, and for that you can follow the instructions given in this image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*g7Y0p0Nj1w7SgFg6.png" /></figure><p>My use case is very simple so I don’t need to perform the above operations, and I can simply go to the next stage.</p><p>7. In the next stage you can test your applications to make sure they work as expected. Our use case does not require any testing so I will proceed to the next stage.</p><p>8. After the test stage you need to go to the optimize stage where you can optimize your apps to reduce their launch time. You need to simply press the Launch icon, and the image assistant will optimize the application for you.</p><p>9. After optimization you need to configure your image that is adding a name, description, and tags etc to your image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*PgV_nGYX7eTJQP8Q.png" /></figure><p>10. Finally you need to click “Disconnect” and Create Image icon.</p><p>11. Navigate to the image-registry, and search for your image. You can use it as soon as it enters the Available state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F6yNRNc3B2_17Y6R.png" /></figure><p>12. Now go to the fleet console, and create a fleet. For this example, I have created a general purpose, always-on fleet with default settings that will run the image that we have just created.</p><p>13. It takes about 10 minutes for the fleet to enter the Running state. During this time you can navigate to the stack console, and create a stack. For this example, I have created a stack using default settings.</p><p>14. When the fleet enters the Running state you need to go to the stacks console, and associate your fleet to the stack that you have created.</p><p>15. Now you need to create a user in the user pool console, and assign that user to the stack that you have created. You will receive an email with login details, and a url to access Appstream’s streaming session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IkUKM3bLn_hWbLjX.png" /></figure><p>16. Finally this is what a streaming session looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QDSUlITrr9Qeunhk.png" /></figure><p>As you can see I have only one application, and that is google chrome in my session.</p><p>Using the steps above you can stream a simple application using appstream.</p><h3>User Authentication in Appstream</h3><p>AWS Appstream provides two forms of user authentication:</p><ul><li>User Pools</li><li>SAML 2.0</li></ul><p>Appstream user pools are a collection of users that have been assigned specific permissions, and roles within the streaming environment. User pools allow you to control access to resources and manage user authentication based on the permissions assigned to each user.</p><p>SAML 2.0 (Security Assertion Markup Language) is an authentication protocol used to securely exchange authentication and authorization information between two parties. SAML 2.0 is used to authenticate users with an identity provider (IdP) such as Active Directory. Once authenticated, users can securely access their streaming sessions without having to authenticate again.</p><h3>AWS AppStream Security</h3><p>AWS AppStream 2.0 provides a number of security features to help ensure the safety of your data and applications. These include:</p><ul><li>Encryption of data in transit and at rest,</li><li>Authentication to control access to streaming resources,</li><li>Streaming URL authentication to access streaming sessions without authentication,</li><li>Streaming token authentication to authenticate users with a secure token generated by AppStream</li><li>Identity federation to authenticate users with an identity provider such as Active Directory.</li><li>Advanced security group configuration that allows you to control access to streaming resources by IP address and port.</li></ul><h3>Application and Storage Persistence in Appstream</h3><p>AWS AppStream 2.0 offers two different types of application and storage persistence:</p><ul><li>user-specific,</li><li>fleet-wide.</li></ul><p>User-specific persistence stores data on a user’s device, allowing them to access their data even after they disconnect from the streaming session. Fleet-wide persistence stores data in an encrypted Amazon S3 bucket, allowing any user from the fleet to access the data stored in the bucket. Additionally, AppStream 2.0 allows you to configure an Amazon EFS file system, which can be used for persistent storage for applications running on your fleet.</p><h3>Benefits of AWS AppStream</h3><p>AWS AppStream offers several benefits for businesses, including simplified application delivery. With AWS AppStream, businesses can easily deliver applications to users without complex software installations. This cloud-based service allows for central hosting of applications and enables users to access them through any web browser.</p><p>In addition, AWS AppStream provides enhanced security for streaming applications. It uses a secure HTTPS connection for users to connect to applications, and strict security protocols protect sensitive data.</p><p>AWS AppStream is highly scalable and can accommodate hundreds or thousands of users depending on business size. It’s a flexible solution that can easily adapt to changing business needs.</p><p>Finally, AWS AppStream is a cost-effective solution that eliminates the need for hardware upgrades and software licenses. Businesses only pay for the resources they use, making it an efficient and economical solution for delivering applications.</p><h3>Conclusion</h3><p>AWS AppStream is a powerful solution for businesses looking to simplify remote application delivery and enhance security. It’s a cost-effective and scalable solution that can accommodate businesses of all sizes. For more information about this service, infrastructure as code deployments or Xgrid’s other managed cloud services, contact us!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f760c6b04ff4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding, Communicating and Making Informed Decisions with Data Visualization]]></title>
            <link>https://xgrid.medium.com/understanding-communicating-and-making-informed-decisions-with-data-visualization-3f8819a809ab?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f8819a809ab</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Tue, 18 Jul 2023 06:42:28 GMT</pubDate>
            <atom:updated>2023-07-18T06:42:28.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X8WnUTb2qo5x2haO" /><figcaption>Photo by <a href="https://unsplash.com/ko/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral">Alina Grubnyak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>This blog post will focus on the importance of data visualization in presenting complex information in a way that is easy to understand and interpret. This Blog will discuss the significance of data visualization in a variety of fields, including business, science, and technology. We will also explore some of the best practices for creating effective data visualizations, and how to choose the most appropriate visualization style to fit different data sets. Whether you are a novice or a seasoned practitioner in the realm of data visualization, this blog promises to equip you with valuable insights on how to leverage Data Visualization for gaining insights, communicating ideas, and making informed decisions.</p><h3>What is Data Visualization?</h3><p>Data Visualization is the practice of presenting data in a visual format that makes it more accessible and understandable to the users. Data visualization involves creating graphical representations such as charts, graphs, maps, and other visuals that make complex data more accessible and easierto analyze. Data Visualization is used in a range of fields and industries, from business and finance to healthcare and science.</p><p>At its core, data visualization involves a few fundamental principles, such as selecting the right type of visualization for the data being presented, using appropriate labeling and color coding, and designing the visualization in a way that is aesthetically pleasing and easy to understand.</p><p>In this article, we will explore the many use cases of data visualization, including the benefits it offers to decision-makers and analysts.</p><h3>Usage</h3><h3>Data Warehousing</h3><p>Data Warehousing is a crucial process for modern businesses, enabling them to collect and store data from various sources in a centralized location. This data is then used to support business intelligence and analytics, providing valuable insights into market trends, customer behavior, and operational performance.</p><p>By utilizing Data Warehousing, companies can analyze vast amounts of data quickly and efficiently, using bar charts, pie charts, and line charts to visualize trends and patterns. This information can help businesses make informed decisions based on market trends, identify new opportunities, and manage risks.</p><p>For example, a finance company can use data warehousing to keep track of the balances and transactions as well as to generate dashboards that provide a clear overview of customer performance.</p><h3>Benefits</h3><ol><li>Improved customer engagement.</li><li>Identification and management of risks.</li><li>Market Analysis and investment performance.</li><li>Data-driven decisions to drive business performance.</li></ol><h3>Data Analytics</h3><p>Data Analytics is the process of collecting and analyzing large amounts of data from multiple sources to gain insights and understanding of customer behavior and preferences. One of the most critical components of data analytics is data visualization, which presents complex data in a clear, easy-to-understand format.</p><p>In the healthcare industry, data analytics is used to analyze the patient’s lab results, history, and trends in the patient’s health. The insights gained from data analytics are often presented using visual representations such as heat maps and plots, which help identify higher-risk patients and provide critical information to healthcare providers.</p><h3>Benefits</h3><ol><li>Improved quality of care for patients.</li><li>Informed decisions with complex data in a clear format.</li><li>Analysis of public health data that can improve population health.</li><li>Innovation support.</li></ol><h3>Data Science</h3><p>Data Science and Visualization canbe powerful tools when used together to solve multiple complex problems. The data should be collected, cleaned, and transformed to extract meaningful insights and make relevant predictions. While data science methods such as regression and machine learning can provide accurate predictions, visualizing the data can present the results in a more compelling and easy-to-understand format.</p><p>For instance, a transportation company can use data science to analyze customer data to make sales predictions while visualizing the data shows the predicted sales that can help in inventory management and strategies in marketing.</p><h3>Benefits</h3><ol><li>Improved and informed decisions.</li><li>Saving time and effort.</li><li>Easier understanding for non-technical stakeholders</li><li>Reduced errors and greater accuracy.</li></ol><p>Now focusing towards the Significance of Data Visualization.</p><h3>Significance of Data Visualization</h3><p>The significance of data visualization lies in its ability to communicate information and insights in a way that is easy to understand and digest.<strong> </strong>The importance of Data Visualization is rooted in terms of data analytics. Some metrics that make sense of a company’s past and future are:</p><ul><li>Revenue: Measuring revenue growth over time can help identify trends and forecast future revenue streams.</li><li>Customer Retention: Analyzing customer behavior and identifying factors that impact customer retention can help improve customer loyalty and reduce churn.</li><li>Website Traffic: Monitoring website traffic and user behavior can help identify opportunities to improve user experience and increase conversions.</li><li>Employee Performance: Tracking key performance metrics such as sales, productivity, and customer satisfaction can help identify areas for improvement and optimize workforce management.</li></ul><p>Data visualization aids in identifying and mitigating risks, including fraudulent activities, while also enabling informed decision-making critical for a company’s future.</p><h3>Fundamentals of Data Visualization</h3><p>Data visualization fundamentals include the following:</p><ol><li><strong>Data Quality: </strong>Ensuring that the data being visualized is correct and complete.</li><li><strong>Respective Context (Financial, Healthcare, Transportation): </strong>Understanding the business objectives, key metrics, and target audience.</li><li><strong>Data Representation: </strong>Choosing the right charts and visuals to represent the data.</li><li><strong>Interactivity: </strong>Providing interactive features that allow zooming in and hovering over the data.</li><li><strong>Dashboard Design:</strong> Dashboards that are visually appealing and easier to understand.</li><li><strong>Privacy and Security</strong>: Ensuring that the visualizations are secure and that they have the necessary access to view the data.</li><li><strong>Data Governance: </strong>To process and manage data quality.</li></ol><p>Now let’s head towards the types of visualizations and the different tools we can use</p><h3>Types of Visualizations</h3><p>Dashboards are the most effective forms of visualization, especially for tracking and presenting data from multiple sources in a clear and concise manner. The most common techniques for visualization include:</p><h3>1. Tables</h3><p>Tables are an effective means of presenting a large amount of structured information, with rows and columns enabling easy comparison of variables. However, when it comes to identifying high-level trends, users can easily become overwhelmed by the sheer volume of data presented in tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*8KN75E6xd888z5LRLZpTWw.png" /><figcaption><strong><em>Table: Transport during Covid -19 across various Countries.</em></strong></figcaption></figure><h3>2. Pie and Stacked Bars</h3><p>Pies and Stacked Bars are graphs that get divided into sections but represent the part as a whole. These are simple techniques to organize the data and compare the size of each component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YdQ_MiO2YWzub4qf4b6Pxg.jpeg" /></figure><h3>3. Line and Area Charts</h3><p>The visuals that show change by one or more quantities in plotting a data point series over time are used frequently. Line graphs are particularly useful for showing changes, while the area charts connect more data points, stack the variables and allow for easy comparison between the variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r50clwV7b2-2a0WPGpw4pQ.jpeg" /></figure><h3>4. Scatter Plots</h3><p>The visuals that are beneficial for representing the relationship between two variables are used Regression analysis employs visuals that effectively illustrate the relationship between two variables. However, they are visualized with three variables in the x and y axis and the size of a bubble.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*49vybbs5nZ-W4DEXR7WFdA.png" /></figure><h3>Tools for Data Visualization:</h3><p>There are many tools available for data visualization, both open-source and commercial. Some popular open-source tools include D3.js, Matplotlib, and Tableau Public, while commercial tools include Tableau Desktop, QlikView, and Microsoft Power BI. These tools offer a wide range of features for creating static and interactive visualizations, from simple charts and graphs to complex dashboards and interactive applications. They also provide options for customization, data connection, and collaboration, making them valuable for business, research, and personal use.</p><h3>1. Plotly</h3><p>Plotly is an open-source platform with several data visualization libraries built using Python. Their products vary from Dash to Chart Studio and are customizable. Plotly integrates with other libraries and is easily available. However, creating impactful visualizations requires a combination of pre-existing knowledge and coding skills. Pre-existing knowledge helps to understand the data and its context, while coding skills are necessary to transform the data into meaningful and impactful visualizations. There is limited documentation supported alongside.</p><h3>2. Tableau</h3><p>Tableau is more user-friendly but has limited functionality. Tableau is one of the easiest data visualization tools available in the market and has great interactive visualizations that can handle large amounts of data well. Tableau’s main functionality is the drag-and-drop feature that has the functionality to create dashboards without it impacting the integrity of their work. However, tableau does have some limitations, such as the coding skills required to manipulate data before it can be imported into tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3HGHbUUWX6sXIjdQYjAVVg.png" /></figure><p>The graph above displays the performance of Apple’s stocks over time. By tracking the stock prices visually, we can easily identify significant events that occurred and observe their impact on the stock’s performance.</p><h3>Microsoft Power BI</h3><p>Power BI is a commercial software that comes with a free version, offering users great visualization capabilities coupled with robust data connectivity and the ability to incorporate data modeling. It allows users to create interactive dashboards and reports with minimal training required.</p><h3>Conclusion</h3><p>Data visualization is an essential practice that facilitates the effective communication of information and insights through graphical representation of data. Data visualization is a powerful tool for summarizing complex information, identifying patterns and trends, and communicating insights to a wide audience. By representing data in charts, graphs, maps, and other visual formats, data visualization can empower businesses and researchers to make data-driven decisions and communicate findings more effectively. Successful data visualization requires careful consideration of various factors, including data quality, context, representation, interactivity, design, security, privacy, and governance. This holistic approach ensures that visualizations accurately reflect the data, meet business objectives, and engage users, leading to better decision-making and improved outcomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f8819a809ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Increasing Win Rates and Efficiency with Marketing Automation]]></title>
            <link>https://xgrid.medium.com/increasing-win-rates-and-efficiency-with-marketing-automation-bf99da0e35f2?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf99da0e35f2</guid>
            <category><![CDATA[marketing-automation]]></category>
            <category><![CDATA[marketo]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[marketing-technology]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 05:02:26 GMT</pubDate>
            <atom:updated>2023-07-20T13:19:25.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ijpbjas5Rkc7TQHO" /><figcaption>Photo by <a href="https://unsplash.com/de/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>A Tale of Business Triumph and Great Alignment</h3><p>Imagine this: you find yourself in a bustling office, surrounded by a hive of activity. Salespeople are making calls, marketing folks are brainstorming creative campaigns, and the energy in the air is palpable. But something’s amiss. Despite the collective talent and dedication of the teams, there’s a disconnect that’s holding them back from realizing their full potential.</p><p>Similar was the situation in our case.</p><p>There were countless challenging aspects.</p><p>In this tale of business triumph, we’ll introduce you to our protagonist, a determined company that faced the daunting challenge of bridging the gap between Marketo and Salesforce. Their dream was to unlock the power of Marketing Operations and propel their B2B sales to soaring heights.</p><p>Our hero recognized the untapped potential within their organization, but they needed a guiding hand, a beacon of knowledge, to navigate the maze of barriers standing in their way. That’s where we came in, armed with expertise and a passion for unlocking business potential.</p><p>The true secret to our hero’s success lay in the alchemy of aligning sales and marketing teams, automating lead routing, and harnessing the power of data-driven decision-making. It was this trifecta of strategies that catapulted their B2B sales to unprecedented heights.</p><p>Without further ado, let’s dive deeper into this tale of Great Alignment! FYI, we know our grammar but we wanted to make it special so we capitalized it.</p><h3>The Mighty Challenges and Hurdles</h3><p>The road to success is often paved with challenges, and our client was no exception. As we delved into their world, we discovered a myriad of pain points and obstacles that were impeding their progress. Here’s a glimpse into the challenges we encountered:</p><ul><li><strong>Failure to effectively utilize automation:</strong> Despite investing in marketing automation, our client struggled to leverage its full potential. They were trapped in a cycle of wasted resources and poor results.</li><li><strong>Lack of Effective A/B Testing:</strong> Not all content is the king. Sometimes, it’s the small posts, or a random piece of content that aligns well with the target audience and creates the much-desired impact. Of course, if you don’t know which post or content piece made the most impact, you are putting your money on the table. For our client, the lack of A/B testing was exacerbating the issue. They didn’t know which of their content pieces were performing better than others. It resulted in countless missed opportunities.</li><li><strong>Relying on subpar/low-quality data:</strong> Data is the lifeblood of effective marketing, but our client was working with data that was subpar and unreliable.</li><li><strong>Automating tasks that shouldn’t be automated:</strong> Sometimes, automation isn’t the answer to everything. Our client had fallen into the trap of automating tasks that required a human touch, resulting in impersonal and ineffective interactions.</li><li><strong>Lack of flexibility &amp; scalability:</strong> Their existing setup lacked the flexibility and scalability needed to adapt to changing market demands. It was like driving a car with square wheels — not the smoothest ride.</li><li><strong>Cross-channel platform issues leading to data duplication:</strong> The client’s cross-channel platform was causing data duplication, leading to confusion and inefficiencies. It was time to untangle the web and streamline their data flow.</li><li><strong>Limited insights and reporting constraints:</strong> Without the right insights and reporting mechanisms, our client was navigating in the dark. They needed a clear view of their performance to make informed decisions.</li><li><strong>Lack of single prospect view:</strong> The absence of a unified view of prospects made it challenging to create personalized and targeted marketing campaigns. It was like trying to hit a moving target with a blindfold on.</li><li><strong>Negative product perception:</strong> Perception is everything in the business world, and our client was grappling with a negative perception of their products. It was time to turn the tide and reignite the flame of positivity.</li></ul><p>Armed with a deep understanding of these pain points, we, as a leading <a href="https://consult.xgrid.co/marketing-automation/">marketing automation agency</a>, embarked on a comprehensive audit of their existing system to ensure a thorough evaluation. We wanted to uncover the root causes of their challenges and lay the foundation for a transformative journey. With each challenge identified, we strategically analyzed and incorporated industry-leading marketing automation best practices to craft a tailored solution that would revolutionize their marketing operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Tz69CJikYGmQjH0f" /><figcaption>Photo by <a href="https://unsplash.com/@bkotynski?utm_source=medium&amp;utm_medium=referral">Bethany Legg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Dealing with Demons and Dragons (Pain Points) of Our Client</h3><p>Now we are spilling the secret beans on our marketing automation strategy. Mind you, it took some convincing and persuasion but in the end, all that we do is available to our esteemed readers!</p><h3>Marketo Approach</h3><p>Revolutionizing our marketing game, we wholeheartedly embraced Marketo’s cutting-edge approach, implementing industry-leading best practices to drive exceptional results. With data-driven precision and seamless Marketo integrations, we achieved success. Marketo became our trusted ally, driving exceptional results and propelling our business forward.</p><ol><li><strong>Munchkin: Igniting Web Data</strong></li></ol><p>To unleash the power of web data, we unleashed the magic of Marketo’s secret weapon — Munchkin. By implementing Munchkin on web pages, we opened the floodgates of valuable insights. It captured essential lead information, including page views, dates visited, URL paths, and more. And rest assured, our developers ensured GDPR compliance by wrapping the Munchkin code within the necessary protective layers.</p><p><strong>2. Templates: Bidding Farewell to Time-consuming Programs</strong></p><p>Recognizing our client’s struggles, we devised a game-changing solution. We crafted enticing program templates for webinars, events, promotional emails, and nurture programs. Whenever a new program was needed, a simple clone of the desired template would work its magic. It seamlessly replicated all the essential assets, requiring only minor edits. In minutes, a fully customized program was ready to dazzle.</p><p><strong>3. Naming Convention: Organizing for Scalability</strong></p><p>Scalability lies in the heart of organization and record-keeping. That’s why we introduced a standardized naming convention for all programs. Our automation approach involved incorporating the target region, program type, and date, followed by a concise description. We even went a step further, creating a name generator tool that perfectly aligned with these specifications. Say hello to streamlined program management.</p><p><strong>4. Tokens: Efficiency Unleashed</strong></p><p>In our arsenal of Marketo’s best features, tokenization emerged as a superstar. With each program boasting unique speakers, starting times, and locations, updating fields across numerous invite emails, reminders, and follow-ups seemed daunting. Tokens swooped in as our saviors, acting as placeholders. Once a value was defined, it propagated across all instances automatically. Quick updates, minimal errors, and maximum efficiency — that’s the power of tokens.</p><p><strong>5. Event Integrations: Seamless Synchronization</strong></p><p>Goto and Zoom-Marketo Integration became our secret weapon for effortless event management. By leveraging auto-sync capabilities, we eliminated the need for manual registration and attendance tracking. When a person registered on Zoom, their status automatically updated in Marketo. Say goodbye to the days of manual monitoring — now, it was all taken care of with ease.</p><p><strong>6. A/B Testing: Unlocking Content Brilliance</strong></p><p>Content reigns supreme, and we knew finding the right formula was crucial. We leveraged A/B testing, our trusty tactic. We optimized marketing campaigns by defining subject line variations and testing them on a sample audience, typically 20% of the total. Based on winning criteria such as open rates or click rates, we unleashed the winning email to the remaining 80%, captivating the right audience and driving higher open rates for our cherished client.</p><h3>Salesforce Approach</h3><p>As we ventured into the realm of Salesforce, we discovered the immense impact of data management and seamless integrations.</p><ol><li><strong>Data Hygiene and Strategies for Success</strong></li></ol><p>At the heart of marketing automation lies clean and healthy data. We stressed the importance of maintaining a pristine database and shared effective strategies to achieve this goal. Through the power of smart lists and defining marketable leads, we automated cleansing processes, ensuring that data remained accurate and up to date. It was a crucial step in building a solid foundation for marketing automation success.</p><p><strong>2. Seamless Integrations and Data Flow</strong></p><p>To unleash the full potential of Salesforce, flawless integrations were imperative. We emphasized the need for seamless data flow by establishing robust connections with platforms like LinkedIn. By seamlessly integrating Salesforce with other systems, we ensured that data moved effortlessly, eliminating any disruptions or breakages along the way. It was a key element in optimizing our client’s marketing operations.</p><p><strong>3. Compliance and Streamlined Processes</strong></p><p>Privacy compliance took center stage as we implemented solutions to address concerns head-on. We devised mechanisms to track End User License Agreement (EULA) acceptance, capturing the date and time of acceptance. This ensured accountability and transparency in data usage. Additionally, we addressed the pressing issue of duplicate records through effective Salesforce duplicate management. Leveraging the power of DemandTools, a versatile and secure data management platform, we efficiently identified and merged duplicates based on defined criteria. This process laid the groundwork for a streamlined and efficient Salesforce environment.</p><p><strong>4. Deduplication: Eliminating Chaos</strong></p><p>To overcome challenges such as a lack of a single prospect view and negative product perception, we set out to eliminate duplicate records. Armed with DemandTools, we embarked on a journey of deduplication. We meticulously identified existing duplicates in Salesforce and categorized them based on predefined criteria. Each category had its own definition of a duplicate, from 100% match records to those with the same name and email. Merge criteria were defined for each category, and the primary contact, the contact to keep, was selected based on multiple fields such as the last activity date, the prospect’s role in the company, and address. With precision and care, we merged duplicates, paving the way for a more unified and cohesive Salesforce environment.</p><p><strong>5. Matching and Duplicate Rules: Preventing Future Duplicates</strong></p><p>To ensure a future free from duplications, we implemented multiple matching rules in Salesforce. These rules played a crucial role in identifying different categories of duplicates being created within the system. Once the matching rules were set, we established duplicate rules in Salesforce that defined the necessary actions to be taken when a duplicate was detected. These rules automated the process of merging duplicates or alerting the appropriate team member to take action. By streamlining the process and reducing manual work, we empowered sales reps and marketing staff to focus on what truly mattered.</p><p><strong>6. The Holy Grail of Lead Routing</strong></p><p>After successfully completing the data deduplication process, we further enhanced our lead management capabilities by integrating lead routing into Salesforce. This integration revolutionized the distribution of incoming leads among our sales representatives, streamlining our Salesforce lead management process. Each sales team member was assigned leads exclusively from specific territories, ensuring automatic and real-time allocation through customized lead assignment rules.</p><p>Our Salesforce lead assignment strategy, Round Robin, was carefully chosen to distribute leads among groups of potential owners based on lead territories. Leads were systematically assigned to each owner until every representative had received a lead. This cyclic process continued until all incoming leads were allocated, resulting in equitable distribution.</p><p>The advantages of lead routing were significant. Swift response times to prospects’ requests increased customer satisfaction, meeting their expectation for quick engagement. By promptly reaching out within hours of initial contact, we effectively mitigated the risk of losing potential customers to competitors. Automation of Salesforce lead management enhanced sales intelligence, enabling data analysis, trend identification, and accurate forecasting.</p><p><strong>7. Territory Management for Streamlined Account and Opportunity Handling</strong></p><p>After implementing lead routing, we leveraged Territory Management — a dynamic tool that revolutionizes account and opportunity management by territories. By creating a structured Territory hierarchy and implementing assignment rules based on geographic location, we ensured seamless organization and allocation.</p><p>Sales reps were assigned to territories matching their leads, fostering focused engagement. With a private sharing model, reps efficiently managed records within their assigned territories. Our strategic approach optimized territory coverage, boosting revenues and customer satisfaction. Salesforce Territory Management unlocks the potential for streamlined sales operations, empowering businesses to conquer markets and drive exceptional results. Sounds quite technical, doesn’t it? Well, it’s territory management.</p><h3>So…Did We Accomplish Our Results? Of course We Did!</h3><p>Our game-changing marketing automation implementations involved creating a smooth handoff between the sales and marketing teams. This genius move allowed us to concentrate resources where they mattered most, leading to some serious individual and team brilliance. Our hero (our client) got the ending they had worked so hard for!</p><p>But hold onto your hats, because there’s more! We introduced an automated lead routing system that worked like a charm, boosting pipeline efficiency by a mind-blowing 36% and making the sales win rate shoot up by a whopping 38%! Now, that’s what we call a victory dance!</p><p>And let’s not forget the unsung hero of the tale: smart database management. By sprinkling some magic on our customer’s marketing campaigns, we improved their efficiency by a solid 23%. It’s like having a trusty sidekick that makes everything run smoothly.</p><p>Now, you might be wondering, “How did <a href="https://www.xgrid.co/">Xgrid</a> pull off these incredible results?” Well, it’s all about getting the sales and marketing teams in sync, automating lead routing like a pro, and making data-driven decisions that can steer your ship to success. It’s like having a superpower in your back pocket.</p><p>By harnessing the power of data analytics, we give our customers the insights they need to make informed decisions about their sales and marketing strategies. In today’s cutthroat market, having that knowledge is like having a secret weapon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf99da0e35f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the Power of Open Source Introducing XC3 Cloud Cost Control]]></title>
            <link>https://xgrid.medium.com/unleashing-the-power-of-open-source-introducing-xc3-cloud-cost-control-f4644eb61496?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4644eb61496</guid>
            <category><![CDATA[cloud-control-cost]]></category>
            <category><![CDATA[cloud-cost-management]]></category>
            <category><![CDATA[cloud-cost-manage-tools]]></category>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Wed, 17 May 2023 10:26:33 GMT</pubDate>
            <atom:updated>2023-05-17T10:26:33.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qwCsaU-bbvRvGciCWemPRA.jpeg" /><figcaption>Introducing XC3: Open Source Cloud Cost Control Solution</figcaption></figure><h3>Introduction</h3><p>Introducing our latest package offering, <a href="https://github.com/XgridInc/xc3">XC3</a>, designed to help businesses achieve operational efficiency in their cloud infrastructure and effectively control cloud costs. As more companies transition to the cloud, cloud cost management has become increasingly important for successful operations. XC3 is a cloud cost control solution developed by Xgrid and powered by open-source tools such as Cloud Custodian, Prometheus, and Grafana. With XC3, businesses can streamline their cloud cost optimization strategies, enabling them to maximize their cloud resources while minimizing their costs.</p><p>In this blog post, we’ll dive into the complexities of controlling cloud costs and explore the benefits of using XC3. XC3 enables its users to gain access to a wide array of features, including the ability to monitor cloud costs, detect and remediate idle resources, and set custom alerts to ensure optimal cloud usage. The recent updates in XC3 acknowledge that the software is licensed under Apache Software License 2.0, and we encourage everyone to contribute to the project by reporting issues and submitting enhancements. Let’s work together to enhance the functionality of XC3 and make it the go-to solution for cloud cost control.</p><h3>Why XC3: The Open Source Revolution That Makes Cloud Cost Control a Breeze!</h3><p>Controlling costs in the cloud is an ongoing challenge for businesses, and there are several major obstacles that companies must contend with in order to keep their cloud spending in check. These challenges are not one-time issues that can be solved and forgotten; rather, they require continuous attention and robust management to ensure that costs remain under control over the long term. Some of the key challenges that businesses face when it comes to controlling costs in the cloud include but are not limited to:</p><ol><li><strong>Complexity of cost attribution:</strong> The complexity of cost attribution makes it stringent to determine which resources were provisioned by whom, leading to a lack of visibility and making it challenging to effectively manage and control costs. For example, multiple departments or teams within an organization may be using the same cloud resources, making it difficult to attribute costs accurately. Adopting a code offering like XC3 can help businesses overcome these challenges and implement best practices associated with multi-cloud cost optimization.</li><li><strong>Identifying the most expensive resources:</strong> Identification of the most expensive resources can be an additional challenge. Without insight into which resources are driving up costs, businesses may struggle to optimize usage and control costs efficiently.</li><li><strong>Unused and underutilized resources:</strong> Unused and underutilized resources can also be a significant drain on costs. These resources can continue to accrue costs, even if they are not being utilized effectively. Without proper monitoring and management, businesses may end up paying for resources they don’t even need.</li><li><strong>Lack of visibility into cloud usage:</strong> Without proper visibility into cloud usage, businesses may struggle to understand where their resources are being utilized and how they can be optimized. This can lead to overspending, wasted resources, and increased costs.</li><li><strong>Lack of expertise in cloud cost management:</strong> Managing cloud costs requires expertise and knowledge. Without the right skills and resources, businesses may struggle to optimize usage and control costs effectively.</li></ol><p>XC3 is a solution that helps businesses control cloud costs by providing real-time visibility into cloud usage and costs. It enables businesses to identify inefficiencies and waste, track and manage cloud spending across multiple providers and accounts, and optimize their cloud infrastructure for cost savings and efficiency. With XC3, businesses can reduce cloud costs, prevent overspending, and achieve greater value from their cloud investments.</p><h3>Exploring the Power of XC3: A Hands-On Guide</h3><p>One of the key features that sets XC3 apart from other cloud cost management tools is that customers have complete ownership of the underlying infrastructure. This means that customers’ data stays within their own environment, providing an extra layer of security and control. Powered by open-source tools such as Cloud Custodian, Prometheus, and Grafana, XC3 offers a user-friendly interface and advanced features that make it easier for businesses to monitor their cloud inventory, track resource usage, and optimize cloud costs. By using XC3, businesses can ensure that their cloud resources are tagging policy compliant, which helps with cost allocation and resource optimization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JkSX3unZq6Gj3_ZZ.jpg" /><figcaption>Cloud Costs and Compliance with XC3</figcaption></figure><p>XC3 is a cloud-agnostic platform that supports multiple cloud providers. Its modern and efficient serverless infrastructure includes Lambda functions, API gateway, SNS, and SQS, all set up with Terraform. It’s worth noting that the cost of XC3 infrastructure may vary depending on the usage patterns and the amount of traffic the application receives. Therefore, it’s important to monitor the usage and adjust the resources accordingly to optimize the costs.</p><p>XC3 provides secure access to its users, allowing them to authenticate and authorize access to the dashboard using AWS Cognito. Users can easily configure and deploy XC3 infrastructure with its automated deployment capabilities. In addition to these advanced features, XC3 boasts an easy-to-use interface that empowers users with comprehensive insights and analytics for optimizing cloud costs across multiple cloud providers. Here are some of the key reasons how:</p><ol><li><strong>Resource inventory retrieval and presentation</strong>: XC3 retrieves and presents a comprehensive resource inventory for businesses, providing greater visibility into their cloud infrastructure. This helps them to understand where their resources are being used and how they can be optimized to reduce costs.</li><li><strong>Maximizing observability of cloud infrastructure costs:</strong> XC3 optimizes cloud infrastructure costs by providing comprehensive observability through AWS cost explorer managed service APIs. It accurately discovers resources and attributes costs to them, benefiting businesses with a clear understanding of their spending. This allows for informed decisions and efficient resource optimization, resulting in cost savings.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zSUirH6RUWjVMzN2.png" /><figcaption>Grafana Dashboard</figcaption></figure><p>This diagram provides a monthly cost breakdown of a selected AWS account, including the cost of the AWS organizational units and the cost of each project. It offers comprehensive cost visibility to enable data-driven decisions for optimizing cloud costs effectively.</p><h3>XC3 Workflows</h3><p>In addition, XC3 allows users to build custom workflows through dynamic and conditional policy execution. Below we look at some of the workflows enabled by XC3:</p><ol><li><strong>Cost allocation through tagging compliance</strong>:</li></ol><p>Automate your cloud resource tagging with XC3 and stay compliant with ease! Our event bridge-triggered process ensures proper cost allocation and consistent tagging compliance for multiple cloud providers. Never miss a tag again — XC3 identifies untagged resources and applies the appropriate tags according to your policy. Manage and track your AWS resources hassle-free with XC3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wLAMSFw5n741CB4_.png" /><figcaption>XC3 Tagging Compliance</figcaption></figure><p>XC3 goes beyond just ensuring tagging compliance by providing stakeholders with relevant information about the EKS cluster as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LOPieHaouKySnOv7.png" /><figcaption>Tagging Compliance Alert</figcaption></figure><ol><li><strong>De-provisioning of non-critical workloads:</strong></li></ol><p>De-provisioning of non-critical cloud resources is essential for optimizing cloud costs and maintaining a secure environment. Automated cloud management tools, like Cloud Custodian policies, make it easier to streamline cloud usage and promote efficient resource management. Cloud Custodian policies can be used to stop and start EC2 instances during non-working hours as well as for deprovisioning EKS clusters. Administrators can receive email notifications to stay informed about the deprovisioning process. The way Cloud Custodian supports deprovisioning of EC2 instances and EKS clusters, similar processes can be replicated for other AWS resources to cut cloud costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SzabJ0velw2Mrwom.png" /><figcaption>Deprovisioning of Non-critical Workloads</figcaption></figure><p>This diagram illustrates how EC2 instances can be stopped using the ‘off-hour’ tag to reduce costs associated with running idle resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vuOXxhHemv9cNh2G.png" /><figcaption>Stopped Instances</figcaption></figure><ol><li><strong>Monitoring and Alerting:</strong></li></ol><p>The XC3 backend utilizes an event-driven serverless architecture to generate cost reports, which are stored in an S3 bucket. A Cost Report Notifier application is scheduled to run on a regular basis using AWS EventBridge. When the application runs, it retrieves the reports from the S3 bucket and transforms them into markdown tables for easier readability.</p><p>After the reports have been transformed, the Cost Report Notifier leverages the APPRISE library to distribute them to various target sinks. By doing so, the Cost Report Notifier proactively notifies the relevant team members of any possible cost concerns, allowing them to promptly take necessary actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9K2ETjbI97x0nrz5.png" /><figcaption><em>Cost Report Notifier</em></figcaption></figure><p>Check out the example notification below, which provides detailed information on cost-sensitive metrics such as the monthly cost breakdown of your AWS accounts and projects, as well as the most expensive services being used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dTn46NMQhHiCFZK9.png" /><figcaption>Cost Report Notifier Alert</figcaption></figure><h3>What’s next for XC3?</h3><p>As an open-source package offering, XC3 is continuously evolving to meet the needs of businesses operating in the cloud. We have a roadmap in place to add new features and functionalities to XC3, and we are excited to hear from our users and contributors. Our team is currently working on enhancing XC3’s resource optimization capabilities by adding support for more cloud platforms and advanced remediation workflows. We also plan to integrate new open-source tools into XC3 to provide users with even greater insights into their cloud usage and cost optimization.</p><p>We invite you to join us in building the <a href="https://join.slack.com/t/xgrid-group/shared_invite/zt-1uhzlrt6t-Dx_BqfQJKsHhSug1arbbAQ">XC3 community</a> and contributing to its development. Whether you want to suggest a new feature, report a bug, or simply want to start a discussion, we welcome your feedback. Together, we can make XC3 the go-to solution for cloud cost optimization and help businesses save money while operating more efficiently in the cloud. Let’s join forces and revolutionize cloud cost optimization with XC3!</p><p>For our <strong>Product Overview</strong>, watch this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FoDcqqs73NXw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DoDcqqs73NXw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FoDcqqs73NXw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/382984317ed7d5cde7dc40ba3be4c5bb/href">https://medium.com/media/382984317ed7d5cde7dc40ba3be4c5bb/href</a></iframe><p>For the <strong>Product Demo</strong>, watch this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FK4eEcl3wTZ0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DK4eEcl3wTZ0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FK4eEcl3wTZ0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/162ca3004eb9b5f471cbde2efd27ad91/href">https://medium.com/media/162ca3004eb9b5f471cbde2efd27ad91/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4644eb61496" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XkOps: Open Source Observability Tool for Robust Performance]]></title>
            <link>https://xgrid.medium.com/xkops-open-source-observability-tool-for-robust-performance-8aabc280fdad?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aabc280fdad</guid>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[kubernetes-cost]]></category>
            <category><![CDATA[observability-cost]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[observability-tools]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Wed, 17 May 2023 10:14:29 GMT</pubDate>
            <atom:updated>2023-05-17T10:16:30.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EpKlvRPDOE_GAxZ-PigPaQ.jpeg" /><figcaption>Introducing XkOps: An Open Source tool for implementing a robust observability strategy</figcaption></figure><h3>Introduction</h3><p>Introducing <a href="https://github.com/XgridInc/xkops">XkOps</a>, a new open-source tool that simplifies the process of getting valuable insights into your Kubernetes cluster. With XkOps, you can streamline the installation of all components necessary to gain visibility into cost spend metrics, performance of your applications, performance of your Kubernetes infrastructure components, and even integrate SIEM (Security Information and Event Management) via popular tools like Datadog and SumoLogic. The XkOps solution provides a single pane of view for security posture, combining alerts, misconfigurations, threats, and vulnerabilities SLAs.</p><p>Join us in developing the XkOps community! We’re extending an invitation to all interested collaborators. XkOps is freely available under the Apache 2.0 license, and we encourage everyone to contribute to the project by reporting issues and submitting enhancements. Our goal is to expand the tool’s functionality by extending support to all cloud platforms and introducing new features. If you have any suggestions, we’d love to hear them. Share your ideas with us through our <a href="https://join.slack.com/t/xkopscommunity/shared_invite/zt-1u8xzjvvq-B52TJ2XE861v3KDvpA9UVg">XkOps community.</a> Let’s work together to make XkOps the best it can be!</p><h3>Why Build XkOps?</h3><p>A comprehensive approach to observability for a Kubernetes cluster necessitates stringent oversight of CRS (cost optimization, reliability and security) at every stage in the product life cycle. This is now more challenging than ever due to the complex and distributed nature of contemporary cloud environments.</p><p>Building on the importance of CRS (cost optimization, reliability, and security) in cloud deployments, we strongly believe that observability is a critical prerequisite to achieving these goals. In complex cloud-native environments such as Kubernetes, having a clear understanding of the system’s current state and identifying any events that alter its state is essential for the smooth operation of mission-critical applications. Prioritizing observability allows for early insights into your environment, offers better control over costs, increased application reliability, and state-of-the-art cloud security. By staying on top of the three foundational components of modern cloud deployments, you can ensure that your system is optimized for cost, maintains reliable performance, and is secure throughout its life cycle.</p><p>To achieve observability in Kubernetes environments, there are various open-source and proprietary tools available that can help with cost optimization, reliability, and security. For cost optimization, Kubecost, Opencost, Anodot, and CloudCustodian are popular tools. To ensure maximum uptime and reliable infrastructure, Prometheus, Datadog, Grafana, Robusta, Pixie, and Pagerduty are among the widely used options. Similarly, for securing Kubernetes clusters, tools such as SIEM datadog, Snyk k8s policy and config checker, and custom frameworks for specific misconfigs can be used. Given the abundance of available options, it can be challenging to confidently select and utilize the right tools to achieve observability.</p><p>XkOps answers the need for an all-encompassing strategy to achieve observability in Kubernetes environments. Featuring state-of-the art open source tools preconfigured into a comprehensive solution, this tool provides reliable cost optimization, reliability and security that are invaluable during development or maintenance of any cloud deployment. With XkOps, users can confidently monitor their environment throughout its product life cycle with ease.</p><h3>How XkOps works?</h3><p>XkOps is a powerful and comprehensive solution that simplifies Kubernetes observability challenges. It achieves this by combining popular open-source tools like Kubecost, Robusta, and Pixie into a single Docker image. This results in improved cost control, reliability, and security in cluster operations, which ultimately enhances observability. With XkOps, users can conveniently assess the costs, reliability, and security of their Kubernetes clusters, making it easier to manage their clusters and derive valuable insights. Additionally, XkOps integrates these tools to provide seamless and coherent functionality with minimal human intervention. This combination of powerful tools makes Kubernetes’ observability and cluster management more efficient, cost-effective, and secure.Although our current offerings include a single out-of-the-box workflow, we are continuously expanding our library to provide additional options for users.</p><p>Let’s take a closer look at how Kubecost, Robusta, and Pixie are utilized by XkOps and how these tools contribute to resolving Kubernetes observability challenges.</p><h3>Kubecost:</h3><p>XkOps utilizes <a href="https://www.kubecost.com/">Kubecost</a> for cost monitoring in Kubernetes environments, leveraging the OpenCost models originally developed and open-sourced by Kubecost. These models provide visibility into current and historical Kubernetes spending and resource allocation, offering cost transparency.</p><p>By offering real-time visibility, cost tracking by namespace or application, and cost optimization recommendations, Kubecost helps organizations reduce their spend by 30–70% on average. Kubecost’s seamless integration with various cloud providers and Kubernetes distributions makes it a top choice for optimizing cloud expenditures and improving resource efficiency in organizations with independent team provisioning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_1FVfDUVONV6Ojfw.jpg" /><figcaption>Kubecost dashboard</figcaption></figure><p>The Kubecost dashboard, as depicted in the image above, provides a comprehensive overview of a Kubernetes cluster’s cost-related information. It displays the total savings identified and total costs incurred by the cluster, along with detailed insights into how individual assets within the cluster are incurring costs. Additionally, the dashboard presents a cluster efficiency analysis over a period of time, allowing users to track and optimize cost management in their Kubernetes environment.</p><h3>Robusta:</h3><p>Incorporating <a href="https://home.robusta.dev/">Robusta</a> into XkOps boosts cluster reliability and uptime by seamlessly connecting to the Kubernetes API and monitoring Kubernetes changes. Robusta, an open-source platform designed for Kubernetes troubleshooting and multi-cluster observability, actively listens to all events in your cluster, provides valuable insights on triggers behind alerts, concurrent occurrences, and recommends actions. By enhancing existing alerts or creating new ones based on changes in your Kubernetes cluster, Robusta empowers Kubernetes administrators to efficiently identify, troubleshoot, and mitigate issues such as crashing pods, high CPU usage, and excessive memory consumption. With the seamless integration of Robusta, Kubernetes administrators can confidently address and resolve various challenges, ensuring smooth operation of their clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mkF_6gEClZONqGyi.png" /><figcaption>Robusta — Alert on HPA limit reached</figcaption></figure><p>In the image above, we can see that Robusta sends a notification whenever the Horizontal Pod Autoscaler (HPA) reaches its maximum replicas, providing an opportunity to address the issue. Users have the option to update the HPA’s maximum replicas by clicking on a remediation action right within the chat, which will automatically increase the maximum replicas to resolve the situation.</p><h3>Pixie:</h3><p><a href="https://pixielabs.ai/">Pixie</a>, an open-source observability platform for Kubernetes clusters that uses eBPF, improves reliability by providing effortless cluster-wide visibility into resources, performance, and events, eliminating the need for manual instrumentation or service restarts. With its plug-and-play architecture, Pixie offers granular observability, allowing users to track cluster resources, analyze cluster events, and diagnose cluster problems quickly. Its platform-wide observability enables users to see everything in their clusters, understand how nodes, pods, containers, and applications impact each other, and receive real-time alerts for critical issues, ensuring reliable and efficient operation of Kubernetes clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bkX1WgPv9G92fxuv.png" /><figcaption>Pixie Dashboard</figcaption></figure><p>In the image provided, the user has executed a script called px/nodes by Pixie, which provides a convenient way to gather high-level resource usage information for all nodes in their Kubernetes cluster. The output of the script includes a comprehensive list of all the nodes in the cluster, along with key metrics such as CPU usage, memory consumption, and network traffic statistics. Additionally, the script also presents a list of pods that were running on each node during the specified time window. This valuable information can assist users in gaining insights into the overall performance and resource utilization of their Kubernetes cluster.</p><h3>Unlocking XkOps Potential: Introducing X-Workflows</h3><h4>X-Workflow 1: Identifying and Deleting Unclaimed Volumes</h4><p>Are you looking to identify and delete any unclaimed volumes in your Kubernetes environment that are costing you money?</p><p>Our team has created this out-of-the-box offering that integrates with Kubecost to gather cost information about volumes and then communicates with Robusta to delete them. However, we understand that simply deleting all unclaimed volumes may not always be the best approach if you are not application or context-aware. That’s why our solution is configurable and can be automated but requires user input through a single click to delete. We provide policies to build customizable workflows tailored to your needs, and any gaps can be addressed by creating an issue or open-source pull request. With this solution, you can optimize your Kubernetes costs with confidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mujt-ban2I_OSSny.png" /><figcaption>X-Workflow: Unclaimed Volumes Workflow</figcaption></figure><p>To use this workflow, you need first install XkOps it on your cluster by following the instructions in the <a href="https://github.com/XgridInc/xkops/">README</a> guide. After installation, you can access Kubecost, Robusta, and Pixie tools, which help you manage costs and improve reliability. With the XkOps dashboard, you can access recommendations related to unused unclaimed volumes, and with a single click, you can delete them using Robusta. The dashboard offers insights into your infrastructure, allowing you to make data-driven decisions to enhance operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wnI59KRp82Fio9Zi.png" /><figcaption>Unclaimed Volumes Dashboard</figcaption></figure><p>The XkOps dashboard shown in the image above offers users a simple way to manage unclaimed volumes in their Kubernetes cluster. This dashboard displays a comprehensive list of all the unclaimed volumes in the cluster, allowing users to easily identify and remove them. By removing these unused volumes, users can reduce unnecessary costs and optimize their Kubernetes environment. To simplify the process of removing unclaimed volumes, XkOps has integrated Robusta, a powerful tool that automates volume deletion. The user can simply click the delete button on the XkOps dashboard, and Robusta will take care of the rest in the background. This process requires minimal effort from the user, making volume management quick and efficient.</p><p>Although the current offering of XkOps provides only one workflow to identify and delete unclaimed volumes, the team is committed to expanding its library with more customizable workflows tailored to the specific needs of users.</p><h3>What’s next for XkOps?</h3><p>The XkOps project is just getting started, and the team is eager to hear from you as they continue to add new features iteratively. They have already begun work on additional workflows to remediate cluster problems based on the recommendations of open-source tools integrated with XkOps. Support for more cloud environments is also in progress, as well as a revamp of the XkOps dashboard and much more. As a team, they are committed to supporting and contributing to the success of the open-source projects that XkOps depends on, including Robusta, Pixie, and Kubecost. One of the most exciting aspects of XkOps is its ability to highlight the projects it relies on and promote their growth and development. Be sure to stay tuned for more updates and new features as the project evolves!</p><p>Going forward, we welcome you to be a part of Xkops community where you can share your thoughts by <a href="https://join.slack.com/t/xkopscommunity/shared_invite/zt-1u8xzjvvq-B52TJ2XE861v3KDvpA9UVg">starting a discussion,</a><a href="https://github.com/XgridInc/xkops/issues"> suggesting new ideas</a>, or reporting any bugs you may find. Your contributions are valuable to us, and we are excited to evolve XkOps in public by building milestones and a roadmap based on feedback from our users and contributors. So come and be a part of our journey as we strive to make XkOps even better!</p><p>For our <strong>Product Overview</strong>: watch this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FF1HgzqHCOmY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DF1HgzqHCOmY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FF1HgzqHCOmY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f556936e730c2021afc9b8c21b5a72e2/href">https://medium.com/media/f556936e730c2021afc9b8c21b5a72e2/href</a></iframe><p>For the<strong> Product Demo:</strong> watch this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl-psN4IDDBA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl-psN4IDDBA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl-psN4IDDBA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/67dab1dd02f27ce8bf8a9e73be0ffdcd/href">https://medium.com/media/67dab1dd02f27ce8bf8a9e73be0ffdcd/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aabc280fdad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Communication in a Hybrid Cloud — A Case of Site-to-Site VPN on AWS]]></title>
            <link>https://xgrid.medium.com/secure-communication-in-a-hybrid-cloud-a-case-of-site-to-site-vpn-on-aws-e22e06c14b87?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/e22e06c14b87</guid>
            <category><![CDATA[aws-vpn]]></category>
            <category><![CDATA[site-to-site-vpn]]></category>
            <category><![CDATA[aws-s2s]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 10:50:36 GMT</pubDate>
            <atom:updated>2023-04-05T10:50:36.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>Secure Communication in a Hybrid Cloud — A Case of Site-to-Site VPN on AWS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCGZJo1RoKLBNPUSvgL3TQ.jpeg" /></figure><h3>Introduction</h3><p>Legacy companies hosting their application workloads in their data centers or on-prem architectures always struggle to scale their existing services. This requires them to invest in additional servers, increase RAM/CPUs, add more storage, and potentially upgrade their internet bandwidth, all of which incur substantial capital expenditure. Moreover, the ongoing operational costs, such as power consumption, maintenance, and upkeep, further add to the financial burden of these upgrades.</p><p>It’s quite natural to start migrating your workloads toward the cloud, and there always comes a time when you need to securely connect your on-premises servers with cloud resources. In this blog, we will be utilizing an AWS service called ‘Site to Site (S2S) VPN,’ which helps in securely creating a virtual path between end devices.</p><p>After reading this blog, you will learn the following:</p><ul><li>What is Hybrid Cloud</li><li>Secure communication in a Hybrid Cloud</li><li>Site-to-Site VPN</li><li>Requirements for Site-to-Site VPN</li></ul><h3>Why use a Hybrid Cloud Architecture?</h3><p>For businesses that are just getting started with AWS Cloud, a good option is to move some of the services from on-premise to the cloud. With this approach, it is highly likely that applications that have been moved to the cloud need to communicate with the ones located in our on-premise data center in a secure manner. For this purpose, we can use services like Direct Connect or Site-to-Site VPN provided by AWS to establish connectivity between the applications running in the on-premise data center and the VPC in AWS in which our applications are running.</p><h3>Secure Communication in a Hybrid Cloud Architecture</h3><p>We have the following approaches for secure communication in a hybrid cloud environment for AWS cloud:</p><ul><li>Direct Connect</li><li>Site-to-Site VPN</li><li>Transit/VPN Gateways</li><li>AWS VPN CloudHub</li></ul><h3>Why use AWS Site-to-Site VPN?</h3><p>The two most commonly used services today out of the ones mentioned above are the AWS Direct Connect and AWS Site-to-Site VPN. Both of these are useful options and have their benefits.</p><p>With Direct Connect, AWS provides private connectivity from the customer’s on-premise data center to their resources provisioned in the AWS cloud. This dedicated link is provided by Internet service providers and AWS Direct Connect partners, and acquiring this dedicated private connection can sometimes take weeks or months. Therefore, for businesses that are just starting with using AWS cloud and their on-premise location in a hybrid model, establishing a Site-to-Site VPN between AWS and their on-premise resources is the quickest and cost-effective solution which just requires an Internet connection and a Public IP address available in the customer on-premise location.</p><p>For this purpose, AWS provides a Site-to-Site VPN service, which is also referred to as the <strong>AWS Managed VPN</strong>. The VPN configured using this service is an <strong>IPSec VPN</strong> which is a type of VPN; some other examples of VPNs include SSL and L2TP. At a high level, the IPSec requires 2 endpoints to form a VPN tunnel, which are referred to as the <strong>VPN Peers</strong>.</p><p>An IPsec VPN tunnel is made up of 2 phases called the <strong>IKE phase 1</strong> and <strong>IKE phase 2</strong>, where IKE stands for <strong>Internet Key Exchange</strong>.</p><ul><li>IKE phase 1 is used to authenticate the 2 IPSec peers and for setting up a secure channel between these peers.</li><li>IKE phase 2 is used for negotiating and then establishing IPSec security associations. After a successful security association is established, the VPN tunnel is complete, and data can traverse between the sides of the tunnel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cWpxm3pgeRGs0eD3.png" /></figure><p>When the VPN is configured, AWS creates 2 VPN tunnels for each connection, with each one having a separate Public IP address. This is to provide redundancy on the AWS side. From AWS perspective, it considers an S2S VPN tunnel to be down when both IKE phase 1 and phase 2 are down, after which AWS marks it as down and automatically shifts the network traffic to the 2nd IP in the S2S VPN from the AWS side.</p><h3>Requirements of Site-to-Site VPN on AWS</h3><p>For establishing secure communication between on-premise and AWS VPC using AWS-managed Site-to-Site VPN, the following components need to be set up on the AWS side:</p><ul><li>CGW (Customer Gateway)</li></ul><p>This is a physical device that is located in the on-premise data center. From the VPN tunnel’s perspective, this is the VPN peer on the customer’s end. The device can be any firewall, router, or server having the functionality of setting up a VPN available.</p><ul><li>VPG (Virtual Private Gateway)</li></ul><p>This is the S2S VPN connector on the AWS side. It is kind of a logical network device which is completely managed by AWS and acts as the VPN endpoint (IPSec VPN peer) on the AWS end of the VPN tunnel.</p><ul><li>Site-to-Site VPN Connection</li></ul><p>This is the name of a service on the AWS side configuring, which is an essential part of the process as we choose here the important design decisions on the AWS side in terms of network routing while choosing between static or dynamic routing using BGP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uBG4lG1ujSMUjJ2l.png" /></figure><p>After the configuration has been completed on both sides of the VPN, a secure connection will be established between on-prem &amp; cloud infrastructure to allow secure and encrypted data communication through the VPN tunnel, with active redundancy provided on the AWS side for the VPN peer on its side.</p><h3>Conclusion</h3><p>Using AWS Site-to-Site VPN is the quickest way for businesses to migrate to the cloud and evaluate their options simultaneously. This approach not only helps in a smooth transition to the cloud but also offers security by providing private and encrypted connectivity between networks in the cloud and on-premises data centers.</p><p>Using AWS Site-to-Site VPN, we can securely connect our on-premise data center and our resources running in the AWS Cloud very easily and quickly while maintaining our data’s integrity during communication between the two sides due to a secure encrypted VPN tunnel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e22e06c14b87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-Account, Cross-Region Backups in AWS]]></title>
            <link>https://xgrid.medium.com/cross-account-cross-region-backups-in-aws-8915faeb96cb?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/8915faeb96cb</guid>
            <category><![CDATA[aws-cross-account]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cross-region]]></category>
            <category><![CDATA[backup-in-aws]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 11:49:56 GMT</pubDate>
            <atom:updated>2023-03-14T11:49:56.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVFzbd2PRUz9qmTyoNJNTA.jpeg" /></figure><h3>Introduction</h3><p>A good backup is essential for any company, whether it’s a small startup or a large thriving corporation. Data loss is frequent, and is not always a result of malicious attackers. <a href="https://www.cybsafe.com/press-releases/human-error-to-blame-for-9-in-10-uk-cyber-data-breaches-in-2019/">90%</a> of data breaches involve human factors. Data loss is a huge deal and may lead to downtimes, which according to a <a href="https://www.vertiv.com/globalassets/documents/reports/2016-cost-of-data-center-outages-11-11_51190_1.pdf">report</a> from 2016, cost of downtime is <strong>$9,000 per minute</strong>.</p><p>Well timed backups (among other things) can help with disaster recovery. It can save you a lot of headaches and sleepless nights, allowing you and your organization to mitigate the damage as much as possible and swiftly get back to business. It’s well worth investing in a Backup Service for your business.</p><p><em>“You can never have too many backups” </em>is a phrase that you’ll hear quite often in the tech industry, it outlines the importance of having backups. However, all things considered, there are a lot of nuances one needs to consider when creating backups, from the amount of backups to the time of the backups, storage of all the backups, managing backup versions etc.<br>First, let’s look at the properties of what a “Good” backup is. This will help us get a good understanding of the different nuances mentioned and how we could go on about implementing them.</p><h3>Good Backups</h3><p>Generally speaking a good backup should cover some of the following cases.</p><ul><li>Backups should be <strong>cheap</strong>. It is essential to have your backups take as little of your financial resources as possible. This includes the storage, the process of backing up, the process of recovery etc.</li><li>A good backup should be <strong>reliable</strong>. It shouldn’t be ephemeral, it should be long-lived. If I backup a file now, I want it to be accessible ages later in the same shape as I stored it.</li><li>Backups should be <strong>secure</strong>. Your backup data is as important as your current workload data. There is no reason your backup should be lacking in the security.</li><li>A good <strong>Recovery Time Objective (RTO) &amp; Recovery Point Objective (RPO)</strong> should be considered when backing up your data. A small RTO &amp; RPO window usually means high cost, similarly a large RTO &amp; RPO window means more damage during the downtime. There needs to be a balance between the two.</li><li>Additionally, a good backup needs to be <strong>highly available</strong>. This is done by usually storing the backup offsite; something that has been popularized by the <a href="https://www.backblaze.com/blog/the-3-2-1-backup-strategy/">321 Backup Strategy</a>.</li></ul><p>These are some of the properties of what a good and meaningful backup is. Well the next question becomes; how does one create backups? Enter the world of <strong>Backup as a Service (BaaS).</strong> Backup Services allow you to easily handle all of your data backups on the cloud. High-quality backup services offer the option to store multiple backup copies in various locations, ensuring Highly Available Backups. One such backup service, provided by AWS, mainly for AWS services, is the <strong>AWS Backup Service</strong>.</p><h3>AWS Backup</h3><p>AWS Backup Service provides easy access to backups in AWS. Instead of backing up data service-to-service, AWS Backup provides a centralized place to manage all of your backups. AWS Backup Service also provides some nifty features like tag based backups, policy-based backups, lifecycle management and cross account backups, which we’ll get into later. For now, let’s discuss the other features AWS Backup Service provides.</p><h3>Centralized Backup Management</h3><p>As mentioned above, instead of creating backup, service-to-service, AWS Backup provides a centralized dashboard to handle all of your backups. All of this is done using Backup Policies. This dashboard also provides a history of all the backups and backup related activity logs.</p><h3>Policy Based Backups</h3><p>At the heart of AWS Backup lies its Backup Policies, known as <em>backup plans</em>. Enabling the user to define their own backup requirements that meet the specific business and regulatory compliance requirements. Multiple backup plans can be created to further optimize your RTO and make sure you have the latest backups available.</p><h3>Lifecycle management policies</h3><p>Much like S3’s lifecycle management policies, AWS Backup also provides lifecycle policies for your backups to keep the costs down, automating the process of transitioning the backups from warm storage to cold storage and expiring old backups.</p><h3>Cross-Region &amp; Cross-Account Backups</h3><p>A major advantage of using AWS Backup is having the ability to centralize your backups in one or more dedicated accounts. AWS Backup provides the ability to not only backup into another account, but also copy the backups in a region different from your current workload region. This ensures that your backups are highly available, and are readily available to be deployed into another region if your current workload region goes down for some reason.</p><h3>Creating a Cross-Account Cross-Region Backup System</h3><p>Let’s implement what we’ve learned. We’ll build a Backup System inside AWS that will backup the resources in your workload account and copy it over to another AWS Account in the same Organization.</p><p>Some prerequisites before diving into the actual solution:</p><ul><li>You need to have an AWS organization setup, where you have a dedicated workload account and a backup account. To learn more about AWS Organizations, click <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started.html">here</a>.</li><li>For encryption, KMS Keys don’t support copying backups to other accounts. Therefore we’ll be using CMKs instead.</li><li>RDS, Aurora, DocumentDB, and Neptune don’t support cross-account &amp; cross-region copy in a single go. Instead, AWS documentation suggests you use a lambda to copy from Workload Account to the Backup Account in the same region. Then copy the backups to the final destination region. <a href="https://aws.amazon.com/blogs/database/automate-cross-account-backups-of-amazon-rds-and-amazon-aurora-databases-with-aws-backup/">Here’s</a> a blog explaining it in detail.</li><li>Create the <strong>AWSBackupDefaultServiceRole</strong> using the steps in <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/iam-service-roles.html">this</a> link.</li><li>Enable the Cross Account Backup from the Backup Settings.</li></ul><h3>Prepping the Encryption keys</h3><p>Let’s create CMKs in order to encrypt the backed up resources, known as <strong>recovery points</strong> in AWS Backup. A standard AWS CMK will do fine, just make sure that the AWS Backup service can use the CMK as well. Your CMK policy should look like the following. You can further fine tune this policy to conform to <strong>POLP (Principle of Least Privilege)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/0*P1V_60fNBoYRkNgq.png" /></figure><h3>Backup Vaults &amp; Backup Policies</h3><h3>Backup Account</h3><p>In the Backup Account, create a Backup Vault encrypted with the CMK you created, in a region other than where your workload services belong to. I’ll be using <strong>Ireland (eu-west-1)</strong>. Don’t forget to copy the ARN of the Vault.</p><p><strong>A note on cost optimization:</strong> <em>You can optimize your costs here by seeing which region costs the least in terms of backing up, restoring and also cross region data transfer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tjy4Rdi4v7dWQYAG.png" /></figure><p>For the Access Policy, add a new permission to “<em>Allow access to a Backup vault from organization</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qCtRR5jluewn7aYs.png" /></figure><h3>Workload Account</h3><h4>Backup Vault</h4><p>In the Workload Account, create a backup vault encrypted with the CMK you just created, in the region where your workload services reside. For me, it’s <strong>Frankfurt (eu-central-1)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l9r1xbQP5qG596jp.png" /></figure><h4>Backup Policies</h4><p>Now let’s create some backup policies which will instruct AWS Backup to backup specified resources to the Backup Account.</p><p>Navigate to <strong>Backup Plans </strong>and create a new Backup Plan. In the Backup Rule Configuration section, for the <strong>Copy to Destination</strong>, select the region you want your backups to end up in- in the backup account. Copy and paste the ARN of the Backup Vault you created in the Backup Account. Create the plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*a464cZU9wjNk0BCt.png" /></figure><p>For the Resource Assignment, select the Default Role. Select the specific types of resources you want to backup. I’ll be backing up <strong>EBS volumes </strong>tagged <strong>Backup: True </strong>for this example. You can use any supported service for this such as a <a href="https://www.xgrid.co/resources/migrating-dynamodb-data-across-aws-accounts/">Dynamodb table for data migration across AWS accounts</a>, an RDS Aurora cluster or even an S3 bucket. <strong>Note: </strong>As of now RDS, Aurora, DocumentDB, and Neptune do not support a single copy action that performs both cross-Region AND cross-account backup. You can choose one or the other. You can also use a AWS Lambda script to listen for the completion of your first copy, perform your second copy, then delete the first copy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*JDainv0Eqn00CIZb.png" /><figcaption><em>Resource Selection Settings for EBS</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KNylewNoNFPQ1_O7.png" /><figcaption><em>Resulting Backup Plan</em></figcaption></figure><p>Now that we have everything in place, all that’s left to do is wait for the Backup Job to run and backup your resources.</p><h4>Verifying</h4><p>In the Jobs tab, you can see the job’s status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M32PfOyqQ82vclPW.png" /></figure><p>Wait for a few minutes and the Copy Job should start copying the created Backup Recovery point to the destination vault.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cpbpwCJiDHW6Ih_7.png" /></figure><p>You can verify that the copy job succeeded by looking at the backup vault in the backup account. You should see a new recovery point with the Source Account ID of your Workload Account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xLMatHzogclJINFR.png" /></figure><p>You can now restore this snapshot in the backup account. Or as the intended purpose, copy it back to the workload account, either to the same region or another region and start using it again.</p><h3>Where to go next</h3><p>Now that you have learned what AWS Backup is and how we can offload our backups to another AWS account, the next step is to optimize the entire process. You could start by optimizing your <strong>RPOs &amp; RTOs</strong>, find that sweet spot where you minimize the downtime while also not spending too much financial resources. You can even expand this knowledge to create a Hub-Spoke for the Backups; one workload account sending backups to multiple backup accounts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8915faeb96cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Your Own Custom Playbook Action in Robusta]]></title>
            <link>https://xgrid.medium.com/writing-your-own-custom-playbook-action-in-robusta-694c049956b0?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/694c049956b0</guid>
            <category><![CDATA[playbook]]></category>
            <category><![CDATA[robusta]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 10:30:07 GMT</pubDate>
            <atom:updated>2023-03-14T10:30:07.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*umMv_TVaSoIfQgoSMEaBHg.jpeg" /></figure><h3>Introduction</h3><p>In this second installment of our Robusta blog series, we will delve deeper into the capabilities of this powerful open-source tool. Robusta is an open-source tool that enables Kubernetes troubleshooting and automation in multi-cluster environments. More precisely, we will discuss Robusta automation and how it works and we will write our own custom playbook action. We’ll look at how Robusta can automate and simplify the process of running Kubernetes clusters.</p><p>As we discussed in the first installment, Troubleshooting Kubernetes environments is complex. However, with <a href="https://www.xgrid.co/resources/troubleshooting-kubernetes-using-robusta-on-kind/">Robusta on Kind</a>, Troubleshooting Kubernetes is made much easier.</p><h3>Introduction to Robusta</h3><p>Robusta is a platform for monitoring and remediation that offers insightful information into Kubernetes clusters and integrates with a variety of monitoring and alerting tools.<br>It sits on top of your monitoring stacks, such as Prometheus or Elasticsearch, and explains why and how to fix alerts.</p><p>Robusta automates all processes that take place after your application is deployed. It’s similar to Zapier/IFTTT for DevOps, focusing on prebuilt automation rather than “build your own.”</p><h3>How Robusta Automation Works</h3><p>The division of YAML-defined automation into triggers, actions, and sinks simplifies things conceptually. This distinct division may lessen the entry barrier, particularly if you’re looking for accessible locations to start integrating your tooling.</p><p>Every automation consists of 3 distinct steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oJXt4atU14G5cpnd.jpg" /><figcaption><strong>Figure</strong>: Automation Basics</figcaption></figure><h3>Triggers</h3><p>Simply put, a trigger represents a specific situation that initiates a response.</p><h3>Example triggers</h3><ul><li>on_pod_create</li><li>on_deployment_create</li><li>on_pod_update</li><li>on_deployment_update</li><li>on_pod_delete</li></ul><h3>Action-trigger Compatibility:</h3><p>Now we need to understand how triggers are bound to actions.<br>There are two types of actions in robusta.</p><ul><li>Simple actions.</li><li>Resource-related actions.</li></ul><h3>Simple Actions:</h3><p>Simple actions require no particular parameters (as shown in figure A below) and can therefore be executed in response to any trigger. Eg:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*e0nF-w930LCDph-N.png" /><figcaption><strong>Figure A</strong>: Simple actions with no parameters</figcaption></figure><p>This action checks network connectivity in your cluster using ping. Pings a hostname from within the cluster. So we do not need to give any Kubernetes resources to this action.</p><h3>Resource-related Actions:</h3><p>These actions require Kubernetes resources as input.</p><p>For example, a pod is required as input for the <strong>logs_enricher</strong> action.</p><p>As a result, <strong>logs_enricher</strong> can only be linked to triggers that output a pod. As an example, Figure B shows resource-related actions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*s_ts3tE77GCECWrA.png" /><figcaption><strong>Figure B</strong>: Resource-related actions with parameters</figcaption></figure><p>These actions can provide context for any pod-related event, such as on Prometheus alert or pod update.</p><h3>Sinks:</h3><p>Playbook results (findings) can be sent to one or more sinks (destinations).</p><p>The following sinks are supported:</p><ul><li>Robusta UI</li><li>Slack</li><li>MS Teams</li></ul><h3>Sending Findings to Specific Sinks:</h3><p>You can set up a sink to only accept particular findings. For example, depending on the namespace, you can send notifications to multiple Slack channels, Figure C shows add findings in the values file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/0*_Jq9-6O23xOhfPdn.png" /><figcaption><strong>Figure C:</strong> Sending findings to the slack channel</figcaption></figure><h3>Events and Triggers:</h3><p>Events are Robusta objects that hold information on a particular resource in your cluster. When configuring Robusta as a user, triggers are defined in YAML ( generated_values.yaml ), but events are dealt with while writing playbook actions.</p><p>The basic concept is that triggers create event objects, which are then passed to action functions. Below is Figure D illustrates the lifecycle of robusta events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*an73gfori-QSRuKE.jpg" /><figcaption><strong>Figure D: </strong>Event lifecycle</figcaption></figure><h3>Compatibility of Actions and Events</h3><p>Let’s examine this from the viewpoint of a developer creating a Python playbook action.</p><p>By selecting the first parameter of your playbook’s Python function, you can specify which events your playbook is compatible with. As shown in Figure E below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*lx8fdf7Q7vT28H2e.png" /><figcaption><strong>Figure E</strong>: Action taking parameter PrometheusKubernetesAlert</figcaption></figure><p>Since no other trigger can generate the event object for the above action because it requires <strong>PrometheusKubernetesAlert</strong> as input, it can only be connected to an <strong>on_prometheus_alert</strong> trigger.</p><p>However, since it doesn’t do anything with the alert itself, this action doesn’t really require a Prometheus alert as input. This action can be changed to take a <strong>PodEvent</strong> as input. As shown in Figure F below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/0*qWZiNioJ3WjXqxnj.png" /><figcaption><strong>Figure F</strong>: Action taking parameter PodEvent</figcaption></figure><p><strong>PrometheusKubernetesAlert</strong> is a subclass of <strong>PodEvent.</strong>Therefore, general object-oriented principles are applicable here. So, wherever a <strong>PodEvent</strong> is anticipated, <strong>PrometheusKubernetesAlert</strong> can be used.</p><p>Here is the illustration of the robusta event hierarchy for Prometheus in Figure G:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*MCwO-yuRwQ75rVOM.png" /><figcaption><strong>Figure G</strong>: Event Hierarchy</figcaption></figure><p>The Robusta triggers are arranged in a hierarchy. If a particular trigger is supported by action, all descendants of that trigger are also supported.</p><h3>Writing Our First Playbook Action</h3><h3>Creating Your Own Playbook Repository</h3><p>A playbook repository consists of the following directory structure as shown in Figure H below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*OOyjr4xdN7bUGBNv.png" /><figcaption><strong>Figure H</strong>: Playbook repository</figcaption></figure><p>As an example, consider the following pyproject.toml in Figure I:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*GBpUHCqy3bVZE9jN.png" /><figcaption><strong>Figure I: </strong>Toml file</figcaption></figure><p><em>Note: The name of the inner playbooks directory must match the package name in your pyproject.toml file.</em></p><p>List any additional Python dependencies that your playbook needs in your pyproject.toml file. They’ll be installed by Robusta.</p><h3>Write a Playbook Action in Python:</h3><p>let’s take an example of a Python playbook action in Figure J</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*QHTZVCHxA9UXLrCm.png" /><figcaption><strong>Figure J: </strong>Action in python</figcaption></figure><p>You must package the code as a playbook repository and import it into Robusta. It’s time to load our playbook action.</p><h3>Loading Playbook Repository</h3><p>You have two options for loading your playbook:</p><ol><li>From a git repository</li><li>Using robusta playbooks push</li></ol><h3>From a Git Repository:</h3><ol><li><strong>Git playbook loading via HTTPS</strong></li></ol><p>You can load your playbook action from the Git repository via HTTPS as shown in Figure K below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/0*08a0JpcKR82jgdWf.png" /><figcaption><strong>Figure K: </strong>Loading playbook from git via HTTPS</figcaption></figure><ol><li><strong>Git playbook loading via SSH</strong></li></ol><p>You can also load your playbook action from the Git repository via SSH as shown in Figure L below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*W5D6NU6kZjT1scws.png" /><figcaption><strong>Figure L:</strong> Loading playbook from git via SSH</figcaption></figure><h3>Using Robusta Playbooks Push:</h3><p>In the Robusta configuration file, first allow persistent playbooks storage by setting the helm value as shown in figure M below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*j1yED5k5K54OL5DM.png" /><figcaption><strong>Figure M: </strong>Enabling persistent volume</figcaption></figure><p>Once your repository is loaded, use the Robusta CLI and run the below command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*-g8kH4_THtFG2IBq.png" /></figure><p>This mounts a persistent volume on the Robusta runner at <strong>/etc/robusta/playbooks/storage</strong> and copies the repository to it. Now that the actions in the repository are loaded, they can be used.</p><h3>Using Your Custom Playbook Action</h3><p>You can use your action once the playbook package has been loaded.</p><p>(generated_values.yaml). Below is Figure N showing how you can add a custom action in the Robusta configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*ppTNs0sNTHArapTo.png" /><figcaption><strong>Figure N: </strong>Adding our custom action in generated.yaml</figcaption></figure><p>The action above receives a PodEvent. As a result, it can be used for pod-related triggers.</p><h3>Conclusion</h3><p>This blog delved into the workings of robusta custom playbook action, which forms an integral part of the infrastructure-as-code solution for monitoring and maintaining K8s applications, along with alert management. Just as Docker is a platform for deploying applications using infrastructure-as-code principles, Robusta applies the same approach to Kubernetes observability, enabling easier analysis of events and enabling actions to be taken more efficiently. With its capability to correlate events, Robusta simplifies the process of enhancing Kubernetes observability, reliability and streamlines the overall management of K8s applications.</p><p>We welcome your insightful comments and suggestions. Please share your thoughts in the section provided below if you found the blog useful. Furthermore, we’d like to know how useful Robusta was for you. More tutorials that explore Robust further will be released in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=694c049956b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Profiling Kubernetes Applications Using Pixie]]></title>
            <link>https://xgrid.medium.com/profiling-kubernetes-applications-using-pixie-632404073387?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/632404073387</guid>
            <category><![CDATA[ebpf]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cpu-profiling]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 10:25:12 GMT</pubDate>
            <atom:updated>2023-01-27T10:25:12.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Profiling Kubernetes Applications Using Pixie" src="https://cdn-images-1.medium.com/max/1024/0*GBGJG6aLBuOnmOdk.png" /></figure><h3>Introduction</h3><p>In the previous blog <a href="https://www.xgrid.co/resources/tackling-kubernetes-observability-challenges-with-pixie/">(Tackling Kubernetes Observability Challenges with Pixie)</a>, we discussed pixie in greater detail, as well as how pixie is important in debugging and monitoring our Kubernetes cluster. We learned how to monitor our services running on a Kubernetes cluster and their metrics, such as CPU utilization, error rate, latency, HTTP requests, etc.</p><p>In this blog, we will delve into the topic of application profiling and explore one of Pixie’s capabilities: continuous application profiling. Additionally, we will demonstrate how easy it is to utilize Pixie as an application profiler within a Kubernetes cluster.</p><p>Application profilers help us analyze the performance of our application and improve poorly performing sections of the code. They provide insights into the percentage of CPU usage by various functions in our application, allowing developers to see a comprehensive picture of application code execution and how the resources are being allocated to the application.</p><p>Profiling a complex, multi-layered networked application can be a challenging task due to the sheer scale of the application code, chained function calls, and the data structures involved. Furthermore, as the code base evolves with the addition of new features, modules, and functions, the demand for optimization becomes increasingly pressing.</p><p>Using application profilers can provide several key benefits, such as:</p><ol><li>We can make our software development lifecycle more agile.</li><li>Software developers can easily identify the piece of code that has high latency and improve them easily without going through all the code.</li><li>We can enhance the performance of our applications.</li></ol><p>As we know, in Kubernetes, our application is running inside a container that is inside a pod. And optimizing the application at runtime will be challenging, as it requires either adding flags to the executing commands or importing profiling libraries into the application code. It is important to consider both the operating system and our application code’s language when selecting an appropriate application profiler.</p><p>This is where pixie comes into play to provide it’s one of the key features of continuous application profiling with no other instrumentation. Pixie installs its agent called Pixie Edge Module (PEM) on each node in your cluster and these PEMs use eBPF to collect data and store the data locally on the node. Pixie profiler periodically samples what functions the CPU is executing, and each sample provides a full call stack and we can see all the results in a flamegraph.</p><h3>Why use Pixie profiler</h3><p>Here are some of the reasons why we should use the pixie profiler as an application profiler in our Kubernetes cluster.</p><ol><li>It is always running, so we will have real-time application profiling.</li><li>It supports GO, C++, Rust, and Java.</li><li>The sampling frequency is 100 stack trace samples / second / CPU.</li><li>The minimum flamegraph time window is 30 seconds, which can be composed into larger time spans as desired.</li><li>Performance overhead is &lt; 0.5% CPU.</li></ol><p>Lets discuss. In how we can use pixie for continuous application profiling.</p><h3>Working of Pixie’s Application Profiler</h3><p>Pixie’s continuous profiler uses eBPF to periodically interrupt the CPU. During this process, the eBPF probe inspects the currently running program and collects a stack trace to record where the program was executing. More details on how Pixie uses eBPF are explained <a href="https://docs.pixielabs.ai/about-pixie/pixie-ebpf/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hhLhSv9LtZW4GTDZ.png" /><figcaption>Image A: Working of pixie application profiler</figcaption></figure><h3>Demonstration of Application profiling in Kubernetes cluster using pixie</h3><p>We’ve deployed a 3-tier web application on our minikube cluster. We will see the performance of each microservice deployed as a separate pod and see how we can use pixie’s application profiler to monitor the performance of our application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oPy7fs66OVsea04E.png" /><figcaption>Image B: Metrics of frontend service</figcaption></figure><p>Here in the screenshot above (image B) we can see:</p><ol><li>HTTP requests: HTTP requests in a pod.</li><li>HTTP errors: HTTP error counts.</li><li>HTTP latency: Latency in HTTP requests</li><li>CPU utilization: CPU utilization of pod</li><li>Container list: Number of containers running in POD.</li></ol><p>If we want to get the trace of function calls and processes of that application, we can see them in the flamegraph mentioned below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ys1G1cB4H3XDZJ2m.png" /><figcaption>Image C: Flamegraph of frontend service</figcaption></figure><p>Every 10 milliseconds, the pixie profiler samples the current stack traces of each CPU, which include the functions that were running at the time of the sample, as well as their parent functions that were called to reach the child functions’ code.</p><p>In the above flamegraph (image C), the bars having dark blue color represent Kubernetes metadata and the light blue represents the user’s application code. You can hover over each light blue bar to see the percentage of time of the function’s execution and you can easily see which function is consuming more time and optimize that function’s code.</p><p>Let’s take a look at the backend’s pod performance (Image D). In this visualization, the green bars represent the performance of the kernel code, while the light blue bars represent the performance of the user’s application code. By hovering over each light blue bar, it is possible to see the percentage of time that a particular function is executing. This can be useful for identifying which functions are consuming a large amount of time and may benefit from code optimization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-ihThKfmH4x3mr6g.png" /><figcaption>Image D: Flamegraph of backend service</figcaption></figure><p>The following flamegraph displays both the applications’ code and the kernel’s code (image E).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*05xrSMSMls7lzKnx.png" /><figcaption>Image E: Flamegraph of running node</figcaption></figure><h3>Conclusion:</h3><p>In this blog, we have discussed what application profiling is and why it is important in our Kubernetes cluster. We saw how powerful Pixie is for profiling Kubernetes applications and demonstrated how it can be used to track and optimize application code stacks.</p><p>In a future blogs, we will delve deeper into other use cases for Pixie, such as dynamic debugging, database query profiling, request tracing, service performance, etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=632404073387" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Kubernetes Network Policies with Calico]]></title>
            <link>https://xgrid.medium.com/implementing-kubernetes-network-policies-with-calico-83c37bb822a0?source=rss-8f31c5877004------2</link>
            <guid isPermaLink="false">https://medium.com/p/83c37bb822a0</guid>
            <category><![CDATA[kubernetes-networking]]></category>
            <category><![CDATA[calico]]></category>
            <category><![CDATA[network-policies]]></category>
            <dc:creator><![CDATA[Xgrid - Cloud Services & Custom App Development]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 11:58:45 GMT</pubDate>
            <atom:updated>2022-12-29T11:58:45.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Implementing Kubernetes Network Policies with Calico" src="https://cdn-images-1.medium.com/max/1024/1*U4EcNLHXBLTYX--zO26vXQ.jpeg" /></figure><h3>Introduction</h3><p>With the rapid advancements in technology, everything accessible through the internet is vulnerable to external threats. An important aspect of limiting vulnerability to internet resources is a strong focus on security. With more and more organizations adopting Kubernetes and running it in production, it is necessary to understand its core concepts and secure it appropriately.</p><p>NetworkPolicies are vital to the security of Kubernetes infrastructure. In Kubernetes, it is of paramount importance to <a href="https://www.xgrid.co/resources/securing-a-kubernetes-cluster-using-tls-certificates/">secure the traffic in our kubernetes clusters</a>. This functionality is implemented by the network plugins and controlled by NetworkPolicies. Kubernetes networking model requires all pods to be able to access all other pods by default. This is called a <em>flat network</em> because it follows an <strong><em>allow-any-any</em></strong> model.</p><p>However, to secure infrastructure, it is necessary to have a certain level of network segmentation methods to ensure that only certain pods can talk to each other, and this is where NetworkPolicy comes into the picture. This article will talk about security in Kubernetes clusters, traffic incoming and outgoing to and from the cluster, traffic within the cluster, and configuration settings to achieve security in Kubernetes.</p><h3>Background</h3><p>In this blog post, we will shed some light on achieving <strong>Zero Trust Networking</strong> in Kubernetes using <em>Calico CNI</em> network policies. Using Calico can greatly enhance networking capabilities in Kubernetes in terms of security, safety, and robustness.</p><h4>Zero Trust Networking Architecture</h4><p>Zero trust network architecture is an approach used in network security that is unified by the principle that the network is always assumed to be hostile. It is the direct opposite of segmentation approaches where we focus on separating the world into trusted and untrusted network segments.</p><h4>What is Container Network Interface (CNI)?</h4><p>By default, there is no network connectivity in Linux containers (e.g Docker, LXC, LXD, etc). So, we need to set up and manage container networking (e.g container-to-container, container-to-node, node-to-container) separately. It’s painful to reinvent the wheel and do things manually, like setting up container networking. It can introduce all sorts of errors and bugs in our Kubernetes networking architecture. Thus, to cope with these problems, CNIs were introduced.</p><p>What is CNI? It is a Cloud Native Computing Foundations (CNCF) project, which consists of specifications and libraries for writing plugins to configure networking (e.g network interfaces) in Linux containers.</p><p>There are many CNI plugins that implement the CNI specification. Some of the widely used CNI plugins are <strong>Flannel</strong>, <strong>Calico</strong>, <strong>WeaveNet</strong> and <strong>Cilium,</strong> etc. These plugins support networking functions such as <em>namespace</em>, <em>isolation</em>, <em>traffic filtering</em>, <em>IP filtering,</em> <em>traffic mirroring,</em> etc.</p><h3>Networking in Kubernetes</h3><p>Kubernetes networking takes care of the following properties:</p><ol><li>All containers communicate with each other without a NAT.</li><li>All nodes can communicate with all containers without a NAT.</li><li>The IP address across containers and other resources should be the same.</li></ol><p>Kubernetes makes use of the kubenet plugin to take care of networking in Kubernetes clusters. Kubenet implements basic <em>cbr0</em> using a <em>bridge </em>and <em>host-local </em>CNI plugins. It is a very basic plugin that lacks many features provided by other plugins like Calico, Flannel, etc. To get the most out of Kubernetes networking, we should always consider using feature-rich plugins, so that we can incorporate features like <em>isolation between namespaces</em>, <em>IP filtering, </em>traffic mirroring, etc.</p><h4>Problems with Kubernetes Networking</h4><p>The main problem with Kubernetes Network Policies is that they have certain limitations that restrict the true use of networking in Kubernetes.</p><ol><li>We cannot deny traffic, we can only allow it.</li><li>There is no logging for events like debugging and security.</li><li>There is no common gateway for routing traffic.</li><li>Local host traffic cannot be blocked in Kubernetes NetworkPolicies.</li><li>There is no concept of global policies. Policies can be applied to namespaces only.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MtJuCS-xCKDlUOyc.png" /></figure><h3>Project Calico</h3><p>Calico is an open-source project owned by <em>Tigera </em>that took networking in Kubernetes to a whole new level. It not only provides features like network connectivity between hosts and containers but also provides networking security and administration. Calico is a CNI plugin and it injects calico functionality into the CNI framework. It is one of the most popular and widely used Kubernetes networking CNI plugins. It is very reliable and flexible and supports enterprise-level cluster networking in Kubernetes.</p><h3>What Made Calico Stand Out?</h3><h4>Scalability</h4><p>Calico is based on Layer 3 architecture, so it scales smoothly from a single developer laptop to large enterprise deployments. It uses the <em>BGP (Border Gateway Protocol) routing protocol </em>for Layer 3 network configurations so that it can route packets between different hosts.</p><h4>Debugging</h4><p>As Calico relies on the IP layer, it is relatively easy to debug with tools, as compared to other CNI plugins.</p><h4>Supports micro-segmentation</h4><p>It provides an easy-to-use network interface for administrators and developers to define network policies between various Kubernetes objects. Calico can also integrate with a service mesh known as <em>Istio. </em>Istio combined with calico can be used to interpret and enforce policy for workloads within the cluster, both at the service mesh layer and network infrastructure layer.</p><h4>Kubernetes Traditional Network Policy Features</h4><p>Here are some of the features that traditional Network Policy has to offer:</p><ol><li>Policies are applicable to the environment.</li><li>Policies can only be applied to pods that are marked with labels.</li><li>Rules can be applied to environments, pods, and subnets</li><li>Rules can have protocols, numerical or named ports.</li></ol><h4>Calico Extending Traditional Network Policy Features</h4><p>Here are the features that Calico adds to the traditional NetworkPolicies offered by Kubernetes:</p><ol><li>Policies can be applied to any Kubernetes object i.e pod, container, virtual machine or interface, etc</li><li>Rules defined using calico can have specific actions which are restriction, permission, or logging.</li><li>Rules defined using calico can target ports, different port ranges, protocols, HTTP/ICMP attributes, IPs, subnets, and selectors (for nodes, environments, hosts).</li><li>Traffic flows can be controlled via DNAT (Destination Network Address Translation) settings and policies for traffic forwarding.</li></ol><h3>How Kubernetes Network Policies Are Configured</h3><p>While working with Kubernetes, we are provided with the NetworkPolicy API for managing network policies in the cluster. Configuration files can be defined in the form of YAML, which in turn can be applied to a selected namespace. It can also contain rules for limiting access between different microservices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/0*GEdSjNo-SCBjarHf.png" /></figure><p>The example above is from the official Kubernetes documentation and will help you understand the logic of network policy operation. Let’s dissect and have an open view of different components from the above configuration file.</p><p>As detailed in the file above, we have two types of traffic:</p><ol><li>Incoming to pod (known as Ingress in Kubernetes)</li><li>Outgoing from pod (known as egress in Kubernetes)</li></ol><figure><img alt="Egress and Ingress Visualization" src="https://cdn-images-1.medium.com/max/1024/0*u7xkp0X_aMqeYvNc.jpg" /><figcaption><em>Egress and Ingress Visualization</em></figcaption></figure><p>Policy is divided into two categories depending on the direction of traffic. Selectors are a crucial part of the configuration file. They can be used to apply defined rules and represent pods or namespaces etc. We can also define broader rules such as “<em>Allow/Deny everything/to all</em>” in different variations.</p><p>In the given example, all pods of a namespace are blocked from incoming traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Q9jNo3UxdP4aBcK.png" /></figure><p>Below is the opposite behavior to the above defined expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qx0w4-s58FLHmGPm.png" /></figure><p>Expression for denying outgoing traffic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t0B1CVlr3s2oEtqB.png" /></figure><p>Expression for allowing outgoing traffic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AOXvyKthf9zdP0jo.png" /></figure><h3>Hands-on Guide on Using Calico With Kubernetes for Zero Trust Network Architecture</h3><p>In this section, we will discuss how to achieve Zero Trust Network in the Kubernetes cluster, starting with Calico installation and proceeding to configuration file definitions.</p><h4>Installing Calico CNI</h4><p>We will use Minikube in this blog, as it is easy to use, however, the same steps can also be performed on clusters created with <strong><em>kubespray</em></strong> and <strong><em>Kind.</em></strong></p><p><strong><em>Note: </em></strong><em>While starting a single node cluster by Minikube we can specify the CNI plugin that we want to use. In our case it will be Calico.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rgG8AUSFCg5dViP3.png" /></figure><p>Another way of install Calico on K8s cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8xK-OO7GZ9OjOdi8.png" /></figure><p>List of Calico Pods</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3hHB1o-t6NxpGbHb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_EaIfcQw1f4UGsJE.png" /></figure><h4>Installing the Calicoctl Tool</h4><p><em>Calicoctl</em> tool is a command line tool used to apply Calico features in the cluster. It can be installed using kubectl while working with the Kubernetes cluster. Following is a demonstration of how it can be done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vgmKIyYlgzaarTlB.png" /></figure><p>Using Calicoctl tool</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s0-2HDlRy9Gdk3QR.png" /></figure><h4>Setting Cluster</h4><p>In this blog, we have implemented a simple cluster with two pods (busybox and Nginx), so that we can demonstrate the functionality of Calico. At first, the cluster has two pods, and out of these two pods, the busybox pod can access the Nginx pod and any public domain i.e google.com or any other domain. So, now we will set up network policies so that we can enforce zero trust network architecture. Policies that we will define in this cluster are:</p><ol><li>Deny all traffic in the cluster</li><li>Allow outgoing traffic of busybox pod</li><li>Allow ingress traffic of Nginx pod</li></ol><figure><img alt="Overall Cluster look" src="https://cdn-images-1.medium.com/max/1024/0*bzPxvueq8ETXo5uw.jpg" /><figcaption><em>Overall Cluster look</em></figcaption></figure><p>Let’s consider deployment for Nginx and busybox has already been done.</p><h4>Default Network Policy</h4><p>By default, all incoming and outgoing traffic is enabled in the cluster. It can be verified by connecting one pod to another pod or any other domain that is on the internet e.g google.com using wget utility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-m1zSEghxgDWzteF.png" /></figure><figure><img alt="Default Network Policy" src="https://cdn-images-1.medium.com/max/1024/0*R4QNH1ZOvypcRTB4.jpg" /><figcaption><em>Default Network Policy</em></figcaption></figure><h4>Blocking All Traffic in the Cluster</h4><p>Now all incoming and outgoing traffic in the cluster is blocked using the <strong><em>default-deny </em></strong>Calico policy. This is a <strong><em>Global Calico Network Policy</em></strong>. A traditional Kubernetes NetworkPolicy cannot implement this policy because it lacks support for it. It can instead be implemented using the Calico CNI plugin.</p><p>Why block all traffic in the cluster? Because it will help us adapt Zero Trust Network, to secure cluster workloads. This network policy is not namespace specific and can be applied to all the Kubernetes objects, pod, etc, that match the policy selector. While taking into consideration that default Kubernetes NetworkPolicies are namespaced, all namespaces will need a separate deny policy per namespace to achieve the effect offered by the Calico plugin.</p><figure><img alt="Blocking all traffic NetworkPolicy" src="https://cdn-images-1.medium.com/max/1024/0*BMLdzxS4e95CA1w8.jpg" /><figcaption><em>Blocking all traffic NetworkPolicy</em></figcaption></figure><h4>Calico’s Global Network Policy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_jkgMx_DMAP6Eqkp.png" /></figure><p>Deploying Policy using calicoctl</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hvjXNIn1SteQK4-8.png" /></figure><h4>Allowing Busybox Outgoing Traffic</h4><p>Now enabling outgoing (egress) traffic of the <strong><em>busybox</em></strong> pod. We can implement a policy for a specific namespace which in my case will be <strong><em>shams.</em></strong></p><figure><img alt="Allowing egress traffic for busybox pod" src="https://cdn-images-1.medium.com/max/1024/0*SY0bVnf2vlhOjuUg.jpg" /><figcaption><em>Allowing egress traffic for busybox pod</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vrh2WNH51sAOqUkl.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fDk92J-pAN1pTKMz.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FS_Zp3qOmr3GC_r_.png" /></figure><p>From the above configurations, the busybox pod can request other pods and domains, etc. however, no other pod or domain can access the busybox pod.</p><h4>Allowing Nginx Incoming Traffic</h4><p>Now, we will enable incoming (ingress) traffic to the Nginx pod from a single pod i.e busybox in the cluster. This policy can be enabled globally or to a specific namespace for that matter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jH58W3cVnYMh2ixl.jpg" /><figcaption><em>8 Allowing ingress traffic for Nginx pod</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_cHZm2STtMU7tR5Y.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OBgmst-7kwxMJ-WB.png" /></figure><h4>Cleaning up the Calico Infrastructure</h4><p>The Kubernetes deployments and Calico network policies can be deleted via the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1cuuToRHT6V9ADrh.png" /></figure><h3>Conclusion</h3><p>As it is evident, Calico Network Policies offer far more control over Kubernetes clusters and traffic across them than standard Kubernetes. Additionally, if you opt-in for the Enterprise edition you will be able to use the Web UI for managing the rules in a friendly and visual way with access to the logs to see where your traffic is blocked and why.</p><p>Calico Enterprise has much more to offer and would make this blog quite long. But one of our favorite features is to set up rules in Draft mode. Draft mode means the rule is in place, logging, reporting, counting hits, etc but it is not enforced. We all know how scary it can be to make changes to production environments. This way you can test the rules first without breaking anything before and get the courage you need to go ahead with the changes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83c37bb822a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>