-
Notifications
You must be signed in to change notification settings - Fork 773
[Bug] The behavior of starting Dragonfly project is different with the document #921
Comments
@yeya24 I think we need to find an approach to show "The file has been downloaded successfully by Dragonfly", not only to describe the behavior of log roration in doc. WDYT? |
I agree with you. Do you have any suggestions? I think a way to do this is via dfdaemon. It can expose some information like api to let uses know if one image is successfully downloaded. However, this is architecture-related because currently dfdaemon itself is just a proxy. |
I think we need to define and output necessary info about downloading images through Dragonfly.
We can output related info in the log. That's a simple way. For example, we can process
|
also cc/ @lowzj @fengzixu Thanks for your good idea. In addition, dfdaemon is not only a proxy for the image download requests but also for file download requests actually. |
So adding some output to illustrate status of downloading images in logs is an available solution. Is it right? @starnop |
You mean output this information to the stdout of dfdaemon? I don't think it is readable. When there are multiple dfget requests. |
In fact, there isn't a good idea to solve this problem for me at present. And I will try to find a better solution. And please share your solution here if you have any ideas. @fengzixu @yeya24 @inoc603 @lowzj |
I'm not sure. I think we need to find a way to illustrate the status of downloading images. For end-users, we can let them check images downloaded by Dragonfly through For developers of Dragonfly, illustrating the status of every downloading image is necessary. So we need to think about it more. |
As we have mentioned about combining dfdaemon and dfget to one single binary, I think it is OK to add some apis in dfdaemon later. |
@fengzixu #926 has solved this issue actually.
I totally agree with you. However, as mentioned above, it's almost impossible to get the image download status for Dragonfly itself. And IMOP, we can make it clear using third tools like In addition, dfget will report the metrics to supernode when it success to download a file. So we can get something from supernode:
|
@starnop Just need to revise our doc of QuickStart. :) Let me modify it. |
This reminds me about the docs of monitoring dfget. I haven't add it yet. In order to see the logs , supernode must start in debug mode(-D) |
If I remember correctly, dfdaemon only pass layer data to docker daemon when the whole layer is downloaded. When using |
I totally agree with you. In addition, we will not need to write the file to disk and read it again to dfdaemon, which will reduce the IO pressure of peer node. |
Signed-off-by: Jim Ma <[email protected]>
Ⅰ. Issue Description
The actual download image behavior is inconsistent with the document description
Ⅱ. Describe what happened
I try to use Dragonfly according to document QuickStart
When I performed Step 5, I didn't see any output. After I checked the log file, I found that there is no words
downloading piece
to illustrate the Dragonfly run normally. It seems like that we modify the output of logging in dfclient. But we don't revise the doc at the same time.Ⅲ. Describe what you expected to happen
The actual behavior should be the same as the document.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Just perform every step in that doc.
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
uname -a
):The text was updated successfully, but these errors were encountered: