Most likely cause seems to be that the elastic agent is not registering
with the server within a specified timeout. So the server attempts to
create another elastic agent instance.

Check if the profile supports a timeout configuration and see if you are
able to increase it. Increasing the timeout might give you enough time to
be able to SSH into the instance to determine what's going on. The plugin
seems to expect that your AMI contains a gocd agent installed, it then sets
up some user data
<https://github.com/iriusrisk/GoCD-EC2-Elastic-Agent-Plugin/blob/92e5efd322ac9ae8bc574706e0503060bd1a9015/src/main/java/com/continuumsecurity/elasticagent/ec2/Ec2Instance.java#L73-L89>
to configure the gocd agent, and start up the agent and wait for it to
connect.

- Ketan

On Wed, Jul 13, 2022 at 7:55 PM Satya Elipe <[email protected]> wrote:

> Hi All
>
> I see that, for every 2 mins a new elastic agent is created in contrast to
> my understanding that a single elastic agent comes up and finishes the job
> and vanishes after the job is finished.
>
> Did I miss something?
>
> Many thanks in advance.
> Satya
>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CADKEDRqhicqueq-hwCwdjbtRcVFharVu_bUDKFPSV-_MPamPzQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/go-cd/CADKEDRqhicqueq-hwCwdjbtRcVFharVu_bUDKFPSV-_MPamPzQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAMUPJd7N2FGvHz%3Dp4gw_LX6r4K%3DXBzxKX4sG7GJCwM%3D625%3Dseg%40mail.gmail.com.

Reply via email to