How do we handle this for other WebSocket interactions in Knox?

On Tue, Feb 7, 2023 at 4:02 PM Sandeep Moré <[email protected]> wrote:

> Hello Folks,
> I would like to solicit ideas and opinions from the community about HA
> support for Webshell feature.
>
> The problem is as follows:
> Say we have an HA deployment of Apache Knox (Knox Host 1 and Knox Host 2)
> fronted by a LB (nginx or trafik). Say, the LB is distributing requests in
> round robin fashion. When a request comes to Knox Host 1 a Webshell session
> is established. For the next request the LB will route the request to Knox
> host 2 which does not have a Webshell session (at least not this one). This
> causes the Webshell session to fail abruptly.
>
> I am not sure if we can do anything here unless Knox Host 1 is aware of
> Knox Host 2. The solution would be to introduce sticky sessions in LB
> (cookie based or host based).
>
> What are your thoughts?
>
> Best,
> Sandeep
>

Reply via email to