-
Notifications
You must be signed in to change notification settings - Fork 75
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
How to configure p2p and cache #143
Comments
We have provided an implementation of p2p image distribution (https://github.com/data-accelerator/dadi-p2proxy). You are welcome to join slack or wechat group to chat with us, if you have any deployment questions. |
@dbfancier if p2p is used, cache is managed by p2p, so nothing could see in /opt/overlaybd/registry_cache. You can refer to this config file to configure p2p. And @Coldwings is going to write a detailed document. |
@beef9999 thanks a lot, I will try this and reply you. and how can I join wechat ? |
but I still haven't configured p2p, and saw error like this: /root/overlaybd/src/overlaybd/cache/frontend/cached_fs.cpp:47|open:Open source file failed errno=1(Operation not permitted) |
@dbfancier I guess the reason is about authentication config. you may refer to this https://github.com/containerd/overlaybd#credential-config to config auth file for overlaybd-tcmu. If this is not solved, please show me the whole logs. |
@liulanzheng It's useful to correct the content of this file to solve the error, but I still got nothing in cache directory I built the image in following way: buildctl build --frontend=dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=my-image,push=true --export-cache type=inline --import-cache type=registry,ref=my-image did I do somthing wrong? By the way, could you please provide me the way to join the wechat group, I am looking forward to further exchanges with you. thank u |
@dbfancier You can find my email on my homepage. |
@dbfancier First, images have to be converted to overlaybd format. Then this overlaybd image can be run as remote image, on-demand load data can be found in cache directory. Base on the converted overlaybd image, you can build images use our customized buildkit. and for now this customized buildkit need some special configuration, like use containerd-worker-snapshotter to run buildkitd, and need 'oci-mediatypes=true,compression=uncompressed' for output for buildctl. For more details about image conversion and building, please refer to my just written quickstart. you may help to improve this document for the problems you encountered. You can connect to @beef9999 or me through email with your wechat id. |
thanks, your reply helped me a lot! |
Excuse me, has the detailed document been completed? |
Hello,Is there any documentation on how to configure cache and p2p? When I pulled obd format image from registry, I can not see anything from /opt/overlaybd/registry_cache
Originally posted by @dbfancier in #120 (comment)
The text was updated successfully, but these errors were encountered: