working on redundancy
This commit is contained in:
@@ -51,6 +51,20 @@ config :logger, :console,
|
||||
# Use Jason for JSON parsing in Phoenix
|
||||
config :phoenix, :json_library, Jason
|
||||
|
||||
# Lower the BEAM node-down detection window from the default 60s.
|
||||
# Nodes send ticks every (net_ticktime / 4)s; a node is declared down
|
||||
# after 4 missed ticks (net_ticktime total). 5s means detection in ≤5s.
|
||||
config :kernel, net_ticktime: 2
|
||||
|
||||
# Libcluster — Gossip strategy works for local dev and Docker Compose
|
||||
# (UDP multicast, zero config). Overridden to Kubernetes.DNS in runtime.exs for prod.
|
||||
config :libcluster,
|
||||
topologies: [
|
||||
gossip: [
|
||||
strategy: Cluster.Strategy.Gossip
|
||||
]
|
||||
]
|
||||
|
||||
# Import environment specific config. This must remain at the bottom
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{config_env()}.exs"
|
||||
|
||||
Reference in New Issue
Block a user