Repository URL to install this package:
| 
      
        
        
        Version: 
        
         
          
          4.2.64-4.2  ▾
        
         | 
# Copyright 2018 TrilioData Inc.
# All Rights Reserved.
from oslo_config import cfg
service_opts = [
    cfg.ListOpt('dmapi_enabled_apis',
                item_type=cfg.types.String(choices=['dmapi',]),
                default=['dmapi', ],
                help="List of APIs to be enabled by default."),
    cfg.ListOpt('dmapi_enabled_ssl_apis',
                default=[],
                help="""
List of APIs with enabled SSL.
Nova provides SSL support for the API servers. enabled_ssl_apis option
allows configuring the SSL support.
"""),
    cfg.StrOpt('dmapi_listen',
               default="0.0.0.0",
               help="""
IP address on which the DM API will listen.
The DM API service listens on this IP address for incoming
requests.
"""),
    cfg.PortOpt('dmapi_listen_port',
               default=8785,
               help="""
Port on which the DM API will listen.
The DM API service listens on this port number for incoming
requests.
"""),
    cfg.IntOpt('dmapi_workers',
               min=1,
               default=16,
               help="""
Number of workers for DM API service. The default will be the number
of CPUs available.
DM API services can be configured to run as multi-process (workers).
This overcomes the problem of reduction in throughput when API request
concurrency increases. DM API service will run in the specified
number of processes.
Possible Values:
* Any positive integer
* None (default value)
"""),
    cfg.IntOpt('service_down_time',
               default=60,
               help="""
Maximum time in seconds since last check-in for up service
Each contego node periodically updates their database status based on the
specified report interval. If the contego node hasn't updated the status
for more than service_down_time, then the contego node is considered down.
"""),
    ]
def register_opts(conf):
    conf.register_opts(service_opts)
def list_opts():
    return {'DEFAULT': service_opts}