From: eldy <>
Date: Sun, 16 Nov 2003 05:01:21 +0000 (+0000)
Subject: Updated documentation.
X-Git-Tag: AWSTATS_6_0_BETA~108
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9472c6d3239134ea7aff19f12f6b4d40d19d41ee;p=thirdparty%2FAWStats.git
Updated documentation.
---
diff --git a/docs/awstats_faq.html b/docs/awstats_faq.html
index 1bb6c870..73377319 100644
--- a/docs/awstats_faq.html
+++ b/docs/awstats_faq.html
@@ -544,20 +544,49 @@ postrotate
endscript
}
-The advantage of this solution is that it is easy to setup and the data loss should not be
-significant. You will still forget some of hits that occured after the end of the
-awstats reading log and the apache change of its log target. This times depends on
-time of writing updated awstats database but also time for apache threads to finish and this
-is not same for all apache threads (threads busy or not). So as a conclusion, you will
-loose some hits, but loss should not be significant in most cases.
-What's really wrong is that the HUP signal kill the Apache thread if, after waiting
-few milliseconds, it's still busy. This means that a transaction process might be killed
-and visitor session disconnected.
-Note also that if you have x logrotate config files with each of them a postrotate with a
-kill -HUP, you send a kill x times your server process.
-
-
-
| + | |||
| Step | Description | Step name | Date/Time example |
| A | logrotate is started (by cron) | Start of logrotate | 04:02:00 |
| B |
| Start of awstats | 04:02:01 |
| C |
| 04:02:02 | |
| D |
| 04:05:00 | |
| E |
| End of awstats | 04:06:00 |
| F | logrotate move old log file file.log to a new name file.log.sav. Apache now logs in file.log.new since log file handle has not been changed (only log file name). | Log move | 04:06:01 |
| G | logrotate send the -HUP or -USR1 signal to Apache. With -HUP, Apache immediatly kills all its child process/thread, close log file file.log.sav, and reopen file file.log. So now, ALL hits are written to new file. With -USR1, Apache only ask its child process/thread to stop only when HTTP request will be completely served, but it closes immediatly log file file.log.sav, and reopen file file.log. So only NEW hits are written to new log file. Still running HTTP requests will write in old one. | Apache restart | 04:06:02 |
| H | logrotate start compress the old log file file.log.sav into file.log.gz | Start compress | 04:06:03 |
| I |
If kill -HUP was used, no problem, all process are already restarted. | ||
| J | logrotate has finished to compress log file. File file.log.sav is deleted. | End of compress End of logrotate | 04:07:03 |
| K |
| ||