HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private...

38
© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED. Steve Bertoldi, Solutions Director, MarkLogic HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD MIGRATION

Transcript of HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private...

Page 1: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Steve Bertoldi, Solutions Director, MarkLogic

HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD MIGRATION

Page 2: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 2

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Agenda Cloud computing and on premise issues

Comparison of traditional vs cloud architecture

Review of use cloud use cases

Page 3: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 3

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

What is cloud computing? Self service provisioning

Elasticity and scale

Pay as you use services

Efficient and economic

Infrastructure as a Service (IaaS)

Page 4: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 4

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Cloud Providers Public clouds

Amazon Web Services (AWS)

Google Cloud

Microsoft Azure

Private Clouds

GovCloud

Page 5: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 5

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Issues with on premise infrastructures

Infrastructure related software bugs

Frequent patching causes down time

Patches require reboot forcing outages Systems unstable after patch

Hardware stability issues

Can be difficult to troubleshoot

Virtualized infrastructures as fixed assets

Page 6: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 6

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Pain points realized by customers

Customers want a stable platform

Tired of infrastructure headaches

Bare metal management costs increasing

Procurement taking longer

Administration issues

Issues with some in-house directives

Page 7: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 7

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Don’t need in-house systems

No need to be close to data center

Stop hugging servers!

The best of today will eventually be outdated

Page 8: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 8

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

The MarkLogic AWS solution MarkLogic is supported on AWS Linux

No other external dependencies

Higher network availability

Easier to procure and administer

Better disaster/backup recovery

Different availability zones

Simpler backups with Simple Storage Service (S3)

Page 9: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 9

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Gains of MarkLogic and cloud implementations

Faster build and delivery times

Scale-on-demand and elastic capabilities

Easier tools and management

Internal cost reduction

Asset recovery

Page 10: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 10

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

TRADITIONAL VS AWS

Page 11: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 11

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

System builds – the old way

CPU specifications Cores, sockets, speed

Memory Dependent on CPU Size Capacity

Motherboard Chassis/capacity

Storage RAID?

Network Fabric/topology

Send to procurement

Page 12: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 12

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Building the AWS way CPU/Memory/Networking

EC2

optimized instance

Amazon EBS Volume

Elastic Block Storage (EBS) GP2 PIOPS Magnetic

Disk/Storage

Elastic Compute Cloud (EC2) CPU/Memory Networking

Amazon Machine Image (AMI)

MarkLogic

Install MarkLogic

AWS cloud

Page 13: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 13

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Migrating a typical MarkLogic Cluster

3 node MarkLogic cluster 2 CPUs, 8 cores each 32 GB RAM 3 TB of local storage

Page 14: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 14

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Select a region

us-west-1 N. California

us-west-2 Oregon

us-east-1 N. Virginia

4 3

3

Page 15: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 15

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Select the AMI Bootstrap image for the OS

Provides details about the instance

Copies image to disk

Amazon Machine Image (AMI)

Page 16: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 16

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Choose an instance type Provides compute power

Choose based upon the system needs

c4.8xlarge

32 vCPUs

60 GiB RAM

Enhanced networking

EC2 instance small EC2 instance

large

Page 17: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 17

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Define instance details Select availability zone (AZ)

Us-east-1b Us-east-1c

Us-east-1d Us-east-1e

availability zone

Do you need a Virtual Private Cloud (VPC)

Networking options/subnet

Many more options

Page 18: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 18

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Add storage Need to have a root volume

Size to your needs

Data volume types

GP2

PIOPS

Magnetic

3TB GP2

Amazon EBS

Page 19: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 19

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Setup Security Configure Security Group

Firewall rules to control traffic

Spans availability zones

SSH keys for private/public key authentication

Launch!

Us-east-1b Us-east-1c

security group

SSH:22 admin:8001 QC:8000

SSH keys

Page 20: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 20

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Building out the cluster

Us-east-1b Us-east-1c Us-east-1d

First instance in the cluster

security group

Elastic Load Balancing

Repeat for remaining nodes Install MarkLogic

Elastic Load Balancer (ELB)

Page 21: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 21

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Building MarkLogic clusters in AWS Unmanaged/manual install

Launching with a MarkLogic AMI directly

AWS Marketplace Bring your own license (BYOL)

Metered

MarkLogic Cloud Formation templates

Managed clusters

Page 22: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 22

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

USE CASES

Page 23: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 23

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Use case: AWS for testing New system part of a larger infrastructure

Target SLAs defined

4 node cluster

Customer hardware in procurement – cannot change

