commit 3a761270581d1ac61a3b4669c130d211f1ad5a17
Author: Dan Smith <email address hidden>
Date: Fri Feb 5 10:04:39 2016 -0800
Avoid lazy-loads in metadata requests
The metadata server currently doesn't pre-query for metadata and system_metadata,
which ends up generating *two* lazy-loads on many requests. Since especially
user metadata is almost definitely one of the things an instance is going to fetch
from the metadata server, this is fairly inefficient.
This patch makes us always pre-query the metadata twins when looking up (and
caching) the instance.
Reviewed: https:/ /review. openstack. org/276861 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3a761270581 d1ac61a3b4669c1 30d211f1ad5a17
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3a761270581d1ac 61a3b4669c130d2 11f1ad5a17
Author: Dan Smith <email address hidden>
Date: Fri Feb 5 10:04:39 2016 -0800
Avoid lazy-loads in metadata requests
The metadata server currently doesn't pre-query for metadata and system_metadata,
which ends up generating *two* lazy-loads on many requests. Since especially
user metadata is almost definitely one of the things an instance is going to fetch
from the metadata server, this is fairly inefficient.
This patch makes us always pre-query the metadata twins when looking up (and
caching) the instance.
Change-Id: I8e565b6ce976fc be6194b5960a3eb f2b76a45416
Partial-bug: #1540526