Re: A question about configuration of "workers.properties"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thomas2004 wrote:
I have 2 questiuons.

I'll just give my opinion on the first one.


1.
I see many examples as follow:
[code]
worker.list=worker1,worker2
# Set properties for worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
# Set properties for worker2
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=8109
[/code]

But can I configure all workers to access the same port as follow?
[code]
worker.list=worker1,worker2
# Set properties for worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
# Set properties for worker2
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=8009
[/code]


What would be the point ?
Normally, the point of having more than one worker, is when you have more than one Tomcat back-ends, and you want to distribute the requests between them (either by load-balancing, or just by selecting one or the other based on the request URL).

If you configure different workers, but all of them point to the same back-end host and port, then all the requests anyway will go to the same Tomcat, and to the same Connector within Tomcat.
It is at best an increase in the overhead.
At worst, by doing this, you probably ruin the mod_jk calculation of how many connections to Tomcat it should manage and keep alive.





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux