Hello Keylang

Keystone being the auth endpoint for all the Openstack components, it accesses 
the DB(both reads/writes) more often than other components. Given that, we did 
not want to introduce another level of redirection for Keystone token 
creation/queries (VIP goes through HAProxy and load balances into a physical 
MySQL server) and hence used the localhost for MySQL connection.

It is a small optimization, but if you change the connection parameter to 
VIP:33306, it should still work.

Hope that helps!
Ranjeet

From: Dev [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Wednesday, August 26, 2015 1:46 AM
To: dev <[email protected]>
Subject: [opencontrail-dev] the mysql cfg in keystone.conf of openstack ha env 
set to localhost:3306, why not use vip:33306 ?

in keystone-server-setup.sh, there are:

if [ "$INTERNAL_VIP" != "none" ]; then
# Openstack HA specific config
openstack-config --set /etc/keystone/keystone.conf sql connection 
mysql://keystone:keystone@$CONTROLLER:3306/keystone
else
openstack-config --set /etc/keystone/keystone.conf sql connection 
mysql://keystone:[email protected]/keystone
fi




why not use vip:33306 like other component such as nova ?


any help will be appreciated
thx

Keyang Li
________________________________
[email protected]<mailto:[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to