Premium conference on Microsoft technologies itcampro@ itcamp14#
Database and Public
Endpoints redundancy on
Azure
@RaduVu...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Hello ITCamp!
RADU
VUNVULEA
MCTS MCP HOME AUTOMATION
MVP ...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Huge thanks to our sponsors & partners!
Premium conference on Microsoft technologies itcampro@ itcamp14#
Cloud is not managed by God
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Define Redundancy
• SQL Database
• Storage
• Endpoints ...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Redundancy
Premium conference on Microsoft technologies itcampro@ itcamp14#
In engineering, redundancy is the duplication
of critical...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Hardware
Dual Modular Redundancy
Triple Modular Redundanc...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Hardware
Dual Modular Redundancy
Triple Modular Redundanc...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Hardware
Dual Modular Redundancy
Triple Modular Redundanc...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Hardware
Dual Modular Redundancy
Triple Modular Redundanc...
Premium conference on Microsoft technologies itcampro@ itcamp14#
HOW WE CAN TEST IT?
Premium conference on Microsoft technologies itcampro@ itcamp14#
Netflix: The Chaos Monkey’s job is to randomly
kill insta...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Failover & Switchover
Premium conference on Microsoft technologies itcampro@ itcamp14#
Failover & Switchover
Premium conference on Microsoft technologies itcampro@ itcamp14#
SQL REDUDANCY
Premium conference on Microsoft technologies itcampro@ itcamp14#
SQL Data Sync
Premium conference on Microsoft technologies itcampro@ itcamp14#
DEMO
Let’s see some code
Premium conference on Microsoft technologies itcampro@ itcamp14#
SQL Backups
Premium conference on Microsoft technologies itcampro@ itcamp14#
DEMO
Let’s see some code
Premium conference on Microsoft technologies itcampro@ itcamp14#
AlwaysOn
Premium conference on Microsoft technologies itcampro@ itcamp14#
DISASTER RECOVERY PLAN
Premium conference on Microsoft technologies itcampro@ itcamp14#
Do you have a disaster recovery plan?
How long it takes t...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Do you have a disaster recovery plan?
How long it takes t...
Premium conference on Microsoft technologies itcampro@ itcamp14#
ENDPOINT REDUNDANCY
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Any public endpoint
• Accessible from internet or priva...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Load Balancer
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Free 
• Out of the box
• Lever 3 Load Balancer type
– ...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Custom app endpoint
• Processor level, 500 Errors, Para...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Redundancy
Premium conference on Microsoft technologies itcampro@ itcamp14#
Traffic Manager
Premium conference on Microsoft technologies itcampro@ itcamp14#
Traffic Manager
Premium conference on Microsoft technologies itcampro@ itcamp14#
Traffic Manager
• ~Load Balancer (Word Wide level)
• Redi...
Premium conference on Microsoft technologies itcampro@ itcamp14#
DEMO
Let’s see some code
Premium conference on Microsoft technologies itcampro@ itcamp14#
Traffic Manager
• [Not Supported] Hybrid Scenarios
Premium conference on Microsoft technologies itcampro@ itcamp14#
WHY REDUNDANCY IS SO
IMPORTANT?
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Compute 99.95%
• SQL Database 99.90%
• Storage 99.90%
•...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Compute 99.95% 21.6m
• SQL Database 99.90% 43.2m
• Stor...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Compute 99.95% 21.6m
• SQL Database 99.90% 43.2m
• Stor...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Downtime per month: 216m
21.6*2+43.2*4=216m
Windows Azu...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Downtime per month: 216m
21.6*2+43.2*4=216m
• Downtime ...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Downtime per month: 216m
21.6*2+43.2*4=216m
• Downtime ...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Compute 99.95% 21.6m
• SQL Database 99.90% 43.2m
• Stor...
Premium conference on Microsoft technologies itcampro@ itcamp14#
WCF ENDPOINTS REDUNDANCY
Premium conference on Microsoft technologies itcampro@ itcamp14#
Service Bus Relay
Relay
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Steps to integrate in existing application
– Add assemb...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Works only with
– Async calls
– Fire and Forget calls
•...
Premium conference on Microsoft technologies itcampro@ itcamp14#
STORAGE REDUNDANCY
Premium conference on Microsoft technologies itcampro@ itcamp14#
• 3 copy of the content in the same data center
Locally R...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• 2 different data centers
• Async replication
Geographic...
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Similar with GRS
• Read only access to the secondary st...
Premium conference on Microsoft technologies itcampro@ itcamp14#
DEMO
Let’s see some code
Premium conference on Microsoft technologies itcampro@ itcamp14#
Traffic Manager
Premium conference on Microsoft technologies itcampro@ itcamp14#
CHECK HEALTH STATUS OF
OTHER SERVICES
Traffic Manager
Premium conference on Microsoft technologies itcampro@ itcamp14#
Import Export Service
Premium conference on Microsoft technologies itcampro@ itcamp14#
Import/Export Service
Premium conference on Microsoft technologies itcampro@ itcamp14#
DEMO
Let’s see some code
Premium conference on Microsoft technologies itcampro@ itcamp14#
MTBF, MTTR
Premium conference on Microsoft technologies itcampro@ itcamp14#
Mean Time Between Failures
Mean Time To Recovery
MTBF -> ...
Premium conference on Microsoft technologies itcampro@ itcamp14#
VM REDUNDANCY
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Same features offered by System Center on-
premises
• A...
Premium conference on Microsoft technologies itcampro@ itcamp14#
CONCLUSION
Premium conference on Microsoft technologies itcampro@ itcamp14#
• Everything has a price
• Calculate up-time for specific...
Premium conference on Microsoft technologies itcampro@ itcamp14#
Q & A
Upcoming SlideShare
Loading in …5
×

