Hi,
WeeWX is running very well. Up-to-date. Archiving record to MySQL-database, 7 million records. Database server created with docker compose, MySQL-config untouched.
I moved the database to a VPS. Created with the same compose file, so database server config is identical. Weewx remained on my host. Restoring the database on VPS took about 15 minutes (acceptable), executed from my host
mysql -uxxx -pxxx -hyyy weewx < weewx.sql (where yyy is IP from VPS)
Now, when I point weewx (still on my host) to the vps database, it sees the database is 6 hours old (time I made the backup) and it catches up. Catching up records is extremely slow, about 1 record every 10 seconds.
I dont understand.
- Full restore from host to vps in 15 minutes (about 7500 records a second).
- Catching up (host to vps) 1 record every 10 seconds.
- Catching up (host to host) 20 records a second (more or less)
Any idea what the issue might be?
Database server specs (host and vps) are identical.
Weewx and all compute remained on my host.
Latency to VPS is very good (about 6ms).
Specs VPS: 1 Core, 2Gb RAM,10Gb storage NVMe. (not great, might upgrade, but first understand this performance difference).
Firewall VPS is irrelevant (did the test with firewall off and on)
Any clues/pointers and I can dig into it. Thanks!