Setting up the Notary Service
In the previous section of this tutorial we set up a Percona cluster.
On top of the Percona XtraDB Cluster we’re deploying three notary worker nodes
a single regular Corda node
node-1 that runs the notary health-check CorDapp.
If you’re deploying VMs in your environment you might need to adjust the host names accordingly.
Below is a template for the notary configuration. Notice the parameters
rewriteBatchedStatements=true&useSSL=false&failOverReadOnly=false of the
JDBC URL. See
Node configuration for a complete reference.
Put the IP address or host name of the nearest Percona server first in the JDBC URL. When running a Percona and a Notary replica on a single machine, list the local IP first.
In addition to the connection to the shared Percona DB holding the notary state, each notary worker needs to have access to its own local node DB. See the dataSourceProperties section in the configuration file.
devMode = truewhen using the bootstrapper.
MySQL JDBC Driver
Each worker node requires a MySQL JDBC driver to be placed in the
drivers directory to be able to communicate with the Percona XtraDB Cluster.
The official driver can be obtained from Maven or the
MySQL Connector/J download page.