0

We have 57 rhel servers machines – with version 7.5

The machines have strong HW as 128G memory and 32 CPU ,

We planed to install docker service on all machines , in order to run couple containers on docker

We are before the following dilemma

  1. We can install the docker directly on OS disk – sda , so /var/lib/docker will be folder on the OS

Or

  1. To add dedicated disk - sdb for the docker in order to run the docker on the sdb disk that isn't the OS disk ,

    for example add new disk – sdb and mount the sdb to /var/lib/docker

Is it justified to add additional dedicated disk as sdb for the docker, in order to avoid performances Aspects From OS/disk/Docker side ?

King David
  • 549
  • 6
  • 20

1 Answers1

2

Short answer

No, the performance toll in such a big server should be negligible (and could be neutered in case things go south).

Long answer

It depends on how your docker is configured and what you're running inside your containers. From a disk perspective, we can separate the docker influence over three key aspects:

  1. Disk usage for images and logs (as volumes are not bound to the /var/lib/docker)
  2. Mount points and inode usage (depending on which storage driver you're using).
  3. Read/write usage for the software inside the docker container (which is something that is not really docker's fault).

For the first two, you can set different configurations so it won't be too aggressive on the disk (cleaning old images frequently, setting size limits for the logs, changing parameters for the storage driver, etc).

As for the third, it depends solely on how the docker image behaves regarding the disk usage, and even then you can easily override the behaviour by using volumes on different devices.