Brief introduction
cloudfoundry is vmvare introduced to the open source PaaS platform, warden is the core part of the container resource management, the allocation of resources to complete a variety of things.
code location: https://github.com/cloudfoundry/warden
This part is what I most want to know details of the place, because in a paas platform, resource isolation is the most valuable part.
Basics
rv = unshare (CLONE_NEWNS);
unshare this call, you can mount the file system is set only in the new mount namespace (mount namespace) is visible.
execvp (argv [0], argv);
execvp () from the PATH environment variable points to the directory to find the file name match the parameter file, find the file after execution, then the second parameter passed to the argv file to be executed.
shopt-s nullglob
nullglob shell environment variables set a value on, nullglob is on for wildcard matching, if the match is not empty (corresponding to a wildcard itself).
int stat (const char * restrict pathname, struct stat * restrict buf);
provide file names for files corresponding attributes.
build-essential packages
role is to provide a list of build-essential packages of information that the compiler With this package, it knows where header files, library functions to know where, but also rely on software download package, and finally form a development environment.
tools debootstrap
can be used in a directory on the system to install a base system, in addition to some of the basic system configuration items, but with ubuntu installation program installs the contents of the first phase of installation is basically the same. This feature has many interesting features, for example, you can get from a customized version of ubuntu Live CD by this command on your hard disk quickly without the need to install ubuntu ubuntu installer can also create on your hard drive Basic system directory as some related to system security services chroot environment, through chroot to that directory and debug, and run some of the possible application to modify the system configuration, as a custom template so small systems.
aufs
a file format that can mount to a directory, while controlling the read-only and read-write.
overlayfs
another file format, after substitution in ubuntu 11.04 livecd aufs as an official document format.
this link: http://www.54chen.com/architecture/cloud-foundry-warden-part1.html
------ Solution ---------- ----------------------------------
highbrow
------ For reference only ---------------------------------------
没有评论:
发表评论