# Logic for active targets list

**URL:** <https://discuss.konghq.com/t/logic-for-active-targets-list/5027>\
**Category:** Questions\
**Created:** [November 29, 2019, 2:05am UTC](https://discuss.konghq.com/t/logic-for-active-targets-list/5027 "2019-11-29T02:05:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![connection\_error](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@connection\_error](https://discuss.konghq.com/u/connection_error)\
**Post date:** [November 29, 2019, 2:05am UTC](https://discuss.konghq.com/t/logic-for-active-targets-list/5027/1 "2019-11-29T02:05:43Z")

</div>

Hello,

I am wondering how Kong manages the list of targets for the upstream.

When I request the list of targets for my upstream (/upstreams/{upstream\_id}/targets), I get back 3 targets all with Weight 100 which is what I would expect- there are 3 active upstream nodes available. When I request all the targets (/upstreams/{upstream\_id}/targets/all) or look in the database I see 9 targets. 3 of these have weight 0 which makes sense given that the docs say that targets are not deleted but rather have the Weight set to 0. However I wonder why there are others with weight 100 still in the list, and why they do show up when requesting the list of active targets?

Deployment is Kong 1.4 + Kubernetes Ingress Controller 0.6.1 running in Kubernetes with Postgres DB.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tieske](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/tieske/32/54_2.png) [@Tieske](https://discuss.konghq.com/u/Tieske)\
**Post date:** [December 2, 2019, 8:47pm UTC](https://discuss.konghq.com/t/logic-for-active-targets-list/5027/2 "2019-12-02T20:47:50Z")

</div>

it is a historic list of changes, so each node can replay the history and create the same balancer in the exact same state (important for consistent hashing). So check the timestamps for each of the targets to see the changes.
