隔离见证

In order to have a well-configured cluster we need to setup the quorum properly, but there’s more…Here is where the Cloud Witness comes to help.

为了拥有一个配置良好的集群,我们需要正确设置仲裁,但是还有更多……这里是Cloud Witness可以提供帮助的地方。

In this article, I’m going to present something that would be very useful if was already been released, but no, I need to anxiously wait for the next version of Windows Server to be released, in order to start implementing this. Even though, I’m going to share with you, SQL Shack reader, why I’m so excited with that small and simple feature.

在本文中,我将介绍如果已经发布的话将非常有用的东西,但是不,我需要焦急地等待下一个Windows Server版本的发布,以便开始实现这一点。 即使,我将与您分享,SQL Shack读者,为什么我对这个小而简单的功能感到如此兴奋。

I’m talking about the new Cloud Witness capability. Yes, the Windows Server is not supporting this yet (we are currently on Windows Server 2012 R2), and yes this is coming in the new release, probably called Windows Server 2016.

我说的是新的Cloud Witness功能。 是的,Windows Server尚不支持此功能(我们目前在Windows Server 2012 R2上),是的,这是在新版本(可能称为Windows Server 2016)中提供的。

Following our hybrid deployments series, I will be showing the benefits and how to implement this new feature that I already tested.

在我们的混合部署系列之后,我将展示其好处以及如何实施已经测试过的新功能。

但是,这样做的动机是什么? (But, what’s the motivation of this?)

Do you remember my previous article, about how to build a low-cost disaster recovery solution? This feature could be integrated on that article, as this is going not only to improve the Windows’ capabilities, but also to enlarge the number of options that you have to configure a cluster Quorum in a way that better fits your strategy and your budget!

您还记得我上一篇关于如何构建低成本灾难恢复解决方案的文章吗? 该功能可以集成到该文章中,因为这不仅可以改善Windows的功能,而且可以扩大配置群集仲裁所需的选项数量,从而更好地适合您的策略和预算!

You should be asking now: “what the heck is this related to SQL Server?” The answer is simple, and comes in the form of other questions…

您现在应该问:“这与SQL Server有何关系?” 答案很简单,并且以其他问题的形式出现……

  • Do you have clustered instances?您是否有集群实例?
  • Is there any availability groups deployed in your environment? 您的环境中是否部署了任何可用性组?
  • Do you have a Disaster Recovery solution sit in an AlwaysOn Failover Cluster?AlwaysOn故障转移群集中是否有灾难恢复解决方案?

If you answered yes to one of those questions, this is for you.

如果您对其中一个问题的回答为“是”,那么这是给您的。

What is the benefit of having a cloud witness?

拥有云见证有什么好处?

There is nothing better than the real story, to show its benefit…

为了证明它的好处,没有什么比真实的故事更好了……

Basically, I had an experience with the following configuration:

基本上,我对以下配置有经验:

    • Two nodes in a datacenter Chicago芝加哥数据中心中的两个节点
    • Two nodes in a datacenter Las Vegas拉斯维加斯数据中心中的两个节点
    • The cluster witness was a fileshare in the Chicago’s datacenter集群见证人是芝加哥数据中心的文件共享
  • The quorum is configured as “Node and File Share Majority”仲裁配置为“多数节点和文件共享”

An image is worth a thousand words…

一幅图像值得一千个单词…

On this scenario, we have five voting components, the 4 nodes + the fileshare. This way, we need to have three votes to keep the cluster up and running.

在这种情况下,我们有五个投票组件,四个节点+文件共享。 这样,我们需要获得三票才能保持集群正常运行。

What would happen if the entire Chicago datacenter goes down, for example, because of a power outage?

例如,由于断电,整个芝加哥数据中心宕机了怎么办?

If you said “the cluster will become offline”, you are right! As we lost two nodes and the fileshare witness, we lost 3 votes… so we cannot have the three votes to keep the cluster up…

如果您说“群集将脱机”,那是对的! 由于我们失去了两个节点和文件共享见证者,我们失去了3票……因此我们无法获得3票来保持集群正常运转……

In order to avoid this situation, we could do the following:

为了避免这种情况,我们可以执行以下操作:

  • Arrange a fileshare in a third location (another datacenter)在第三个位置(另一个数据中心)安排文件共享
  • Use this fileshare as witness.将此文件共享用作见证人。

Let’s say that this new fileshare will be in Austin. The cluster representation would be the following:

假设这个新文件共享将在奥斯汀。 群集表示如下:

Having this, even if either the whole Chicago or Las Vegas datacenter go down again, you will still have the minimum number of votes to keep the cluster working. The only way to take the cluster down is to have both Austin and either Chicago or Las Vegas down (and it’s obvious that having Las Vegas and Chicago down nothing would work).

