Cross-site DAG enables DAC mode to prevent network partitions from occurring at the database level

Source: Internet
Author: User

Data Center activation Coordination Mode also known as DAC mode, this mode should be enabled for Dags with two or more nodes that use continuous replication . This mode controls the startup database mount behavior of the DAG, which prevents network partition failures at the database level during data center recovery. For example, the primary datacenter loses power, all replicas are disconnected, and the active copy switches to the disaster recovery site. a network partition error occurs when the primary datacenter resumes power (when the server recovers but the inter-site WAN Connection has not been restored) and the database in the primary datacenter is automatically Mount.

Activity Manager stores a digit (0 or 1) in memory thattells the DAG whether to allow a local database to be mounted in an active state on the server. when the DAG is running in DAC mode, the bit is set to 0 each time the Activity Manager starts , indicating that thedatabase is not allowed to mount. If the Dag is in DAC mode, the server must try to communicate with all other members of the DAG that it knows to get another Dag member, Tells it if it can mount a local database that is assigned to it in an active state. The answer will be provided as a digital setting for other activity managers in the DAG. If another server responds with its digital digits set to 1, This means that the server allows the database to be mounted so that the server starts with a number of bits set to 1and loads its database.

back to the failure described earlier, after the disaster recovery site mounts the active node, the Activity Manager's parameter is set to 1, and the primary datacenter has a parameter of 0, and the primary Datacenter's copy is not automatically mounted until communication with the disaster recovery site is completed, and once the communication is complete, The value returned by the disaster recovery site also prevents the primary datacenter from mounting the database, so you can avoid network partitioning errors.

enabled DAC mode:

Set-databaseavailabilitygroup-identity Dag2-datacenteractivationmode dagonly

Close DAC mode:

Set-databaseavailabilitygroup-identity Dag2-datacenteractivationmode Off

For more information, refer to:https://technet.microsoft.com/zh-CN/library/dd979790 (v=exchg.150). aspx


This article is from the "Essence of the" blog, please be sure to keep this source http://simy88.blog.51cto.com/7370552/1684395

Cross-site DAG enables DAC mode to prevent network partitions from occurring at the database level

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.