How to enable sticky session with Websocket on Apache Version 2.4.6

Solution In Progress - Updated -

Issue

We have a problem with the implementation of load balancing and sticky session in websockets requests. This is our configuration:

Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
<Proxy balancer://websocket>
    BalancerMember ws://x.x.x.x:8081 route=master
    BalancerMember ws://x.x.x.x:8081 route=slave
    ProxySet stickysession=ROUTEID
</Proxy>

Environment

Red Hat Enterprise Linux
- 7.1

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