AutoDiscoverySettings
Este conteúdo não está disponível em sua língua ainda.
Defined in: src/discovery/autoDiscovery.ts:39
Env-driven defaults for the standard production deployment shapes. Recognised environment variables (none required — every layer is optional, the helper returns whatever providers the env supports):
CLUSTER_SEEDS— comma-separated[system@]host:portlist. Strongest signal; if present, theConfigSeedProvideris preferred over the service-discovery layers.CLUSTER_SERVICE_NAME— name of the service whose members are this cluster’s peers. Drives both theKubernetesApiSeedProvider(when running in-pod) and theDnsSeedProvider.CLUSTER_NAMESPACE— K8s namespace. Default:default.KUBERNETES_SERVICE_HOST— set automatically inside every K8s pod; used as the detection signal for adding the K8s-API provider to the chain.
Chain order (first non-empty wins):
CLUSTER_SEEDS(ConfigSeedProvider) — most explicit- K8s API endpoints — service mesh
- DNS resolve of
CLUSTER_SERVICE_NAME— fallback
If none of the env vars are set, the returned provider’s lookup()
resolves to [] — the cluster boots as the first node in a
single-node topology, which is exactly what local dev wants.
Properties
Section titled “Properties”
readonlyoptionalenv?:Record<string,string|undefined>
Defined in: src/discovery/autoDiscovery.ts:49
Optional pre-mapped env lookup — useful for tests that want to
exercise the provider chain without mutating process.env.
Defaults to process.env at call time.
readonlyoptionallog?: (msg,err?) =>void
Defined in: src/discovery/autoDiscovery.ts:51
Logger for individual provider failures. Default: no-op.
Parameters
Section titled “Parameters”string
unknown
Returns
Section titled “Returns”void
readonlyport:number
Defined in: src/discovery/autoDiscovery.ts:43
Cluster remoting port to pair each discovered IP with.
systemName
Section titled “systemName”
readonlysystemName:string
Defined in: src/discovery/autoDiscovery.ts:41
ActorSystem name to stamp on discovered NodeAddresses.