avatarDazbo (Darren Lester)

Summarize

Google Cloud Adoption: Discovery and Mapping Your As-Is to Cloud, Using Cloud Migration Center

Welcome to the continuation of the Google Cloud Adoption: From Strategy to Operation series.

Let’s recap what we’ve achieved so far:

  1. We’ve established our cloud strategy and defined a set of goals. We’ve integrated an open source strategy.
  2. We’ve built a business case. As part of this, we’ve conducted a high level estimate of our future Google Cloud run costs using Google Cloud Migration Centre.
  3. We’ve established a set of cloud adoption and cloud consumption principles. These form the foundation that all our subsequent technology decisions can build upon.

In this part we’ll focus on how to map our as-is technology to Google Cloud. I’m going to cover this in two parts. In the first part (this article), I’ll cover these topics:

  • Building a view of our existing estate.
  • Why it’s good to have a CMDB.
  • How to Perform As-Is Discovery with Google Cloud Migration Center.
  • Grouping the Discovered assets.
  • Creating a TCO Report with Cloud Migration Center.

Building a View of Your Existing Estate

We need to establish the workloads we have today, and then establish how we will run these workloads in Google Cloud.

Google Cloud Migration Center to the rescue, once again! As a quick reminder, here’s Google’s recommended process for migration:

Google’s recommended cloud migration process

I previously described how to use the Cloud Migration Center to perform the initial high level estimate, during the business case definition stage. This high level estimate could be done quickly, without any detailed data about the workloads we currently have.

But in this new stage of our migration journey, we need much more granular data.

We Need a CMDB!

At this stage we need to establish:

  • The business applications we are running today. There might be hundreds! These applications should ideally be mapped to business capabilities.
  • For each application, we’ll need to know key attributes such as: availability, RTO and RPO; client compatibility (e.g. thick client, mobile app, web browser); authentication and authorisation approach.
  • We need to establish our organisation’s intent towards each application in the future. Are we expecting to decommission this application? Upgrade it? Replace it? Consolidate it? Ideally, this is the type of information captured in an organisation’s Enterprise Architecture tooling. This is useful, because we might choose to choose to descope migration of applications where decommissioning is already planned or underway. But be careful here! I would recommend only ever descoping applications with a concrete decomm plan. Don’t descope applications associated with aspirational statements like “Plan to decommission in 2 years”. In my experience, such statements rarely turn into execution!
  • We should capture how these applications are hosted. E.g. are they on-prem, SaaS, or already in our target cloud? For migration assessment, we’ll only care about the on-prem workloads.
  • For those on-prem applications we will need to understand (where applicable): commercial licensing; vendor support; location of source code; ease of installation; existence of quality documentation; existence of regression testing collateral; and aligned service owners and/or SMEs.
  • For these applications, we need to know about their underpinning application server and runtime environments. For example, IBM Websphere Application Server, Oracle Weblogic, Red Hat JBoss, Apache Tomcat, Spring Boot, IHS. We will want to know runtime versions, e.g. for Java, .NET, Python, etc.
  • For these applications, we need to know about their associated databases and database platforms. E.g. Oracle DB, Microsoft SQL Server, IBM DB2 LUW, IBM DB2 Z, PostgreSQL, MySQL, MongoDB, etc.
  • We need to determine associated middleware and other dependent infrastructure services. E.g. user directories (like Active Directory), messaging queues (like IBM MQ), shared file storage, API gateways, code repositories, CI/CD pipelines, scheduling engines, operational tooling, etc.
  • We need to identify all the VMs that are running the on-prem business applications and their dependent on-prem infrastructure services.
  • For each VM, we need to capture: vCPUs, memory and storage allocated; installed OS and version; IP address; associated physical hardware cluster.

Google refers to the process of capturing this information: “discovery”. Personally, I’ve always referred to it as “application-to-infrastructure mapping”, or “AIM” for short.

