-
Notifications
You must be signed in to change notification settings - Fork 44
Add container info to framework #13
Conversation
Thanks for the PR. :) So, why do you need to add ContainerStatuses into TaskAttemptStatus? |
Thanks for reply ^ _^ yeah , I can locate it by pod when the framework is still running . But after the framework is completed , the pod will be deleted by the frameworkcontroller, then we will lose the container information . |
Yep, this is by design as we have no other choice to stop a running Pod except for deleting it. |
You are right , it is not a good choice to store too many things in ETCD , we store the whole information (config , status , resource usage etc..) of a framework in mysql . When the framework is completed , we will also delete the framework from k8s in rest-server. In my company , we need to supply the container log to user, then container information is necessary. If we can get the container info from TaskAttemptStatus directly , it will be more convenient. Otherwise , we need to sync the info when it is changed ( created , recreated ...), which is complex . Besides, we also need "container id " and "node ip" to supply "docker commit" feature. This PR is just a suggestion :) |
First thanks to try out the frameworkcontroller :)
It seems that 2. can already solve this
Anyway to solve all things, you may need both 1 and 2, and combine them together. For this PR, I still have concerns to store the orignal ContainerStatuses into Framework Status, because it does not totally solve the problem 1 or 2, and the real ground truth ContainerStatuses is in Pod Status, and Framework Status is by design does not store these duplicated info as much as possible. So, I think we can first hold this PR until we have a final design, is that OK? |
yep , it's just a suggestion , we will be happy to see your final design :) |
Thanks for the understanding, will notify you for the final design. |
Hi @yyrdl , please check our final design:
Any comments? :) |
哈哈,谢谢提醒,这样确实解决了问题,挺好的 👍 |
🤝 |
@yyrdl pls refer example for job/pod history in: |
:) thanks |
No description provided.