New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnAwsCloudEnvironmentCondition slows down application startup #181

Closed
sbuettner opened this Issue Oct 31, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@sbuettner
Contributor

sbuettner commented Oct 31, 2016

The OnAwsCloudEnvironmentCondition leads to calls to AwsCloudEnvironmentCheckUtils.isRunningOnCloudEnvironment() which itself leads to calls to EC2MetadataUtils.getData() even though the application is launched locally. The internal retry mechanism lead to multiple ec2 meta info calls during the launch of the application which increases the startup time heavily:

2016-10-31 15:30:22.353 DEBUG 54185 --- [  restartedMain] c.a.internal.EC2CredentialsUtils         : An IOException occured when connecting to service endpoint: http://169.254.169.254/latest/meta-data/instance-id
 Retrying to connect again.
2016-10-31 15:30:24.359 DEBUG 54185 --- [  restartedMain] c.a.internal.EC2CredentialsUtils         : An IOException occured when connecting to service endpoint: http://169.254.169.254/latest/meta-data/instance-id
 Retrying to connect again.
2016-10-31 15:30:26.363 DEBUG 54185 --- [  restartedMain] c.a.internal.EC2CredentialsUtils         : An IOException occured when connecting to service endpoint: http://169.254.169.254/latest/meta-data/instance-id
 Retrying to connect again.
2016-10-31 15:30:28.367 DEBUG 54185 --- [  restartedMain] c.a.internal.EC2CredentialsUtils         : An IOException occured when connecting to service endpoint: http://169.254.169.254/latest/meta-data/instance-id
 Retrying to connect again.
2016-10-31 15:30:30.373 DEBUG 54185 --- [  restartedMain] c.a.internal.EC2CredentialsUtils         : An IOException occured when connecting to service endpoint: http://169.254.169.254/latest/meta-data/instance-id
 Retrying to connect again.

It would be great to disable/override this process using a property.

@magdenkov

This comment has been minimized.

Show comment
Hide comment
@magdenkov

magdenkov Nov 23, 2016

Having same issue...

magdenkov commented Nov 23, 2016

Having same issue...

@mrtduzgun

This comment has been minimized.

Show comment
Hide comment
@mrtduzgun

mrtduzgun commented Jan 7, 2017

This fixed on aws-sdk v1.11.25. https://github.com/aws/aws-sdk-java/issues/799

aemruli added a commit that referenced this issue Feb 28, 2017

@aemruli aemruli added this to the 1.1.4 milestone Feb 28, 2017

@aemruli aemruli self-assigned this Feb 28, 2017

@aemruli aemruli added the bug label Feb 28, 2017

@aemruli aemruli closed this Feb 28, 2017

aemruli added a commit that referenced this issue Mar 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment