Problem with access.log and when using SMP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with access.log and when using SMP

mikio.kishi
Hi,

I have the following same problem using access_log.

 http://squid-web-proxy-cache.1019090.n4.nabble.com/Problem-with-access-log-and-when-using-SMP-td4668524.html

In that case, does the following "stdio" logging module also become a workaround to solve the issue ?

> stdio Write each log line to disk immediately at the completion of each request.
>       Place: the filename and path to be written.

Regards,
--
Mikio Kishi

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with access.log and when using SMP

Amos Jeffries
Administrator
On 19/12/20 8:07 pm, [hidden email] wrote:
> Hi,
>
> I have the following same problem using access_log.
>

What version of Squid are you using? I thought that problem was solved
long ago.


> In that case, does the following "stdio" logging module also become a
> workaround to solve the issue ?
>

No. That issue is multiple processes trying to write to one disk file.
Only workarounds are writing to different files. Or not using a
file-based module (eg syslog, UDP, TCP) or a daemon that does not output
straight to files (eg the DB one).


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with access.log and when using SMP

mikio.kishi
Hi Amos,

Thank you for your reply.

> What version of Squid are you using? I thought that problem was solved
> long ago.

I'm using squid-3.5. I would like to know which version was solved.
I checked the difference codes of log_file_daemon.cc between squid-3.5 and squid-4.13, 
however could not find out the fixed codes..

Regards,
--
Mikio Kishi

On Sat, Dec 19, 2020 at 5:39 PM Amos Jeffries <[hidden email]> wrote:
On 19/12/20 8:07 pm, [hidden email] wrote:
> Hi,
>
> I have the following same problem using access_log.
>

  What version of Squid are you using? I thought that problem was solved
long ago.

> In that case, does the following "stdio" logging module also become a
> workaround to solve the issue ?
>

No. That issue is multiple processes trying to write to one disk file.
Only workarounds are writing to different files. Or not using a
file-based module (eg syslog, UDP, TCP) or a daemon that does not output
straight to files (eg the DB one).


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users