SQL 2014新功能介绍系列9 - AlwaysOn 可用性列表
AlwaysOn对于SQL Server 2014已经不再是新名词,现在也有越来越多的客户还是使用并且钟情于AlwaysOn。它继承了数据库镜像和故障转移群集的优点,使得SQL Server具有更好的高可用性。在SQL 2014中AlwaysOn的特性有哪些加强呢? 1. 和Hekaton (In-memory OLTP)相结合 In-memory OLTP是SQL 2014中最闪亮的新特性了, 而AlwaysOn也同样可以很好地兼容他。你可以在已经定义在AlwaysOn的Availability Group的数据库中启用Memory-optimized table,不过需要注意以下几点: 1) 对于Non-durable memory-optimized tables,如果定义在了AlwaysOn的数据库中,只会将架构同步到Secondary副本上,而不会同步数据 2) 当数据库服务重新启动时,Memory-optimized table会被初始化,整个数据表会载入到内存中,并创建响应的索引。这段过程可能会造成AlwaysOn数据同步的延迟。 2. Secondary副本增加到9个(包括primary副本) 3. 可读Secondary的功能加强 在SQL 2012中,连接到Secondary副本的只读连接会因为以下网络原因而中断:
这时Secondary副本会处于RESOLIVING状态,只读连接中断。 在SQL 2014中,当发生上述问题时,secondary副本还是会被置成RESOLVING状态,但是:
4. 增加了Azure副本的支持
5. SQL Server AlwaysOn支持Windows Cluster Shared Volume(CSV)
6. SQL Server AlwaysOn 故障排查相关的提升
2014-03-11 08:41:53.20 spid12s The state of the local availability replica in availability group 'ag1' has changed from 'NOT_AVAILABLE' to 'RESOLVING_NORMAL'.The replica state changed because of either a startup, a failover, a communication issue, or a cluster error.For more information, see the availability group dashboard, SQL Server error 2014-03-11 09:20:39.83 spid57 The state of the local availability replica in availability group 'ag1' has changed from 'PRIMARY_NORMAL' to 'RESOLVING_NORMAL'.The replica state changed because of either a startup, a failover, a communication issue, or a cluster error.For more information, see the availability group dashboard, SQL Server error log, 在SQL Server 2014中,明确了每一次AlwaysOn Group变成Resolving而导致不可用/可用的原因。 2014-03-11 10:50:27.95 spid20s The state of the local availability replica in availability group 'agnew' has changed from 'NOT_AVAILABLE' to 'RESOLVING_NORMAL'. The state changed because the local instance of SQL Server is starting up. For more information, see the SQL Server error log, Windows Server Failover Clustering (WSFC) management console, or WSFC log. 2014-03-11 12:18:16.57 spid62 The state of the local availability replica in availability group 'agnew' has changed from 'PRIMARY_NORMAL' to 'RESOLVING_NORMAL'. The state changed because the availability group is going offline. The replica is going offline because the associated availability group has been deleted, or the user has taken the associated availability group offline in Windows Server Failover Clustering (WSFC) management console, or the availability group is failing over to another SQL Server instance. For more information, see the SQL Server error log, Windows Server Failover Clustering (WSFC) management console, or WSFC log. 这是我们SQL 2014新功能介绍系列的最后一篇文章,希望对您有所帮助。更多SQL Server内容请持续关注本博客。 转载自:微软亚太数据库技术支持组官方博客 http://blogs.msdn.com/b/apgcdsd/archive/2015/01/09/sql-2014-9-alwayson.aspx |