MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / getHostSticky

Method getHostSticky

scope.go:989–992  ·  view source on GitHub ↗

getHostSticky returns host based on stickiness from cluster. Always returns non-nil.

(sessionId string)

Source from the content-addressed store, hash-verified

987//
988// Always returns non-nil.
989func (c *cluster) getHostSticky(sessionId string) *topology.Node {
990 r := c.getReplicaSticky(sessionId)
991 return r.getHostSticky(sessionId)
992}
993
994// getHost returns least loaded + round-robin host from cluster.
995//

Callers

nothing calls this directly

Calls 2

getReplicaStickyMethod · 0.95
getHostStickyMethod · 0.45

Tested by

no test coverage detected