How do I stop mod_jk from assuming a request is idempotent?

Solution Verified - Updated -

Issue

  • If during the sleep I kill the server doing the processing, the request fails over to the other server, which is inappropriate: since the AJP connector cannot assume that the request is idempotent, it must not failover. the only case where it can failover (and it does) is when it tries to send the request to a server, and fails to connect, or fail to send all the bytes of the request.
  • For HTTP request already in-flight and in-process in the JVM of say app node 1, does web server have the intelligence to automatically resubmit and reroute the same HTTP request to app node 2 if app node 1 goes down mid-way before it can send the HTTP response back, all this is handled transparent to the browser session?
  • How can we prevent mod_jk from replaying or duplicating a request after failover?

Environment

  • Internet Information Services (IIS)
    • isapi redirect filter
  • Apache httpd
    • mod_jk

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content