这样一来,即使整个芝加哥或拉斯维加斯数据中心再次宕机,您仍将具有保持该群集正常运行所需的最少票数。 降低集群的唯一方法是同时关闭奥斯汀和芝加哥,或者关闭拉斯维加斯(很明显,关闭拉斯维加斯和芝加哥都行不通)。

The problem can be solved in this way, but let’s think… In order to just have a simple fileshare in another location, I had to involve another datacenter! This is not that simple and, even less, that cheap. For a big corporation, this could be arranged with a simple request, but what if you are a startup? What would be the option?

可以用这种方法解决问题,但让我们想想……为了在另一个位置仅进行简单的文件共享,我不得不使用另一个数据中心! 这不是那么简单,甚至更便宜。 对于大公司,可以通过一个简单的请求来安排,但是如果您是一家初创公司,该怎么办? 有什么选择?

Now we can introduce the Cloud Witness, a new kind of cluster witness, which comes in the Windows Server vNext (probably 2016).

现在,我们可以介绍Windows Server vNext(可能是2016年)中提供的新型群集见证程序Cloud Witness。

The Cloud Witness takes an advantage of Azure and its Blob Storage service. By the way, do you remember the number of things that the Azure Blob Storage is capable to address? This single server can provide an alternative way to do backups, to save your database files, to extend the table partitioning… If you take a look on my previous articles you will be a witness of the Azure Blob Storage power

Cloud Witness利用Azure及其Blob存储服务的优势。 顺便说一句,您还记得Azure Blob存储能够处理的事情数量吗? 该单个服务器可以提供一种替代方法来执行备份,保存数据库文件,扩展表分区……如果您看一下我以前的文章,您将见证Azure Blob存储的强大功能

The big advantage of this feature is that you won’t need a third datacenter. Another good point is that this service is very low-cost as just few read and write operations will be done.

此功能的最大优点是您不需要第三个数据中心。 另一个好处是,该服务的成本非常低,因为只需执行很少的读取和写入操作。

If we start using the Cloud Witness in the environment that we were talking at the beginning of the article, this would be as follows, resolving the voting problem with a simple configuration and a minimum amount of money:

如果我们在本文开头所讨论的环境中开始使用Cloud Witness,则将如下所示,以简单的配置和最少的金额解决投票问题:

回到这里重要的事情……我如何开始呢? (Going back to what matters here… How can I start with this?)

You can already test this feature, by downloading the Windows Server 2016 preview. An Azure account is also needed. If you don’t have it, you can create a trial one.

通过下载Windows Server 2016预览版,您已经可以测试此功能。 还需要一个Azure帐户。 如果没有,您可以创建一个试用版。

Having Windows Server installed and the Azure account ready, you will need to create an Azure Blob Storage Account. Just click the “New” icon in the bottom-left corner of the portal, and follow the steps shown in the image bellow:

安装Windows Server并准备好Azure帐户后,您将需要创建一个Azure Blob存储帐户。 只需单击门户网站左下角的“新建”图标,然后按照下面的图像中显示的步骤进行操作:

The same Storage Account can be used for multiple Windows failover clusters, as one blob file will be created per cluster.

同一存储帐户可用于多个Windows故障转移群集,因为将为每个群集创建一个Blob文件。

On the Windows side go to the Cluster Quorum configuration:

在Windows上,转到Cluster Quorum配置:

Chose the option “Select the quorum witness”:

选择选项“选择仲裁见证”:

You will find the “Configure a Cloud Witness” option:

您将找到“配置云见证”选项:

Following the wizard, you will need to fill your account name, storage account key and the service endpoint:

在向导之后,您将需要填写您的帐户名,存储帐户密钥和服务端点:

That was the last step! If everything is good, you will be able to find the Cloud Witness icon in your cluster properties, as you can see in the image below:

那是最后一步! 如果一切顺利,您将可以在群集属性中找到“ Cloud Witness”图标,如下图所示:

And that’s it… Azure is bringing more and more tools to make our lives easier and options to reach a good result spending less money than before. As said, I’m eager to have my customers with the new Windows version in production, so I will be able to use this solution in order to improve the availability of their environments.

就是这样…Azure带来了越来越多的工具,使我们的生活更轻松,并且可以选择花费比以前更少的钱来获得良好的结果。 如前所述,我渴望让客户使用新的Windows版本,因此我将能够使用此解决方案来提高他们环境的可用性。

I hope you liked and keep tuned for more articles!

希望您喜欢并继续关注更多文章!

翻译自: https://www.sqlshack.com/cloud-witness-a-new-feature-to-make-our-lives-easier/

隔离见证

