Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Failover on 2 servers AlwaysOn AG with read-only secondary replica Expand / Collapse
Author
Message
Posted Friday, March 28, 2014 4:39 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, June 26, 2014 7:19 AM
Points: 71, Visits: 489
Hi there!

What happens when an automatic failover occurs, in a two server AlwaysOn Availability Group configuration, where the secondary replica is configured as read-only?

Will it only allow read-only connections, or will it become read-write and can accept INSERT, UPDATES and DELETES when assigned the new role as Primary?

Is it correct that adding a third server/node, that just acts as passive and should be used for automatic failover, to support true HADR, would NOT need another license .. and that licenses would only be required for the previous Primary and Secondary (Read-Only) replicas?

Thanks,

gord
Post #1555823
Posted Friday, March 28, 2014 6:42 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:15 AM
Points: 6,515, Visits: 14,034
GordonLiddy (3/28/2014)
Hi there!

What happens when an automatic failover occurs, in a two server AlwaysOn Availability Group configuration where the secondary replica is configured as read-only?

If both replicas are configured for synchronous mode with automatic failover, the Primary role will transfer during a failure as usual.
The ReadOnly clause defines the secondary role mode only.


GordonLiddy (3/28/2014)
Will it only allow read-only connections, or will it become read-write and can accept INSERT, UPDATES and DELETES when assigned the new role as Primary?

Depending on how you set the replica in the AO group properties it will either become Primary Read\Write or Primary All connections, which did you configure?



GordonLiddy (3/28/2014)
Is it correct that adding a third server/node, that just acts as passive and should be used for automatic failover, to support true HADR, would NOT need another license .. and that licenses would only be required for the previous Primary and Secondary (Read-Only) replicas?

Thanks,

gord

According to the SQL2012 license guide you may run a passive AlwaysOn secondary replica, but if the secondary starts to perform any AlwaysOn offload tasks such as readonly routed connections or backup operations you must license it accordingly.
There are options you may specify on the replica to ensure that it does not receive any read connections or backup operations


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1555868
Posted Friday, March 28, 2014 7:44 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, June 26, 2014 7:19 AM
Points: 71, Visits: 489
Seems like our future configuration (which we haven't set up yet) will work just fine, if we used RO secondary replica with the primary configured for Read/write.

Thank you very much for your answer and have a nice day!
Post #1555906
Posted Friday, March 28, 2014 8:32 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:15 AM
Points: 6,515, Visits: 14,034
GordonLiddy (3/28/2014)
with the primary configured for Read/write.

This means that connections with the application intent set to ReadOnly will not be granted in the Primary role


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1555948
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse