Merge "Adjust number of mariadb server pods"

This commit is contained in:
Zuul 2019-04-10 17:16:11 +00:00 committed by Gerrit Code Review
commit 80cd001403
1 changed files with 1 additions and 7 deletions

View File

@ -4,7 +4,6 @@
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.api.controllers.v1 import utils
from sysinv.common import constants
from sysinv.common import exception
from sysinv.openstack.common import log as logging
@ -20,12 +19,7 @@ class MariadbHelm(openstack.OpenstackBaseHelm):
CHART = constants.HELM_CHART_MARIADB
def _num_server_replicas(self):
# For now we want to run with a single mariadb server pod for the
# AIO-DX case.
if utils.is_aio_duplex_system(self.dbapi):
return 1
else:
return self._num_controllers()
return self._num_controllers()
def get_overrides(self, namespace=None):
overrides = {