Database and Public EndPoints Redundancy on Azure (Radu Vunvulea)

269 views
184 views

Published on

This is the perfect session if you need to design a solution that needs to run over Windows Azure and needs to be available 24 hours every day, 7 days per week. We will discuss different concepts and solutions to have databases and/or public API’s available even if a part of cloud infrastructure will be down. Topics like automatically backups, failover mechanism, traffic manager and redundancy will be discussed.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
269
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Database and Public EndPoints Redundancy on Azure (Radu Vunvulea)

  1. 1. Premium conference on Microsoft technologies itcampro@ itcamp14# Database and Public Endpoints redundancy on Azure @RaduVunvulea, iQuest http://vunvulearadu.blogspot.com
  2. 2. Premium conference on Microsoft technologies itcampro@ itcamp14# Hello ITCamp! RADU VUNVULEA MCTS MCP HOME AUTOMATION MVP ENTERPRISE AUTOMOTIVE PHARMA LEAN AND AGILE E-COMMERCE WEB iQuest AZURE JAVASCRIPT VUNVULEARADU.BLOGSPOT.COM MOBILE DOTNET @RaduVunvulea WCF WPF ENTHUSIASTIC
  3. 3. Premium conference on Microsoft technologies itcampro@ itcamp14# Huge thanks to our sponsors & partners!
  4. 4. Premium conference on Microsoft technologies itcampro@ itcamp14# Cloud is not managed by God
  5. 5. Premium conference on Microsoft technologies itcampro@ itcamp14# • Define Redundancy • SQL Database • Storage • Endpoints (HTTP/S, WCF) • VM Agenda
  6. 6. Premium conference on Microsoft technologies itcampro@ itcamp14# Redundancy
  7. 7. Premium conference on Microsoft technologies itcampro@ itcamp14# In engineering, redundancy is the duplication of critical components or functions of a system with the intention of increasing reliability of the system, usually in the form of a backup or fail-safe. Source: Wikipedia Redundancy
  8. 8. Premium conference on Microsoft technologies itcampro@ itcamp14# Hardware Dual Modular Redundancy Triple Modular Redundancy Information Error detection Correction Time Transient Fault Detection Software N-versions Programming Type of Redundancy
  9. 9. Premium conference on Microsoft technologies itcampro@ itcamp14# Hardware Dual Modular Redundancy Triple Modular Redundancy Information Error detection Correction Time Transient Fault Detection Software N-versions Programming Type of Redundancy
  10. 10. Premium conference on Microsoft technologies itcampro@ itcamp14# Hardware Dual Modular Redundancy Triple Modular Redundancy Information Error detection Correction Time Transient Fault Detection Software N-versions Programming Type of Redundancy
  11. 11. Premium conference on Microsoft technologies itcampro@ itcamp14# Hardware Dual Modular Redundancy Triple Modular Redundancy Information Error detection Correction Time Transient Fault Detection Software N-versions Programming Type of Redundancy
  12. 12. Premium conference on Microsoft technologies itcampro@ itcamp14# HOW WE CAN TEST IT?
  13. 13. Premium conference on Microsoft technologies itcampro@ itcamp14# Netflix: The Chaos Monkey’s job is to randomly kill instances and services within our architecture Chaos Monkey
  14. 14. Premium conference on Microsoft technologies itcampro@ itcamp14# Failover & Switchover
  15. 15. Premium conference on Microsoft technologies itcampro@ itcamp14# Failover & Switchover
  16. 16. Premium conference on Microsoft technologies itcampro@ itcamp14# SQL REDUDANCY
  17. 17. Premium conference on Microsoft technologies itcampro@ itcamp14# SQL Data Sync
  18. 18. Premium conference on Microsoft technologies itcampro@ itcamp14# DEMO Let’s see some code
  19. 19. Premium conference on Microsoft technologies itcampro@ itcamp14# SQL Backups
  20. 20. Premium conference on Microsoft technologies itcampro@ itcamp14# DEMO Let’s see some code
  21. 21. Premium conference on Microsoft technologies itcampro@ itcamp14# AlwaysOn
  22. 22. Premium conference on Microsoft technologies itcampro@ itcamp14# DISASTER RECOVERY PLAN
  23. 23. Premium conference on Microsoft technologies itcampro@ itcamp14# Do you have a disaster recovery plan? How long it takes to restart the entire system? How complicated is your checklist? Can you parallelize it? Disaster Recovery Plan (DRP)
  24. 24. Premium conference on Microsoft technologies itcampro@ itcamp14# Do you have a disaster recovery plan? How long it takes to restart the entire system? How complicated is your checklist? Can you parallelize it? AUTOMATION Disaster Recovery Plan (DRP)
  25. 25. Premium conference on Microsoft technologies itcampro@ itcamp14# ENDPOINT REDUNDANCY
  26. 26. Premium conference on Microsoft technologies itcampro@ itcamp14# • Any public endpoint • Accessible from internet or private networks Endpoint
  27. 27. Premium conference on Microsoft technologies itcampro@ itcamp14# Load Balancer
  28. 28. Premium conference on Microsoft technologies itcampro@ itcamp14# • Free  • Out of the box • Lever 3 Load Balancer type – TCP Level • No Sticky sessions • Partial Configurable Load Balancer
  29. 29. Premium conference on Microsoft technologies itcampro@ itcamp14# • Custom app endpoint • Processor level, 500 Errors, Parallel task • Configurable from *.cscfg files • VM: Using Power Shell Load Balancer Probe <LoadBalancerProbes> <LoadBalancerProbe name="FooProbe" protocol="http" intervalInSeconds="30" path="/api/probe" port="80" timeoutInSeconds="60" /> </LoadBalancerProbes>
  30. 30. Premium conference on Microsoft technologies itcampro@ itcamp14# Redundancy
  31. 31. Premium conference on Microsoft technologies itcampro@ itcamp14# Traffic Manager
  32. 32. Premium conference on Microsoft technologies itcampro@ itcamp14# Traffic Manager
  33. 33. Premium conference on Microsoft technologies itcampro@ itcamp14# Traffic Manager • ~Load Balancer (Word Wide level) • Redirect request based on client location • Any kind of endpoint – VM, Web/Worker Roles, DB and many more – External Endpoints • Methods: Failover, Round Robin, Performance • Is not FREE (1B DNS query = $0.75) • DNS TTL
  34. 34. Premium conference on Microsoft technologies itcampro@ itcamp14# DEMO Let’s see some code
  35. 35. Premium conference on Microsoft technologies itcampro@ itcamp14# Traffic Manager • [Not Supported] Hybrid Scenarios
  36. 36. Premium conference on Microsoft technologies itcampro@ itcamp14# WHY REDUNDANCY IS SO IMPORTANT?
  37. 37. Premium conference on Microsoft technologies itcampro@ itcamp14# • Compute 99.95% • SQL Database 99.90% • Storage 99.90% • Storage (RA-GRS) 99.99% • Active Directory 99.90% • Cache 99.90% • VM 99.95% • Service Bus 99.95% Windows Azure SLA’s
  38. 38. Premium conference on Microsoft technologies itcampro@ itcamp14# • Compute 99.95% 21.6m • SQL Database 99.90% 43.2m • Storage 99.90% 43.2m • Storage (RA-GRS) 99.99% <8m • Active Directory 99.90% 43.2m • Cache 99.90% 43.2m • VM 99.95% 21.6m • Service Bus 99.95% 21.6m Windows Azure SLA’s (per month)
  39. 39. Premium conference on Microsoft technologies itcampro@ itcamp14# • Compute 99.95% 21.6m • SQL Database 99.90% 43.2m • Storage 99.90% 43.2m • Storage (RA-GRS) 99.99% <8m • Active Directory 99.90% 43.2m • Cache 99.90% 43.2m • VM 99.95% 21.6m • Service Bus 99.95% 21.6m Windows Azure SLA’s
  40. 40. Premium conference on Microsoft technologies itcampro@ itcamp14# • Downtime per month: 216m 21.6*2+43.2*4=216m Windows Azure SLA’s
  41. 41. Premium conference on Microsoft technologies itcampro@ itcamp14# • Downtime per month: 216m 21.6*2+43.2*4=216m • Downtime per month: 0.5% (100/43200)*216=0.5% Windows Azure SLA’s
  42. 42. Premium conference on Microsoft technologies itcampro@ itcamp14# • Downtime per month: 216m 21.6*2+43.2*4=216m • Downtime per month: 0.5% (100/43200)*216=0.5% • Uptime: 99.5% 100-0.5=99.5% Windows Azure SLA’s
  43. 43. Premium conference on Microsoft technologies itcampro@ itcamp14# • Compute 99.95% 21.6m • SQL Database 99.90% 43.2m • Storage 99.90% 43.2m • Storage (RA-GRS) 99.99% <8m • Active Directory 99.90% 43.2m • Cache 99.90% 43.2m • VM 99.95% 21.6m • Service Bus 99.95% 21.6m Windows Azure SLA’s
  44. 44. Premium conference on Microsoft technologies itcampro@ itcamp14# WCF ENDPOINTS REDUNDANCY
  45. 45. Premium conference on Microsoft technologies itcampro@ itcamp14# Service Bus Relay Relay
  46. 46. Premium conference on Microsoft technologies itcampro@ itcamp14# • Steps to integrate in existing application – Add assembly reference to SB Relay – Update WCF configuration sections (client and backend) Service Bus Relay
  47. 47. Premium conference on Microsoft technologies itcampro@ itcamp14# • Works only with – Async calls – Fire and Forget calls • Broker between endpoint and client • Store messages until backend is available • WCF Endpoint (Azure or on-premises) • Price model similar with SB (per messages) Service Bus Relay
  48. 48. Premium conference on Microsoft technologies itcampro@ itcamp14# STORAGE REDUNDANCY
  49. 49. Premium conference on Microsoft technologies itcampro@ itcamp14# • 3 copy of the content in the same data center Locally Redundant Storage 1 3 2
  50. 50. Premium conference on Microsoft technologies itcampro@ itcamp14# • 2 different data centers • Async replication Geographically Redundant Storage 1 3 2 1 3 2
  51. 51. Premium conference on Microsoft technologies itcampro@ itcamp14# • Similar with GRS • Read only access to the secondary storage • Redirecting managed by developer • Async replication • 99.99% Uptime Read Access Geo Redundant Storage
  52. 52. Premium conference on Microsoft technologies itcampro@ itcamp14# DEMO Let’s see some code
  53. 53. Premium conference on Microsoft technologies itcampro@ itcamp14# Traffic Manager
  54. 54. Premium conference on Microsoft technologies itcampro@ itcamp14# CHECK HEALTH STATUS OF OTHER SERVICES Traffic Manager
  55. 55. Premium conference on Microsoft technologies itcampro@ itcamp14# Import Export Service
  56. 56. Premium conference on Microsoft technologies itcampro@ itcamp14# Import/Export Service
  57. 57. Premium conference on Microsoft technologies itcampro@ itcamp14# DEMO Let’s see some code
  58. 58. Premium conference on Microsoft technologies itcampro@ itcamp14# MTBF, MTTR
  59. 59. Premium conference on Microsoft technologies itcampro@ itcamp14# Mean Time Between Failures Mean Time To Recovery MTBF -> MTTR
  60. 60. Premium conference on Microsoft technologies itcampro@ itcamp14# VM REDUNDANCY
  61. 61. Premium conference on Microsoft technologies itcampro@ itcamp14# • Same features offered by System Center on- premises • Availability Set • Windows Server Failover Cluster – Real time Sync VM
  62. 62. Premium conference on Microsoft technologies itcampro@ itcamp14# CONCLUSION
  63. 63. Premium conference on Microsoft technologies itcampro@ itcamp14# • Everything has a price • Calculate up-time for specific roles and use- case • Don’t trust the 99.99% myth • Be as flexible as possible • Automate • Recovery plans Conclusion
  64. 64. Premium conference on Microsoft technologies itcampro@ itcamp14# Q & A

×