Tune mysql, galera, sqlalchemy backend settings

- Tune MySQL config settings to be more clouds-specific (reads much
  more common, reads:writes rate is 10(100):1)
  * Limit innodb_buffer_pool_size to 10G
  * Update innodb_log_file_size as:
    * If mysql ib_logfiles do not match 25% of innodb_buffer_pool_size (max 2G),
      delete them and update innodb_log_file_size in the config appropriately;
    * Otherwise, use existing ib_logfile0 size to re-evaluate the
      innodb_buffer_pool_size config value to match its real size.
  * Reduce innodb_write_io_threads
  * Use innodb_flush_log_at_trx_commit=2 for HA
  * Raise FD imits to 102400, max connections, open tables limits etc.
- Tune SQLAlchemy backend settings for Openstack (QueuePool related)
- Sync some MySQL+galera class params for MySQL class as well

Closes-bug: #1274784
Implements blueprint: optimize-db-performance-at-scale

Change-Id: I0e843022f04f53150da52858280034aad6aee987
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>