Logrotate

Jul 24 00:31:14 turtle logrotate[15914]: error: error running non-shared postrotate script for /var/log/dovecot/mail.debug of ‘/var/log/dovecot/mail.info
Jul 24 00:31:14 turtle logrotate[15914]: /var/log/dovecot/mail.debug
Jul 24 00:31:14 turtle logrotate[15914]: /var/log/dovecot/mail.log’
Jul 24 00:31:15 turtle logrotate[15951]: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-mail.conf line 31: mail_location: Unknown settin>
Jul 24 00:31:15 turtle logrotate[15914]: error: error running non-shared postrotate script for /var/log/dovecot/mail.log of ‘/var/log/dovecot/mail.info
Jul 24 00:31:15 turtle logrotate[15914]: /var/log/dovecot/mail.debug
Jul 24 00:31:15 turtle logrotate[15914]: /var/log/dovecot/mail.log’

ทำไม systemd logrotate มันถึงต้องไปยุ่งอะไรกับ config ของ dovecot ด้วย?

เรารู้

เรารู้ว่าเรารู้บางสิ่งบางอย่าง
เรารู้ว่าเราไม่รู้ในบางเรื่องบางราว
เราไม่รู้ว่าเราไม่รู้
เราไม่รู้ว่าเรารู้

cc6 yabs

root@cc6:~# bash yabs.sh 
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2025-01-01                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Thu Feb 27 04:32:26 PM UTC 2025

Basic System Information:
---------------------------------
Uptime     : 0 days, 0 hours, 20 minutes
Processor  : Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
CPU cores  : 6 @ 2700.000 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM        : 3.8 GiB
Swap       : 1023.0 MiB
Disk       : 471.4 GiB
Distro     : Debian GNU/Linux 12 (bookworm)
Kernel     : 6.1.0-9-amd64
VM Type    : KVM
IPv4/IPv6  : ✔ Online / ❌ Offline

IPv4 Network Information:
---------------------------------
ISP        : Multacom Corporation
ASN        : AS35916 MULTACOM CORPORATION
Host       : TELUS Communications Inc
Location   : Los Angeles, California (CA)
Country    : United States

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/vda1):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 12.54 MB/s    (3.1k) | 195.62 MB/s   (3.0k)
Write      | 12.53 MB/s    (3.1k) | 196.65 MB/s   (3.0k)
Total      | 25.07 MB/s    (6.2k) | 392.28 MB/s   (6.1k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 206.01 MB/s    (402) | 190.55 MB/s    (186)
Write      | 216.96 MB/s    (423) | 203.24 MB/s    (198)
Total      | 422.98 MB/s    (825) | 393.79 MB/s    (384)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
-----           | -----                     | ----            | ----            | ----           
Clouvider       | London, UK (10G)          | 766 Mbits/sec   | 17.6 Mbits/sec  | --             
Eranium         | Amsterdam, NL (100G)      | 651 Mbits/sec   | 386 Mbits/sec   | --             
Uztelecom       | Tashkent, UZ (10G)        | 684 Mbits/sec   | 10.9 Mbits/sec  | --             
Leaseweb        | Singapore, SG (10G)       | 690 Mbits/sec   | busy            | --             
Clouvider       | Los Angeles, CA, US (10G) | 887 Mbits/sec   | 478 Mbits/sec   | --             
Leaseweb        | NYC, NY, US (10G)         | 832 Mbits/sec   | 116 Mbits/sec   | --             
Edgoo           | Sao Paulo, BR (1G)        | 754 Mbits/sec   | 24.1 Mbits/sec  | --             

Geekbench 6 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 436                           
Multi Core      | 1650                          
Full Test       | https://browser.geekbench.com/v6/cpu/10777889

YABS completed in 23 min 7 sec

turtle yabs

$ curl -sL yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2024-06-09                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Wed Sep 11 02:19:34 AM +07 2024

Basic System Information:
---------------------------------
Uptime     : 55 days, 15 hours, 18 minutes
Processor  : Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz
CPU cores  : 1 @ 2294.608 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM        : 960.8 MiB
Swap       : 1024.0 MiB
Disk       : 24.4 GiB
Distro     : Debian GNU/Linux 12 (bookworm)
Kernel     : 6.1.0-23-amd64
VM Type    : KVM
IPv4/IPv6  : ✔ Online / ✔ Online

IPv6 Network Information:
---------------------------------
ISP        : DigitalOcean, LLC
ASN        : AS14061 DigitalOcean, LLC
Host       : Digital Ocean
Location   : Singapore, South West (05)
Country    : Singapore

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/vda1):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 69.03 MB/s   (17.2k) | 268.26 MB/s   (4.1k)
Write      | 69.22 MB/s   (17.3k) | 269.67 MB/s   (4.2k)
Total      | 138.25 MB/s  (34.5k) | 537.93 MB/s   (8.4k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 253.93 MB/s    (495) | 255.90 MB/s    (249)
Write      | 267.42 MB/s    (522) | 272.94 MB/s    (266)
Total      | 521.35 MB/s   (1.0k) | 528.84 MB/s    (515)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
-----           | -----                     | ----            | ----            | ----           
Clouvider       | London, UK (10G)          | 996 Mbits/sec   | 1.35 Gbits/sec  | 167 ms         
Eranium         | Amsterdam, NL (100G)      | 1.70 Gbits/sec  | 2.09 Gbits/sec  | 178 ms         
Uztelecom       | Tashkent, UZ (10G)        | 1.75 Gbits/sec  | 2.91 Gbits/sec  | 189 ms         
Leaseweb        | Singapore, SG (10G)       | 2.01 Gbits/sec  | 9.37 Gbits/sec  | 2.09 ms        
Clouvider       | Los Angeles, CA, US (10G) | 825 Mbits/sec   | 1.18 Gbits/sec  | 182 ms         
Leaseweb        | NYC, NY, US (10G)         | 888 Mbits/sec   | 1.39 Gbits/sec  | 247 ms         
Edgoo           | Sao Paulo, BR (1G)        | busy            | 784 Mbits/sec   | 323 ms         

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
-----           | -----                     | ----            | ----            | ----           
Clouvider       | London, UK (10G)          | 1.03 Gbits/sec  | 1.34 Gbits/sec  | 167 ms         
Eranium         | Amsterdam, NL (100G)      | 1.64 Gbits/sec  | 2.11 Gbits/sec  | 177 ms         
Uztelecom       | Tashkent, UZ (10G)        | 1.39 Gbits/sec  | 1.56 Gbits/sec  | 189 ms         
Leaseweb        | Singapore, SG (10G)       | 2.01 Gbits/sec  | 9.28 Gbits/sec  | 2.41 ms        
Clouvider       | Los Angeles, CA, US (10G) | 871 Mbits/sec   | 1.17 Gbits/sec  | 182 ms         
Leaseweb        | NYC, NY, US (10G)         | 1.09 Gbits/sec  | 1.35 Gbits/sec  | 247 ms         
Edgoo           | Sao Paulo, BR (1G)        | busy            | 862 Mbits/sec   | 329 ms         

Geekbench test failed and low memory was detected. Add at least 1GB of SWAP or use GB4 instead (higher compatibility with low memory systems).

YABS completed in 9 min 16 sec

run psql from docker

docker exec -it postgres su - postgres -c psql
docker exec -it postgres su - postgres -c "psql postgresql://${USERNAME}:${PASSWD}@${SERVERIP}/${DBNAME}"