Hi, To use jobcomp file to record job information, we need to realize daily regular scrolling of jobcomp file. New records are recorded in new files. We use logrotate mechanism to realize file scrolling, using sigusr2 semaphore in logrotate can make jobcomp file scroll. Modify the code of src/slurmctld/controller.c. static void *_slurmctld_signal_hand(void *no_data) { ... case SIGUSR2: info("Logrotate signal (SIGUSR2) received"); update_logging(); ----add this---- info(" - reinit jobcomp plugin"); g_slurm_jobcomp_init(slurmctld_conf.job_comp_loc); ... }
This is a duplicate of bug 9264. Marking as such, any changes will be tracked through that issue. *** This ticket has been marked as a duplicate of ticket 9264 ***