Testing on internal virtualized systems

Page 24: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 24

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Operations and problems

Transformation hub

Large amount of record loading

Not meeting SLAs

Bad performance on local VMs

Page 25: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 25

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2 EC2

EC2

Us-east-1b

EC2 EC2

root

data

root

data

root

data

root

data

Setup Virtual Private Cloud

Testing infrastructure

Run times < SLA

Users connect through VPN 5 m4.4xlarge instances Build MarkLogic cluster Run loading tests

mlcp

Page 26: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 26

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2 EC2

EC2

Us-east-1b

EC2 EC2

Transform job

trans

Elastic Load Balancing

Transformation job Runs on a single node

Not meeting SLA Added elastic load balancer

Performance < SLA Routed traffic to all nodes

Page 27: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 27

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Use case: Utilizing scaling features Search and lookup during the day

Millions of documents from legacy system

Transform batch job

Cannot meet SLAs

Page 28: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 28

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2 EC2

Us-east-1d

EC2

Initial infrastructure

Us-east-1c Us-east-1b

Elastic Load Balancing

APP

3 node architecture Medium sized instances

Loading occurs all day SLA in place

Page 29: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 29

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2 EC2

Us-east-1d

EC2

Scaling infrastructure

Us-east-1c Us-east-1b

Elastic Load Balancing

APP

EC2 EC2 EC2

Us-east-1b

4 4 4 4 4 4

4 4 4 4 4 4 8 8 8 8 8 8 8 8 8 8 8 8

Us-east-1c Us-east-1d

Primary made smaller

Second cluster added 8 vCPU each

Load to secondary

Transform scale-up Loading disabled

Scale up instances 32 vCPU each

transform

Transform on all 3 nodes Met SLAs

Page 30: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 30

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2 EC2

Us-east-1d

EC2

Scale down and switch

Us-east-1c Us-east-1b

Elastic Load Balancing

APP

EC2 EC2 EC2

Us-east-1b

4 4 4 4 4 4

4 4 4 4 4 4 8 8 8 8 8 8 8 8 8 8 8 8

Us-east-1c Us-east-1d

Transform complete 2 clusters exist

Scale 2nd cluster to 8 vCPUs Swap cluster at load balancer Clear primary

Attach loader to primary

Page 31: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 31

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Use case: Elastic auto-scaling architecture

Document based system with searching

Provides alerting and highlighting

3 node primary system

Need to meet peak demands

Page 32: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 32

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2

Master cluster

Master1 Us-east-1b

Elastic Load Balancing

EC2

Master1 Us-east-1b

EC2

Master1 Us-east-1b

3 node cluster Separate availability zone

Used for highlighting C3.2xlarge

8vCPU 15GB RAM

Page 33: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 33

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2

Foreign node

Master1 Us-east-1b

Elastic Load Balancing

EC2

Master1 Us-east-1b

EC2

Master1 Us-east-1b

EC2

Foreign 1

Elastic Load Balancing

replication Single node Uses database replication Search capability Scheduled auto-scaling

Base set for normal loads Increase for peak loads Reduce for weekend loads

Page 34: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 34

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2

Scale up

Master1 Us-east-1b

Elastic Load Balancing

EC2

Master1 Us-east-1b

EC2

Master1 Us-east-1b

EBS snapshot

EBS snapshot

EBS snapshot

AWS Cloud Formation Custom tools

EC2

Foreign 1

EC2

Foreign 2

Elastic Load Balancing

replication

replication Snapshot master Create new foreign node Attach snapshots

Create volumes Setup replication

Attach foreign cluster Attach replicas

Page 35: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 35

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

EC2

Scale down

Master1 Us-east-1b

Elastic Load Balancing

EC2

Master1 Us-east-1b

EC2

Master1 Us-east-1b AWS Cloud Formation

Custom tools

EC2

Foreign 1

EC2

Foreign 2

Elastic Load Balancing

replication

replication Recover resources Disable replication

Remove replicas Detach foreign node

Cleanup instance Stop instance Remove instance Remove volumes

Page 36: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 36

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

WRAPPING UP

Page 37: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 37

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Takeaways It works!

Produce results faster and cheaper

Flexibility, scalability and elasticity

Easy to test out several configurations

No restrictions from fixed infrastructures

New enhancements and growing feature sets

Cost declining

Page 38: HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD ... Web Services (AWS) Google Cloud Microsoft Azure Private Clouds GovCloud SLIDE: 5 © COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE: 38

© COPYRIGHT 2016 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Q&A