Thursday, December 23, 2021

vSAN Design Considerations – Deduplication and Compression

 

What is Deduplication and Compression?


Data deduplication is a technique that detects when one or more duplicate blocks are found, and uses a hash table to reference a single block of a data structure, instead of storing the same block multiple times. Data compression will take a given amount of data, such as the content within a block of data, and use encoding techniques to store the data in a more efficient way. These two techniques are unrelated to each other but attempt to achieve a similar goal: Space efficiency.

The method in which space efficiency is implemented depends on the solution, and can affect the level of space savings and the effort it takes to achieve the result. No matter what the method of implementation, both deduplication and compression techniques are opportunistic space efficiency features. The level of capacity savings is not guaranteed. By contrast, data placement techniques using erasure codes like RAID-5 or RAID-6 are deterministic: They provide a guaranteed level of space efficiency for data stored in a resilient manner.

How is it Implemented in vSAN?

Deduplication and compression (DD&C) in vSAN is enabled at the cluster level, as a single space efficiency feature. The process occurs as the data is destaged to the capacity tier – well after the write acknowledgments have been sent back to the VM. Minimizing any form of data manipulation until after the acknowledgment has been sent help keeps write latency seen by the guest VM low.

As data is destaged, the deduplication process will look for opportunities to deduplicate the 4KB blocks of data it finds within a disk group: vSAN’s deduplication domain. This task is followed by the compression process. If the 4KB block can be compressed by 50% or more, it will do so. Otherwise, it will leave as-is, and continue destaging the data to the capacity tier.

Figure 1.  Data deduplication and compression during the destaging process

Implementing DD&C in this manner prevents the performance penalties found with inline systems that perform the deduplication prior to sending the write acknowledgment back to the guest. It also avoids the challenges of deduplicating data already at rest. While the DD&C process occurs after the write acknowledgment is sent to the guest VM, enabling it in vSAN can impact performance under certain circumstances, which will be discussed below.

Two-Tier Storage System Basics

vSAN’s is a two-tier distributed storage system. Incoming data is written to a write buffer with the write acknowledgment sent immediately back to the guest for optimal performance, and funneled down to the capacity tier at a time and frequency determined by vSAN. This architecture provides a higher level of storage performance while keeping the cost per gigabyte/terabyte of capacity reasonable.

Figure 2.  Visualizing a two-tier system like a funnel

A two-tier system like vSAN has two theoretical performance maximums.  A burst rate, representing the capabilities of buffer tier, and the steady-state rate, representing the capabilities of the capacity tier.  The underlying hardware at each tier has a tremendous influence on the performance capabilities of each tier, but software settings, applications, and workloads can impact performance as well.

Figure 3.  Visualizing the theoretical maximums of a two-tier system using a time-based graph

The performance maximums of your vSAN hosts will be somewhere in between the maximum burst rate, and the maximum steady-state rate.  Synthetic testing for long periods using HCIBench will stress the environment enough to show these approximate values when looking at the time-based graphs. Production workloads may hit these maximums in an undersized design.

Its Potential Impact on Performance

Deduplication and compression require effort: Computational effort and the use of RAM and additional I/O that stems from it. This is true regardless of how it is implemented. It just depends on when, where, and how it occurs.  In vSAN, since this effort occurs once the data in the write buffer begins to destage, the task reduces the effective destaging throughput to the capacity tier. This would lower the maximum steady-state rate that the cluster could provide.  In other words, a cluster with DD&C enabled may have similar performance to a cluster with DD&C disabled that use much lower performing capacity tier devices.

Figure 4.  Destaging and maximum steady-state rates are reduced when DD&C is enabled

Assuming all other variables remained the same, lowering the maximum steady-state rate of the capacity tier would demonstrate the following behaviors

  • The write buffer may fill up more quickly because delta in performance between the two tiers has been increased through slowing down the performance of the capacity tier.
  • The write buffer will destage more slowly because of the reduced destaging performance.
  • The write acknowledgment time (write latency) of the guest VMs may be affected if destaging has begun.  The degree of impact depends on several factors, including the destage rate capable by the capacity tier. This scenario is most common if the aggregate working set of data far surpasses the capacity of the buffer tier, or a fast duty cycle, which places more significant demands on the capacity tier.
  • The write acknowledgment time (write latency) of the guest VM will  be unaffected IF the buffer has not reached any destaging thresholds. This would be common with a small aggregate working set of data that fits well within the buffer tier and not a lot of pressure on the buffer to destage.

