diff options
author | Eamonn O'Toole <eamonn.otoole@hp.com> | 2014-04-29 15:04:42 +0100 |
---|---|---|
committer | Eamonn O'Toole <eamonn.otoole@hp.com> | 2014-04-29 17:21:00 +0100 |
commit | bcdafa3831111f334caadd30505f051c81abcb1f (patch) | |
tree | 12cdc6644860e65aced27271e55b5aa295ea4ba1 /swift/obj/auditor.py | |
parent | 032f0bfc7c6754afbad1bf8de7a4a6fde8d5cee0 (diff) | |
download | swift-bcdafa3831111f334caadd30505f051c81abcb1f.tar.gz |
Sleep between object ZBF process forks
We've found that, on fresh systems where the ZBF run completes
almost instantaneously, the Swift logs (syslog by default) get
filled-up with object ZBF scan start and completion messages.
This patch calls self._sleep() between ZBF scan runs to cut-down
on these messages and the related unnecessary ZBF scan runs
without impacting the integrity of the object auditing process.
Change-Id: I057c5ca235467cfa115a7a3d44e21c350900059a
Diffstat (limited to 'swift/obj/auditor.py')
-rw-r--r-- | swift/obj/auditor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/swift/obj/auditor.py b/swift/obj/auditor.py index 177cfe0c5..13d34c18c 100644 --- a/swift/obj/auditor.py +++ b/swift/obj/auditor.py @@ -279,6 +279,8 @@ class ObjectAuditor(Daemon): if self.conf_zero_byte_fps and pid == zbf_pid and \ len(pids) > 1: kwargs['device_dirs'] = override_devices + # sleep between ZBF scanner forks + self._sleep() zbf_pid = self.fork_child(zero_byte_fps=True, **kwargs) pids.append(zbf_pid) pids.remove(pid) |