-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing/retrieving container state #72
Comments
Hi, Just one thought, Instead of using directory structures can a lightweight DB like SQLite be used to store such information. Problems of directory based layout for containers informationTypically, most of containers running on one system do not have very large life, But one single host can have large numbers of containers running. Though there is no problem in extracting information for particular container, but for offline monitoring tools, it becomes difficult to scan through whole list of containers, and read files and make analysis. Drawback of DB:
|
On Wed, Jul 22, 2015 at 04:43:43PM -0700, Mrunal Patel wrote:
I think we need to standardize on the state content and syntax It would make portability between controllers easier if there was a |
On Wed, Jul 22, 2015 at 08:12:46PM -0700, W. Trevor King wrote:
And this seems to be #41. |
To have various implementations of the spec be able to function over the same containers, I think we need to agree on a common state storage. A DB is probably much higher abstraction than we need and arguably overkill. If you're looking to have something that queries containers that frequently, having some daemon as a front makes sense in that case I think. |
@vmarmol Yes, if we want one implementation to work with containers spawned by another, then we need standard. We should decide if it's real case, like spawn container with runc and exec to it with rkt. Because letting implementation to decide how to store and discover state would be much simpler. |
My usecase for this sorta thing has always been something like cAdvisor :) Docker (runc) creates the containers, but cAdvisor discovers and monitors them. |
On Wed, Jul 22, 2015 at 10:03:02PM -0700, Alexander Morozov wrote:
Even if it is a real case, it's still a container-consumer issue, and |
Ideally, runc will enable different container orchestration tools to work seamlessly. Regarding DB, (Just of reference) LXD too have adopted this approach. |
@vmarmol I think now about adding command to binary, which just returns you state to stdout. This will definitely solve tooling problem. Not sure if all would agree about this. |
On Wed, Jul 22, 2015 at 10:48:10PM -0700, Kunal Kushwaha wrote:
I agree that the runC API should provide a consistent way to get the
Can you spell out why container-author's would need to know about how |
@wking I Agree, as far as, hooks or clean method to get state information is available no need to go into storage part. |
I think storing the state information in a |
Having a well-known directory layout is fine with me. However, is the idea that /run/ocf//rootfs a bind mount to somewhere with actual storage? |
I don't htink we should have the rootfs bind mounted into anywhere like |
We need to standardize on how to store/retrieve the state of a running container. runc today allows one to specify an id during invocation and then stores the state of that container under
/var/run/ocf/<id>
.I think we need to agree on a directory and the mechanism if there are any alternate suggestions/ideas.
@crosbymichael @vmarmol @LK4D4 @philips
The text was updated successfully, but these errors were encountered: