Using Consul

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 storing 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 Enterprise):
    Procedure
  1. Export your app binary from Flogo Enterprise. Refer to Exporting and Importing an App for details on how to export the 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.
  3. Important: When setting up the Key in Consul, make sure that the Key name matches exactly with the corresponding app property name in the Application Properties dialog in Flogo Enterprise. 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 Enterprise.

  4. Set the FLOGO_APP_PROPS_CONSUL environment variable to set the Consul server connection parameters. See Setting the Consul Connection Parameters for details.