Bug 52006 - Make MaxClients configurable through UCRV
Make MaxClients configurable through UCRV
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Printserver
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-09-14 11:18 CEST by Christian Völker
Modified: 2021-01-19 16:28 CET (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020090821000259
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 Christian Völker univentionstaff 2020-09-14 11:18:20 CEST
In larger environments it might happen the number of cups clients reach the default value of 100. In this case cups has a somehow unpredictable behavior in throttling other clients. Esspecially in environments with Linux clients the cups-browserd on the clients open connections when booting to discover available printers.

Logfile shows then:
"Max clients reached, holding new connections..."

So the number of MaxClients should be increased then to deal with this issue.

But the /etc/cups/cupsd.conf file has the default value of 100 configured:
#
# MaxClients: controls the maximum number of simultaneous clients that
# will be handled.  Defaults to 100.
#

#MaxClients 100

They are not controlled by an UCRV!

To increase the number customer has to edit the template file or the file directly. Both is not encouraged in case of UCS updates.

So we should have an UCRV which allows to control this setting.
Comment 2 Ingo Steuwer univentionstaff 2020-11-30 09:08:13 CET
We have "local.conf" files for several services to define config options which ar enot changed during updates, isn't there one for cups?
Comment 3 Christian Völker univentionstaff 2020-11-30 10:46:44 CET
Indeed, I was not aware of this possibility. 

I created the file /etc/cups/cupsd.local.conf
AND set the ucr variable:
ucr set  cups/include/local=yes



Now cups is starting with the configured 500 clients.

Ok, can be closed.