Astarte.DataAccess.Config.autodiscovery_enabled

You're seeing just the function autodiscovery_enabled, go back to Astarte.DataAccess.Config module for more information.
Link to this function

autodiscovery_enabled(namespace \\ nil)

View Source

Specs

autodiscovery_enabled(Skogsra.Env.namespace()) ::
  {:ok, boolean()} | {:error, binary()}

Discover nodes in the same cluster as specified in CASSANDRA_NODES. If your Cassandra instance is outside of your network, enabling the autodiscovery leads to connection failures. Defaults to false.

Calling Astarte.DataAccess.Config.autodiscovery_enabled() will ensure the following:

  • Binding order: [:system, :config]
  • OS environment variable: "CASSANDRA_AUTODISCOVERY_ENABLED"
  • Type: :boolean
  • Default: false
  • Required: false
  • Cached: true