<?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 Rajeev verma on Medium]]></title>
        <description><![CDATA[Stories by Rajeev verma on Medium]]></description>
        <link>https://medium.com/@rajeevverma_55439?source=rss-dd1268a04a15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*I-KWk2qr3FmBUKZQ</url>
            <title>Stories by Rajeev verma on Medium</title>
            <link>https://medium.com/@rajeevverma_55439?source=rss-dd1268a04a15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:27:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajeevverma_55439/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[Moodle Scalable Solution on GCP]]></title>
            <link>https://medium.com/google-cloud/moodle-scalable-solution-on-gcp-476256d14931?source=rss-dd1268a04a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/476256d14931</guid>
            <category><![CDATA[moodle]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <dc:creator><![CDATA[Rajeev verma]]></dc:creator>
            <pubDate>Fri, 03 Jun 2022 12:29:40 GMT</pubDate>
            <atom:updated>2022-06-04T05:15:03.580Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Moodle LMS</strong> is an open source learning management system that can be customized for any course or teaching method you choose.</p><p>Moodle on GCP — Architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*Kc9NbXddg185ngKqvrxQKw.jpeg" /><figcaption>High Level Moodle Architecture</figcaption></figure><p><strong>Key Considerations:</strong></p><p>1. <strong>Moodle Web:</strong> Linux O/S e.g. Ubuntu/Debian with LAMP installed. We also need all the supporting setup to run the GCP compute Auto Scaling group. Web servers will be placed in different AZs for HA and auto-scaling will take card of spike/surge or compute demands</p><p>2. <strong>Session Cache:</strong> Moodle needs to store user session data to maintain application state as they work, this means users can be connected to any of your servers without loosing their progress. This can be done within the database, using Redis/Memcache server or using load balancer sticky sessions.</p><p>3. <strong>Shared Storage: </strong>Moodle needs a shared file system for user uploads, student course data or something related. Here we have a couple of options; GCP Cloud Storage, GCP Filestore and an NFS server. GCPFuse will be used to mount the cloud storage to Web servers. If performance is bottleneck with Cloud Storage, GCP filestore can offer better IOPS.</p><p>4. <strong>Database</strong>: A scalable solution will need to use a dedicated database server separate from the Moodle Web servers. This provides better performance but also allows the application servers to scale easily. You can deploy Cloud SQL PostgreSQL or MySQL for Moodle DB. The DB will be master and standby (Multi-AZ database for redundancy and automated snapshots for backups).This takes a lot of the hassle out of managing a database and the point in time restore provides real piece of mind.</p><p>5. <strong>HTTPS load Balancer</strong>: External HTTP(S) Load Balancing is a proxy-based Layer 7 load balancer that enables you to run and scale your services behind a single external IP address. Integration of SSL/TLS certification for secure website.</p><p>6. <strong>Cloud CDN:</strong> Fast, reliable web and video content delivery with global scale and reach to access static content with rich users experiences.</p><p>7. <strong>Code Management : </strong>While not purely a Moodle issue, we do need to consider managing the source code for automated deployments as all servers need to be identical to provide consistent user experience. GCP native CI/CD tools can be used for releases and deployment</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=476256d14931" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/moodle-scalable-solution-on-gcp-476256d14931">Moodle Scalable Solution on GCP</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Workloads Migration to GCP using “Migrate for Compute Engine”]]></title>
            <link>https://medium.com/google-cloud/workloads-migration-to-gcp-using-migrate-for-compute-engine-6891893ea21c?source=rss-dd1268a04a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/6891893ea21c</guid>
            <category><![CDATA[migration-agent-australia]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[gcp-security-operations]]></category>
            <category><![CDATA[google-compute-engine]]></category>
            <dc:creator><![CDATA[Rajeev verma]]></dc:creator>
            <pubDate>Wed, 25 May 2022 04:37:00 GMT</pubDate>
            <atom:updated>2022-05-26T08:02:29.245Z</atom:updated>
            <content:encoded><![CDATA[<p>How to migrate AWS Ec2 machines to GCP compute engine</p><h3>High level architecture of Migrate for Compute Engine (e.g. AWS to GCP)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dy5VyJtEpU4Xb1uoLbktgQ.png" /></figure><h4>Pre-requisite: Site to Site VPN establishment between AWS and GCP. AWS routes and GCP firewalls rules allowing traffic between the networks</h4><h3>Creating AWS IAM group:</h3><p>1. Download and unzip the <a href="https://storage.googleapis.com/velostrata-release/V4.2.0/Latest/CloudFormation.zip">AWS CloudFormation template</a>.</p><p>2. Sign in to the AWS Console and select <strong>Cloud Formation</strong>.</p><p>3. Click <strong>Create Stack.</strong></p><p>4. Click <strong>Choose File</strong>, upload the CloudFormation file, and then click <strong>Next</strong>.</p><p>5. Enter a <strong>Name</strong> for the CloudFormation stack.</p><p>6. Choose the VPC that contains the instances you want to migrate.</p><p>7. From the <strong>Options</strong> page, click <strong>Next</strong>, then click <strong>Create</strong>. A group named {stack name prefix}-VelosMgrGroup is created.</p><h3>Creating the AWS IAM user account for Velostrata</h3><p>In the AWS console, click your <strong>account name</strong> in the top right corner of the page and then Select <strong>Security Credentials</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*7nrwnelAUdur1M0XHxs9NA.png" /></figure><ol><li>From the left pane, select <strong>Users</strong> and then click <strong>Create New Users</strong>.</li><li>For Access type, select <strong>Programmatic access</strong>.</li><li>Download the user credentials (Keys). These keys will be used when creating the Migrate for compute Cloud Extension</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*nH75L3QyifrwLbJ05EWDoQ.jpeg" /></figure><p>Add the IAM user to the group created by the CloudFormation script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*c2BHE79kX4pM6842oDTizw.png" /></figure><h3>Configure AWS EC2 instance for Migration</h3><p>Once logged into the Ec2, run the following commands (e.g. Ubuntu):</p><p><strong>Sudo apt-get update</strong></p><p><strong>Note: </strong>When the Linux image runs on Google Cloud, it expects to find kernel drivers for the Migrate for Compute Engine mapped disks. These must be downloaded and installed before the migration up to Google Cloud. The driver installation must be performed upon the EC2 machine:</p><p><strong><em>Check “Manager Image Version “</em></strong><em> 🡪 Go to GCP console 🡪Compute Engine 🡪Migrate for compute engine 🡪 you will see the option 🡪 Welcome to Migrate for Compute Engine V5.0. To use V4.X</em></p><p><em>Switch button 🡪 V4.X and create Migration Manager 🡪 Configure Site to Site VPN (AWS to GCP) and require GCP Firewall rules within Subnet and select “Manager Image Version” — 4.11.9 (as of Dec’21).</em></p><p><strong>Click at link and search for the operating system of source as required drivers to be downloaded and install at the source machine.</strong></p><p><a href="https://cloud.google.com/migrate/compute-engine/docs/4.11/resources/downloads">https://cloud.google.com/migrate/compute-engine/docs/4.11/resources/downloads</a></p><p><strong>In this example,</strong> Ubuntu is source machine (e.g. Ec2) running in AWS and require package &amp; version:</p><p><strong>“Migrate for Compute Engine .deb package</strong>” 🡪 now run the following commands in source Ubuntu machine:</p><p><strong>wget </strong><a href="https://storage.googleapis.com/velostrata-release/4.11.9/migrate-for-gce-prep-4.11.9-0.deb"><strong>https://storage.googleapis.com/velostrata-release/4.11.9/migrate-for-gce-prep-4.11.9-0.deb</strong></a></p><p><strong>sudo dpkg -i migrate-for-gce-prep-4.11.9–0.deb</strong></p><p><strong>sudo apt-get update &amp;&amp; sudo apt-get install -f –y</strong></p><p>You have now completed setting up the EC2 instance. Logout of the AWS VM instance by typing exit</p><p><strong>GCP Environment Preparation:</strong></p><ol><li>Go to GCP console 🡪Compute Engine 🡪Migrate for compute engine 🡪 you will see the option 🡪 <strong>Welcome to Migrate for Compute Engine V5.0. To use V4.X</strong> ( as per document V4.x applicable for Cloud (e.g. AWS &amp; Azure) and V5.0 work for Vcenter/VMware but keep checking the latest updates)</li><li>Switch button 🡪 V4.X and create Migration Manager 🡪 Configure Site to Site VPN (AWS to GCP) and require GCP Firewall rules within Subnet ( incase not configured as pre-requisite) and select “Manager Image Version” — 4.11.9 (as of Dec’21)</li><li>Choose the region, Zone, Machine type, VPC, Subnets, Tags etc. to deploy the migration manager instance</li><li>Service Accounts 🡪 Create Service account for “ <strong>Migration Manager</strong>” ( keep the default) and another service account for “ <strong>Cloud extensions</strong>” ( keep the default)</li><li>Migration manager passwords — user name by default is <strong>apiuser </strong>and create new passport ( note this password as it require at later)</li><li>Review and create</li><li>Under compute engine — you can see VM with <strong>external IP</strong> and open the link in browser and accept the security warning of certificate. User name and password.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DQn9VH3GUW1F2AmKVTteA.png" /></figure><p>8. Click at Source Cloud -&gt; Cloud Credentials 🡪 Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Wg5bJH-_eLgedSL2TFOsg.png" /></figure><p>9 . Click at Source Cloud -&gt; Cloud Details 🡪 Create</p><p>Note: Choose the AZ whereas “<strong>to be migrated Ec2</strong>” is running &amp; appropriate details in this steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKmh1Y_fdtZdrSBRGZv1UQ.png" /></figure><p>Click the Target Cloud icon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*YPrRq7QUCvRn-ReziySkRg.png" /></figure><p><strong>On the Cloud Extensions tab, click the Create button:</strong></p><p>● <strong>Project:</strong> Select your GCP Project ( where migration will take place)</p><p>● <strong>Region:</strong> GCP region</p><p>● <strong>VPC:</strong> gcp-network</p><p>● <strong>Default Destination Project for Workloads:</strong> Default Project Name</p><p>● <strong>Default Service Account for Workloads:</strong> migration-cloud-extension ( <em>the one created during the manager creation</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHT23R7gjnBdh7LCk00XWg.png" /></figure><p>Now expand the next sections to complete the form:</p><p><strong>Cloud Extension</strong></p><p>● <strong>Cloud Extension Name:</strong> ext1 ( or any name)</p><p>● <strong>Service Account for Edge Nodes:</strong> migration-cloud-extension</p><p>● <strong>Cloud Extension Size:</strong> Small/Large ( see the definition of migration workloads)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gIjKZBfiljMOHaJKmGCSgw.png" /></figure><p><strong>Zones</strong></p><p>● <strong>Node A Zone:</strong> us-central1-a</p><p>● <strong>Node B Zone:</strong> us-central1-b</p><p>● <strong>Node A Subnet:</strong></p><p>● <strong>Node B Subnet:</strong></p><p>● <strong>Default Workload Subnet:</strong></p><p>Click the <strong>Ok</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzIkB-vvIqZZYYoh_oFAtA.png" /></figure><p>You should now see <strong>ext2</strong> in the <strong>Creating</strong> state.</p><p>Wait until the creation is complete and it’s in an <strong>Active</strong> state to continue. This will take a couple of minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWNI3MgDyqKUBn_iyzZtMg.png" /></figure><p><strong>Click the Home button:</strong></p><p>Click the <strong>Migration Waves</strong> icon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*fNz4ZOW463vZHNFKU0S_8Q.png" /><figcaption>Name = aws <em>(this tag is configured for Ec2 in the AWS mgmt. console.. Any machines having the Tag as “aws” will be exported in the CSV sheet now</em>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sb6f2HzJNBTQi11UFUT8bQ.png" /></figure><p><strong>Click Generate Runbook:</strong></p><p><strong>In this example-</strong> there were 5 ec2 machines containing aws tag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0tw6tO_zaYziODzt673sg.png" /></figure><p>Now change &amp; enter few things and save the sheet:</p><p>Run group (<em>from -1 to 1, Instance type required in GCP, Public IP &amp; Project ID etc.</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCpKCNPSdKR7FcNCjleZVQ.png" /></figure><p><strong>Click New wave and upload the CSV:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q07tCcyy4sCTtoECs6nuGA.png" /></figure><p><strong>Click New wave and upload the CSV:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUZZKeHIxBXV4IIuvhEycg.png" /></figure><p><strong>Select Wave 🡪Action 🡪 New Job and Selection Operation:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q3ZqHv0LivY0iqZPrCr_lw.png" /></figure><p>- <strong>Test Clone: </strong>option works fine when would like to test the VM on GCP. This will create an importer (e.g. C4.large) at the source (clone the copy of source Ec2) and let the original machine run without any impact/Stop. The VM will be created in GCP, you can take control of using SSH (Source user &amp; Password) and test the application. Also, you can create an image out of the VM and create a new VM for further testing in GCP before you decide the complete migration.</p><p>- <strong>Run in Cloud: </strong>Option will STOP the source machine, create importer and create a new VM in GCP. As per document, this option streams the storage from source volumes. You can login/ check the apps in GCP from newly created VM</p><p>- <strong>Offline Migration: </strong>Typically legacy workloads/Operating systems that are not currently supported by Migrate for compute. Stop source machine, create importer at source, create exporter at target and keep GCP VM in STOP state. Once the VM is fully cached, the exporter &amp; importer will be deleted and new VM will be UP and running in the GCP</p><p>- <strong>FULL Migration: </strong>Stop source machine, create importer at source, create exporter at target and keep GCP VM in ON state. Once the VM is fully cached, the exporter &amp; importer will be deleted and the new VM will be up &amp; running in the GCP. Under the hood , following steps take place:</p><p><strong>-Run in Cloud — </strong>this step moves compute resources to the cloud &amp; stream Storage from AWS.</p><p><strong>- Storage Migration — </strong>This step moves storage to the cloud in background</p><p><strong>-</strong> <strong>Prepare to detach</strong> — Disconnect from the AWS VM.</p><p><strong>-</strong> <strong>Clean-up</strong> — Clean up the set-up from Migrate for compute engine console</p><p><strong>Note: </strong>Each Source machine (e.g. ec2) will have an individual importer created at source environment (e.g. 5 Ec2 will have additional 5 importers<strong> </strong>as Ec2 of C4.large (on-demand pricing apply) until replication is cut off.</p><p>When following the above VM lifecycle, Source/Original VM will be <strong>“STOPPED”</strong>, NO on-going data replication (this means complete down of the business transactions) will take place. The amount of time data streaming from source to target will be considered elapsed time of migration.</p><p><strong><em>Note:</em></strong><em> Migration process will change for VMware/VCenter workloads. This article is only applicable for AWS Ec2 machines.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6891893ea21c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/workloads-migration-to-gcp-using-migrate-for-compute-engine-6891893ea21c">Workloads Migration to GCP using “Migrate for Compute Engine”</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Student Lab Solution on GCP — Low Cost Solution & Least Operational Overhead]]></title>
            <link>https://medium.com/google-cloud/student-lab-solution-on-gcp-low-cost-solution-least-operational-overhead-f222d506fb69?source=rss-dd1268a04a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/f222d506fb69</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-compute-engine]]></category>
            <category><![CDATA[gcp-security-operations]]></category>
            <dc:creator><![CDATA[Rajeev verma]]></dc:creator>
            <pubDate>Tue, 24 May 2022 15:28:03 GMT</pubDate>
            <atom:updated>2022-05-26T08:03:35.559Z</atom:updated>
            <content:encoded><![CDATA[<h3>Student Lab Solution on GCP — Low Cost Solution &amp; Least Operational Overhead</h3><p><strong>Use case:</strong> Students require exclusive interface/machine with Graphical user interface (GUI) &amp; Linux terminal which can be accessed thru their own laptops or desktops from anywhere. The compute is required for limited hours or during the learning hrs. Only. The learning applications can be browser based or senior /college students may require Linux terminal for learning AI/ML, programming or emerging technologies. The solution requires on the cloud that offers low cost per student with least IT operational overhead.</p><p><strong>Key challenges:</strong></p><ul><li>Cloud on-demand pricing is higher than expected pricing, no way to go for it.</li><li>Higher Windows licenses cost</li><li>Higher Windows RDP/CAL license for multiple users ( only 2 RDP sessions free)</li><li>Cloud commit/reservation not applicable ( compute required only limited /learning hrs)</li><li>Seamless experience for students, no URL/IP changes etc.</li><li>Each student data/file or folders existence during the sessions ( without any data loss)</li></ul><p><strong>Possibility:</strong></p><p>GCP SPOT/preemptible Compute option that offers huge discount (minimum 61% against on-demand) with Linux O/S, but the SPOT VMs can be terminated or spare capacity may not available in the particular AZ or region in case of surge demand. Moreover, managing each VMs disk, daily backup, transfer of the compute images/snapshots between AZs and regions required too much maintenances activities which can disappoint the students and end up with bad experience.</p><p><strong>On-demand </strong>vs <strong>Preemptible/Spot Pricing</strong></p><p><strong>On-demand:</strong></p><p>- Region: Iowa</p><p>- Instance type: e2-standard-2</p><p>- Estimated Component Cost: USD 48.92 per 1 month</p><p><strong>Preemptible/Spot:</strong></p><p>- Region: Iowa</p><p>- Instance type: e2-standard-2</p><p>- Estimated Component Cost: USD 14.68 per 1 month</p><p><strong><em>~ 70% price drop/month</em></strong></p><h3><strong>GCP Solution:</strong></h3><p>Linux -&gt;Ubuntu + GCP SPOT/preemptible compute spreading across multiple regions + (on-demand compute as standby) with TCP global load balancer &amp; cloud storage mounting to each compute engine.</p><p><strong>Business Return on Investment (ROI)</strong> — Calculate GCP SPOT/preemptible (90%) + on-demand (10%) for usages hours/month. Its a great deal 👍</p><p><strong>High level architecture on GCP</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*05n9nLv0M3cPn31MF2SRjg.jpeg" /><figcaption>Architecture Illustration — How Solution works</figcaption></figure><p><strong>How to implement?</strong></p><p>- Operating System — Ubuntu 20.04 LTS</p><p>- Install Xrdp (for GUI interface like windows) — <a href="https://tecadmin.net/how-to-install-xrdp-on-ubuntu-20-04/">How to install it?</a>, make sessions restriction if required at /etc/xrdp/sesman.ini file.</p><p>- Hardened the base image for O/S, Security, and required student S/W, user name, Password, directories, permission, <a href="https://medium.com/@antrixsh/how-to-mount-cloud-storage-bucket-with-gcp-compute-engine-ba7c95ad5349">gcsfuse</a> &amp; bucket mapping as file system etc.</p><ul><li>Create golden/base image</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPtIBw-jbUh06pcBsW5N8g.png" /><figcaption>Golden image</figcaption></figure><p>Create “<strong>Instance template</strong>” per GCP regions (<em>illustrated in the architecture</em>):</p><blockquote>“<strong>US-central-1-on-demand</strong>” has been created for On-demand compute engine, this will be used in case there are no SPOT/preemptible capacity available in <strong>US Central, West and east</strong> regions (each AZs).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlGt39lES2xLRGcYWK3R7Q.png" /><figcaption>Instance Template — Per Region with different compute capacity options</figcaption></figure><p>Create Instance Group “<strong>New managed instance group (stateless)</strong> if auto-scaling required or New managed instance group (stateful) if workload is state full and not succeeding for auto-scaling:</p><p>Us-central1 –on-demand group is created with <strong>“0” </strong>Instance as we will take booklet act in case SPOT/preemptible capacity is not available in the U<strong>S Central, West and east</strong> regions (each AZs).</p><p><strong>For illustration, </strong>1 compute engine in each region and location — Multiple zones Target distribution shape = <strong>even </strong>selected</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVg1eI_XC8GpWt1OUBz3AQ.png" /><figcaption>Instance Group with Multi-AZs /region option</figcaption></figure><p>Create Global load balancer (<strong>TCP/SSL load balancer</strong>) and Backend configuration of RDP and choose each of the MIG created for U<strong>S central, west, East</strong> SPOT and on-demand:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D4U1_Zu5vnW5-Dw854LkFQ.png" /><figcaption>Global Load Balancer — Backend</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GitEBnNaoJmVxzOdmGCJ5Q.png" /><figcaption>Global Load Balancer — Frontend with Instance Group Mapping</figcaption></figure><p>Global load balancer (TCP/SSL load balancer) Frontend configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*extuxO_RzRtvORsiF8ZIGA.png" /><figcaption>Port — RDP with LB Public IP</figcaption></figure><p>Global load balancer (TCP/SSL load balancer) configuration will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1PrU5za6SExmU9J3gDAEA.png" /><figcaption>Global Load Balancer — Outlook</figcaption></figure><p>Now go ahead and take RDP session for Global load balancer IP address . Load balancer will direct the RDP session traffic based on the Geo location &amp; IP address initiating the traffic. <em>During the testing you may notice the most of the sessions are going on specific compute because source IP/originated IP is same, LB act like, traffic is coming from the same user and trying best to direct the traffic to the same compute again.</em> Otherwise, it should work in round robin algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q7OjceRZJtC0Kw1-i7D2Cw.png" /><figcaption>Test RDP using LB IP or DNS name</figcaption></figure><p>LB public IP will be accessed by all students with respective user name and password ( <em>given in advance </em>) Underlying compute engine will be served from each of the location as SPOT offering.</p><p><strong>For DNS record update,</strong> you can update LB public IP address under A record .<em>e.g. 5dollar.xyz</em> DNS is taken from godaddy.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8wVPXzvf-byrPZkl4HKSg.png" /><figcaption>Enter A record as LB IP in DNS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2DS7_w91wWt1Vww6g-5qg.png" /><figcaption>Connect using DNS Name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82k6Kw0Ob5PQwWilxArHDw.png" /><figcaption>US-Central-1 Spot VM</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAbkbNtaxgwwfaSXnTBfrQ.png" /><figcaption>US-East-1 Spot VM</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*HgqKJD_ZU-Xki5cpRhr8fA.png" /><figcaption>US-West-1 Spot VM</figcaption></figure><p>Student can access the browser based application using default <strong>Firefox </strong>or <strong>chrome </strong>(<a href="https://linuxize.com/post/how-to-install-chromium-web-browser-on-ubuntu-20-04/">Chromium Web Browser on Ubuntu 20.04</a>) can be installed or intent to access the terminal, just type terminal and start accessing the Linux terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b88y4yKVI7UezDqeZ3RtIA.png" /><figcaption>Linux terminal for specific user permission</figcaption></figure><p>Now create, Storage bucket that will work as “N<strong>etwork drive”</strong> to upload/ share the common files among all the Compute engine, Here, there 2 files exist in the standard bucket and same can be seen in the <strong>user1 VM </strong>also, this can be seen graphic( Ubuntu GUI) interface under the file-&gt; computer &amp; <strong>google-gcs</strong> name or terminal also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TeM4z0bVPmINoJhu3f0FA.png" /><figcaption>GCP Cloud Storage standard bucket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRxlMRo4BenLGnIF6Dw-8A.png" /><figcaption>GCP Cloud Storage bucket mount point — Google-Gcs ( 2 files can be seen here)</figcaption></figure><h3><strong>Administration of the Environment:</strong></h3><p>Cloud admin will monitor the compute usages, in case usage is higher than expected, more capacity can be added in the MIG ( <em>just change the compute number</em>) or worst case scenario, add on-demand capacity number in the MIG (<strong>while SPOT capacity not available in defined regions</strong>).</p><p>In this illustration, I don’t want any capacity in central region, so I just change the MIG number to <strong>“0”.</strong> My US-central-1 VM got terminated. ( <em>my data is stored in the cloud storage, so no need to worry about any data losses</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bQOzGMGxSS3hrjGQYj3zA.png" /><figcaption>During low demand — Us-central-1 Spot not required</figcaption></figure><p><strong>During non-business hrs</strong>, admin can make value to <strong>“0”</strong> for MIGs and go home without any worries about cloud charges. Global load balancer charges will keep going on, in case want to save little more cost, reserve the external IP for LB, delete LB end of the day and re-create new one with same IP next day .</p><p><strong>End of business day Compute MIGs snapshot for the illustration:</strong> <em>No vCPU, RAM and Storage cost while the environment is not running.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBnVp7qy7h9qSzNQVco7aQ.png" /><figcaption>Off business hours, no capacity required, All VMs+ Storage terminated</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f222d506fb69" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/student-lab-solution-on-gcp-low-cost-solution-least-operational-overhead-f222d506fb69">Student Lab Solution on GCP — Low Cost Solution &amp; Least Operational Overhead</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating & Roll back GCP Projects between Organizations (e.g.]]></title>
            <link>https://medium.com/google-cloud/migrating-roll-back-gcp-projects-between-organizations-e-g-b68a95537696?source=rss-dd1268a04a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/b68a95537696</guid>
            <category><![CDATA[gcp-security-operations]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Rajeev verma]]></dc:creator>
            <pubDate>Tue, 15 Feb 2022 06:14:35 GMT</pubDate>
            <atom:updated>2024-12-05T08:59:23.043Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Migrating &amp; Roll back GCP Projects between Organizations (e.g. Project –braincraft-migration-project running ORG “braincraft.co.in” and Migration to ORG “5Dollar.xyz”)</em></h3><p>You may need to migrate projects between organizations due to acquisitions, regulatory requirements, and separation between business units, among other things:</p><p><strong>Before you get started, make sure you have the following handy:</strong></p><p>1. The project ID of the project you want to migrate</p><p>2. The destination organization’s organization ID</p><p>3. The source organization’s organization ID</p><p><strong>ASSIGNING PERMISSIONS IN THE SOURCE ORGANISATION (e.g. braincraft.co.in)</strong></p><p>1) In the google cloud platform dashboard of the source organization, search ‘IAM’.</p><p>Add principals or use existing IAM(Ensure your Google account is listed as a principal in your organization) which should have following permission:</p><p>1) Project IAM Admin (roles/resourcemanager.projectIamAdmin) on the project that you want to move</p><p>2) Project Mover (roles/resourcemanager.projectMover) on the project’s parent resource</p><p>3) Billing Account Administrator</p><p>4) Organization Policy Administrator</p><p><strong><em>Note:</em></strong><em> When assigning permissions related to a cross-organization migration, you must designate the roles on the same principal email address in both the source and the destination organizations.( e.g. if we use Principal as “</em><a href="https://www.blogger.com/blog/post/edit/2647173627063620664/5501854799984928842#"><em>braincraft@braincraft.co.in</em></a><em>” in Source, we need same IAM principal in the designation ORG -</em><strong>5Dollar.xyz</strong><em> </em><a href="https://www.blogger.com/blog/post/edit/2647173627063620664/5501854799984928842#"><em>braincraft@braincraft.co.in</em></a><em>).</em></p><p><strong>ASSIGNING PERMISSIONS IN THE Destination ORGANISATION (e.g. 5Dollar.xyz)</strong></p><p>Use the email address same as Source (in this case <a href="https://www.blogger.com/blog/post/edit/2647173627063620664/5501854799984928842#"><em>braincraft@braincraft.co.in</em></a><em> </em>) create a new principal and assign them the following roles:</p><p>1) Project IAM Admin (roles/resourcemanager.projectIamAdmin) on the project that you want to move</p><p>2) Project Mover (roles/resourcemanager.projectMover) on the project’s parent resource</p><p>3) Billing Account Administrator</p><p>4) Project Creator</p><p>5) Organization Policy Administrator</p><p>6) If the destination resource is a folder: Project Mover (roles/resourcemanager.projectMover) on the destination resource</p><p>7) If the destination resource is an organization: Project Creator (roles/resourcemanager.projectCreator) on the destination resource</p><p>Refer GCP document (if any changes in future) : <a href="https://www.blogger.com/blog/post/edit/2647173627063620664/5501854799984928842#">https://cloud.google.com/resource-manager/docs/project-migration#assign_permissions</a></p><p><strong>CONFIGURING ORGANISATION POLICIES FOR EXPORTING IN THE SOURCE ORGANISATION:</strong></p><p>1) In the cloud platform dashboard of the source organization, search ‘Organization policies’. Click on the page labelled ‘Organization policies (IAM)’</p><p>2) In the organization policies click on ‘<strong>allowed destinations for exporting resources’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5aRZ5wCj7pX4P63stw_3A.png" /></figure><p>Click the ‘customize’ option, ‘merge with parent’. Then ‘add rule’. For policy values select ‘custom’ and policy type ‘allow’. For the custom values enter ‘<strong>under: organizations/</strong> <strong>destinations_ORG_ID’</strong> and click ‘Done’. This will grant the permissions for your project to be exported to the destination organization. (e.g. <strong>5Dollar.xyz ORG ID)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNEKfRrhFE6JyYlRboGuPQ.png" /></figure><p><strong>CONFIGURING ORGANISATION POLICIES FOR IMPORTING IN THE DESTINATION ORGANISATION</strong></p><p>1) In the cloud platform dashboard of the destination organization, search ‘organization policies’. Click on the page labelled ‘organization policies (IAM).</p><p>2) In the organization policies of the destination organization click on ‘<strong>allowed sources for importing resources</strong>’.</p><p>3) Click on the ‘edit’ button next to ‘policy details’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5q5IFKhlXaxyUqY37VUuZw.png" /></figure><p>Click the ‘customize’ option, ‘merge with parent’. Then ‘add rule’. For policy values select ‘custom’ and policy type ‘allow’. For the custom values enter ‘under: organizations/SOURCE_ORGANIZATION_ID’ (e.g. <strong>braincraft.co.in </strong>ORG ID<strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCiZQVYyMG1XavsUUlxhlA.png" /></figure><p><strong>CHANGING THE BILLING ACCOUNT FOR THE PROJECT</strong></p><p>Cloud billing accounts can be used across organizations. Moving a project from one organization to another won’t impact billing, and charges will continue against the old billing account. However, organization moves often also include a requirement to move to a new billing account.</p><p>To change the billing account for an existing project, you must have the roles/owner role on the project, and the roles/billing.admin role on the destination billing account. To change the billing account:</p><p>1. Go to the <strong>Billing page</strong> in the Cloud Console.<br> <a href="https://console.cloud.google.com/billing">Go to the Billing page</a></p><p>2. Click the name of the billing account you want to change.</p><p>3. Under <strong>Projects linked to this billing account</strong>, find the name of the Project to move and then click the menu button to the right.</p><p>4. Click <strong>Change billing</strong>, and then select the new billing account.</p><p>5. Click <strong>Set account</strong>.</p><p>Note: Charges already incurred that have not yet been reported in the transaction history will be billed to the former billing account. This can include charges from up to two days prior to when the project was moved</p><p>If you have been granted the relevant permissions, you should be able to see the billing account of the destination organization. Select the destination organization’s billing account and click ‘Set Account’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5AsrQgtN8y1XOhFH5ckzQ.png" /></figure><p><strong>PERFORMING THE MIGRATION USING CLOUD SDK or activate Cloud shell at source ORG under the IAM principal which has been provided required roles/permission (above):</strong></p><p>Note: The following instructions are only for migrating a project from one organization to another organization. If the project you want to migrate is not associated with an organization, follow different process:</p><p>1) gcloud beta projects move PROJECT_ID — organization ORGANIZATION_ID</p><p>Or</p><p>2) gcloud beta projects move PROJECT_ID — folder FOLDER_ID</p><p>Once you’ve run the command, you should find that the project is now located in the specified location ( wait for 2 minutes) in the destination organization’s resource hierarchy. The migration is now complete</p><p><strong>Note:</strong></p><p><strong><em>Where:</em></strong></p><p>- <em>PROJECT_ID is the ID or number of the project you wish to migrate.</em></p><p>- <em>ORGANIZATION_ID is the ID of the destination organization to which you want to move the project. You can only specify one target, either an organization or a folder.</em></p><p>- <em>FOLDER_ID is the ID of the destination ORG. folder to which you want to move the project. You can only specify one target, either a folder or an organization</em></p><h3><strong>Before moving your project, you should consider creating a migration plan to determine the readiness of both your organization and the projects you want to move:</strong></h3><p>- <em>Any Policy applied at source Project (not ORG level), will inherit in the destination ORG also. E.g. if you deny external/public IP address at source project level, the same policy will be applied post migration in the destination ORG.</em></p><p>- <em>Any Policy applied at source ORG level (e.g. Organization policies), will not be applicable post migration in the destination ORG.</em></p><p><strong>In nutshell:</strong> While the migration will not make direct configuration changes to the project, the change in the resource hierarchy is likely to have an impact on the function of the project and its running services. Inherited policies, such as Identity and Access Management or organization policies, will not move with the project during migration, only policies and service accounts that are attached directly to the resource. This may cause unintended behavior after the migration is complete</p><p><strong>Therefore ensure that Source ORG Policies &amp; IAM is studied carefully &amp; design the similar structure in the destination ORG before migration.</strong></p><ul><li>During the migration phase, end users can continue to access the projects without any issues. (No Downtime needed)</li><li>End users who have permissions on a project before we initiate migration will maintain the same permissions after the project is migrated into the destination organization</li><li>Cloud IAM policies and the service account that is already defined in a project are migrated with the project</li></ul><h3><strong>Roll back a migration</strong></h3><p>If you have mistakenly moved a project, you can roll back the operation by performing the move again, with the old source as the new destination, and the old destination as the new source. You must have the necessary IAM permissions and organization policies enforced to allow this as if this were an entirely new migration.</p><p>E.g. Source ORG is 5dollar.xyz now and destination ORG is braincraft.co.in</p><p><strong>CONFIGURING ORGANISATION POLICIES FOR EXPORTING IN THE SOURCE ORGANISATION:</strong></p><p>1) In the cloud platform dashboard of the source organization, search ‘Organization policies’. Click on the page labelled ‘Organization policies (IAM)’</p><p>2) In the organization policies click on ‘<strong>allowed destinations for exporting resources’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhb8SKrYi5NZkyaK6ADGog.png" /></figure><p>Click the ‘customize’ option, ‘merge with parent’. Then ‘add rule’. For policy values select ‘custom’ and policy type ‘allow’. For the custom values enter ‘<strong>under: organizations/</strong> <strong>destinations_ORG_ID’</strong> and click ‘Done’. This will grant the permissions for your project to be exported to the destination organization. (e.g. <strong>braincraft.co.in ORG ID).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpzOANAaWM0uzPifAca1OQ.png" /></figure><p><strong>CONFIGURING ORGANISATION POLICIES FOR IMPORTING IN THE DESTINATION ORGANISATION</strong></p><p>1) In the cloud platform dashboard of the destination organization, search ‘organization policies’. Click on the page labelled ‘organization policies (IAM).</p><p>2) In the organization policies of the destination organization click on ‘<strong>allowed sources for importing resources</strong>’.</p><p>3) Click on the ‘edit’ button next to ‘policy details’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAmthXsQgDkjzfIKP7ucPg.png" /></figure><p>Click the ‘customize’ option, ‘merge with parent’. Then ‘add rule’. For policy values select ‘custom’ and policy type ‘allow’. For the custom values enter ‘under: organizations/SOURCE_ORGANIZATION_ID’ (e.g. <strong>5dollar.xyz </strong>ORG ID<strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vaQ9Vh62ApXSmuXxjq0ryA.png" /></figure><p>Once migration is successful, delete IAM principal folders from the source ORG and clean up the environment</p><blockquote><strong>Note:</strong> You cannot migrate a project which is associated with a Shared VPC. In this case, you will have to detach the service projects from the host project and then migrate</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b68a95537696" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/migrating-roll-back-gcp-projects-between-organizations-e-g-b68a95537696">Migrating &amp; Roll back GCP Projects between Organizations (e.g.</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>