Many organisations will already have all of this information, in the form of a Configuration Management Database (CMDB). For example, tools like ServiceNow and BMC Atrium have their own CMDBs and discovery tooling, which:

  • Perform continuous estate discovery and dependency mapping. Thus ensuring that the CMDB is reasonably accurate and up to date.
  • Capture most of the attributes described above. (Though typically not the EA / roadmap stuff.)
  • Can produce graphical visualisations of the relationships of the configuration items in the CDMB.
A BMC Atrium visualisation of configuration items in the CDMB
  • Can detect and identify common off-the-shelf software, and map them to your infrastructure. For example, the screenshots below — taken from the ServiceNow product documentation — show the software and components that ServiceNow is able to detect, out-of-the-box:
Virtualisation and operating systems automatically detected by ServiceNow CMDB discovery
Installed software, databases and network services detected by ServiceNow CMDB discovery

Alas, many organisations are far less mature, and try to maintain this information in spreadsheets. For a small organisation, this might be manageable. But for an enterprise of any size, this approach is futile and the data will always be stale and unreliable.

Discovery with Cloud Migration Center

Recall that Google recommends splitting migration into these five phases. Earlier, we performed the initial high level estimate using Cloud Migration Center, without any kind of detailed discovery.

Google’s recommended cloud migration process

Now we are in the Discovery phase. And fortunately, whether we have a mature CMDB or not, Google’s Cloud Migration Center can help. At least, it can do a pretty good job of the infrastructure information gathering.

Basically, you have two main options for getting your estate data into Google Cloud Migration Center:

  1. You can import a subset of your existing CMDB data from a source system. E.g. using a CSV, an export from ServiceNow, or even exports from AWS and Azure.
  2. You can download and run the Migration Center Discovery client CLI.
  3. You can deploy and run the Migration Center Discovery client (a graphical tool) to a Windows VM in your estate.

Running the Cloud Migration Center Discovery Client

I’ll quickly guide you through the typical discovery process in Cloud Migration Center, using the graphical Cloud Migration Center Discovery client.

First, you create a project in Google Cloud, where the migration data will be collected, and which will “own” the discovery process. Then, launch “Migration Centre”. The first time you launch it, you will have to enable the Migration Centre APIs and configure some defaults (many of which can be changed later):

Setting up Migration Centre for the first time

Now we will select Discover assets:

Asset Discovery in Migration Centre

Next, Add Data:

Add a data source to the Migration Center

From here, we can provision a service account that will be used for uploading collected data.

Now you can create an instance of the Discovery Client and download it, from the Cloud Migration Center in the Cloud Console:

Download the Discovery client

Now you can install the client application into a VM running Windows Server 2012 R2 or newer. The client requires the following connectivity:

(Check the detailed requirements here.)

Now we can run the Discovery Client.

Launching the Discovery Client on your Windows Server VM

Choose how to scan the estate:

Choose a scan method

Where possible, choose “OS Scan”, because this gives you VM metadata, VM-utilisation data, and installed software and services. If you’re running VMware and you can’t perform an OS Scan, you can choose “vSphere Scan”. The main difference with this scan type is that the collected data will not include running software and services.

Finally, use “Database Scan” to scan IPs (e.g. network zones) where you run databases, since this scan will also give you DB-specific information, such as database type, database names, DB sizing and usage, tables and object metrics, and more.

Now you need to provide credentials that are necessary to perform the scan on remote machines (called target assets) in your estate. E.g.

  • For an OS scan: an administrative account for Windows machines; or user-level account on Linux machines.
  • For a vSphere scan: vSphere credentials.
  • For a DB scan: DB-vendor specific database credentials.

You can provide multiple credentials, and you can link different target assets to each credential. Which brings us to the “Add Assets” phase:

Add assets by supplying IP ranges or uploading a CSV

