From b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 31 Jan 2023 19:05:01 -0700 Subject: Elixir cluster! --- config/config.exs | 8 ++++++++ config/prod.exs | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index 44230ae..4d32140 100644 --- a/config/config.exs +++ b/config/config.exs @@ -23,4 +23,12 @@ config :chessh, Web, config :joken, default_signer: "secret" +config :libcluster, + topologies: [ + erlang_hosts_example: [ + strategy: Elixir.Cluster.Strategy.ErlangHosts, + config: [timeout: 30_000] + ] + ] + import_config "#{config_env()}.exs" diff --git a/config/prod.exs b/config/prod.exs index bb12243..15d52a1 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -10,3 +10,11 @@ config :chessh, RateLimits, max_concurrent_user_sessions: 5, player_session_message_burst_ms: 750, player_session_message_burst_rate: 8 + +config :libcluster, + topologies: [ + erlang_hosts_example: [ + strategy: Elixir.Cluster.Strategy.ErlangHosts, + config: [timeout: 30_000] + ] + ] -- cgit v1.2.3-70-g09d2