大网数据广告活动
服务器运维问答

Azure high availability solution with synchronization of website and SQL server data

· 52CE 我爱测

We have a web solution that we sell and it comes with 1 dedicated Azure VM containing everything it requires to run the application: ASP.NET web application Production environment QA environment SQL server containing data for bot…

问题原文

原帖链接 · Zeep · CC BY-SA 4.0

We have a web solution that we sell and it comes with 1 dedicated Azure VM containing everything it requires to run the application:

  • ASP.NET web application
  • Production environment
  • QA environment
  • SQL server containing data for both PROD and QA environment

A specific customer however, has a user requirement to run his application in a high availability setup. What he wants is that when 1 server goes down, the other one should take over and vice versa.

I'm completely new to load balancing/high availability set ups and I know that Azure supports load balancing, but I'm puzzled how I could make it work. Is it as easy to just create 2 servers with the above set up and then get the high availability functionality set up? My concern is how I would get the website data and SQL Server data in sync between the 2 servers? Especially the latter.

Or would it be easier if I used the Azure SQL server instead of a local SQL server? Or perhaps introducing additional servers rather than 2?

已采纳解答

原帖链接 · norshtein · CC BY-SA 4.0

First, it is recommended to use Azure SQL, setting a SQL server by yourself is not secure and "standard". Azure SQL provides you many advanced features including high availability and disaster recovery. Use Azure SQL and configure failover group according to the doc. Now, your data layer is high availability enabled.

Second, suppose you have migrated your database to Azure SQL, create a new VM in the same virtual network of your current VM. And running the same application in new VM. Create a load balancer and add these two VMs to the backend pool. Now your application layer is high availability enabled.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-09-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。