vSAN’s elevator algorithms detect a variety of conditions that will help determine if, when, and how much destaging should occur. It gradually introduces the destaging of data, and does not go as fast as it can, but only as fast as it needs to. This helps keep hot data in the buffer for subsequent overwrites, which reduces unnecessary destaging activity and potential impacts on performance.

RAID-5/6 erasure coding is another space efficiency option enabled at the per VM or per VMDK basis using storage policies. Using space efficiencies techniques together may also have some notable impacts. See “Using Space-Efficient Storage Policies (Erasure Coding) with Clusters Running DD&C” (5-12) in the vSAN Operations guide for more information.

Customization Options

vSAN’s architecture gives customers numerous options to tailor their clusters to meet their requirements. Design and sizing correctly means clearly understanding the requirements and priorities. For example, in a given cluster, is capacity the higher priority, or is it performance? Are those priorities reflected in the existing hardware and software settings?  Wanting the highest level of performance but choosing the lowest grade componentry while also using space efficiency techniques is a conflict in the objective. Space efficiency can be a way to achieve capacity requirements but comes with a cost.

Once the priorities are established, adjustments can be made to accommodate the need of the environment. This could include:

  • Faster devices in the capacity tier. If you enabled DD&C and notice higher than expected VM latency, consider faster capacity devices at the capacity tier. This can help counteract the reduced performance of the capacity tier when DD&C is enabled. Insufficient performing devices at the capacity tier is one of the most common reasons for performance issues.
  • Use more disk groups. This will add more buffer capacity, increasing the capacity for hot working set data, and reduce the urgency at which data is destaged. Two disk groups would be the minimum, with three disk groups the preferred configuration
  • Look at newer high-density storage devices for the capacity tier to meet your capacity requirements. Assuming they meet your performance requirements, these new densities may offset your need to use DD&C. See vSAN Design Considerations – Using Large Capacity Storage Devices for more information.
  • Run the very latest version of vSAN. Recent editions of vSAN have focused on improving performance for clusters running DD&C: Improving the consistency of latency to the VM, and increasing the destage rate through software optimizations.
  • Enable only in select clusters. Only enable DD&C in clusters that hardware that can provide sufficient performance to support the needs of the workloads. Optionally, space-efficient storage policies like RAID-5/6 could be applied to discrete workloads where it makes the most sense. Note there are performance tradeoffs with erasure coding as well.


Deduplication and Compression Design Considerations

Consider these guidelines when you configure deduplication and compression in a vSAN cluster.

  • Deduplication and compression are available only on all-flash disk groups.
  • On-disk format version 3.0 or later is required to support deduplication and compression.
  • You must have a valid license to enable deduplication and compression on a cluster.
  • When you enable deduplication and compression on a vSAN cluster, all disk groups participate in data reduction through deduplication and compression.
  • vSAN can eliminate duplicate data blocks within each disk group, but not across disk groups.
  • Capacity overhead for deduplication and compression is approximately five percent of total raw capacity.
  • Policies must have either 0 percent or 100 percent object space reservations. Policies with 100 percent object space reservations are always honored, but can make deduplication and compression less efficient.

vSAN DEDUPLICATION AND COMPRESSION

 vSAN Deduplication and Compression

vSAN can perform block-level deduplication and compression to save storage space. When you enable deduplication and compression on a vSAN all-flash cluster, redundant data within each disk group is reduced.

Deduplication removes redundant data blocks, whereas compression removes additional redundant data within each data block. These techniques work together to reduce the amount of space required to store the data. vSAN applies deduplication and then compression as it moves data from the cache tier to the capacity tier. Use compression-only vSAN for workloads that do not benefit from deduplication, such as online transactional processing.

Deduplication occurs inline when data is written back from the cache tier to the capacity tier. The deduplication algorithm uses a fixed block size and is applied within each disk group. Redundant copies of a block within the same disk group are deduplicated.

