What causes Metadata service to be very slow?
Hello,
on a fresh Grizzly deployment, our metadata service is very slow :
$ time curl http://169.254.169.254/2009-04-04/meta-data/instance-id
i-0000000d
real 0m16.295s
user 0m0.012s
sys 0m0.000s
This causes a very long boot time for instances (like 4-5 minutes).
At the moment we are not injecting any file or script, neither we are using cloud-init. Nothing in the logs seems to explain this issue.
What could be the cause of such long delays?
Thanks in advance, Cheers
I'm seeing this as well, except most of the metadata requests come back in 0.3 secs, whereas 3 or 4 of all the ones made by a single boot from a single instance take as long as the above (~8-17 secs). Also noticed that the quicker ones usually only hit once every ~2 seconds, rather than rapid-fire.
As a clarification, I *am* using cloud-init in my environment.
I am seeing the same with a fresh grizzly install. It seems to make no difference whether or not cloud-init is actually being used on the instance in question.
Finally i've abandoned the ec2 metadata and configured the openstack config disk in nova. This solves any slowness at boot. EC2 metadata is still slow, but it's not a problem anymore. Also when using cloud-init data at boot, ec2 metadata becomes so slow that you can wait till 12-13 minutes before booting. So bye-bye EC2, welcome config disk!
Same problem here. Once I removed ec2 from the enabled apis, everything went fine.