[refactor](stats) Persist status of analyze task to FE meta data (#20264)

1. In the past, we use a BE table named `analysis_jobs` to persist the status of analyze jobs/tasks, however there are many flaws such as, if BE crashed analyze job/task would failed however the status of analyze job/task couldn't get updated.
2. Support `DROP ANALYZE JOB [job_id]` to delete analyze job
3. Support `SHOW ANALYZE TASK STATUS [job_id] ` to  get the task status of specific job
4. Restrict the execute condition of auto analyze, only when  the  last execution of auto analyze job finished a while ago could be executed again
5. Support analyze whole DB
This commit is contained in:
AKIRA
2023-06-02 13:33:31 +09:00
committed by GitHub
parent 62c188d9a2
commit e32eba8fdf
47 changed files with 1509 additions and 1139 deletions

View File

@ -1445,7 +1445,7 @@ public class Config extends ConfigBase {
* the system automatically checks the time interval for statistics
*/
@ConfField(mutable = true, masterOnly = true)
public static int auto_check_statistics_in_sec = 300;
public static int auto_check_statistics_in_minutes = 5;
/**
* If this configuration is enabled, you should also specify the trace_export_url.