summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Harris <rick.harris@rackspace.com>2011-06-09 21:50:34 +0000
committerRick Harris <rick.harris@rackspace.com>2011-06-09 21:50:34 +0000
commit361fd763eb0cf3e62e0184dafd0f4a024e1871f5 (patch)
treec0a48ec45d085610d88d772f49b2856ce7324d40
parente307bf5dd60dc84587f76d88956499ee1f1013fb (diff)
downloadnova-361fd763eb0cf3e62e0184dafd0f4a024e1871f5.tar.gz
nova-361fd763eb0cf3e62e0184dafd0f4a024e1871f5.tar.xz
nova-361fd763eb0cf3e62e0184dafd0f4a024e1871f5.zip
Adding caveat
-rw-r--r--nova/image/glance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 5712215bb..6e058ab2f 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -43,6 +43,10 @@ GlanceClient = utils.import_class('glance.client.Client')
def pick_glance_api_server():
"""Return which Glance API server to use for the request
+ This method provides a very primitive form of load-balancing suitable for
+ testing and sandbox environments. In production, it would be better to use
+ one IP and route that to a real load-balancer.
+
Returns (host, port)
"""
host_port = random.choice(FLAGS.glance_api_servers)