The SWC-DB Configuration Properties
Any configuration property, if it is shown for ./program with --help or --help-config, can be a Command Line argument by using it with a prefix -- while Command Line argument is not a cfg-file property .
Configuration Properties by Program & Library:
- The SWC-DB Configurations Library
libswcdb_core_config - The SWC-DB Communications Library
libswcdb_core_comm - The SWC-DB Manager Program
swcdbManager - The SWC-DB Ranger Program
swcdbRanger - The SWC-DB Filesystem Broker Program
swcdbFsBroker - The SWC-DB Broker Program
swcdbBroker - The SWC-DB Thrift Broker Program
swcdbThriftBroker - The SWC-DB Filesystem Library
libswcdb_fs - The SWC-DB Client Library
libswcdb - The SWC-DB Cluster Managing Script-Program
swcdb_cluster
The Initial libswcdb_core_config - Configuration Properties
These properties are the initial settings that applied to any Program using the class SWC::Config::Settings.
Only Command Line argument properties
-
–help / -h
TYPE_BOOLShow the help contents for executing the Program. -
–help-config
TYPE_BOOLShow the help contents with the Program's configuration properties. -
–version / -v
TYPE_BOOLShow version of the Program. -
–debug
TYPE_BOOLa Shortcut to –swc.logging.level=debug .
defaultFalse -
–quiet
TYPE_BOOLMinimal output, logging remains by swc.logging.level .
defaultFalse -
–daemon
TYPE_BOOLStart process in background mode, if Program supports it .
defaultFalse
File Configuration Properties
-
swc.cfg.path
TYPE_STRINGThe path to location of configuration files.
defaultswc.cfg.path=SWC_INSTALL_PREIFX/etc/swcdb/ -
swc.cfg
TYPE_STRINGThe main configuration file, everything begins with this file .
defaultswc.cfg=swc.cfg -
swc.cfg.dyn
TYPE_STRINGSThe main dynamic configuration file.
defaultswc.cfg.dyn= -
swc.logging.path
TYPE_STRINGSThe path of log directories and files,YYYY/MM/DDsub-folders are create on this path.
defaultswc.logging.path=SWC_INSTALL_PREIFX/var/log/swcdb/
The configuration properties applicable for dynamic reloading
-
swc.logging.level
TYPE_ENUM_GThe Logging Level: debug|info|notice|warn|error|crit|alert|fatal.
defaultswc.logging.level=INFO
The Initial Communications libswcdb_core_comm - Configuration Properties
These properties are the initial communication settings that applied to any Program using the Settings::init_comm_options.
Only Command Line argument properties
-
–addr
TYPE_STRINGSThe address(IP-port) to listen on else resolved by hostname with swc.ServiceName.port.
Multiple argument is allowed./program --addr=ADDR-1 --addr=ADDR-2
default--addr= -
–host
TYPE_STRINGThe host:port to resolve, listens on resolved IPv4 + IPv6, swc.ServiceName.port applied if port not specified.
default--host=
File Configuration Properties
-
swc.comm.network.priority
TYPE_STRINGSThe Network Priority Access, By available endpoints of a server, try to establish connection in this priority of a network.recommended priority order:
swc.comm.network.priority = 127.0.0.0/8
swc.comm.network.priority = ::1/128
swc.comm.network.priority = 192.168.0.0/16
swc.comm.network.priority = 1::/64
swc.comm.network.priority = 172.16.0.0/12
swc.comm.network.priority = 10.0.0.0/8
swc.comm.network.priority = fc00::/7default
swc.comm.network.priority -
swc.comm.ssl
TYPE_BOOLwhether to use SSL in communications layer.
defaultswc.comm.ssl=false -
swc.comm.ssl.secure.network
TYPE_STRINGSThe Networks that do not require SSL. To the extend, any network in the local-loop by default is considered a secure network, in a case of Server-IP is equal Client-IP the connection is not upgraded to a secure connection.recommended:
swc.comm.ssl.secure.network = 127.0.0.0/8
swc.comm.ssl.secure.network = ::1/128default
swc.comm.ssl.secure.network= -
swc.comm.ssl.ciphers
TYPE_STRINGThe Ciphers to use, in format of openSSL for one string (delimitted with a colon:).
defaultswc.comm.ssl.ciphers= -
swc.comm.ssl.subject_name
TYPE_STRINGThe Certificate or Cluster's domain-name, if set SRV-CRT is verified.
defaultswc.comm.ssl.subject_name= -
swc.comm.ssl.crt
TYPE_STRINGThe Cluster Certificate file. Filename without slash/dot applied on swc.cfg.path .
defaultswc.comm.ssl.crt=cluster.crt -
swc.comm.ssl.key
TYPE_STRINGThe Server Private-Key file. Filename without slash/dot applied on swc.cfg.path .
defaultswc.comm.ssl.key=cluster.key -
swc.comm.ssl.ca
TYPE_STRINGThe CA, used if set. Filename without slash/dot applied on swc.cfg.path .
defaultswc.comm.ssl.ca=