# Production Setup
This is the detailed production setup. If you just want to try out our software, try our vagrant virtual demo.
With the help of our instructions below, you can quickly, easily and conveniently perform your own installation of the croit Ceph Storage Management Software. Our software will lead you to a functional Ceph Cluster with a few steps after the first start.
After the initial installation of your cluster, our software is available to you for 30 days free of charge under the Enterprise license. After the first 30 days, you can purchase the license from us, or continue to use the functionality of the free Community Edition.
# Reference Setup
For production environments, we suggest to install croit in Docker on a dedicated server or VM. croit is well tested with Debian Linux but works on any other OS with a current version of Docker. This host will be refered to as the management node within this guide.
# Need help with a setup?
Our consultants are happy to discuss possible networks and assist with all steps of the setup including network planning, hardware selection, and actual deployment.
We have deployed croit on a variety of server and network hardware. Contact us for a solution tailored to your requirements.
# Hardware Requirements
We suggest the following minimum hardware requirements for the management node.
- minimum of 4 GB RAM, more is better
- 50 GB SSD space (Statistics and log files)
- at least 2 CPU cores
- Linux operating system
- good Internet connection
- dedicated network access to Ceph hosts
# Network setup
In order to use croit, all your storage servers need access to a dedicated network in which croit provides DHCP PXE boot.
Avoid installing croit within the same layer 2 network as your other servers or desktop systems. croit features full support for VLAN tagging for network segmentation.
We suggest using two different networks for production setups. The management network connects the management node to the Ceph servers and is used for PXE boot and administrative traffic. This network does not need to be accessible from the outside.
The Ceph network is used for Ceph cluster traffic and client traffic alike. This network can also be split into two dedicated networks for cluster traffic and client traffic. The network serving client traffic needs to be reachable from all storage clients and the management node.
You can use switches of your preferred network vendor, we have successfully deployed croit with a variety of switch vendors including Arista, Juniper, and Cisco.
Note: When using Cisco switches, we recommend to enable the
fast-booting feature on all ports used for PXE booting croit servers.
The full list of network requirements are:
- Management network
- 1 Gbit/s
- Untagged (access port) at the Ceph nodes to facilitate PXE boot
- Layer 2 connectivity or DHCP relay between management node and storage servers
- Ceph network
- > 1 Gbit/s, 2x 10 Gbit/s suggested
- Redundant (LACP) strongly recommended * Layer 3 connectivity between all Storages nodes and clients
- Nodes running Ceph mon services need an IP address that is reachable from all ceph consumers. A Ceph mon only listens on a single IP (constraint from Ceph). It must be reachable from:
- the management node
- all Ceph servers
- all Ceph clients
# Reference setups
# Single network, single NIC
A quick and easy way to evaluate croit is to deploy it with only a single network. This setup works with servers that only have one NIC that is used for both management and storage traffic.
We do not recommend this for production deployments, but it's great for a quick proof-of-concept setup on real hardware.
- Single NIC in each server connected to an access port (no VLAN tags)
- Flat layer 2 network with all nodes
- Complete storage network managed by croit
# Two networks, single NIC
To seperate administrative, monitoring, and DHCP traffic from the storage traffic, it's beneficial to use isolated layer 2 network segments.
With only one NIC, you can make use of 802.1Q VLAN tags to split traffic into different networks. You have to make sure that your Network is capable to boot such case.
- Separate croit and Ceph IP networks
- Two VLANs, both accessible from the management node
- Single network port per server (hybrid port mode)
- Management VLAN needs to be untagged (native VLAN or similar configuration)
- Ceph VLAN tagged, VLAN tag configured for each server
# Redundant network, two NICs
For production environments, we strongly suggest the use of a redundant network setup for increased performance and resilience.
This setup uses LACP (aka 802.3ad, bonding, port trunking, NIC teaming) to build a single logical link from multiple physical interfaces. The switches need to support this feature. The physical links should be connected to separate switches using MLAG (aka Virtual Chassis, MCLAG) to ensure operation in case of switch failures.
LACP is not supported during boot with common NICs. Hence, the switch needs to be able to bring up a single port of a link even if no LACP is configured on the other side. This setting is called "no lacp suspend-individual" in Cisco switches and "force up" in Juniper switches. You have to use a third NIC for a dedicated management network if your switch does not support this feature.
- 2x NICs, configured as LACP
- Switch ports configured as LACP (802.3ad)
- Fallback for LACP to allow PXE boot or third management NIC for booting
- Optional further traffic separation via VLAN tags
# Need help?
Please keep in mind that a reliable and fast network is crucial to get good performance and resiliency. 10 Gbit/s networks are especially important to recover quickly from disk and server failures or when rebalancing data when scaling up your storage.
Our consultants are well versed in networking and are happy to help with network planning. Contact us to discuss your requirements.
# Storage Hardware
Of course, Ceph not only depends on a good Network, a good Hardware design is absolute mandatory. Therefore you should think twice bevore ordering Hardware from your prefered vendor. We as croit don't care about the Vendor as well as we don't care what Hardware you want to bring in use within your Storage Cluster. But we can assure you, that a good choice will make your Cluster running smooth and fast for a long time.
From our own history, we know that there are tons of bad Hardware on the market. Sometimes you find some great looking SSD's with a Datasheet performance of 2.5 GB/sec and you might think thats fantastic! We learned it the hard way, that this is definitly not the performance indicator you need to take a look on. The mentioned SSD from a big company (Sam***g) performed very poorly with just 2.8 MB/sec for Ceph Workloads! Therefore, please make sure that you get some test equipment and test your Disks before ordering to much of it.
Even if SATA Disks are cheap and come with great cappacity, we do not advice the use other than for backup reasons. You can make use out of SATA Disks, if you add an additional, exceptionally fast SSD as a Journal drive. But this will bring additional bottlenecks that you might not be aware of. We had some good experince with Intel NVMe PCIe SSDs for Journaling with about 950 MB/sec real performance over a long time. As a Journal is heavy written, it's not bad to have a bigger disk than the typical formular of 10 GB * SATA drive count. Reminder, if you lose your Journal device, you lose all Disks depending on that Journal.
For Database or high performance, we would advice the use of SSD only Pools. This way you get way better access times and bandwith. But this of course is expensive and might burst your budget. croit offers an SSD Primary option, that we use for cost optimized Hybrid Setups. We use SSDs for Client Access through primary PG configuration. To ensure data savety, we make use of SATA Disks with PCIe Journal booster. Data will therefore saved on 1x SSD and 2x SATA while Clients only see near SSD performance while cluster is working correctly. In case of a loss of a SSD disk, clients will see some access time increase as they need to get the data from the remaining SATA disk. If you can live with that, it's a great and well tested setup that saves some tons of money.
# Hardware Builds
# MON (Monitor) Nodes
For MON Servers, you can use modern Xeon-D Processors, that already include 2x 10GbE-T NIC. They only need some little RAM for their work in most cases. It should be enought to start with 16 GB of RAM, a CPU core, and a single disk to save MON data like a 128 GB SSD.
# OSD (Storage) Nodes
When it comes to a Storage environment, you always need servers with lots of Disks in order gain capacity. OSD Servers need a good balance from disk count, to cluster size. If you plan to install 5 Servers, please don't make the very bad decision and buy 24 Bay or even more Chassis. For Clusters below 20 Servers, we don't suggest to build bigger Servers than 12 drives. This is because performance might suffer and if you lose one server, a big percent of data needs to be restored. For SSD only Servers, we found that 8 Bay in hight of 1 Rack Unit is good for high performance clusters.
Memory Requirement for each Storage is min 4 GB, optimal 8 GB per disk. If you build a 12x 8 TB Storage, you should add at least 48 GB of Ram. When your servers are running, you might see the memory not active used, but believe us, you need it while recovery and Linux uses free RAM for caching and therefore speed purpose.
CPU Requirement depends on the disk count. Most of the time these CPUs are not used but to ensure fast recovery you should select a cost optimized state of the art cpu. Each Disk (OSD) should get its own physical or Hyper-Threading Core. If you add 12 Disk you should build a system with 12 Cores like a single socket 6 Core with HT. In addition there is the need for further services such as MON, MDS, RGW and the operating system.
Things you should avoid:
- Chassis Backplanes: Very often they are a bottleneck and causing more problems than they solve.
- Raid Controllers: Just don't even think about them other than to provide more SATA/SAS Disk connectors.
- Overpriced, overvalued "special" data center hardware. Mostly manufactured in the same factories, often only the names are changed to make them more expensive to sell. Of course, this only applies to equivalent components, not to fundamentally different components.
- Consumer low end disks with poor performance
Installing the croit storage management solution is quite simple. Login to your Linux-based management node with Docker installed and execute the following commands.
sudo docker create --name croit-data croit/croit:latest sudo docker run --net=host --restart=always --volumes-from croit-data --name croit -d croit/croit:latest
The container needs access to the Internet to download server images. Add the option
-e HTTPS_PROXY=https://your.proxy.int.corp.com to the docker run command to configure a proxy.
# Setting up croit
croit will guide you through the initial setup of your Ceph cluster.
admin with password
Now you have to read and accept the EULA.
# Setup management interface
croit uses one network interface as management interface for all management communication from PXE boot to monitoring running servers.
You need to select the NIC that you want to use for initial DHCP and PXE boot.
# Setup PXE network
Click create to open the dialog to setup your PXE network.
Configure the management network and set a DHCP pool to boot new servers.
Depending on your network configuration, you need to configure further networks. In particular, you need to configure the network on which your initial monitor host resides in during setup. We recommend using multiple networks for a real setup, but a single network for all traffic is sufficient for proof-of-concept deployments.
Click save to continue to the next step.
# Boot the first server
Everything required to boot the first server is now configured.
Caution: Ensure that the Option ROM setting of the NIC you want to use is set to PXE.
Caution: The live image is downloaded asynchronously from croit.io after the first start, the menu will instruct you to wait and retry if the download is not yet finished.
The server will automatically boot our live image and it will show up in our frontend as soon as you see the boot menu. Rename the server by setting the host name using the Edit button.
You can boot more servers the same way as your first server.
# Configure a mon disk
Disks and NICs will show up a few seconds after the server finishes booting. Configure an installed hard disk as Ceph mon. Mon disks are used to store the Ceph monitor database, each server running a Ceph monitor service needs one disk configured as mon disk.
Caution: We strongly recommend to use a small (50 GB is sufficient) but fast SSD for mons.
This formats and mounts the disk on the server, the 'Set to MON' button leading to the next step becomes active once this action completes successfully.
# Create the cluster
The last step is creating the Ceph cluster. Each server that was configured in the previous step can be selected as a mon.
Caution: A Ceph monitor has exactly one IP address (even if the server has multiple IPs). This IP needs to be reachable by all Ceph services, clients, and the croit management daemon. You can go back to the previous step to configure further IP addresses or networks.
# Adding OSDs
Our cluster starts out in an error state as we have not yet configured any disks to use for storage (OSD disks). Let's get started by powering on the remaining servers for your cluster.
The servers will show up in the 'Hardware' tab where they can be renamed with the 'Edit' action.
Create OSDs on all servers by selecting 'Disks' followed by 'Set to OSD' on each disk or select multiple Disks and do a batch job. You can use external journal disks for OSDs by setting a disk's role to journal before configuring OSDs on that server.
You can also click on 'Disks' below the table while not selecting any server to get an overview of all disks on all servers in a single view.
# Add hosts to the crush map
croit does not automatically add new hosts to the crush map to avoid data movement before a server is fully configured. Select the CRUSH map tab and add the servers to the default root via drag and drop by dragging them at the drag indicator icon (=). Click 'Save changes' to update the crush map.
You can also add CRUSH buckets here to model your failure domains.
# Adding additional MONs
Configure a disk as mon, then select 'Show services' to create an additional Ceph monitor service.
Keep in mind that there should be a odd number of mons for optimal fault tolerance. For production, a minimum of 3 MON Servers and a optimum of 5 MON Servers are required.
# Further services
You can configure further services as needed.
# Update your croit software
If you are already using croit, we strongly recommend you to upgrade to croit latest. to get the best possible experience! Just enter the following two commands in the management node:
docker rm -f croit docker pull croit/croit:latest docker run --net=host --restart=always --volumes-from croit-data --name croit -d croit/croit:latest
Disclaimer: please make sure that you have a working backup before entering those commands.