alwayson高可用组

In continuation to the part 1, on how to setup a SQL Server Availability Groups, let’s now check how to create the Availability Group itself and put the databases in sync.

继续第1部分 (关于如何设置SQL Server可用性组)的内容,现在让我们检查如何创建可用性组本身并使数据库同步。

For this purpose, we will be using the “New Availability Group” wizard. To access this option, expand the “AlwaysOn High Availability” node and right click the “Availability Groups” folder.

为此,我们将使用“新可用性组”向导。 要访问此选项,请展开“ AlwaysOn High Availability”节点,然后右键单击“ Availability Groups”文件夹。

A new window will be presented, with a summary of in what the wizard will help us. You can see an example in the next image.

将显示一个新窗口,其中概述了向导将帮助我们的内容。 您可以在下一张图片中看到一个示例。

Click “Next” to proceed, and let’s start the actual configuration. In the first step we need to input an Availability Group name. This is just a name to help us identify a group, nothing related with the listener.

单击“下一步”继续,让我们开始实际配置。 在第一步中,我们需要输入一个可用性组名称。 这只是一个名称,可以帮助我们识别组,而与侦听器无关。

I will be using the name “AgHowTo” in order to demonstrate all the steps to follow. Fill the name, as desired, and click “Next”.

我将使用名称“ AgHowTo”来演示要执行的所有步骤。 根据需要填写名称,然后单击“下一步”。

On this second step, we will be asked to select all the databases that we want to include in our Availability Group.

在第二步中,将要求我们选择要包含在可用性组中的所有数据库。

Notice that there’s a column “Status” where the message “Met the prerequisites” is being shown. To meet the prerequisites, the wizard means that our database is in the FULL recovery mode, and that we have a FULL backup (at least one, to start the chain), and a subsequent transaction log backup or a differential backup.

请注意,有一列“状态”(Status)会显示消息“满足先决条件”。 为了满足先决条件,向导意味着我们的数据库处于FULL恢复模式,并且我们具有FULL备份(至少一个,以启动链),以及后续的事务日志备份或差异备份。

If the database is not meeting the basic requisites, just verify the referred points, and click in the “Refresh” button, in order to have an updated list of the available databases.

如果数据库不满足基本要求,则只需验证参考点,然后单击“刷新”按钮,即可获得可用数据库的更新列表。

Select all the databases that you want to include on this Availability group, by picking the checkbox in the first column. Now click “Next”.

通过选中第一列中的复选框,选择要包含在此可用性组中的所有数据库。 现在单击“下一步”。

It’s time to add the replicas! Notice that a primary replica (the current instance) is already added. In order to add another replica, click the “Add Replica” button, perform the login, which can be by Integrated Security or SQL Server Login, and a new replica will be available in the “Replicas” list.

是时候添加副本了! 请注意,已经添加了主副本(当前实例)。 为了添加另一个副本,请单击“添加副本”按钮,执行登录(可以通过Integrated Security或SQL Server登录),然后在“副本”列表中将提供一个新的副本。

Notice that you can always include more than one replica. Currently, we have a limit of 8 replicas for SQL Server 2014 and a limit of 4 replicas for SQL Server 2012.

请注意,您始终可以包括多个副本。 当前,SQL Server 2014的副本数限制为8个,SQL Server 2012的副本数限制为4。

To proceed with this article, I added only one more replica, the standalone SQL Server. You need to take a decision of what will be the role of your replicas. You can choose to have readable, read-intent, or non-readable secondary. This option makes all the difference, when you are looking to have a load-balancing solution, a high availability solution or just a disaster recovery instance.

为了继续本文,我仅添加了一个副本,即独立SQL Server。 您需要决定副本的角色。 您可以选择具有可读性,可读性或不可读性。 当您希望拥有负载平衡解决方案,高可用性解决方案或仅是灾难恢复实例时,此选项将发挥所有作用。

Notice that the synchronization mode is also very important, where you need to choose to have a Synchronous commit – you need to receive an ack message from the secondary replica in order to successfully complete the transaction – or an Asynchronous one, where the acknowledge message is not required.

请注意,同步模式也非常重要,在这种情况下,您需要选择进行“同步”提交–您需要从辅助副本接收确认消息以成功完成事务–在“异步”模式中,确认消息是:不需要。

In that same step, you can also set if a certain replica will be available for automatic failover. In case of this need, remember that you need to have this replica marked as “Synchronous Commit” in order to assure that no data is lost in the case of an unplanned failover.

在同一步骤中,您还可以设置某个副本是否可用于自动故障转移。 在这种情况下,请记住,您需要将此副本标记为“同步提交”,以确保在计划外故障转移的情况下不会丢失任何数据。

To finalize this step, just as information, you can also add an Azure Replica, but this is something to talk on another occasion…

要完成此步骤,就像信息一样,您也可以添加一个Azure副本,但这是在另一场合谈论的话题……

Click “next” to proceed.

点击“下一步”继续。

Now it’s time to select the preference for the initial data synchronization. In our case we will pick the “Join only” option, because we already have a replica with the full and t-log backups restored and open to receive new data, as the database is “In Recovery” mode.

现在是时候为初始数据同步选择首选项了。 在本例中,我们将选择“仅加入”选项,因为数据库已经处于“处于恢复”模式,因此我们已经具有一个还原了完整备份和t-log备份的副本,并已打开以接收新数据。

You have two more options, the first is the “Full” option. Going to this way, you will need to refer some fileshare where SQL Server will perform and save the required backups of the selected databases and will use it to restore each one in the added secondary node.

您还有两个选项,第一个是“完全”选项。 为此,您将需要引用一些文件共享,SQL Server将在其中执行并保存所选数据库的所需备份,并将其用于还原添加的辅助节点中的每个备份。

