📜 ⬆️ ⬇️

VMware Virtual SAN (VSAN): why do you need it and how to prepare it

In the first post about CloudLITE, we mentioned VMware Virtual SAN (VSAN) virtual storage. Today we will dwell on this technology in more detail and tell you what to look for when creating a VSAN for your project.

image

Why do you need VSAN


The traditional architecture includes three key components:
• servers
• data storage system (DSS),
• a storage area network that connects storage systems to servers via block (FC, FCoE, iSCSI) or file protocols (NFS, SMB) using appropriate switches.

image
')
To manage such an economy, you need three different interfaces, three different competencies and, in an amicable way, three different specialists.

Deploying such an architecture takes a long time, and fast scaling is also a very trivial task.

If your project involves predictable and systematic scaling, there is a week to add a new repository, and there are specialists in the staff who will be involved in designing, then the traditional architecture is your choice.

When you have a project (for example, public cloud) grows irregularly, adding a new repository with minimal automation capabilities will take a lot of time. This is where the VSAN converged architecture comes to the rescue, allowing you to combine computing and storage functions in a server.

image

VSAN as a converged solution


The convergent solution allows you to create an infrastructure from standard blocks that combine several functions at once (for example, calculation, storage). This infrastructure is managed through a single interface, and scaling through the addition of the next block.

In the case of VSAN, each block is a server. Not any, of course, but more on that later. How does the server perform the storage functions? VSAN collects virtual “external” storage from local server disks that is accessible to all compute nodes of the virtualization cluster. In this case, the software part of VSAN runs on the same servers as the compute nodes. Thus, on the same server, both the compute node and the storage node are all located in one bottle.

How it works


Each server has from 1 to 5 disk groups. In each group - at least one SSD-drive (a necessary condition for building VSAN) and from 1 to 7 HDD-drives.
SSDs in these disk groups make up a common data caching pool. VSAN first reads data in the cache; if there is no data in the cache, VSAN is sent to the HDDs.

For each virtual machine, you can configure your FTT (failures to tolerate). By default, this is 2, that is, all virtual machine data is written to 2 different servers of the cluster at once. If one of the servers fails, we will have a synchronous replica on the other, and all I / O operations will go to this second copy.

image

What to look for when designing VSAN


The relative ease of deployment does not negate the careful design of the VSAN architecture. Here are a few points that we would like to elaborate on:

1. Compatible with hardware . Although VSAN gives you a certain amount of freedom in the choice of hardware, it makes sense to stay on the list of hardware that is compatible with VMware VSAN. So you don’t have to choose compatible controllers, adapters, etc. by using scientific methods. In the case of CloudLITE , we chose Huawei FusionServer RH5885 V3 for the combination of technical and economic characteristics. This model has on board more productive PCIe flash cards (in comparison with the already classic SSD disks), which, by the way, allow saving “disk slots” and creating more disk groups. In the near future we will arrange for him unboxing. Keep for updates :).

2. Network. In a VSAN configuration, VMs can work in one place, and be stored in another. This places quite high demands on the network: you must have at least a 10 GB network.

3. Performance disk controllers . The disk controller must provide a volume buffer for a large queue of commands. The load on it will be significant: the controller will give the data needed not only to this server, but also to the entire cluster. For example, when restoring a dropped disk group to a new group, you need to record a large amount of data in a short time. The write speed will depend on the performance of the controller.

4. Disk capacity . In this situation no longer means better. Quite the contrary. Although 4, 6 TB disks are now available, VSAN is best built from 1 TB disks. Let's imagine an emergency situation when nothing gets into the cache (replacing a “flying” disk group, backup or restoring a backup): 6 TB drives will recover 6 times longer than 1 TB drives (if you start from the ratio of read speed to volume Stored Data - IOPS / GB). Here we are, of course, talking about the worst case, but these situations are not from the realm of fantasy. And so that the desire to use volume disks in VSAN completely disappears, just imagine how much data will be restored on 7 hard drives of 6 TB each.

5. The ratio of the volume of SSD to hard disk capacity . It will directly affect the final performance of the disk group: the greater the capacity of the SSD (the more data will be in the cache), the better the performance. CloudLITE uses PCIe flash cards for caching - they have lower latency compared to SSD. By the way, in VSAN version 6.0, disk groups consisting only of SSD are supported.

6. The ratio of computing power to disk space . When designing VSAN, you need to carefully consider everything: calculate the ratio of processors, memory and the number of disk groups, as well as calculate the ratio in which to increase the computing power so that it is economically profitable.
With the solution running, it will be impossible to add on-the-fly disk space for VSAN (storage node) without adding a new server, which means processors and memory. The option when the server is used only as storage (i.e., the computing node of this server is idle) is possible, but economically unprofitable: in fact, it is a return to the traditional configuration and abandoning the advantages of a convergent solution.

9 months - normal flight


VSAN allowed us to get high performance comparable to mid-range storage systems.
Over the entire period of operation, VSAN (since September 2014) has shown a very high level of accessibility, including as part of enterprise solutions.
Since March, the system has been working in the virtualization cluster of the CloudLITE.ru online store.

By the way, go for a free test drive :)

Source: https://habr.com/ru/post/258059/


All Articles