# Does ClusterIP Session Affinity ClientIP have value?

**URL:** <https://discuss.elastic.co/t/does-clusterip-session-affinity-clientip-have-value/303162>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 25, 2022, 1:13pm UTC](https://discuss.elastic.co/t/does-clusterip-session-affinity-clientip-have-value/303162 "2022-04-25T13:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [April 25, 2022, 1:13pm UTC](https://discuss.elastic.co/t/does-clusterip-session-affinity-clientip-have-value/303162/1 "2022-04-25T13:13:59Z")

</div>

Hi All,

I was wondering if anyone knows if there is any value is using clusterIPs with `sessionAffinity` set to `clientIP`?

My thought here is that since Elasticsearch uses many layers of [caching](https://www.elastic.co/blog/elasticsearch-caching-deep-dive-boosting-query-speed-one-cache-at-a-time), there might be value in having the same clients/queries hit the same node, so that they can take advantage of the caching.

Does this make sense? Has anyone tested this to see if there is any noticeable value is doing something like this?

---

<div class="post-metadata">

**Author:** ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)\
**Post date:** [May 10, 2022, 6:30am UTC](https://discuss.elastic.co/t/does-clusterip-session-affinity-clientip-have-value/303162/2 "2022-05-10T06:30:01Z")

</div>

Hi,

I think this is a question for the Elasticsearch team. From an eck/operator perspective it's hard to assess the pros and cons of such an affinity between the client and an Elasticsearch node. Could you open a topic [here](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6)?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 7, 2022, 6:30am UTC](https://discuss.elastic.co/t/does-clusterip-session-affinity-clientip-have-value/303162/3 "2022-06-07T06:30:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
