Bug 34045 - U@S32R2: squid - more auth helpers and URL redirectors by default
U@S32R2: squid - more auth helpers and URL redirectors by default
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Proxy services
UCS@school 4.0 R2
Other Linux
: P5 enhancement (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Sönke Schwardt-Krummrich
Daniel Tröder
:
Depends on: 40093
Blocks: 40091 40092
  Show dependency treegraph
 
Reported: 2014-02-04 12:52 CET by Daniel Orrego
Modified: 2015-12-21 16:28 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Orrego univentionstaff 2014-02-04 12:52:22 CET
By default, squid.conf starts 5 authentication helpers and 5 URL redirector processes. That might not be enough for a school:

---cache.log
 WARNING: All ntlmauthenticator processes are busy.
 WARNING: 10 pending requests queued
 Consider increasing the number of ntlmauthenticator processes in your co
nfig file.
...
 WARNING: All redirector processes are busy.
 WARNING: 5 pending requests queued
 Consider increasing the number of redirector processes in your config file
---


 ucr set squid/ntlmauth/children=50
 ucr set  squid/basicauth/children=50

Since there is not an UCR variable like squid/redirect/children, the change has to be made in the local configuration file:

#---/etc/squid3/local.conf
#...
url_rewrite_children 20
#---

There is an old bug about this: Bug #18456
Comment 1 Michael Grandjean univentionstaff 2015-11-12 11:21:45 CET
This is a problem that occurs quite often in UCS@school, e.g.
2015100121000411
2015093021000646

To be honest, I'm not aware of a productive UCS@school environment that we are involved in, where we did not have to increase this.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-11-12 11:26:38 CET
Which value is usually set in manually configured customer environments?
Comment 3 Michael Grandjean univentionstaff 2015-11-12 11:32:31 CET
(In reply to Sönke Schwardt-Krummrich from comment #2)
> Which value is usually set in manually configured customer environments?

Sorry, I could've mentioned that right away. AFAIR we usually set it to '50'.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-11-26 17:01:47 CET
Prepared erratum for UCS@school 3.2 R2:
ucs-school-webproxy now sets the following UCR variables if still unset:
- squid/rewrite/children?20
- squid/basicauth/children?50
- squid/ntlmauth/children?50
- squid/krb5auth/children?50

Exept for squid/ntlmauth/children all UCR variable should be unset if unmodified.
squid/ntlmauth/children is set to 10 by ucs-school-webproxy in previous versions.
If the UCR variable still holds a value of "10", the UCR variable is updated to 50 automatically.

xml changelog entry has been added

ucs-school-webproxy (10.0.5-1):
r65956 | Bug #34045: increase number of squid helper processes
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2015-11-27 17:53:40 CET
Bug: squid/ntlmauth/children is still set to "10" after update.
Comment 6 Daniel Tröder univentionstaff 2015-11-30 11:36:07 CET
preinst is never called with "$1" = configure: https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-mscriptsinstact
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2015-11-30 13:06:53 CET
ucs-school-webproxy (10.0.5-2):
r65983 | Bug #34045: removed outdated code block that has never been called
r65982 | Bug #34045: automatically raise default of squid/ntlmauth/children to 50
r65956 | Bug #34045: increase number of squid helper processes
Comment 8 Daniel Tröder univentionstaff 2015-11-30 17:43:53 CET
OK: code
OK: result:

root@ucs32:~# ucr search squid/.*/children
squid/basicauth/children: 50
squid/krb5auth/children: 50
squid/ntlmauth/children: 50
squid/rewrite/children: 20

root@ucs32:~# pstree | grep squid
     |-squid3---squid3-+-20*[squidGuard]
     |                 |-50*[squid_ldap_auth]
     |                 |-50*[squid_ldap_ntlm]
Comment 9 Sönke Schwardt-Krummrich univentionstaff 2015-12-21 16:28:09 CET
UCS@school 3.2 R2 v5 has been released.

If this error occurs again, please use "Clone This Bug".