隔离见证_云见证–一种使我们的生活更轻松的新功能相关推荐

  1. 虚拟化精华问答 | 虚拟化会使管理更轻松吗?

    戳蓝字"CSDN云计算"关注我们哦! 虚拟化是实现动态IT的重要基石,在虚拟化蓬勃发展的这些年里,虚拟化可以根据不同划分标准进行分类,包括全虚拟化,CPU 虚拟化,硬件虚拟化,服务 ...

  2. ios设计登录功能_亲爱的产品设计师,这是iOS 14的新功能

    ios设计登录功能 On June 22, 2020 Apple previewed iOS 14 for the first time. As always there are quite some ...

  3. iis 附件上传有点慢_短视频悄悄上线!“一起培训”的这个新功能有点潮

    7月17日,在经历了4个月的酝酿策划.5次集中测试.200余项消缺升级后,"一起培训"APP终于迎来了这次规模空前的更新.对于很多用户来说,这次更新是悄悄进行的,低调地不像话. 那 ...

  4. css grid随页面大小_你现在可以玩下这 5 个 CSS 新功能

    在浏览器开始实现它们之前,CSS 新的功能通常需要经过长时间讨论之后,才在W3联盟的规范中定义.有许多值得一提的 CSS 新功能,但是在本文中,我们重点介绍可以浏览器的稳定版中进行测试的五个功能: C ...

  5. mysql mvcc 隔离级别_关于 Mysql 四种隔离级别中 Lock 和 MVCC 的关系

    读写锁 共享锁(share lock)| 读锁(read lock) 读锁是共享的,或者说是相互不阻塞的.多个客户在同一时刻可以同时读取同一个资源,而互不干扰 SELECT ... LOCK IN S ...

  6. polardb mysql 事务隔离级别_事务的四种隔离级别

    数据库事务的隔离级别有4种,由低到高分别为Read uncommitted .Read committed .Repeatable read .Serializable .而且,在事务的并发操作中可能 ...

  7. adg oracle 架构_云化双活的架构演进,宁夏银行新核心搭载Oracle 19c投产上线

    云和恩墨顺利完成宁夏银行新数据中心数据库平台的建设,包括新数据中心RAC搭建.DG搭建.旧数据中心到新数据中心的数据迁移,以及在整个项目生命周期中的实施规范.性能测试保障.压力测试等.6月12日,宁夏 ...

  8. 机器人三星云顶之弈_云顶之弈:神超“抓娃娃”新玩法,三星机器主C,最强点杀法!...

    [关注残影游戏,看LOL最新资讯,今天咱们聊聊LOL神超云顶之弈的新玩法] 神超除了在LOL中喜欢玩一些小套路,在熟悉完云顶之弈这个模式后,也是开始了花样吃鸡之旅.在之前,神超就使用过卡萨丁主C的无限 ...

  9. 使 WebBrowser 更简单的新加和执行 js, 可安装 jQuery 脚本的 C# 开源代码 - IEBrowser [1]...

    Visual Studio 中提供了浏览器控件 WebBrowser, 可以用在 WinForm 中充当一个小型的浏览器. WebBrowser 本身提供了调用页面中 js 函数的方法, 但没有直接提 ...

最新文章

  1. MySQL CHAR、VARCHAR、TEXT、ENUM、SET(字符串类型)
  2. 在Java应用程序中使用密码学
  3. 启动chrome_Chrome开启多线程下载的方法
  4. 如何为回归问题,选择最合适的机器学习方法?
  5. linux service和daemon
  6. android json解析歌词,网易云歌词获取
  7. 电子政务概论-课程形成性考核册
  8. http协议中的1xx,2xx,3xx,4xx,5xx状态码分别表示什么?列举常见错误码及含义
  9. 帐户当前被锁定,所以用户 sa 登录失败。系统管理员无法将该帐户解锁 解决方法
  10. oceanbase安装
  11. 速看四川省企业技术中心拟认定名单已发布,共181家
  12. OfficePlus 微软官方大量 模板与图片素材 可供个人免费下载试用
  13. 欧拉计划 P429 (数论)
  14. Apple 好莱坞艳照门的安全分析
  15. dos命令批量修改图片名称
  16. 【AtCoder】AGC005
  17. 元素节点,属性节点,文本节点,文档节点,分别的意思
  18. C#源码QQ空间自动点赞神器,无需密码直接点头像登录,可加自动功能评论转发等。
  19. MySQL之导出整个及单个表数据
  20. 算法工程师的正常研发流程

热门文章

  1. 在安卓上运行 TensorFlow:让深度学习进入移动端
  2. MATLAB之基本语法与基础函数
  3. 第2章 python入门
  4. Smarty学习笔记(二)
  5. 数组02 - 零基础入门学习C语言24
  6. 【电商系统】—项目缺陷管理(二)
  7. 【操作系统】—中断和异常
  8. php format tool,iFormatTool
  9. mysql 5.6.14源码安装_CentOS 6.4下编译安装MySQL 5.6.14详细步骤
  10. authorization 传 就跨域_headers中添加允许token,客户端跨域请求问题