Wow, merci à tous pour vos messages, j’essaie de répondre à toutes vos questions.
Une chose peut-être à savoir est que suite au problèmes de lenteur, j’ai doublé la RAM (2 GB à 4 GB) et le Disk (40 GB à 80 GB, qui ne suffisait plus pour mettre à jour le forum, surtout la BDD Postgres).
La procédure d’installation que j’ai suivi à l’origine est ici :
L’hébergement et le prix sont ici :
> df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 11M 385M 3% /run
/dev/disk/by-label/DOROOT 79G 24G 52G 32% /
tmpfs 2.0G 1.1M 2.0G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
cgmfs 100K 0 100K 0% /run/cgmanager/fs
none 79G 24G 52G 32% /var/lib/docker/aufs/mnt/a5ce0a3f449e8491169e3764afa5b46c06651e37dfc4d4960767c210ceee19db
shm 512M 8.0K 512M 1% /var/lib/docker/containers/f3a0053f6fb37c0202ac8dd5b0bcf3aed6176819b9741dce6b2d488671e99b69/mounts/shm
tmpfs 396M 0 396M 0% /run/user/0
J’ai contacté Digital Ocean en premier lieu, voici leur réponse :
As a self-managed provider we do not have the ability to log into your Droplet and gather additional information on this. Our recommendation would be that if you cannot access your Droplet that you powercycle it to hopefully get it to a point where you can at least log into and investigate this.
Once you are able to connect to the Droplet we would recommend that you review your system logs as well as review running processes to get a better idea of why there is a high amount of CPU utilization. Steps on how to review your system logs and monitor running processes and their utilization can be found here:
https://www.digitalocean.com/community/tutorials/how-to-view-and-configure-linux-logs-on-ubuntu-and-centos
https://www.digitalocean.com/community/tutorials/how-to-use-top-netstat-du-other-tools-to-monitor-server-resources
> /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
stepping : 2
microcode : 0x1
cpu MHz : 1797.917
cache size : 30720 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm xsaveopt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
bogomips : 3595.83
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
stepping : 2
microcode : 0x1
cpu MHz : 1797.917
cache size : 30720 KB
physical id : 1
siblings : 1
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm xsaveopt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
bogomips : 3595.83
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
Oui, uniquement Discourse et sa DB.
Non, mais je peux essayer
Effectivement j’ai aussi pensé à ça mais c’est une grosse mise à jour, je suis sûr à 100% que tout se passe bien et ça devient un peu compliqué si y’a un problème pendant la mise à jour.
En ce moment un top
donne :
top - 01:34:11 up 12:38, 1 user, load average: 0.79, 0.85, 0.90
Tasks: 127 total, 3 running, 124 sleeping, 0 stopped, 0 zombie
%Cpu(s): 26.8 us, 4.5 sy, 0.0 ni, 67.0 id, 0.9 wa, 0.0 hi, 0.9 si, 0.0 st
KiB Mem : 4048268 total, 186576 free, 2286964 used, 1574728 buff/cache
KiB Swap: 1048572 total, 960532 free, 88040 used. 451658 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1402 1000 20 0 1739572 350624 9820 S 16.2 8.7 19:06.16 ruby
3410 1000 20 0 1710896 323132 12312 S 12.2 8.0 15:17.55 ruby
1895 1000 20 0 1703216 339204 11076 R 9.2 8.4 17:15.99 ruby
28431 systemd+ 20 0 1286808 496396 482900 S 6.3 12.3 0:30.39 postmaster
26241 systemd+ 20 0 1287660 536176 521812 S 5.0 13.2 0:49.21 postmaster
10462 _apt 20 0 302564 266240 1236 S 3.0 6.6 21:18.85 redis-server
28933 systemd+ 20 0 1280256 447740 438456 S 3.0 11.1 0:31.99 postmaster
7 root 20 0 0 0 0 S 1.7 0.0 12:45.43 rcu_sched
3396 1000 20 0 1696560 326488 11980 S 1.3 8.1 15:51.07 ruby
10484 systemd+ 20 0 1263924 677320 675272 S 1.3 16.7 1:24.66 postmaster
18319 1000 20 0 1744228 362604 11736 S 1.3 9.0 4:13.61 ruby
704 root 20 0 677328 14320 1540 S 1.0 0.4 7:34.32 dockerd
10477 www-data 20 0 83100 4196 2024 S 1.0 0.1 4:37.85 nginx
8 root 20 0 0 0 0 R 0.7 0.0 4:36.81 rcuos/0
9 root 20 0 0 0 0 S 0.7 0.0 5:17.70 rcuos/1
769 root 20 0 500656 7216 1292 S 0.7 0.2 5:11.17 docker-containe
27088 systemd+ 20 0 1286668 559684 546212 S 0.7 13.8 0:52.35 postmaster
31449 root 20 0 41812 1928 1348 R 0.7 0.0 0:00.07 top
> sar -d
Cannot open /var/log/sysstat/sa04: No such file or directory
Please check if data collecting is enabled