Archive Low memory


This is my first post here. I tried to setup a matomo and use it for 90k websites which has super low traffic(99% with no traffic).
I am having some issue on auto-archive with cron job.

  1. I get low of memory error, I am running on a php 7 and 30GB ram. Also the process run super slow. I saw a post in github, but no solution.
  2. When I move db to differ server, it re-archive everything, any idea?The docs said records are stored in cache, I am wondering whether there is some files that store those data?