# Node discovery on ECS FARGATE - nodes see each other but won't join up

**URL:** <https://discuss.elastic.co/t/node-discovery-on-ecs-fargate-nodes-see-each-other-but-wont-join-up/308933>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [July 5, 2022, 3:27pm UTC](https://discuss.elastic.co/t/node-discovery-on-ecs-fargate-nodes-see-each-other-but-wont-join-up/308933 "2022-07-05T15:27:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [July 5, 2022, 3:27pm UTC](https://discuss.elastic.co/t/node-discovery-on-ecs-fargate-nodes-see-each-other-but-wont-join-up/308933/1 "2022-07-05T15:27:56Z")

</div>

I'm running a Service in ECS that has two small elasticsearch tasks. It uses service discovery, so both are registered under A records in Route 53 hosted zones.

I've configured elasticsearch to use the route 53 dns as the `discovery.seed_hosts` value:

```auto
            {
                "value": "elasticsearch.my-ecs-cluster",
                "name": "discovery.seed_hosts"
            },

```

Both are configured as `node.master: true`.

When they start, they seem to be able to find each other, but they won't join up.  
Here's the log from the `ClusterFormationFailureHelper`:

```auto
master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered 
[
    {ip-172-30-1-XX1.ec2.internal}{YHIoQGkeQEmwWYWUl7ga0g}{BQp-GitxRtKLp8LBEWhH8w}{172.30.1.XX1}{172.30.1.XX1:9300}{cdfhilmrstw}, 
    {ip-172-30-1-XX2.ec2.internal}{_b8yDxWuS1GkgM4_iB1wdQ}{BfJYez5ZS3G4-CHzD7QHxQ}{172.30.1.XX2}{172.30.1.XX2:9300}{cdfhilmrstw}
]; 
discovery will continue using [172.30.1.XX2:9300] from hosts providers and 
[{ip-172-30-1-XX1.ec2.internal}{YHIoQGkeQEmwWYWUl7ga0g}{BQp-GitxRtKLp8LBEWhH8w}{172.30.1.XX1}{172.30.1.XX1:9300}{cdfhilmrstw}] 
from last-known cluster state; node term 0, last-accepted version 0 in term 0

```

I can't configure a `cluster.initial_master_nodes` because I don't know what they're represented as until ECS provisions them.

How can I get them both to join up?

Any help appreciated!

---

<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:** [August 2, 2022, 3:28pm UTC](https://discuss.elastic.co/t/node-discovery-on-ecs-fargate-nodes-see-each-other-but-wont-join-up/308933/2 "2022-08-02T15:28:33Z")

</div>

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