Write files per second

I want to register visits to my website with a high file visit rate. How many entries in the log file can I execute per second?

+3
source share
8 answers

If you cannot use Google Analytics, why not use the existing logging system on the web server? If you use a real web server, this is almost certainly a signup engine that is already optimized for maximum bandwidth.

Your question cannot be answered in all other respects. The number of possible entries is determined by the hardware, operating system, and competition with other running software.

+8
source

, Google Analytics. , , , , .. , , ..

( ..), AWStats, .

+4

Apache. , AWStats.

+4

, . , , fsync() (, , , ).

, , , / -, (, , , -) : , .

+2

40 /, - . 300 , , 140000 HTTP- , .

, , - , , , , .

+1

, . ( , ) .

. - :

UPDATE stats SET hits = hits + 1

, , .

+1

Apache, rotatelogs, .

, , . "||" .

, , , .

: , Apache, Apache.

Edit: BTW If you really do not need this, do not write bytes, as this causes all kinds of problems around the midnight border.

+1
source

Let Apache do it; Perform analysis in the background.

0
source

Source: https://habr.com/ru/post/1727265/


All Articles