Home > other >  Saltstack cache on the minion end/salt/minion small files under/proc/delete mechanism is what
Saltstack cache on the minion end/salt/minion small files under/proc/delete mechanism is what

Time:09-16

Saltstack service end after each issued task in minion the proc directory will produce a jobID as filename file, the file will be deleted after a period of time, want to know what is this file deletion mechanism, have great god to explain, or related document, or source code to help look at it

CodePudding user response:

Record system pid itself, with promising process to check whether there is a process, or process before it was shut off

CodePudding user response:

Under test minion, I find the proc file every 60 minutes will delete all, even in the process of performing tasks, the implementation of deleting files source can't find where to write

CodePudding user response:

Here introduced the use pid file, save process pid method, the pid can be used to kill the process

https://www.cnblogs.com/f-ck-need-u/p/7524401.html

Estimate your pid file is the startup script generated, but so delete don't know

CodePudding user response:

My jibid file is I use uuid in program production, feeling is the server where timing task give I deleted, saltstack author reply me there is no time to remove files program, https://github.com/saltstack/salt/issues/57486
  • Related