Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update config for prod fly v2 #629

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 23 additions & 28 deletions deploy/fly/prod.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# fly.toml app configuration file generated for realtime-prod on 2023-08-08T09:07:09-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "realtime-prod"
primary_region = "sea"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []
kill_timeout = "5s"

[experimental]
auto_rollback = true

[deploy]
release_command = "/app/bin/migrate"
Expand All @@ -10,50 +18,37 @@ processes = []
[env]
DNS_NODES = "realtime-prod.internal"
ERL_CRASH_DUMP = "/data/erl_crash.dump"
ERL_CRASH_DUMP_SECONDS = 30

[experimental]
allowed_public_ports = []
auto_rollback = true
ERL_CRASH_DUMP_SECONDS = "30"

[mounts]
source="data_vol"
destination="/data"

[[services]]
protocol = "tcp"
internal_port = 4000
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
# should match :ranch.info max_connections * num_acceptors
hard_limit = 100000
soft_limit = 100000
type = "connections"

[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
handlers = ["tls", "http"]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 100000
soft_limit = 100000

[[services.tcp_checks]]
grace_period = "30s"
interval = "15s"
restart_limit = 6
timeout = "2s"

grace_period = "30s"

[[services.http_checks]]
interval = 10000
interval = "10s"
timeout = "2s"
grace_period = "5s"
method = "get"
path = "/"
protocol = "http"
restart_limit = 0
timeout = 2000
tls_skip_verify = false
[services.http_checks.headers]

2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.19.1",
version: "2.19.2",
elixir: "~> 1.14.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down
Loading