12345678910111213141516171819202122232425262728293031 |
- defmodule FrameworkBenchmarks.Application do
- # See https://hexdocs.pm/elixir/Application.html
- # for more information on OTP Applications
- @moduledoc false
- use Application
- def start(_type, _args) do
- children = [
- {Registry, keys: :unique, name: FrameworkBenchmarks.Registry},
- FrameworkBenchmarks.Repo,
- FrameworkBenchmarks.CachedWorld,
- {Plug.Cowboy,
- scheme: :http,
- plug: FrameworkBenchmarks.Endpoints,
- options: [
- port: 8080,
- protocol_options: [
- max_keepalive: 32768
- ],
- transport_options: [
- max_connections: :infinity,
- num_acceptors: 32768
- ]
- ]}
- ]
- opts = [strategy: :one_for_one, name: FrameworkBenchmarks.Supervisor]
- Supervisor.start_link(children, opts)
- end
- end
|