The last option is “Skip initial data synchronization”. Use this option if for any reason you don’t want to synchronize the databases now.

最后一个选项是“跳过初始数据同步”。 如果出于任何原因您现在不想同步数据库,请使用此选项。

<quick note>

< 快速 说明>

In order to go ahead and add a new database in the Availability Group, you will need to perform all the steps already described in the part 1 of this article, and from the secondary node right-click the database under the folder “Availability Databases” and choose the first option “Join to Availability Group” .

为了继续在可用性组中添加新数据库,您将需要执行本文第1部分中已经描述的所有步骤,并在辅助节点中右键单击文件夹“ Availability Databases”下的数据库。并选择第一个选项“加入可用性组”。

A new window will be shown, in order to confirm your intention. You just need to click “Ok” and, if the database in the secondary instance is ready, this should work fine and start synchronizing the respective secondary replica with the primary replica immediately.

将显示一个新窗口,以确认您的意图。 您只需要单击“确定”,并且,如果辅助实例中的数据库已准备就绪,这应该可以正常工作,并立即开始将各自的辅助副本与主副本同步。

</quick note>

< / / 快速说明>

We are almost there! So now SQL Server will run some validation tests, and if we are ok we can click on “Next” and go to summary.

我们就快到了! 因此,现在SQL Server将运行一些验证测试,如果可以,我们可以单击“下一步”并进行总结。

On this step, we just need to review the options taken and advance, by clicking on “Finish”.

在此步骤中,我们只需要通过单击“完成”来查看已采取的选项并进行下一步。

Now we have some action here

alwayson高可用组_AlwaysOn可用性组–如何在集群实例和独立实例之间设置AG(第2部分)相关推荐

  1. Redis高可用之主从复制、哨兵、cluster集群

    一 Redis高可用 1.什么是高可用 在web服务器中,高可用是指服务器可以正常访问的时间,衡量的标准是在多长时间内可以提供正常服务(99.9%.99.99%.99.999%等等). 高可用的计算公 ...

  2. alwayson高可用组_AlwaysOn可用性组–如何在集群实例和独立实例之间设置AG(第1部分)

    alwayson高可用组 In this article we are going to explore how to configure an Availability Group between ...

  3. alwayson高可用组_AlwaysOn可用性组–简化工作的好奇心–第1部分

    alwayson高可用组 We all love Availability Groups! Since its introduction in the SQL Server 2012, some th ...

  4. alwayson高可用组_AlwaysOn可用性组–好奇心使您的工作更轻松–第2部分

    alwayson高可用组 In continuation to the previous article, where we talked about what happens when I add ...

  5. alwayson高可用组_AlwaysOn可用性组–好奇心使您的工作更轻松–第4部分

    alwayson高可用组 Here we are with the last part of this series of articles! In this article we are going ...

  6. alwayson高可用组_AlwaysOn可用性组–如何在集群实例和独立实例之间设置AG(第3部分)

    alwayson高可用组 We have already configured our Availability Group, now we need to make it flexible and ...

  7. alwayson高可用组_AlwaysOn可用性组–简化工作的好奇心–第3部分

    alwayson高可用组 In continuation to the Availability Groups series, here you have another curiosity comi ...

  8. kubeasz一键部署containerd运行时、高可用k8s(1.26.x)集群-Day 02

    1. 生产环境部署架构 (1)多master节点,实现master节点的高可用和高性能. (2)单独的etcd分布式集群(生产使用SSD盘),高可用持久化k8s资源对象数据,并实现高可用. (3)多n ...

  9. linux故障转移集群,部署AlwaysOn第一步:搭建Windows服务器故障转移集群

    在Windows Server 2012 R2 DataCenter 环境中搭建集群之前,首先要对Windows服务器故障转移集群(Windows Server Failover Cluster,简称 ...

最新文章

  1. python3 RSA 用私钥对随机密钥进行解密
  2. 下了Bandit,看了一个礼拜
  3. MySQL—视图(一)
  4. java window 路径_关于windows的绝对路径在java中的疑惑~求解
  5. 手机关机后,就没有定位信息了
  6. 九、N-gram语言模型
  7. 使用C#在VS Code中编写Notebook
  8. 如何使用SQL Server Reporting Services将数据格式转换为有价值的数据集
  9. python是什么课程-请问自学 Python 有必要买课程吗?
  10. C++基础:第五章 表达式基础与详述
  11. Mtlab 二次规划及其例子
  12. SQL server2012安装
  13. java append concat_最佳实践/性能:将StringBuilder.append与String.concat混合使用
  14. ENVI5.3.1高分2号影像预处理流程
  15. 什么叫单模光纤_单模光纤和多模光纤的区别,以及作用是什么?
  16. 利用8421码进行进制之间的转换
  17. MIT molecular Biology 笔记11 位点特异性重组 和 DNA转座
  18. 2021年总结 2022年展望
  19. java获取u盘_读取U盘信息
  20. 饿了么第一届信息安全峰会

热门文章

  1. Game HDU - 5242 树链思想
  2. Flask中那些特殊的装饰器
  3. 2018年各大互联网前端面试题二(滴滴打车)
  4. java读流方式,下载网络上的图片
  5. myEclipse怎样将程序部署到tomcat(附录MyEclipse调试快捷键)
  6. kubernetes之一:Pod
  7. i3处理器_英特尔低端霸主酷睿I3处理器又降10元!机器怎么配?为粉丝答疑
  8. 作业帮电脑版在线使用_应届生应聘作业帮的在线辅导老师
  9. 电脑中毒了怎么办 电脑中病毒的解决方法
  10. 为什么越来越多的人直接入住毛坯房?有什么优缺点?