Ticket 10528 - Implementation of jobcomp file combined with logrotate mechanism for file scrolling
Summary: Implementation of jobcomp file combined with logrotate mechanism for file scr...
Status: RESOLVED DUPLICATE of ticket 9264
Alias: None
Product: Slurm
Classification: Unclassified
Component: slurmctld (show other tickets)
Version: 20.02.3
Hardware: Linux Linux
: --- C - Contributions
Assignee: Tim Wickberg
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2020-12-30 23:17 MST by wenjing
Modified: 2020-12-31 00:51 MST (History)
0 users

See Also:
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: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
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 ***