大家帮测试一下速度哇
谷歌云 hk 2c2g
forem 支持使用 Ansible 部署到 Fedora CoreOS 上,并且提供了 foremctl 来管理各个服务:
foremctl help
Usage: foremctl {console|deploy|help|rake|restart|start|stat|status|stop|update|version}
console         Open a Rails console
deploy          Updates and deploy the most current version of Forem
help            Show this message
rake            Run a rake task
restart         Restart Forem
start           Start Forem
stats           Show CPU, RAM, Disk IO usage of the Forem containers
status          Show the current running Forem containers
stop            Stop Forem
update          Updates Forem to the lastest container
version         Shows information on the current running version of Forem
查看当前的容器状态:foremctl status
CONTAINER ID  IMAGE                             COMMAND               CREATED       STATUS           PORTS                                     NAMES
51620e45ae43  k8s.gcr.io/pause:3.5                                    2 days ago    Up 2 days ago    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  022a3aed9436-infra
f34f674d1da3  docker.io/darthsim/imgproxy:v2    imgproxy              2 days ago    Up 2 days ago    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-imgproxy
7d81fe28609e  docker.io/library/redis:6.0.1     redis-server --ap...  2 days ago    Up 2 days ago    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-redis
19adb371ec71  docker.io/library/postgres:11     postgres              2 days ago    Up 2 days ago    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-postgresql
3d4505f7af3f  docker.io/library/traefik:2.3.0   traefik               2 days ago    Up 2 days ago    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-traefik
09b888bd3c07  localhost/forem/forem:current     bundle exec rails...  20 hours ago  Up 20 hours ago  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-rails
eef2a2e87f2d  localhost/forem/forem:current     bundle exec sidek...  20 hours ago  Up 20 hours ago  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-worker
6b67dbc005f8  quay.io/forem/openresty:1.17.8.2  /usr/bin/openrest...  20 hours ago  Up 20 hours ago  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-openresty
查看各个容器 CPU 硬盘和内存使用情况:
ID            NAME                CPU %       MEM USAGE / LIMIT  MEM %       NET IO             BLOCK IO           PIDS        CPU TIME       AVG CPU %
09b888bd3c07  forem-rails         2.13%       715MB / 2.058GB    34.75%      282.4MB / 116.2MB  48.35MB / 12.15MB  33          5m50.80484s    2.13%
19adb371ec71  forem-postgresql    8.42%       96.64MB / 2.058GB  4.70%       282.4MB / 116.2MB  43.58MB / 736.2MB  18          2m18.504774s   8.42%
3d4505f7af3f  forem-traefik       6.94%       37.48MB / 2.058GB  1.82%       282.4MB / 116.2MB  50.18MB / 20.48kB  9           1m54.068886s   6.94%
51620e45ae43  022a3aed9436-infra  3.43%       241.7kB / 2.058GB  0.01%       282.4MB / 116.2MB  634.9kB / 0B       1           5.633ms        3.43%
6b67dbc005f8  forem-openresty     2.44%       11.83MB / 2.058GB  0.57%       282.4MB / 116.2MB  16.54MB / 14.17MB  3           4.008399s      2.44%
7d81fe28609e  forem-redis         3.28%       15.59MB / 2.058GB  0.76%       282.4MB / 116.2MB  11.9MB / 680.6MB   5           8m59.481073s   3.28%
eef2a2e87f2d  forem-worker        4.65%       399MB / 2.058GB    19.39%      282.4MB / 116.2MB  8.883MB / 6.447MB  10          12m44.828224s  4.65%
f34f674d1da3  forem-imgproxy      6.90%       25.78MB / 2.058GB  1.25%       282.4MB / 116.2MB  83.83MB / 0B       9           1m53.488443s   6.90%
如果想把 forem 升级到最新版本:foremctl update