Ticket 10528

Summary: Implementation of jobcomp file combined with logrotate mechanism for file scrolling
Product: Slurm Reporter: wenjing <hwj_0201>
Component: slurmctldAssignee: Tim Wickberg <tim>
Status: RESOLVED DUPLICATE QA Contact:
Severity: C - Contributions    
Priority: ---    
Version: 20.02.3   
Hardware: Linux   
OS: Linux   
Site: -Other- Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description wenjing 2020-12-30 23:17:50 MST
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);
...
}
Comment 1 Tim Wickberg 2020-12-31 00:51:20 MST
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 ***