+ All Categories
Home > Technology > Step-by-Step Parse Migration

Step-by-Step Parse Migration

Date post: 11-Feb-2017
Category:
Upload: mongodb
View: 1,665 times
Download: 0 times
Share this document with a friend
54
Step-by-Step Parse Migration
Transcript

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

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

HostedDBapi.parse.com

Pre-migration

HostedDB

Pre-migration

Migration-Test

api.parse.com

HostedDB

Syncing Phase

Migration-Test

api.parse.com

SelfHosted

DB

HostedDB

Finalize

Migration-Test

api.parse.com

SelfHosted

DB

HostedDB

DB Migration Complete

Migration-Test

api.parse.com

SelfHosted

DB

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Application Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Application Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Application Migration

HostedDBMigration-Test

api.parse.com

SelfHosted

DBmongo shell

HostedDB

Goal State

Migration-Test

api.parse.com

SelfHosted

DB

MongoDBCloud Manager

MongoDBCloud Manager

Set up & Maintenance

MongoDBCloud Manager

Set up & Maintenance

MongoDBCloud Manager

Set up & MaintenanceMonitoring & Alerting

MongoDBCloud Manager

Set up & MaintenanceMonitoring & Alerting

Back up & Restore

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

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

US-West-2

US-EastUS-West-1

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

US-West-2

US-EastUS-West-1

US - East

Availability Zone - b

Availability Zone - c

Availability Zone - d

Security Group

Security Group

CloudManager

api.parse.comCloudManager

api.parse.comSSH - command line

CloudManager

api.parse.comSSH - command line

CloudManager

SSHPort: 22Protocol: tcpIPs: 0.0.0.0

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

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

api.parse.comSSH - command line

CloudManager

TLS / SSL

Authentication and Authorization

Role Based Access Control

Authentication and Authorization

Role Based Access ControlPrinciple of Least Privilege

Authentication and Authorization

Demonstration: Allocate Replica Set

HostedDB

Application Migration

Migration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

HostedDB

Migration Completed

Migration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

Demonstration: Migrate Application

April 28, 2016

HostedDBMigration-Test

api.parse.com

SelfHosted

DB

July 28, 2016

HostedDBMigration-Test

api.parse.com

SelfHosted

DBMigration-TestElastic Beanstalk

HostedDB

Migration Completed

Migration-Test

api.parse.com

Migration-TestElastic Beanstalk

AWS EC2

Thanks!@blimpyacht

Questions for Parse

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

HostedDBParse App Servers

loadBalancer

SelfHosted

DB

Lag ~30ms

DB Cutover Issue

HostedDBParse App Servers

loadBalancer

SelfHosted

DB

Lag ~30ms

Syncing Phase

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!!!!

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

HostedDBDEAD Server

loadBalancer

SelfHosted

DB

Lag ~30ms

How is this scenario avoided?

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


Recommended