The configurations for the registry is kept in the registry.xml which can be found inside the CARBON_HOME/conf/. You can configure various
parameters of the registry in there. The following sub sections will describe these parameters in details. Note that in order to take effect these parameters,
you have to restart the registry.
Configure Read-Only Registry
To run the registry in read-only mode set the 'readOnly' element to 'true'. Setting the read-only mode allows you to run an immutable instance of registry repository.
Configure Registry Root
In here, you can specify the absolute path of the collection which you wish to use as the root of this registry instance.
Database Configurations
Database configurations for the registry is in the following schema.
maxActive: The maximum number of active connections that can be allocated from this pool at the same time, or negative for no limit.
maxWait: The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before throwing an
exception, or <= 0 to wait indefinitely.
minIdle: The minimum number of active connections that can remain idle in the
pool, without extra ones being created, or 0 to create none.
In parellel you have to configure the user-mgt.xml in the same directory as registry.xml with the custom database settings.
You can find the database configurations for the different databases in the respective installation guides.
You are suppose to change the static configuration section only before loading any data to the registry. (That is before the first startup.)
The following configurations are possible in this section.
versioningProperties - Whether the properties are versioned when a snapshot is created. (Default is true).
versioningComments - Whether the comments are versioned when a snapshot is created. (Default is true).
versioningTags - Whether the tags are versioned when a snapshot is created. (Default is true).
versioningRatings - Whether the ratings are versioned when a snapshot is created. (Default is true).
Configure Auto Versioning Resources
You can configure whether you want to auto-version the resources (non-collection) by setting 'versionResourcesOnChange' element to 'true'. In this configuration it will create
a version for the resources whenever it is updated.