Using Consul

Note: The information in this section is applicable for an app executable only.

Below is a high-level workflow for using Consul with your Flogo app.

Before you beginYou must have access to Consul.

Set up Consul and understand how Consul is used to store service configuration. For information on Consul, refer to the Consul documentation.

To use Consul to override app properties in your app (properties that were set in Flogo), perform the following steps:

    Procedure
  1. Export your app. For instructions to export an app, see Exporting an App.
  2. Configure key/value pairs in Consul for the app properties whose values that you want to override. At runtime, the app fetches these values from the Consul and uses them to replace the default values that were set in the app.

    Important: When setting up the Key in Consul, make sure that the Key name matches exactly with the corresponding app property name on the Environmental Controls tab on the Data Plane. If the property name does not match exactly, a warning message is displayed, and the app uses the default value for the property that you configured in Flogo.

  3. Set the FLOGO_APP_PROPS_CONSUL environment variable to set the Consul server connection parameters. For more information, see Setting the Consul Connection Parameters.