When a brand new project is started from scratch, you are free to choose between any and all technologies, architecture, infrastructure and so on. But do you consider if these decisions will still be viable after a year? Sometimes you have to make crucial changes and even migrate infrastructure between clouds.
2. What is ServiceBridge?
ServiceBridge field service management software is designed to assist
franchise businesses with work order scheduling and distribution, eliminate
paperwork and engage customers to increase sales. We’ve had great success
with landscape maintenance, carpet cleaning, pool cleaning, pest control, and
disaster clean up service franchises.
26. What has changed?
• Communication with „Cloud“:
- Active Directory
- VPN
• NAT Server:
- Outbound traffic goes through NAT server
- Only two public IPs
• Web servers
- 3 couples of web servers (2 x Web, 2 x API, 2 x Everything else)
- DFS (IIS configuration is synchronized between servers)
27. What has changed?
• SQL Server:
- EC2 instead of SQL as a Service (RDS)
- Web edition
- Backups to S3 (Bucket lifecycle rules)
- Accessible only from VPC
• Redis Cache
- No built-in security
- Accessible only from VPC
- Security controlled via Security Groups
28. What has changed?
• ElasticSearch:
- 5 Linux servers (2 x logs, 3 x search)
- Isolated Staging and Production environments
- Accessible only from VPC
- Backup strategy: snapshots
- Heap memory size configuration
• Reverse engineering VPC:
- CloudFormation
- Separate Linux EC2 instance to “script” VPC (shutdown)
29. Deployments
• CCNET to Team City
• Single build for all solutions: ~23 mins vs > 60 mins
• Deployment packages are stored on S3
• Lambda service triggers CodeDeploy service
• CodeDeploy deploys packages to EC2 instances one at a time
• Configuration may vary:
- One at a time
- Half at a time
- All at once
30. Migration day
• Source code and configuration:
In advance
• Web sites stopped using app_offline.htm
• Database migration:
From Azure SQL using .bacpac
From Azure VM using .bak
• ElasticSearch:
Using snapshot / restore functionality
31. Migration day issues
• App_Offline.htm design (Arnold Schwarzenegger vs. Pretty lady)
• What pizzas to order for lunch?
• Minor issues (outdated configuration, third party components security)
• Main functionality restored in 2 hours 30 mins
• Regarding to boss – it was the most complicated and smoothest migration in
his career!
32. 5 months since migration…
• 0 night calls
• 100% uptime
• Average response time is stable on peak time
• $11k/month → $6k/month