cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why is the sticky session required? (Dynatrace Managed with clustered proxy)

nkobayashi1
Helper

Hi,

According to document, the sticky session is required for the communication between Dynatrace Managed Cluster and Mission Control.

but the proxy must allow web sockets and, if the proxy is clustered, it must provide sticky sessions for web socket communication.
https://www.dynatrace.com/support/help/installati...

Could you tell us why the proxy must provide the sticky session for web socket communication if the proxy is clustered?

Best Regards,
Noah Kobayashi

3 REPLIES 3

BabarQayyum
Leader

Hello Noah,

Below information taken from the internet where sticky session for web socket communications explained.

  • A websocket is an open tcp connection where server or client can send/receive data at any time. The connection is open all time, there is no need to reconnect to a server unless the connection is lost.
  • If a connection is lost, the load balancer would have to implement load balancing at the tcp layer. This is because the websocket protocol does not have metadata (In http and xhr, there are headers send in each request and response). However, websocket connections can be negotiated using http upgrade negotiation.
  • As a result, http specific headers for websockets can be send over http in order to establish a connection, and of course normal http headers and cookies.
  • If a connection is lost, the http upgrade negotiation happens between the load balancer and the browser. The load balancer can therefore use a sticky session cookie in order to send the connection to the correct server.

Regards,

Babar

franz_soengen
Inactive

Hi Noah,

I'm not sure that the documentation is up-to-date here. Dynatrace uses a nginx to manage sticky sessions.

https://www.dynatrace.com/news/blog/session-sticki... (this feature has been GA since 138)

best regards
Franz

Hi Franz,

I checked the article. But it seems that the article says the connection between Web UI and Dynatrace Managed Cluster.
My question is about the communication between Dynatrace Managed Cluster and Mission Control.

Or, it is needed the same requirement for the communication of Web UI and Mission Control?

Best Regards,

Noah Kobayashi