Blog · 2017-10-21 · Karol

MooseFS Performance on Docker: Only 5–10% Slower Than Bare Metal

IOzone benchmarks on a 10-node cluster show MooseFS running inside Docker containers is only 5–10% slower than bare metal — making containerized deployment a practical choice for quick evaluation, feature testing, and first-time setup on any Docker-supported OS.

MooseFS on Docker performance test

There is exciting news for all MooseFS users: MooseFS showcases good performance on Docker containers. Our customers can now deploy MooseFS easily using Docker containers. The tests were performed with Docker 1.13 and MooseFS 4.0 software version but the results are also achievable with MooseFS 3.0.92+ version.

We conducted a test in which MooseFS was run on Docker to check whether rapid deployment of MooseFS can be achieved using Docker. The setup consisted of 10 servers, one as a client, two as master servers and seven machines as chunk servers. All the machines were connected in a ring topology using Intel I350 Gigabit Network Connection cards.

The experiments showed us how the use of containers affected the performance of the MooseFS storage cluster. Results show that containerized storage is 5–10% slower than bare metal setup. For speed-critical and production systems, it is recommended to use a bare metal installation. However, the Docker-based setup is recommended for first steps with MooseFS to quickly run on any operating system supported by Docker.

We do not recommend running MooseFS production clusters on Docker; however, such a setup can be used, for example, to test MooseFS features. Using this configuration one can set up a MooseFS cluster very quickly and test MooseFS POSIX compatibility, redundancy, and other features.

In this blog, we give some information about MooseFS and Docker, explain the set-up and how the tests were conducted, and analyse the performance of MooseFS in Docker compared with bare metal. The blog concludes with scripts and detailed results in the appendix.

About Docker

Docker is a container platform which provides an additional layer of abstraction and automation of operating system level virtualization on Windows and Linux. It isolates software which can run on a shared operating system instead of running on a full Virtual Machine. Such a solution is more and more popular due to its fast and reliable deployment capability.

For more information about Docker please visit: https://www.docker.com/

MooseFS in Docker

The following section provides description and configuration details for MooseFS in Docker containers. Only one server was dedicated as MooseFS client. Benchmark was executed inside the MooseFS client mount point. Benchmark tool used in this test was IOzone software, version 3.465.

docker run -p 9419-9422:9419-9422 -d --privileged mfs4chunkserver
Test Setup

We used 10 servers for the setup: one as a client, two as masters and seven machines as chunk servers. All the machines were connected in a ring topology using Intel I350 Gigabit Network Connection cards. To eliminate hard disk bottleneck, 100 GB RAM disks were created on each chunk server. No kernel modifications and no additional components were required. MooseFS replication was set to goal 1. Docker instances used the official Ubuntu 14.04 image from https://hub.docker.com/_/ubuntu/

Results

The following graphs show read/write and random read/write operations throughput with block sizes 4k, 16k, and 2048k and 1, 2, 8 threads. The purpose of this test was to compare the performance of Docker containers with bare metal, so the Y axis is scaled such that 100% is the performance of bare metal MooseFS.

Appendix

Scripts

If you want to create your own Docker cluster, visit our repository: https://github.com/moosefs/moosefs-docker-cluster

Table 1: IOzone Test Results — Docker vs. Bare Metal

The table below shows IOzone test results with block sizes from 4 kB to 2048 kB and 1 to 16 threads.

Block SizeThreads Docker Write (MB/s)Docker Read (MB/s)Docker Rnd Write (MB/s)Docker Rnd Read (MB/s) BM Write (MB/s)BM Read (MB/s)BM Rnd Write (MB/s)BM Rnd Read (MB/s)
4k12173621121922237713821
4k23566031583736762820644
4k44918252068151887627793
4k85899662771486291047318179
4k166419743142356841088376294
8k13905582153339759326339
8k26218453036865087039480
8k484210553861499071074530173
8k8978112950327610941185606329
8k161057114158944311721196701549
16k16357303925168175746473
16k210409635541121088994692156
16k411481116679240121211531191309
16k811501138824477120911921151571
16k1611431142978779120911971198988
32k18368656979190888881496
32k211461049978202121011331204233
32k4115011241130424120911711215496
32k8115111381131822120811901205947
32k1611441142111811431207119912011202
64k11032914113316011179541205171
64k2115410691140353120911031207365
64k4115311231136694121411671211676
64k811511137113811421208119412071188
64k1611441142113111461209119912041206
128k111009611131272118210191206279
128k2114811081139548120811161208601
128k41154113311379901213118012141098
128k811471138113411461208118612051207
128k1611451141113411461208119712021206
256k110959801132299118310131206298
256k2116010891138572120911511207621
256k411561122113610101218117112131116
256k811511138113311461208119212081207
256k1611451142113711451208119912051206
512k111039641134311118310261204310
512k2115111021138581120911341213630
512k411521134113710301212117712101130
512k811511137113511461208119312091207
512k1611421142113711461207119912031205
1024k111069471131323118410371205313
1024k2114510821143583121311211207637
1024k411531129113810291213118212091127
1024k811511138113411461207118912091207
1024k1611441141113511451208119812031205
2048k111019681129331118010331206314
2048k2114710881137591120911231209639
2048k411501132114010321210116612071130
2048k811491138113611451205118512091206
2048k1611401142113411441206119812041205

If you want to download this article as PDF, please click here: MooseFS showcases good performance on Docker! (PDF)

See also what results MooseFS achieved during performance tests on InfiniBand Network.