Bug 40093

Summary: UCS32: squid - add squid/redirect/children
Product: UCS Reporter: Sönke Schwardt-Krummrich <schwardt>
Component: SquidAssignee: Sönke Schwardt-Krummrich <schwardt>
Status: CLOSED FIXED QA Contact: Daniel Tröder <troeder>
Severity: enhancement    
Priority: P5 CC: gohmann, walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 3.2-8-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 34045    

Description Sönke Schwardt-Krummrich univentionstaff 2015-11-24 21:58:30 CET
This bug covers the UCS part of that bug and adds squid/redirect/children via UCS 3.2 erratum of univention-squid.

+++ This bug was initially created as a clone of Bug #34045 +++

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 Sönke Schwardt-Krummrich univentionstaff 2015-11-27 17:49:17 CET
univention-squid (7.0.4-4):
r65955 | Bug #40093: added UCRV squid/redirect/children

univention-squid.yaml:
r65961 | Bug #40093: updated yaml
r65955 | Bug #40093: added UCRV squid/redirect/children

Package has been build in errata3.2-8
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-11-27 17:51:15 CET
squid/rewrite/children is unset by default and defaults to squids default value (5).
Comment 3 Daniel Tröder univentionstaff 2015-11-30 11:25:32 CET
OK: code review
OK: advisory
OK: manual test:

# ucr set squid/rewrite/children=13
# invoke-rc.d squid3 restart
# pstree | grep squid
     |-squid3---squid3-+-13*[squidGuard]       <---- 13
     |                 |-50*[squid_ldap_auth]
     |                 |-10*[squid_ldap_ntlm]

# ucr unset squid/rewrite/children
# invoke-rc.d squid3 restart
# pstree | grep squid
     |-squid3---squid3-+-5*[squidGuard]       <---- 5
     |                 |-50*[squid_ldap_auth]
     |                 |-10*[squid_ldap_ntlm]
Comment 4 Janek Walkenhorst univentionstaff 2015-12-08 12:49:35 CET
<http://errata.software-univention.de/ucs/3.2/387.html>