Cloud Witness is a type of Fail-over Cluster quorum witness that uses Microsoft Azure to provide a vote on cluster quorum.
There are significant benefits which this approach:
- No need for third separate DC for cluster witness.
- Uses standard available Azure Blob Storage (no extra maintenance overhead of virtual machines hosted in public cloud).
- Same Azure Storage Account can be used for multiple clusters (one blob file per cluster; cluster unique ID used as blob file name).
- Low on-going $cost to the Storage Account (small data written per blob file, blob file updated only once when cluster nodes' state changes).
- Built-in Cloud Witness resource type.
Problem with traditional cluster setup
Solution
There are significant benefits with this approach:
- Uses standard available Azure Blob Storage (no extra maintenance overhead of virtual machines hosted in public cloud).
- Same Azure Storage Account can be used for multiple clusters (one blob file per cluster; cluster unique ID used as blob file name).
- Low on-going $cost to the Storage Account (small data written per blob file, blob file updated only once when cluster nodes' state changes).
- Built-in Cloud Witness resource type.
Solution Set up a Cloud Witness for a cluster
- Create an Azure Storage Account to use as a Cloud Witness
- Configure the Cloud Witness as a quorum witness for your cluster.
- Sign in to the Azure portal.
- On the Hub menu, select New -> Data + Storage -> Storage account.
- In the Create a storage account page, do the following:
Enter a name for your storage account.
Storage account names must be between 3 and 24 characters in length and may contain numbers and lowercase letters only. The storage account name must also be unique within Azure.For Account kind, select General purpose.
You can't use a Blob storage account for a Cloud Witness.For Performance, select Standard.
You can't use Azure Premium Storage for a Cloud Witness.For Replication, select Locally-redundant storage (LRS) .
Fail-over Clustering uses the blob file as the arbitration point, which requires some consistency guarantees when reading the data. Therefore you must select Locally-redundant storage for Replication type.
View and copy storage access keys for your Azure Storage Account
When you create a Microsoft Azure Storage Account, it is associated with two Access Keys that are automatically generated - Primary Access key and Secondary Access key. For a first-time creation of Cloud Witness, use the Primary Access Key. There is no restriction regarding which key to use for Cloud Witness.
To view and copy storage access keys
View and copy endpoint URL Links
When you create a Storage Account, the following URLs are generated using the format: https://<Storage Account Name>.<Storage Type>.<Endpoint>
Cloud Witness always uses Blob as the storage type. Azure uses .core.windows.net as the Endpoint. When configuring Cloud Witness, it is possible that you configure it with a different endpoint as per your scenario (for example the Microsoft Azure datacenter in China has a different endpoint).
To view and copy endpoint URL links
In the Azure portal, navigate to your storage account, click All settings and then click Properties to view and copy your endpoint URLs
Solution Configure Cloud Witness as a Quorum Witness
Launch Failover Cluster Manager.
Right-click the cluster -> More Actions -> Configure Cluster Quorum Settings (see figure 6). This launches the Configure Cluster Quorum wizard.
On the Select Quorum Configurations page, select Select the quorum witness.
On the Select Quorum Witness page, select Configure a cloud witness.
5. On the Configure Cloud Witness page, enter the following information:
(Required parameter) Azure Storage Account Name.
(Required parameter) Access Key corresponding to the Storage Account.
- When creating for the first time, use Primary Access Key (see figure 5)
- When rotating the Primary Access Key, use Secondary Access Key (see figure 5)
(Optional parameter) If you intend to use a different Azure service endpoint (for example the Microsoft Azure service in China), then update the endpoint server name.
Configuring Cloud Witness using PowerShell
Set-ClusterQuorum -CloudWitness -AccountName
<StorageAccountName>
-AccessKey <StorageAccountAccessKey>
In case you need to use a different endpoint...
Set-ClusterQuorum -CloudWitness -AccountName <StorageAccountName> -AccessKey <StorageAccountAccessKey> -Endpoint <servername>
No comments:
Post a Comment
If you have any doubt or question, please contact us.