2017-09-24 1 views
1

Google Compute Engine 인스턴스 (f1.micro)를 사용하고 있습니다. google_metadata 프로세스 (Python)가 CPU를 소비하기 때문입니다. (이 Google Cloud Console에서는 "머신 유형으로 전환 고려 : g1-small (vCPU 1 개, 메모리 1.7GB)")을 제안합니다.Google_metadata 프로세스가 Google Compute Engine 인스턴스에서 100 % CPU를 사용합니다.

프로세스가 무엇인지 누구에게 알 수 있습니까?이 상황을 어떻게 해결할 수 있습니까?

top - 14:47:46 up 10 min, 1 user, load average: 1.10, 1.12, 0.70 
Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie 
%Cpu(s): 83.6 us, 16.4 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st 
KiB Mem: 608416 total, 498272 used, 110144 free, 20868 buffers 
KiB Swap:  0 total,  0 used,  0 free. 310984 cached Mem 

    PID USER  PR NI VIRT RES SHR S %CPU %MEM  TIME+ COMMAND          
    744 root  20 0 31416 15452 6188 R 99.9 2.5 8:56.75 google_metadata        
    1 root  20 0 96548 5784 3832 S 0.0 1.0 0:01.07 systemd          
    2 root  20 0  0  0  0 S 0.0 0.0 0:00.00 kthreadd         
    3 root  20 0  0  0  0 S 0.0 0.0 0:00.04 ksoftirqd/0         
    5 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 kworker/0:0H        
    7 root  20 0  0  0  0 S 0.0 0.0 0:00.06 rcu_sched         
    8 root  20 0  0  0  0 S 0.0 0.0 0:00.00 rcu_bh          
    9 root  rt 0  0  0  0 S 0.0 0.0 0:00.00 migration/0         
    10 root  rt 0  0  0  0 S 0.0 0.0 0:00.00 watchdog/0         
    11 root  20 0  0  0  0 S 0.0 0.0 0:00.00 kdevtmpfs         
    12 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 netns          
    13 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 perf          
    14 root  20 0  0  0  0 S 0.0 0.0 0:00.00 khungtaskd         
    15 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 writeback         
    16 root  39 19  0  0  0 S 0.0 0.0 0:00.00 khugepaged         
    17 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 crypto          
    18 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 kintegrityd         
    19 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 bioset          
    20 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 kblockd          
    21 root  0 -20  0  0  0 S 0.0 0.0 0:00.00 ata_sff          
[email protected] ~ $ ps -ef |grep google_metadata 
root  744  1 90 14:37 ?  00:09:01 /usr/bin/python2.7 /usr/lib/python-exec/python2.7/google_metadata_script_runner --script-type startup 

답변

0

Google Compute Engine 가상 머신의 메타 데이터에서 "startup-script"를 실행해야한다는 것이 밝혀졌습니다. 그러나 제 설정에서 시작 스크립트는 계속 실행되어 일부 명령을 계속 실행하며 예기치 않게 높은 CPU 문제가 발생했습니다.

치료에는 오래 실행되는 시작 스크립트가 없어야합니다.

관련 문제