Browse Source

Add mysql_enable_ndb option

Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: Iab922500f060ad0304ee61998c4dc1ce323f22f8
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
changes/76/748076/2
ZhongShengping 1 year ago
parent
commit
8a44e06a30
  1. 7
      manifests/api/db.pp
  2. 4
      releasenotes/notes/add_mysql_enable_ndb-option-ba2e78904df15498.yaml
  3. 3
      spec/classes/glance_api_db_spec.rb

7
manifests/api/db.pp

@ -38,6 +38,11 @@
# (Optional) If set, use this value for pool_timeout with SQLAlchemy.
# Defaults to $::os_service_default
#
# [*mysql_enable_ndb*]
# (Optional) If True, transparently enables support for handling MySQL
# Cluster (NDB).
# Defaults to $::os_service_default
#
# DEPRECATED PARAMETERS
#
# [*database_min_pool_size*]
@ -53,6 +58,7 @@ class glance::api::db (
$database_retry_interval = $::os_service_default,
$database_max_overflow = $::os_service_default,
$database_pool_timeout = $::os_service_default,
$mysql_enable_ndb = $::os_service_default,
# DEPRECATED PARAMETERS
$database_min_pool_size = undef,
) {
@ -85,5 +91,6 @@ class glance::api::db (
max_pool_size => $database_max_pool_size_real,
max_overflow => $database_max_overflow_real,
pool_timeout => $database_pool_timeout,
mysql_enable_ndb => $mysql_enable_ndb,
}
}

4
releasenotes/notes/add_mysql_enable_ndb-option-ba2e78904df15498.yaml

@ -0,0 +1,4 @@
---
features:
- |
Add mysql_enable_ndb parameter to select mysql storage engine.

3
spec/classes/glance_api_db_spec.rb

@ -14,6 +14,7 @@ describe 'glance::api::db' do
:retry_interval => '<SERVICE DEFAULT>',
:max_overflow => '<SERVICE DEFAULT>',
:pool_timeout => '<SERVICE DEFAULT>',
:mysql_enable_ndb => '<SERVICE DEFAULT>',
)}
end
@ -28,6 +29,7 @@ describe 'glance::api::db' do
:database_max_pool_size => '11',
:database_max_overflow => '21',
:database_pool_timeout => '21',
:mysql_enable_ndb => true,
}
end
@ -42,6 +44,7 @@ describe 'glance::api::db' do
:retry_interval => '11',
:max_overflow => '21',
:pool_timeout => '21',
:mysql_enable_ndb => true,
)}
end
end

Loading…
Cancel
Save