[EMAIL PROTECTED] wrote:
> 
> On Tue, 12 Mar 2002, jean-frederic clere wrote:
> 
> > What to do when myvhost is www.apache.org for example...
> > uri."www.apache.org:8888/examples".worker? Using ':' instead of '.' does not
> > solve the problem.
> 
> Sounds good.
> 
> If we use a hierarchical name we also solve the 'type' restriction:
> 
>  worker.ajp13_9009.port=9009
> or
>  worker.ajp13.9009.port=9009
> 
> Each name must start with the type. Quotes can be used for the local part,
> and will be ignored. The local part can be used in the constructor ( I
> mean factory :-) for additional heuristics, to reduce the amount of
> configuration.
> 
>  worker.ajp13."host2.foo:8009"
> or
>  worker.ajp13.host2.foo:8009
> 
> I would still like to have : and uri-style names at least as an option.
> 
> What about using URI for name:
> 
>   ajp13://host.foo:8009/?lbfactor=1
> or
>   ajp13://host.foo:8009/;lbfactor=1
> 
> Even better - .:/_"- are delimiters, the prefix is used to locate the type
> ( it can have one or more components ), the last component is used as
> property. And the property and "=value" are optional - so
> 
> ajp13://host.foo:8009
> 
> will be a valid construct in workers.properties, the name used in
> constructor and all properties with default values.
> 
> If we do that we can simplify the config even more - and eliminate the
> requirement for a worker to be declared in workers.properties. You just
> use a uri for the name, in the JkMount equivalent - and we'll know
> what to do.
> 
> Even more extreme - use full uri, with query strings. We're in a http
> server, we should know how to parse this kind of stuff :-)
> 
> <Location /examples>
>   JkUriSet worker ajp13://tomcat_host.my.com:8009?lbfactor=10&debug=INFO
> </Location>
> 
> And another idea for workers.properties:
> 
> myworker1=ajp13://host.name.com:8009?lbfactor=10&debug=INFO
> 
> In this case the name ( without any delimiter ) will act as a shortcut or
> alias, the RHS will be a URI that will be used in constructor. Both alias
> or the uri can be used in JkMount/JkUriSet/uri properties.

myworker1=
Would be the same as:
myworker1=ajp13://localhost:8009?lbfactor=0&debug=ERROR
(no load balancing and only log error messages).

How to describe AF_UNIX or shared memory (as transport but not protocol)?
myworker1=ajp13://file_name:afsocket?lbfactor=0&debug=ERROR
myworker1=ajp13://key_file:shm?lbfactor=0&debug=ERROR

> 
> More brainstorming ? Should we post this on tomcat-users, to get more
> feedback ?
> 
> Costin
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to