Clustering
This section provides an overview of the components and requirements for configuring a cluster with Fusion SMB. It does not include a step-by-step guide for setting up a cluster. Cluster setup is varies significantly depending on the specific environment and organizational requirements.
For detailed examples of configuring clustered Fusion SMB installations, refer to the Active-Active Clustering and Active-Passive Clustering howto guides.
Introduction
Fusion SMB supports clustering features that provide Continuous Availability (CA), Scale-Out, and High Availability (HA). These features complement each other to provide robust, reliable, and scalable performance:
-
Continuous Availability:
Continuous availability ensures that, in the event of a cluster node failure, another node takes over, providing uninterrupted service to all clients. This feature is especially critical for SMB servers, where maintaining active connections without disruption is essential. If a node fails, continuous availability mechanisms enable the new node to handle both new client requests and existing SMB connections from the failed node.
-
Scale-Out:
Scale-out is a strategy characterized by adding nodes to a system to handle increased load, rather than enhancing the existing nodes' capacity. This distributes workloads across multiple servers, allowing the system to handle more requests and efficiently serve more clients.
In the context of an SMB server, scale-out enables seamless expansion as demand increases, ensuring high performance and maintaining service reliability.
-
High Availability:
High availability combines the benefits of continuous availability and scale-out, allowing the system to handle increased loads by adding nodes while maintaining uninterrupted service during node failures. This approach is ideal for environments where both performance and fault tolerance are critical, ensuring scalability without compromising availability.
Based on fault tolerance and performance requirements, Fusion SMB can be configured in two modes, Active-Passive and Active-Active:
-
Active-Passive:
Active-passive is the simplest clustering configuration for Fusion SMB. However, among the three benefits of clustering, it provides only continuous availability. In this mode, only one node is active at a time, with standby node(s) ready to take over in the event of a failure. A failover process is required during this transition, causing existing SMB connections and file operations to hang briefly—typically for a few seconds—until failover completes.
The simplicity of this configuration makes it ideal for environments where ease of setup and maintenance are a priority.
Active-passive clustering is well-suited for business-critical applications where the cost of downtime is high, but a single SMB server is sufficient to handle the workload. It provides a cost-effective solution for ensuring continuous availability without complex setup.
-
Active-Active:
Active-active is a clustering configuration for Fusion SMB that provides all three benefits of clustering: continuous availability, scale-out, and high availability. In this mode, multiple servers operate simultaneously as a cluster, distributing connections and workloads across all nodes. This approach leverages the combined networking bandwidth of all servers. In the event of a node failure, only a subset of clients is affected, as their connections are automatically resumed on another server, virtually eliminating downtime.
This configuration is ideal for environments requiring minimal downtime, with scalability to handle increased loads by adding additional servers. However, it is more complex to configure and manage compared to active-passive clustering.
Common use cases for active-active clustering include:
-
Business-Critical Applications in Larger Environments:
Active-active clustering is often used in large environments where downtime is costly and a single SMB server cannot handle the workload.
-
Environments with High Bandwidth and Low Latency Demands:
Active-active clustering is commonly deployed where bandwidth demands are high. Examples include:
- Video Production: Enables multiple users to work on different projects simultaneously, requiring substantial bandwidth.
- Low-Latency Media Streaming: Allows to support a large number of clients, requiring high bandwidth and cannot tolerate buffering delays.
-
Clustering features typically incur a performance overhead, since they perform caching and persisting the server's state, and coordinating between nodes.
Fusion SMB as Part of Your CA/HA Solution
Fusion SMB plays a critical role in delivering a continuously available, highly available, and scalable file sharing solution. Its primary function is the high-performance handling of the SMB protocol. However, its effectiveness depends on the supporting infrastructure to to coordinate behavior across cluster nodes. This infrastructure includes:
- Shared Storage:
One or more file systems accessible by all nodes in the cluster. This shared storage holds the files to be served by Fusion SMB, as well as the server's configuration and persistent state. - Properly Configured Networking:
A network layout and configuration that facilitates communication between all nodes and clients, including a mechanism to distribute client connections across all nodes in the cluster. - Clustering Software:
Software that manages the communication between the nodes in the cluster, coordinates internal state, and ensures that the cluster operates as a single entity.
Fusion SMB does not provide or mandate specific infrastructure components or clustering software. Instead, it integrates with the solutions chosen by the customer. It is the customer's responsibility to determine and implement shared storage, networking, and load balancing solutions.
To ensure reliability, redundancy in critical services—such as storage and networking—is essential. The cluster's overall stability often hinges on its weakest points. While established best practices exist, Fusion SMB's modular design offers flexibility in selecting the components best suited to your specific environment.
Shared Storage and Persistent State
In both active-passive and active-active configurations, shared storage is accessible by all nodes in the cluster. This shared storage serves the following purposes:
- Data storage – the files to be shared via Fusion SMB.
- Fusion SMB configuration:
- The Fusion SMB configuration file.
- The user database file (if the file-backed user database is used for authentication).
- Persistent state and metadata, including information about ongoing operations and the state of the server and clients:
- The persistent file handle database. (Optional)
- The connection recovery database.
- The privilege database.
For active-passive configurations, all shares' vfs parameters should be set to libc:force_sync.
Mount Points
When setting up a cluster, ensure that shared storage mount points and mount options are configured identically across all nodes. Whether using a single device or multiple, they must be mounted on the same mount points on all nodes. This consistency is essential becuase Fusion SMB shares the same configuration files across nodes, where the mount points are defined.
File System
For active-active configurations, a file system that can be mounted read-write on all nodes simultaneously is required. Such file systems include (but are not limited to):
- GlusterFS
- WekaFS
- GFS2
- OCFS2
- Lustre
- CephFS
- GPFS
For active-passive configurations, the file system requirements are more relaxed. To minimize failover times, consider using a distributed or clustered file system. However, if failover time is not a concern, a non-clustered file system such as the following may be used:
- ext4
- XFS
- ZFS
- Any other file system that suits your needs.