Deduplication and compression are enabled as a cluster-wide setting, but they are applied on a disk group basis. When you enable deduplication and compression on a vSAN cluster, redundant data within a particular disk group is reduced to a single copy.

Notes:

  • Compression-only vSAN is applied on a per-disk basis.
  • Deduplication and compression might not be effective for encrypted VMs, because VM Encryption encrypts data on the host before it is written out to storage. Consider storage tradeoffs when using VM Encryption.

When you enable or disable deduplication and compression,  vSAN performs a rolling reformat of every disk group on every host. Depending on the data stored on the vSAN datastore, this process might take a long time. Do not perform these operations frequently. If you plan to disable deduplication and compression, you must first verify that enough physical capacity is available to place your data.

How to Manage Disks in a Cluster with Deduplication and Compression

Consider the following guidelines when managing disks in a cluster with deduplication and compression enabled. These guidelines do not apply to compression-only vSAN.

  • Avoid adding disks to a disk group incrementally. For more efficient deduplication and compression, consider adding a disk group to increase the cluster storage capacity.
  • When you add a disk group manually, add all the capacity disks at the same time.
  • You cannot remove a single disk from a disk group. You must remove the entire disk group to make modifications.
  • A single disk failure causes the entire disk group to fail.

Verifying Space Savings from Deduplication and Compression

The amount of storage reduction from deduplication and compression depends on many factors, including the type of data stored and the number of duplicate blocks. Larger disk groups tend to provide a higher deduplication ratio. You can check the results of deduplication and compression by viewing the Usage breakdown before dedup and compression in the vSAN Capacity monitor.

You can view the Usage breakdown before dedup and compression when you monitor vSAN capacity in the vSphere Client. It displays information about the results of deduplication and compression. The Used Before space indicates the logical space required before applying deduplication and compression, while the Used After space indicates the physical space used after applying deduplication and compression. The Used After space also displays an overview of the amount of space saved, and the Deduplication and Compression ratio.

The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x.

When deduplication and compression are enabled on the vSAN cluster, it might take several minutes for capacity updates to be reflected in the Capacity monitor as disk space is reclaimed and reallocated.

Deduplication and Compression Design Considerations

Consider these guidelines when you configure deduplication and compression in a vSAN cluster.

  • Deduplication and compression are available only on all-flash disk groups.
  • On-disk format version 3.0 or later is required to support deduplication and compression.
  • You must have a valid license to enable deduplication and compression on a cluster.
  • When you enable deduplication and compression on a vSAN cluster, all disk groups participate in data reduction through deduplication and compression.
  • vSAN can eliminate duplicate data blocks within each disk group, but not across disk groups.
  • Capacity overhead for deduplication and compression is approximately five percent of total raw capacity.
  • Policies must have either 0 percent or 100 percent object space reservations. Policies with 100 percent object space reservations are always honored, but can make deduplication and compression less efficient.

Enable Deduplication and Compression on a New vSAN Cluster

You can enable deduplication and compression when you configure a new vSAN all-flash cluster.

  1. Navigate to a new all-flash vSAN cluster.
  2. Click the Configure tab.
  3. Under vSAN, select Services.
    1. Click to edit Space Efficiency.
    2. Select a space efficiency option: Deduplication and compression, or Compression only.
    3. (Optional) Select Allow Reduced Redundancy. If needed, vSAN reduces the protection level of your VMs while enabling Deduplication and Compression. For more details, see Reducing VM Redundancy for vSAN Cluster.
    4. Complete your cluster configuration.

The New "Compression only" Option in vSAN 7 U1

A "Compression only" option alleviates the challenge described above. vSAN administrators can use this setting for clusters with demanding workloads that typically cannot take advantage of deduplication techniques. It accommodates today’s economics of flash storage while maintaining an emphasis on delivering performance for high demand, latency-sensitive workloads.

Selecting the desired space efficiency option is easy. At the cluster level, the vCenter Server UI now presents three options:
 

  1. None
  2. Compression only
  3. Deduplication and compression.

Note that changing this cluster-level setting does require a rolling evacuation of the data in each disk group. This is an automated process but does require resources while the activity is performed.
 

