Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Tips to install and manage always on availability groups in sql server 2012 & 2014

5,475 views

Published on

Tips to install and manage always on availability groups in sql server 2012 & 2014

Published in: Technology
  • If we are speaking about saving time and money this site ⇒ www.HelpWriting.net ⇐ is going to be the best option!! I personally used lots of times and remain highly satisfied.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi there! I just wanted to share a list of sites that helped me a lot during my studies: .................................................................................................................................... www.EssayWrite.best - Write an essay .................................................................................................................................... www.LitReview.xyz - Summary of books .................................................................................................................................... www.Coursework.best - Online coursework .................................................................................................................................... www.Dissertations.me - proquest dissertations .................................................................................................................................... www.ReMovie.club - Movies reviews .................................................................................................................................... www.WebSlides.vip - Best powerpoint presentations .................................................................................................................................... www.WritePaper.info - Write a research paper .................................................................................................................................... www.EddyHelp.com - Homework help online .................................................................................................................................... www.MyResumeHelp.net - Professional resume writing service .................................................................................................................................. www.HelpWriting.net - Help with writing any papers ......................................................................................................................................... Save so as not to lose
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Tips to install and manage always on availability groups in sql server 2012 & 2014

  1. 1. th EVENT CHAPTER Tips to Install and Manage AlwaysOn Availability Groups in SQL Server 2012 & 2014Antonios Chatzipavlis SQLschool.gr Founder, Principal Consultant SQL Server Evangelist, MVP on SQL Server Apr 30, 2015 3
  2. 2. I have been started with computers. I started my professional carrier in computers industry. I have been started to work with SQL Server version 6.0 I earned my first certification at Microsoft as Microsoft Certified Solution Developer (3rd in Greece) and started my carrier as Microsoft Certified Trainer (MCT) with more than 20.000 hours of training until now! I became for first time Microsoft MVP on SQL Server I created the SQL School Greece (www.sqlschool.gr) I became MCT Regional Lead by Microsoft Learning Program. I was certified as MCSE : Data Platform, MCSE: Business Intelligence Antonios Chatzipavlis Database Architect SQL Server Evangelist MCT, MCSE, MCITP, MCPD, MCSD, MCDBA, MCSA, MCTS, MCAD, MCP, OCA, ITIL-F 1982 1988 1996 1998 2010 2012 2013 CHAPTER
  3. 3. Follow us in social media Twitter @antoniosch / @sqlschool Facebook fb/sqlschoolgr YouTube yt/user/achatzipavlis LinkedIn SQL School Greece group Pinterest pi/SQLschool/
  4. 4. help@sqlschool.gr
  5. 5. • Understanding AlwaysOn Availability Groups • Availability Modes • Active Secondary Replicas • Failover options in an AlwaysOn Availability Group • Flexible Failover Policies • Enhancements to AlwaysOn AG in SQL Server 2014 • Pre-Requisites for Using AlwaysOn Availability Groups • Pre-Installation Tasks • Installation Scenarios Agenda
  6. 6. Understanding AlwaysOn Availability Groups Primary Replica Active secondary Replica Windows Server Failover Cluster Availability Group Listener Read/write Read only
  7. 7. • Synchronous-commit mode • Primary replica sends transaction log changes to a secondary replica • Secondary replica applies the changes in the log to its copy of the database, and then sends an acknowledgement to the primary replica • Primary replica commits the transaction • Asynchronous-commit mode • Primary replica sends transaction log changes to a secondary replica and then commits the transaction • Secondary replica applies the changes in the log to its copy of the database Availability Modes
  8. 8. • Offload workload to secondaries for improved performance and better resource utilization • Using secondary replicas for read access • Read-intent connections • Any read-only connection • Using secondary replicas for backups • Log backups • Copy backups Active Secondary Replicas
  9. 9. • Automatic failover • No data loss • Planned manual failover • No data loss • Forced manual failover • Possible data loss • Use the Start Failover Wizard to initiate manual failover Failover options in an AlwaysOn Availability Group
  10. 10. • Health check time-out threshold defines the frequency of health checks on the primary replica • sp_server_diagnostics stored procedure performs health checks • Failover condition levels • Level one – On server failure • Level two – On server unresponsive • Level three – On critical server error • Level four – On moderate server error • Level five – On any qualified failure conditions • Use the ALTER AVAILABILITY GROUP Transact-SQL statement or PowerShell to configure the flexible failover policy Flexible Failover Policies
  11. 11. • Maximum number of secondary replicas increased to eight • Improved availability for read-only workloads • Easier interoperability with Microsoft Azure • Improved troubleshooting and diagnostics Enhancements to AlwaysOn AG in SQL Server 2014
  12. 12. • Windows Server version • Active Directory • Nodes must be domain members • Nodes cannot be domain controllers • Windows Server Failover Cluster • One replica per Availability Group per node • Some configurations may require hotfixes Pre-Requisites for Using AlwaysOn Availability Groups
  13. 13. • Install the Windows Server Failover Clustering on all servers that will be nodes in the cluster • Create a Windows Server Failover Cluster • Install a stand-alone instance of SQL Server on each node • Enable the AlwaysOn Availability Groups feature on each SQL Server instance • Create a file share to share the backups • Install the databases on the SQL Server instance that will be the primary replica • Perform a full backup of each database and place the backups in the file share Pre-Installation Tasks
  14. 14. Installation Scenarios
  15. 15. • Enable AlwaysOn High Availability on the existing FCI instance • Add the Failover Clustering feature to node (SA_1) that is located in the secondary data center that you are planning to add to the High Availability solution. • Add the SA_1 node to the existing WSFC in the primary datacenter • This node should not be part of your Failover Cluster Instance Failover Cluster in Primary and AG in Secondary Data Center
  16. 16. Failover Cluster in Primary and AG on a Failover Cluster in Secondary
  17. 17. • Always put services account to Kerberos using Setspn • Create AG using a dummy database • Create listener in a separate step • To minimize down time proceed with manual restores • Check the number of VLFs on AG Databases • Set the same memory on AG Nodes in case of disaster • Don’t forget to move SQL Logins • Don’t forget to move Jobs and Alerts Tips from the battle field
  18. 18. Thank you
  19. 19. SELECT KNOWLEDGE FROM SQL SERVER http://www.sqlschool.gr Copyright © 2015 SQL School Greece

×