Testing mysqlxx::PoolWithFailover [#CLICKHOUSE-3167]

This commit is contained in:
Alexey Milovidov 2017-07-28 00:11:57 +03:00
parent aac6b8ed9f
commit 8523d3fc8f

View File

@ -302,8 +302,16 @@ def generate_dictionaries(args):
source_mysql = ''' source_mysql = '''
<mysql> <mysql>
<host>localhost</host> <replica>
<port>3306</port> <priority>1</priority>
<host>127.0.0.1</host>
<port>3333</port> <!-- Wrong port, for testing basic failover to work. -->
</replica>
<replica>
<priority>2</priority>
<host>localhost</host>
<port>3306</port>
</replica>
<user>root</user> <user>root</user>
<password></password> <password></password>
<db>test</db> <db>test</db>