iriusrisk / GoCD-EC2-Elastic-Agent-Plugin

Plugin for GoCD server that will spin up and shut down EC2 instances as its agent workers on demand
Apache License 2.0
12 stars 12 forks source link

Registration of instances ignores agent registration timeout #21

Open abvm659 opened 2 years ago

abvm659 commented 2 years ago

Hi, we are experiencing issues with agent registration - although the setting of the registration timeout is 10 minutes new agents are being registered after 2 minutes - we can't figure out why it is happening (agents does not show any signs of trouble):

SCHEDULED ON:06 Oct 2022 at 14:25:45 Local Time

[go] Received request to create an instance for accountsetup-cibcapiuat-capi-euw1-prod/94/terraform-plan/1/plan at 2022-10-06 12:26:14 +00:00 [go] Successfully created new instance i-0a35a7463702446d9 in subnet-04dc3a026f7a60375 [go] Received request to create an instance for accountsetup-cibcapiuat-capi-euw1-prod/94/terraform-plan/1/plan at 2022-10-06 12:28:31 +00:00 [go] Successfully created new instance i-083e8552ae6d8422a in subnet-0b699b9098a645415 [go] Job Started: 2022-10-06 12:30:09 UTC ...

This is happening for cca 30% of the runs (for 40 concurrent agents)

Please does anyone have any idea why and how to fix it?

Best Regards, Vojtech Mencl