Syncing config file doc page with ENT (#4772)

This commit is contained in:
Shams Asari 2019-02-17 13:30:19 +00:00 committed by Tommy Lillehagen
parent a0705c2940
commit e0121f52ac
2 changed files with 23 additions and 8 deletions

View File

@ -24,7 +24,9 @@ The Corda configuration file uses the HOCON format which is a superset of JSON.
Please do NOT use double quotes (``"``) in configuration keys. Please do NOT use double quotes (``"``) in configuration keys.
Node setup will log ``Config files should not contain " in property names. Please fix: [key]`` as an error when it finds double quotes around keys. Node setup will log ``Config files should not contain " in property names. Please fix: [key]`` as an error when it finds double quotes around keys.
This prevents configuration errors when mixing keys containing ``.`` wrapped with double quotes and without them e.g.: The property ``"dataSourceProperties.dataSourceClassName" = "val"`` in :ref:`reference.conf` would be not overwritten by the property ``dataSourceProperties.dataSourceClassName = "val2"`` in *node.conf*. This prevents configuration errors when mixing keys containing ``.`` wrapped with double quotes and without them e.g.: The property
``"dataSourceProperties.dataSourceClassName" = "val"`` in `Reference.conf`_ would be not overwritten by the property
``dataSourceProperties.dataSourceClassName = "val2"`` in *node.conf*.
By default the node will fail to start in presence of unknown property keys. By default the node will fail to start in presence of unknown property keys.
To alter this behaviour, the ``on-unknown-config-keys`` command-line argument can be set to ``IGNORE`` (default is ``FAIL``). To alter this behaviour, the ``on-unknown-config-keys`` command-line argument can be set to ``IGNORE`` (default is ``FAIL``).
@ -49,13 +51,14 @@ Configuration file fields
.. note :: The available configuration fields are listed below in alphabetic order. .. note :: The available configuration fields are listed below in alphabetic order.
.. _corda-configuration-file-fields:
additionalP2PAddresses additionalP2PAddresses
An array of additional host:port values, which will be included in the advertised NodeInfo in the network map in addition to the :ref:`p2pAddress <corda_configuration_file_p2pAddress>`. An array of additional host:port values, which will be included in the advertised NodeInfo in the network map in addition to the :ref:`p2pAddress <corda_configuration_file_p2pAddress>`.
Nodes can use this configuration option to advertise HA endpoints and aliases to external parties. Nodes can use this configuration option to advertise HA endpoints and aliases to external parties.
*Default:* empty list *Default:* empty list
attachmentContentCacheSizeMegaBytes attachmentContentCacheSizeMegaBytes
Optionally specify how much memory should be used to cache attachment contents in memory. Optionally specify how much memory should be used to cache attachment contents in memory.
@ -100,7 +103,7 @@ custom
*Default:* not defined *Default:* not defined
.. _databaseConfiguration: .. _database_properties_ref:
database database
Database configuration Database configuration
@ -131,9 +134,21 @@ database
*Default:* CorDapp schema creation is controlled with ``initialiseSchema``. *Default:* CorDapp schema creation is controlled with ``initialiseSchema``.
dataSourceProperties dataSourceProperties
This section is used to configure the jdbc connection and database driver used for the nodes persistence. This section is used to configure the JDBC connection and database driver used for the node's persistence.
This is currently the only configuration that has been tested, although in the future full support for other storage layers will be validated. :ref:`Node database <standalone_database_config_examples_ref>` contains example configurations for other database providers.
Currently the defaults in ``/node/src/main/resources/reference.conf`` are as shown in the Reference.conf_ below. To add additional data source properties (for a specific JDBC driver) use the ``dataSource.`` prefix with the property name (e.g. `dataSource.customProperty = value`).
dataSourceClassName
JDBC Data Source class name.
dataSource.url
JDBC database URL.
dataSource.user
Database user.
dataSource.password
Database password.
*Default:* *Default:*
@ -142,7 +157,7 @@ dataSourceProperties
dataSourceClassName = org.h2.jdbcx.JdbcDataSource dataSourceClassName = org.h2.jdbcx.JdbcDataSource
dataSource.url = "jdbc:h2:file:"${baseDirectory}"/persistence;DB_CLOSE_ON_EXIT=FALSE;WRITE_DELAY=0;LOCK_TIMEOUT=10000" dataSource.url = "jdbc:h2:file:"${baseDirectory}"/persistence;DB_CLOSE_ON_EXIT=FALSE;WRITE_DELAY=0;LOCK_TIMEOUT=10000"
dataSource.user = sa dataSource.user = sa
dataSource.password = ""``` dataSource.password = ""
detectPublicIp detectPublicIp
This flag toggles the auto IP detection behaviour. This flag toggles the auto IP detection behaviour.

View File

@ -123,7 +123,7 @@ Notes for development use
When running in dev mode, Hibernate statistics are also available via the Jolkia interface. These are disabled otherwise When running in dev mode, Hibernate statistics are also available via the Jolkia interface. These are disabled otherwise
due to expensive run-time costs. They can be turned on and off explicitly regardless of dev mode via the due to expensive run-time costs. They can be turned on and off explicitly regardless of dev mode via the
``exportHibernateJMXStatistics`` flag on the :ref:`database configuration <databaseConfiguration>`. ``exportHibernateJMXStatistics`` flag on the :ref:`database configuration <database_properties_ref>`.
When starting Corda nodes using Cordformation runner (see :doc:`running-a-node`), you should see a startup message similar to the following: When starting Corda nodes using Cordformation runner (see :doc:`running-a-node`), you should see a startup message similar to the following:
**Jolokia: Agent started with URL http://127.0.0.1:7005/jolokia/** **Jolokia: Agent started with URL http://127.0.0.1:7005/jolokia/**