Advantages

When compared to the DD&C option, the "Compression only" option offers interesting advantages.
 

  • Reduce the failure domain of a capacity device failure. A failure of a capacity device in a disk group for a cluster using "Compression only" will only impact that discrete storage device, whereas the same failure using DD&C would impact the entire disk group. This reduced impact area of a device failure also reduces the amount of potential data that vSAN needs to rebuild upon a device failure.
     
    Figure 2. Comparing the failure domain of a capacity device failure in vSAN 7 U1
     
  • Increased destaging rates of data from the buffer tier to the capacity tier. As described in "vSAN Design Considerations – Deduplication and Compression," vSAN’s two-tier system ingests writes into a high-performance buffer tier, while destaging the data to the more value-based capacity tier at a later time. The space efficiency processes occur at the time of destaging, and as described in that post, may have a potential impact on performance. When compared to DD&C, the "Compression only" feature improves destage rates in two ways: 1.) Avoids the inherent write amplification required with deduplication techniques, and 2.) Uses multiple elevator processes to destage the data.
     
     

Capacity Savings

 
How much space savings can one expect using the "Compression only" feature? The answer to this depends on the workload, and the type of data being stored. Both of the DD&C and "Compression only" features are opportunistic, which means that space savings are not guaranteed. This capacity savings through compression can be easily viewed in the vCenter Server UI. Note that it may take some time before the savings ratio stabilizes.

By contrast, vSAN’s data placement techniques using erasure codes like RAID-5/6 are deterministic: They provide a guaranteed level of space efficiency for data stored in a resilient manner. RAID-5/6 erasure coding can be applied to VMs using storage policies and can be used with cluster-based space efficiency techniques.
 

Performance

 
What will the levels of performance be like when using the "Compression only" feature? This will land somewhere in between the performance of your hosts not running any space efficiency, and the performance of your hosts running DD&C.

Performance using "Compression only" could be superior when compared to the same environment using DD&C. This improvement would show up most where there are workloads with large working sets issuing large sequential writes and medium-sized random writes. In these cases, the absence of the deduplication engine and the improved parallelization of destaging will allow the data to be destaged faster, and less likely to hit buffer fullness thresholds that begin to impact the guest VM latency.
 

 
The performance capabilities of vSAN are still ultimately determined by the hardware used, the configuration of vSAN, the version of vSAN, the associated storage policies, and the characteristics of the application & workload. To better understand how hardware selection (including the type of flash devices) impact performance, see the post "vSAN Design Considerations – Fast Storage Devices versus Fast Networking" and "Write buffer sizing in vSAN when using the very latest hardware."
 

Compression only, or Deduplication and compression? Which is right for you?

 
Workloads and data sets do not provide an easy way to know if they are ideally suited for some space efficiency techniques versus others. Therefore, the administrator should decide based on the requirements of the workloads and the constraints of the hardware powering the workloads. A comparison of design and operational considerations between the three options is provided below.
 

* Capacity savings not guaranteed
** Depends on workloads, working sets, and hardware configuration

 
For some environments, the minimal failure domain of a capacity device failure may be the only reason needed to justify the use of the "Compression only" feature versus the other options. Whatever the case, the configuration desired can be tailored on a per cluster basis.

VMware recommends the following settings for the best balance of capacity savings and performance impact. Workloads and environmental conditions vary, therefore these are generalized recommendations.
 

* If performance is of the highest priority, using no space efficiency would yield the highest sustained performance for the hardware configuration used.

Monday, December 21, 2020

10 - VMware vSAN 6.7 Design Technical Introduction By Eng -Eslam Magdy (6 Failure Scenario)

 

VMware vSAN 6.7 Design Technical Introduction

By Eng. Eslam Magdy | Arabic




شرح كورس VMware vSAN 6.7  من منظور جديد

نقوم في هذا الكورس بتخاذ مسار جديد حيث سنركز اكثر على Design considerations ومتطلبات  وامكانيات المنتج 
وما هي الرخص licenses  وكيف نفرق بينها وما هي Failure Scenarios  المتوقعة وكيف يتم حلها


