Skip to content

Instantly share code, notes, and snippets.

@maierru
Last active December 13, 2019 13:10
Show Gist options
  • Select an option

  • Save maierru/d4cb7d0124d2eece80bd07b7a51ad31b to your computer and use it in GitHub Desktop.

Select an option

Save maierru/d4cb7d0124d2eece80bd07b7a51ad31b to your computer and use it in GitHub Desktop.
Phoenix (elixir) highload optimization
config :hlcup, HlcupWeb.Endpoint,
load_from_system_env: false,
http: [
ip: {0,0,0,0},
port: 80,
acceptors: 2500,
max_connections: :infinity,
timeout: 2000,
protocol_options: [{:max_keepalive, 20000000},{:timeout, 2000}]
],
url: [host: "travels.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json",
server: true,
root: ".",
version: Application.spec(:hlcup, :vsn)
# remove output
config :logger, compile_time_purge_level: :error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment