DCA · Question #28
If installing Docker using devicemapper for storage with the Intent to run production workloads, how should devicemapper be configured
The correct answer is A. direct-lvm. For production workloads utilizing the devicemapper storage driver, Docker should be configured in direct-lvm mode for optimal performance and reliability.
Question
If installing Docker using devicemapper for storage with the Intent to run production workloads, how should devicemapper be configured
Options
- Adirect-lvm
- Bloop-lvm
- Coverlay-lvm
- Daufs-lvm
How the community answered
(23 responses)- A74% (17)
- B4% (1)
- C13% (3)
- D9% (2)
Why each option
For production workloads utilizing the devicemapper storage driver, Docker should be configured in `direct-lvm` mode for optimal performance and reliability.
The `direct-lvm` mode configures the devicemapper storage driver to use raw block devices or LVM logical volumes directly. This approach is recommended for production environments as it provides better performance and stability compared to using loopback devices.
The `loop-lvm` (loop-back device) mode for devicemapper is primarily for testing or development due to its ease of setup, but it incurs significant performance penalties and is not suitable for production use.
`overlay-lvm` is not a standard or recognized devicemapper configuration mode; 'overlay' and 'devicemapper' are distinct Docker storage drivers.
`aufs-lvm` is not a valid devicemapper configuration; AUFS is a separate storage driver and is not combined with LVM in this manner, nor is it recommended for modern Docker deployments.
Concept tested: Docker devicemapper production configuration
Source: https://docs.docker.com/storage/storagedriver/devicemapper-driver/
Topics
Community Discussion
No community discussion yet for this question.