मैं डॉकटर कंटेनरों के अंदर एप्लिकेशन बिल्ड चलाने और संसाधन उपयोग आंकड़े इकट्ठा करने की कोशिश कर रहा हूं ।
मैं उदाहरण के लिए उपयोग मेट्रिक्स इकट्ठा कर सकता हूं, उदाहरण के लिए आईडी फोबार के साथ एक कंटेनर के लिए मेमोरी उपयोग विवरण, निरीक्षण करके उबंटू 14.04 होस्ट पर डॉकर चल रहा है:
/sys/fs/cgroups/स्मृति/गोदी श्रमिक/foobar/स्मृति.स्टेट
लेकिन सेंटोस 7 होस्ट पर,'/एसआईएस/एफएस/सीग्रुप/मेमोरी / डॉकर ' निर्देशिका गायब है ।
सेंटोस 7 होस्ट पर कंटेनर विशिष्ट मेमोरी या सीपीयू उपयोग के बारे में कैसे पता करें । धन्यवाद
खैर, पहले आपने गलत वर्तनी की cgroup
:)
चारों ओर पोक करने के बाद, मैंने पाया कि आप क्या देख रहे थे:
# cat /sys/fs/cgroup/memory/system.slice/docker-88018f8043d00669bbf865855ebc8a6ccc93a04ce588111e01d4e63739250340.scope/memory.stat cache 5251072rss 380928rss_huge 0mapped_file 2662400writeback 0swap 0pgpgin 1570pgpgout 195pgfault 344pgmajfault 40inactive_anon 278528active_anon 102400inactive_file 5083136active_file 167936unevictable 0hierarchical_memory_limit 18446744073709551615hierarchical_memsw_limit 18446744073709551615total_cache 5251072total_rss 380928total_rss_huge 0total_mapped_file 2662400total_writeback 0total_swap 0total_pgpgin 1570total_pgpgout 195total_pgfault 344total_pgmajfault 40total_inactive_anon 278528total_active_anon 102400total_inactive_file 5083136total_active_file 167936total_unevictable 0recent_rotated_anon 248recent_rotated_file 41recent_scanned_anon 248recent_scanned_file 1495