8916384d49
Pool Manager's periodic sync should allow for sync'ing only zone changed in the last N seconds. Change-Id: I0c338500970b840646deb0552d7ab02b1ecf6621 Closes-Bug: 1412598
60 lines
2.8 KiB
Python
60 lines
2.8 KiB
Python
# Copyright 2014 eBay Inc.
|
|
#
|
|
# Author: Ron Rickard <rrickard@ebaysf.com>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
from oslo.config import cfg
|
|
|
|
cfg.CONF.register_group(cfg.OptGroup(
|
|
name='service:pool_manager', title="Configuration for Pool Manager Service"
|
|
))
|
|
|
|
OPTS = [
|
|
cfg.ListOpt('backends', default=[],
|
|
help='List of enabled backend drivers'),
|
|
cfg.IntOpt('workers', default=None,
|
|
help='Number of Pool Manager worker processes to spawn'),
|
|
cfg.StrOpt('pool-id', default='794ccc2c-d751-44fe-b57f-8894c9f5c842',
|
|
help='The ID of the pool managed by this instance of the '
|
|
'Pool Manager'),
|
|
cfg.IntOpt('threshold-percentage', default=100,
|
|
help='The percentage of servers requiring a successful update '
|
|
'for a domain change to be considered active'),
|
|
cfg.IntOpt('poll-timeout', default=30,
|
|
help='The time to wait for a response from a server'),
|
|
cfg.IntOpt('poll-retry-interval', default=2,
|
|
help='The time between retrying to send a request and '
|
|
'waiting for a response from a server'),
|
|
cfg.IntOpt('poll-max-retries', default=3,
|
|
help='The maximum number of times to retry sending a request '
|
|
'and wait for a response from a server'),
|
|
cfg.IntOpt('poll-delay', default=1,
|
|
help='The time to wait before sending the first request '
|
|
'to a server'),
|
|
cfg.BoolOpt('enable-recovery-timer', default=True,
|
|
help='The flag for the recovery timer'),
|
|
cfg.IntOpt('periodic-recovery-interval', default=120,
|
|
help='The time between recovering from failures'),
|
|
cfg.BoolOpt('enable-sync-timer', default=True,
|
|
help='The flag for the sync timer'),
|
|
cfg.IntOpt('periodic-sync-interval', default=300,
|
|
help='The time between synchronizing the servers with Storage'),
|
|
cfg.IntOpt('periodic-sync-seconds', default=None,
|
|
help='Zones Updated within last N seconds will be syncd. Use '
|
|
'None to sync all zones.'),
|
|
cfg.StrOpt('cache-driver', default='sqlalchemy',
|
|
help='The cache driver to use'),
|
|
]
|
|
|
|
cfg.CONF.register_opts(OPTS, group='service:pool_manager')
|