Top Banner
Step-by-Step Parse Migration
54

Step-by-Step Parse Migration

Feb 11, 2017

Download

Technology

MongoDB
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Step-by-Step Parse Migration

Step-by-Step Parse Migration

Page 2: Step-by-Step Parse Migration

Learning Objectives● Understand Migration process● Try Migration with Test Application● Self Hosted DB with ClouldManager● Application Hosting in Elastic Beanstalk

Page 3: Step-by-Step Parse Migration
Page 4: Step-by-Step Parse Migration

https://www.mongodb.com/migrate-from-parse-to-mongodb-cloud-manager-and-aws

Page 5: Step-by-Step Parse Migration

HostedDBapi.parse.com

Pre-migration

Page 6: Step-by-Step Parse Migration

HostedDB

Pre-migration

Migration-Test

api.parse.com

Page 7: Step-by-Step Parse Migration

HostedDB

Syncing Phase

Migration-Test

api.parse.com

SelfHosted

DB

Page 8: Step-by-Step Parse Migration

HostedDB

Finalize

Migration-Test

api.parse.com

SelfHosted

DB

Page 9: Step-by-Step Parse Migration

HostedDB

DB Migration Complete

Migration-Test

api.parse.com

SelfHosted

DB

Page 10: Step-by-Step Parse Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Application Migration

Page 11: Step-by-Step Parse Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Application Migration

Page 12: Step-by-Step Parse Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Application Migration

Page 13: Step-by-Step Parse Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBmongo shell

Page 14: Step-by-Step Parse Migration

HostedDB

Goal State

Migration-Test

api.parse.com

SelfHosted

DB

Page 15: Step-by-Step Parse Migration

MongoDBCloud Manager

Page 16: Step-by-Step Parse Migration

MongoDBCloud Manager

Set up & Maintenance

Page 17: Step-by-Step Parse Migration

MongoDBCloud Manager

Set up & Maintenance

Page 18: Step-by-Step Parse Migration

MongoDBCloud Manager

Set up & MaintenanceMonitoring & Alerting

Page 19: Step-by-Step Parse Migration

MongoDBCloud Manager

Set up & MaintenanceMonitoring & Alerting

Back up & Restore

Page 20: Step-by-Step Parse Migration

http://www.clipartbest.com/cliparts/LcK/4R7/LcK4R7Kca.svg

Page 21: Step-by-Step Parse Migration

http://www.clipartbest.com/cliparts/LcK/4R7/LcK4R7Kca.svg

US-West-2

US-EastUS-West-1

Page 22: Step-by-Step Parse Migration

http://www.clipartbest.com/cliparts/LcK/4R7/LcK4R7Kca.svg

US-West-2

US-EastUS-West-1

Page 23: Step-by-Step Parse Migration

US - East

Availability Zone - b

Availability Zone - c

Availability Zone - d

Page 24: Step-by-Step Parse Migration
Page 25: Step-by-Step Parse Migration

Security Group

Page 26: Step-by-Step Parse Migration

Security Group

Page 27: Step-by-Step Parse Migration
Page 28: Step-by-Step Parse Migration

CloudManager

Page 29: Step-by-Step Parse Migration

api.parse.comCloudManager

Page 30: Step-by-Step Parse Migration

api.parse.comSSH - command line

CloudManager

Page 31: Step-by-Step Parse Migration

api.parse.comSSH - command line

CloudManager

Page 32: Step-by-Step Parse Migration

SSHPort: 22Protocol: tcpIPs: 0.0.0.0

Page 33: Step-by-Step Parse Migration

CloudManager Port: 22Protocol: tcpIPs: 4.35.16.128/25, 4.71.186.128/25

Page 34: Step-by-Step Parse Migration

api.parse.com Port: 27000-28000Protocol: tcpIPs: 54.85.224.0/20

Page 35: Step-by-Step Parse Migration

api.parse.comSSH - command line

CloudManager

TLS / SSL

Page 36: Step-by-Step Parse Migration
Page 37: Step-by-Step Parse Migration

Authentication and Authorization

Page 38: Step-by-Step Parse Migration

Role Based Access Control

Authentication and Authorization

Page 39: Step-by-Step Parse Migration

Role Based Access ControlPrinciple of Least Privilege

Authentication and Authorization

Page 40: Step-by-Step Parse Migration

Demonstration: Allocate Replica Set

Page 41: Step-by-Step Parse Migration

HostedDB

Application Migration

Migration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Page 42: Step-by-Step Parse Migration

HostedDB

Migration Completed

Migration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Page 43: Step-by-Step Parse Migration

Demonstration: Migrate Application

Page 44: Step-by-Step Parse Migration

April 28, 2016

HostedDBMigration-Test

api.parse.com

SelfHosted

DB

Page 45: Step-by-Step Parse Migration

July 28, 2016

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Page 46: Step-by-Step Parse Migration

HostedDB

Migration Completed

Migration-Test

api.parse.com

Migration-TestElastic Beanstalk

AWS EC2

Page 47: Step-by-Step Parse Migration

Thanks!@blimpyacht

Page 48: Step-by-Step Parse Migration

Questions for Parse

Page 49: Step-by-Step Parse Migration

Bugs● Migration never successfully finalizes● On refresh, restarting migration no longer available● Oplog sync continues to self-hosted DB uneffected

Page 50: Step-by-Step Parse Migration

HostedDBParse App Servers

loadBalancer

SelfHosted

DB

Lag ~30ms

DB Cutover Issue

Page 51: Step-by-Step Parse Migration

HostedDBParse App Servers

loadBalancer

SelfHosted

DB

Lag ~30ms

Syncing Phase

Page 52: Step-by-Step Parse Migration

HostedDBParse App Servers

loadBalancer

SelfHosted

DB

Lag ~30ms

Finalizing PhaseMust allow at least 30ms for the last write to replicate to self hosted database

Incoming request load doesn’t stop!!!!

Page 53: Step-by-Step Parse Migration

HostedDBDEAD Server

loadBalancer

SelfHosted

DB

Lag ~30ms

Finalizing PhaseMust allow at least 30ms for the last write to replicate to self hosted database

Incoming request load doesn’t stop!!!!FAIL!RAM exhaustionconnection exhaustionstack overflow

Page 54: Step-by-Step Parse Migration

HostedDBDEAD Server

loadBalancer

SelfHosted

DB

Lag ~30ms

How is this scenario avoided?

Incoming request load doesn’t stop!!!!CASCADING FAILURES