https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

--- Comment #7 from Mohsen <dotin.insura...@gmail.com> ---
Thank you for reply.Yesterday I figure out something. When I stop worker the
new cookie is not sending with request, but when I remove the worker from
workers, (Also at least 2 workers should exists) then the cookie would send
with request.

This is my workers.properties:

workers.tomcat_home=$CATALINA_HOME
workers.java_home=$JAVA_HOME

worker.list=status,balancer


worker.node1.port=8009
worker.node1.host=192.168.1.2
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.sticky_session=1

worker.node2.port=8009
worker.node2.host=192.168.1.3
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.sticky_session=1

worker.dummy.activation=S

worker.balancer.type=lb
worker.balancer.balance_workers=node1,node2
worker.balancer.sticky_session=1
worker.balancer.method=B
worker.balancer.session_cookie=AWN
worker.balancer.set_session_cookie=true 
worker.balancer.session_cookie_path=/myapp/

worker.status.type=status



I added dummy worker because at least should exists 2 workers to get new
session cookie when I remove node1 or node2. So when I remove node1 the config
would change to this:
worker.dummy.activation=A
worker.balancer.balance_workers=dummy,node2

I wrote some bash scripts to do all of these steps automatically. So when I
want to update node1 I remove it from workers, add stopped dummy to workers and
update the node1 and do the same for ndoe2 and after all updated I remove dummy
from workers and everything goes well.

This is my server.xml in tomcat also:

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
                maxThreads="750" scheme="https" secure="true" SSLEnabled="true"
                                        maxPostSize="4194304"
SSLProtocol="TLSv1.2" SSLCertificateKeyFile="conf/server.key"
SSLCertificateFile="conf/server.cert"
                                                               
compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla,
traviata"
compressableMimeType="text/html,text/xml,text/css,text/javascript,application/x-javascript,application/javascript">
                                                                       
</Connector>


<Engine name="Catalina" defaultHost="localhost" jvmRoute="node1">

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to