At this point, if you have an existing CMDB, you can export your IP addresses from it, and upload them as a CSV to the Discovery Client. Once you’ve specified your IP ranges or uploaded your IPs to scan, you click “Start IP Scan”:

Specifying IP ranges and running the scan

Once the scan has finished, your assets will now be visible within the Google Cloud Console!

Assets that have been discovered and scanned by Cloud Migration Center

Examining and Grouping Assets

Having gathered the as-is data, we can now group them, based on workload type. Once we have a good view of the assets, we can determine what to do with them, and we can determine the overall migration scope.

We can easily create groups for your assets, based on discovered metadata. For example, you can easily filter your discovered assets by OS type, and use this to put assets into OS-specific groups. This is how you would do it:

First, create a group in the Cloud Console → Migration Centre → Groups:

Creating a group

Then filter assets, and add filtered assets to the group:

Filtering by OS

When you’re done, you can have as many groups as you like. E.g

Groups defined in Cloud Migration Center

Continuing in Google Cloud Migration Center from where we left off in the Discovery phase, you can now select any of your gathered assets, and immediately see Google’s recommended target product and configuration.

Google suggested a target for this on-prem VM

Creating a TCO Report with Cloud Migration Center

With no extra effort or additional data gathering, we can use Cloud Migration Center to generate a Total Cost of Ownership (TCO) report.

The report allows us to:

  • View TCO against the whole estate, and against our defined groups.
  • View different TCOs, given different migration preferences that we supply.

We start by selecting TCO & Pricing from the Migration Center menu:

Generating a TCO report

Then we can configure one or more sets of migration preferences. Preferences such as:

  • Target Google Cloud region.
  • For VMs migrating to GCE: preferred machine types, disk types, committed use intention, and whether existing commercial operating systems will be licensed using pay-as-you-go, or bring-your-own licenses.
  • For Google VMware Engine (GCVE), we can specify target vCPU and memory overcommit ratios.
  • Right-sizing approach: we can decide whether to migrate VMs to target VMs that are at least as big as our source VMs, or we can apply right-sizing to propose smaller VMs, based on the performance metrics gathered by the tool. For example, moderate rightsizing suggests a VM size that would be expected to achieve 70% CPU utilisation, whereas aggressive rightsizing would target 90% CPU utilisation.
Creating a set of migration preferences

Having defined our migration preferences, we can apply them to our migration groups to build the TCO report.

When we run the report, we get something that looks like this:

Google Cloud Migration Center

And the TCO report shows the cost estimates for our groups, with our migration preferences compared side-by-side:

TCOs for our migration preferences, compared

Furthermore, we can generate an export of the report, in slides format. Here is a sample of such a presentation.

What Have We Achieved?

In this article, I’ve demonstrated how easy it is to use Google’s Cloud Migration Center to:

  • Perform an assessment of the as-is estate.
  • Propose VM migration targets in Google Cloud.
  • Provide TCO estimates, based on our migration preferences.

However, this TCO comparison is very IaaS-oriented:

  • It assumes we’re migrating VMs to VMs.
  • Our workloads are fundamentally unchanged.
  • We’re not yet exploiting the more fundamental value-adds of cloud, such as PaaS offerings, managed services, and serverless.
  • We haven’t looked at containerising our workloaads.
  • And we haven’t made any fundamental decisions to rearchitect.

So it’s fair to say that your target state TCO could be MUCH better than the current estimate. And with that in mind, the next part of this series will be looking at the sorts of as-is to target state workload mappings that can drive a lot more value out of Google Cloud!

Before You Go

  • Please share this with anyone that you think will be interested. It might help them, and it really helps me!
  • Feel free to leave a comment 💬.
  • Follow and subscribe, so you don’t miss my content. Go to my Profile Page, and click on these icons:
Follow and Subscribe

Series Navigation

Discovery
Cmdb
Cloud Migration
Cloud Migration Center
Google Cloud Platform
Recommended from ReadMedium