tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56489] New: Include a directory for configuration files
Date Mon, 05 May 2014 12:56:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56489

            Bug ID: 56489
           Summary: Include a directory for configuration files
           Product: Tomcat Connectors
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_jk
          Assignee: dev@tomcat.apache.org
          Reporter: mueller@wave-computer.de

I would like to split workers.properties into different smaller files.
For this instead of 
"JkWorkersFile = /path/to/workers.properties" an option like 
"JkWorkersDir = /path/to/dir/*.conf" would be needed.

In this example, every file in that directory that ends in ".conf" should be
loaded in alphabetical or numerical order.

Files could look like this:
00-templates.conf:
worker.tpl.method=Busyness
worker.tpl.sticky_session=True
worker.tpl.recover_time=20
worker.tpl.type=ajp13
worker.tpl.lbfactor=2
worker.tpl.fail_on_status=500,503
worker.tpl.socket_timeout=0
worker.tpl.connect_timeout=50000

01-host1.mydomain.tld:
worker.host1.reference=worker.tpl
worker.host1.host=host1.mydomain.tld
worker.host1.port=8009
worker.host1.route=host1

02-www.mydomain.tld:
worker.list=www.mydomain.tld
worker.www.mydomain.tld.type=lb
worker.www.mydomain.tld.balance_workers=host1.mydomain.tld

and so on. I think you'll get it.

Reasons for this are:
1) workers.properties gets really big and confusing. Our production config's
got 750 lines right now, and it keeps growing.
Splitting it in smaller files by e.g. domain would be a huge improvement in
terms of complexity.
2) With configuration management tools (e.g. puppet) it's way more easier to
handle seperate files than a single big one. Goal is to auto create all the
stuff.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message