Add post restore hook as part of restore process
·
338 commits
to 3.11
since this release
PostRestoreHook gets executed once the files are downloaded as part of the restore process, before starting C*.
There are several configurations for PostRestoreHook:
CONFIG_POST_RESTORE_HOOK_ENABLED - indicates if postrestorehook is enabled
CONFIG_POST_RESTORE_HOOK - contains the command with arguments to be executed as part of postrestorehook. Priam would wait for completion of this hook before proceeding to starting C*
CONFIG_POST_RESTORE_HOOK_HEARTBEAT_FILENAME - heartbeat file that postrestorehook emits. Priam keeps a tab on this file to make sure postrestorehook is making progress. Otherwise, a new process of postrestorehook would be spawned (upon killing existing process if still exists)
CONFIG_POST_RESTORE_HOOK_DONE_FILENAME - 'done' file that postrestorehook creates upon completion of execution.
CONFIG_POST_RESTORE_HOOK_TIMEOUT_IN_DAYS - maximum time that Priam should wait before killing the postrestorehook process (if not already complete)