> On Sept. 20, 2018, 12:59 a.m., Ilya Pronin wrote: > > src/slave/containerizer/mesos/isolators/xfs/disk.cpp > > Lines 347-348 (patched) > > <https://reviews.apache.org/r/68401/diff/4/?file=2087666#file2087666line356> > > > > Are we checking this in case multiple volumes have the same project ID? > > If that can be true, later we may falsely free a project ID that is still > > in use by the volume that we ignored here. Do we elect to ignore such > > misconfigurations?
Project IDs must always be assigned uniquely. I turned this into a `CHECK`. > On Sept. 20, 2018, 12:59 a.m., Ilya Pronin wrote: > > src/slave/containerizer/mesos/isolators/xfs/disk.cpp > > Lines 484-487 (patched) > > <https://reviews.apache.org/r/68401/diff/4/?file=2087666#file2087666line509> > > > > IMHO this can justify keeping dedicated `directory`, `projectId` and > > `quota` for container sandbox in `Info` :) But this is just my taste. Dropping this, since I'd rather not flip it back now :) > On Sept. 20, 2018, 12:59 a.m., Ilya Pronin wrote: > > src/slave/containerizer/mesos/isolators/xfs/disk.cpp > > Lines 438-440 (original), 609-611 (patched) > > <https://reviews.apache.org/r/68401/diff/4/?file=2087666#file2087666line635> > > > > Add which quota, i.e. sandbox/volume? Added the disk into to the resources, and included the path and container ID in a log message. - James ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68401/#review208778 ----------------------------------------------------------- On Sept. 10, 2018, 9:34 p.m., James Peach wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/68401/ > ----------------------------------------------------------- > > (Updated Sept. 10, 2018, 9:34 p.m.) > > > Review request for mesos, Chun-Hung Hsiao, Ilya Pronin, Jie Yu, Joseph Wu, > and Jiang Yan Xu. > > > Bugs: MESOS-5158 > https://issues.apache.org/jira/browse/MESOS-5158 > > > Repository: mesos > > > Description > ------- > > Added persistent volume support to the `disk/xfs` isolator. This > implementation largely tracks the `disk/du` implementation in that > we now keep a map of paths in each container info structure. We now > defer quota clean up to project ID reclaimation time so that we can > use the same mechanism for sandbox and persistent volume paths. > > We explicitly exclude mount disks from XFS project quotas, but we still > track them so that we can correctly publish their usage information in > the container `DiskStatistics` message. This means that mount disks are > not required to be XFS filesystems or have project quotas configured. > > > Diffs > ----- > > src/slave/containerizer/mesos/isolators/xfs/disk.hpp > 07e68a777aefba4dd35066f2eb207bba7f199d83 > src/slave/containerizer/mesos/isolators/xfs/disk.cpp > 2113f8665e4e84bdf12868f605b480522816a9ba > src/tests/containerizer/xfs_quota_tests.cpp > 11dc7f596671d373cd0c9b443a1d217053285a63 > > > Diff: https://reviews.apache.org/r/68401/diff/5/ > > > Testing > ------- > > sudo make check (Fedora 28) > > > Thanks, > > James Peach > >