Session Content

vSAN Failure scenario (6 Scenarios)





Website : https://engvm.wordpress.com/
Facebook Page: https://bit.ly/2NInPP2
LinkedIn: https://www.linkedin.com/in/eslam-elmanakhly/
SUBSCRIBE!  https://bit.ly/2I1krJ7


Saturday, December 7, 2019

09- VMware vSAN 6.7 Design Technical Introduction By Eng-Eslam Magdy (SP...

VMware vSAN 6.7 Design Technical Introduction

By Eng. Eslam Magdy | Arabic





شرح كورس VMware vSAN 6.7  من منظور جديد

نقوم في هذا الكورس بتخاذ مسار جديد حيث سنركز اكثر على Design considerations ومتطلبات  وامكانيات المنتج 
وما هي الرخص licenses  وكيف نفرق بينها وما هي Failure Scenarios  المتوقعة وكيف يتم حلها


Session Content

Storage Policy-Based Management ( Part 03 )

1- Object space reservation (OSR) 
2- Disable object checksum 
3- IOPS limit for object



Website : https://engvm.wordpress.com/
Facebook Page: https://bit.ly/2NInPP2
LinkedIn: https://www.linkedin.com/in/eslam-elmanakhly/
SUBSCRIBE!  https://bit.ly/2I1krJ7

08 -VMware vSAN 6.7 Design Technical Inroduction By Eng-Eslam Magdy (SPB...

VMware vSAN 6.7 Design Technical Introduction
By Eng. Eslam Magdy | Arabic


 
Part -08


شرح كورس VMware vSAN 6.7  من منظور جديد

نقوم في هذا الكورس بتخاذ مسار جديد حيث سنركز اكثر على Design considerations ومتطلبات  وامكانيات المنتج 
وما هي الرخص licenses  وكيف نفرق بينها وما هي Failure Scenarios  المتوقعة وكيف يتم حلها


Session Content

Storage Policy-Based Management ( Part 02 )

1- Failure Tolerance Method
2- On-disk format version
3- Flash Read Cache Reservation
4- Force Provisioning




Website : https://engvm.wordpress.com/
Facebook Page: https://bit.ly/2NInPP2
LinkedIn: https://www.linkedin.com/in/eslam-elmanakhly/
SUBSCRIBE!  https://bit.ly/2I1krJ7

Monday, September 30, 2019

07-VMware vSAN 6.7 Design Technical Inroduction By Eng -Eslam Magdy (SPB...

VMware vSAN 6.7 Design Technical Introduction 
By Eng. Eslam Magdy | Arabic
Part -07

شرح كورس VMware vSAN 6.7  من منظور جديد
نقوم في هذا الكورس بتخاذ مسار جديد حيث سنركز اكثر على Design considerations ومتطلبات  وامكانيات المنتج 
وما هي الرخص licenses  وكيف نفرق بينها وما هي Failure Scenarios  المتوقعة وكيف يتم حلها



Session Content
1- Storage Policy Based Management ( Part 01 )



Facebook Page: https://bit.ly/2NInPP2
LinkedIn: https://www.linkedin.com/in/eslam-elmanakhly/
SUBSCRIBE!  https://bit.ly/2I1krJ7

Thursday, July 25, 2019

06 - VMware vSAN 6.7 Design Technical Inroduction By Eng - Eslam Magdy ...

VMware vSAN 6.7 Design Technical Introduction 
By Eng. Eslam Magdy | Arabic



 Part -06
شرح كورس VMware vSAN 6.7  من منظور جديد
نقوم في هذا الكورس بتخاذ مسار جديد حيث سنركز اكثر على Design considerations ومتطلبات  وامكانيات المنتج 
وما هي الرخص licenses  وكيف نفرق بينها وما هي Failure Scenarios  المتوقعة وكيف يتم حلها


Session Content
1- Deployment Model options
2- I/O Read - Write operation for All-Flash Models
3-I/O Read - Write operation for Hybrid Models



Facebook Page: https://bit.ly/2NInPP2

LinkedIn: https://www.linkedin.com/in/eslam-elmanakhly/

SUBSCRIBE!  https://bit.ly/2I1krJ7