In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "what are the problems related to Docker definition storage". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the problems related to Docker definition storage.
Q:Docker uses external storage and mounts the external storage directly to the host. Will the external storage efficiency of the container mounted by the host be higher?
A: this is the way to implement volume plugin. The container directly mount the directory of the host to avoid accessing external storage through the container network, and the performance will certainly be higher.
Q: how to customize volume_plugin specifically? Different hosts hang the same lun, so that you can directly use the same business for volume. As long as the block storage speed is OK, it will not affect the business, including peak and low-value applications, but just increase the number of intermediate processing containers. Is this feasible?
A: in order to facilitate the implementation of volume plugin,docker to provide go-plugins-helper packages and basic functions, you only need to implement an interface volume.Driver and start http server. Example: GlusterFS uses this package to provide volume based on glusterfs.
Different hosts hang the same lun, and then format the file system, each host from its own file system metadata will not immediately flush to the block device, so it is not feasible for multiple hosts to hang the same lun.
Q: for a container, each run will download a large amount of data, if how big 50GB, how to deal with it?
A: by storing a large amount of data in an external shared storage system and mounting it to the container in the form of blocks or files, you can avoid loading a large amount of data locally.
Q: it is more or less the same for container storage, virtual machine and CVM storage, depending on the purpose of your business, and then decide whether it is block storage, distributed file or object storage according to the existing resources.
A: it is true that there is no fundamental change in the storage interface. The biggest difference between a container and a virtual machine from the point of view of storage is that the application runs in the container, while the virtual machine runs the operating system, which makes the container storage closer to the application. Can provide more appropriate storage services according to the characteristics of specific applications.
Q: if there is a lun that corresponds to a lot of container on a host, do I move all the container mount to different subdirectories of the same directory faster, or do I first format this lun and then speed up different partitions in different container?
A: put all container mount to different subdirectories of the same directory, indicating that multiple processes correspond to 1 file system; first format the lun partition, and then different partitions in different container, indicating that 1 process to 1 file system; for non-IO-intensive processes, the latter should be faster, each file system has cache, so the performance will be higher. For IO-intensive processes, the estimated performance is not much different.
At this point, I believe you have a deeper understanding of the "Docker definition storage-related issues", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 263
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.