在CentOS上,运行的10个Docker容器性能低下,为什么?

时间:2018-12-17 03:04:53

标签: docker docker-compose centos7

这是CentOS的uname输出:Linux fancy 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

运行统计:

top - 10:55:55 up 1 day, 16:26,  1 user,  load average: 17.36, 16.79, 11.12
Tasks: 361 total,   1 running, 360 sleeping,   0 stopped,   0 zombie
%Cpu(s): 53.5 us, 44.9 sy,  0.0 ni,  1.5 id,  0.0 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem : 16224228 total,  3267432 free, 11645932 used,  1310864 buff/cache
KiB Swap: 16777212 total, 13699584 free,  3077628 used.  4130240 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                
26605 geese      20   0  412084   3488   1000 S 100.0  0.0   2346:47 goodluck                                                                                                                                                             
 2147 root      20   0 1340004 558516   8192 S  22.6  3.4   3:32.31 geese                                                                                                                                                                   
 3993 polkitd   20   0  723856  10460   2436 S  22.3  0.1 179:07.21 polkitd                                                                                                                                                                
 2195 root      20   0 1462556 559512   8164 S  21.9  3.4   3:32.62 geese                                                                                                                                                                   
 2245 root      20   0 1544488 558372   8176 S  21.9  3.4   3:32.97 geese                                                                                                                                                                   
 2419 root      20   0 1544488 560252   8216 S  21.9  3.5   3:32.72 geese                                                                                                                                                                   
 2544 root      20   0 1536288 558264   8028 S  21.6  3.4   3:33.06 geese                                                                                                                                                                   
 2163 root      20   0 1331744 560728   8064 S  21.3  3.5   3:33.77 geese                                                                                                                                                                   
 2558 root      20   0 1413416 560116   7996 S  21.3  3.5   3:33.89 geese                                                                                                                                                                   
 2570 root      20   0 1528348 560096   8132 S  21.3  3.5   3:33.11 geese                                                                                                                                                                   
 2293 root      20   0 1397020 560304   8024 S  20.6  3.5   3:32.32 geese                                                                                                                                                                   
 3042 root      20   0 2227276   1.5g   8736 S  17.9  9.5   3:21.77 geese 

服务器具有4个核心,并且程序geese自上述top命令的快照以来已启动约30分钟。 并且geese由鹅用户终端中的命令sudo docker-compose up -d启动。 接着是原始dockerfile中的示例定义的服务:

geese_host_1:
    image: geese:latest
    networks:
        aita_network:
              ipv4_address: 172.20.0.3
    command: /go/bin/geese
    ports:
      - "10001:9999"
    volumes:
      - ./d1:/root/.geese_basic/log/
    stdin_open: true
    tty: true

0 个答案:

没有答案