corda.stateManager heading-link-icon

Configuration schema for the State Manager section. This configures the interactions of the workers with the underlying persistent storage used by the out of process State Manager.

  • type - The type of state manager implementation. This must be set to one of the following values:
    • DATABASE

    If type is set to DATABASE, you should also set the following fields:
    • database - Database settings.
      • jdbc - JDBC settings.
        • directory - The directory that contains the JDBC drivers.
          Default value: /opt/jdbc-driver.
        • driver - The JDBC driver.
          Default value: org.postgresql.Driver.
        • url - The JDBC URL.
          Default value: jdbc:postgresql://state-manager-db:5432/state_manager.
      • pass - The database password.
        • pool - Database pool settings.
          • idleTimeoutSeconds - The maximum time (in seconds) a connection can stay idle in the pool. A value of 0 means that idle connections are never removed from the pool.
            Minimum value: 0.
            Default value: 120.
          • keepAliveTimeSeconds - The interval time (in seconds) in which connections will be tested for aliveness. Connections which are no longer alive are removed from the pool. A value of 0 means this check is disabled.
            Minimum value: 0.
          • maxLifetimeSeconds - The maximum time (in seconds) a connection can stay in the pool, regardless if it has been idle or has been recently used. If a connection is in-use and has reached "maxLifetime" timeout, it will be removed from the pool only when it becomes idle.
            Minimum value: 1.
            Default value: 1800.
          • maxSize - The maximum database pool size.
            Minimum value: 1.
            Default value: 10.
          • minSize - The minimum database pool size. If left null will default to the `max_size` value.
          • validationTimeoutSeconds - The maximum time (in seconds) that the pool will wait for a connection to be validated as alive.
            Minimum value: 1.
            Default value: 5.
        • user - The database user.

          Was this page helpful?

          Thanks for your feedback!

          Chat with us

          Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

          Propose documentation improvements directly

          Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.

          We're sorry this page wasn't helpful. Let us know how we can make it better!

          Chat with us

          Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

          Create an issue

          Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.

          Propose documentation improvements directly

          Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.