Documentation Center

Storage Layer ConfigRepository section

The ConfigRepository section of the Storage Layer configuration file, cd_storage_conf.xml, configures the storage of the configuration itself.

Overall structure of section

The section has the following basic structure:
<ConfigRepository>
  <Roles>
    <Role>
      <Targets>
        <Target/>
        ...
      </Targets>
      ...
      <Urls>
        <Url/>
        ...
      </Urls>
      ...
    </Role>
    ...
  </Roles>
</ConfigRepository>

ConfigRepository element

This element has the following attributes:
Attribute nameRequired?TypeDescription of value
ServiceURIyesURIThe URL of the Discovery Service endpoint. This endpoint is used as a default source of configuration.
ConnectionTimeoutnointegerThe connection timeout (in milliseconds) for the Discovery Service endpoint
CacheEnablednoBooleanWhether to enable caching of the configuration
CacheExpirationDurationnointegerThe cache expiration period (in seconds)
ServiceAvailabilityChecknoBooleanWhether to disable cache expiration if the service is unavailable
ServiceMonitorPollDurationnointegerThe polling period (in seconds) for the Discovery Service Monitor
ServiceProxyHostNamenostringThe HTTP proxy host for OData client connections
ServiceProxyPortnoshortThe HTTP proxy port for OData client connections
ClientIdnostringThe client ID for the token service
ClientSecretnostringThe client secret for the token service
TokenServiceUrlnostringThe URL of the Token Service

The ConfigRepository element has one optional child section, Roles.

Roles child section

The Roles container element contains zero or more Role child sections, to specify and configure the list of roles enabled for this application. Each Role element has the following attributes:
Attribute nameRequired?TypeDescription of value
NameyesstringThe name of the role
StrategynostringOne of the following values:
DEFAULT
Specifies that this role has one Capability URL, set in the Url attribute. This is the default value if Strategy is not set.
MIRROR
Specifies that this role has multiple Capability URLs, set in the Urls child section
UrlnoURIThe URL of the role
Each Role section can have zero or more of the following:
Targets child section
Each Targets container element has a Name attribute to give this list of Capability targets a name, and zero or more Target child elements for the individual Capability targets. Each Target child item has the following optional string attributes:
Attribute nameDescription of value
NameThe name of the Capability target
UrlThe URL of the Capability target
TrackingUrlThe tracking URL of the Capability target
ActiveThe active status of the Capability target
Urls child section
As explained in the Role attributes table, this container element is only necessary if you have set your Strategy attribute set to the value MIRROR, meaning that the role has multiple Capability URLs. In that scenario, create one Url child element for each Capability URL, and set the URL in its Value attribute. You can also specify a name for the URL in the optional DestinationName attribute.
Property child element
Specify any number of Property elements to specify named properties and their values in each element's Name and Value attributes.