ExESDBGater.SharedClusterConfig (ex_esdb_gater v0.8.0)

Unified LibCluster configuration to prevent conflicts between ExESDB and ExESDBGater.

This module ensures both applications use identical cluster topology settings, preventing discovery protocol confusion and startup race conditions.

Summary

Functions

Get the cluster port from environment or default.

Get the cluster secret from environment or default.

Get the network interface address from environment or default.

Get the multicast address from environment or default. Uses consistent multicast address (not broadcast).

Returns the unified cluster topology configuration. Both ExESDB and ExESDBGater should use this exact configuration.

Validate the cluster configuration and log any issues.

Functions

cluster_port()

Get the cluster port from environment or default.

cluster_secret()

Get the cluster secret from environment or default.

interface_addr()

Get the network interface address from environment or default.

multicast_addr()

Get the multicast address from environment or default. Uses consistent multicast address (not broadcast).

topology()

Returns the unified cluster topology configuration. Both ExESDB and ExESDBGater should use this exact configuration.

validate_config()

Validate the cluster configuration and log any issues.