Skip to content
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

Open
dbfancier opened this issue Oct 26, 2022 · 10 comments
Open

How to configure p2p and cache #143

dbfancier opened this issue Oct 26, 2022 · 10 comments

Comments

@dbfancier
Copy link

    > @bengbeng-pp Currently in Alibaba Cloud, only the Function Compute uses trace prefetching, because it's relatively easier for them to record trace. Some business are reluctant to do such a thing.

I think what you need is Cache + P2P distribution. For each of them DADI has an open-source implementation. By setting up a large scale of SSD cluster, you basically distribute / cache every hot piece of data in the network and thus a mighty network filesystem is formed :-)

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)

@beef9999
Copy link
Contributor

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.

@liulanzheng
Copy link
Member

@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.

@dbfancier
Copy link
Author

@beef9999 thanks a lot, I will try this and reply you. and how can I join wechat ?

@dbfancier
Copy link
Author

@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.

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)

@liulanzheng
Copy link
Member

@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.

@dbfancier
Copy link
Author

dbfancier commented Oct 27, 2022

@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

@beef9999
Copy link
Contributor

@dbfancier You can find my email on my homepage.

@liulanzheng
Copy link
Member

@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.

@dbfancier
Copy link
Author

@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!

@qi0523
Copy link

qi0523 commented Apr 1, 2023

@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.

Excuse me, has the detailed document been completed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants