# Understanding akka.discovery config - order of endpoints?

**URL:** <https://discuss.akka.io/t/understanding-akka-discovery-config-order-of-endpoints/9768>\
**Category:** Akka Libraries\
**Tags:** akka, akka-cluster, akka-management\
**Created:** [May 16, 2022, 4:56pm UTC](https://discuss.akka.io/t/understanding-akka-discovery-config-order-of-endpoints/9768 "2022-05-16T16:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AND2797](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/and2797/32/2616_2.png) [@AND2797](https://discuss.akka.io/u/AND2797)\
**Post date:** [May 16, 2022, 4:56pm UTC](https://discuss.akka.io/t/understanding-akka-discovery-config-order-of-endpoints/9768/1 "2022-05-16T16:56:15Z")

</div>

Does the order of endpoints mean anything in the akka.discovery config? Below is my config -

```auto
akka.discovery {
  config.services = {
    local-cluster = {
      endpoints = [
        {
          host = "127.0.0.2"
          port = 8560
        }
        {
          host = "127.0.0.1"
          port = 8560
        },
      ]
    }
  }
}

```

I noticed that the server on starting up probes the second endpoint in the list. Is the first endpoint supposed to correspond to itself?

---

<div class="post-metadata">

**Author:** ![Casperlet](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/casperlet/32/2261_2.png) [@Casperlet](https://discuss.akka.io/u/Casperlet)\
**Post date:** [November 13, 2022, 2:45am UTC](https://discuss.akka.io/t/understanding-akka-discovery-config-order-of-endpoints/9768/2 "2022-11-13T02:45:11Z")

</div>

I remember that Akka Cluster Bootstrap should choose the node with the lowest IP address as the seed node.

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [November 23, 2022, 11:13am UTC](https://discuss.akka.io/t/understanding-akka-discovery-config-order-of-endpoints/9768/3 "2022-11-23T11:13:10Z")

</div>

When using discovery for cluster bootstrap the list should include the node itself, but the order is not important.

You can see details of how bootstrap works here:

> **[Akka Cluster Bootstrap • Akka Management](https://doc.akka.io/docs/akka-management/current/bootstrap/index.html#how-it-works)**
>
> Akka Management is a suite of tools for operating Akka Clusters.
