Packages

A search deployment helper library. Aims to easy deployment and monitoring of distributed Manticore & Sphinx in a Linux environment

Current section

Files

Jump to
khafra_search lib khafra supervisor.ex
Raw

lib/khafra/supervisor.ex

defmodule Khafra.Supervisor do
use Supervisor
def start_link(opts \\ []) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(_opts) do
:syn.add_node_to_scopes([:search_tables])
children = [
Khafra.Scheduler,
Lapin.Supervisor,
Khafra.SearchTable.BatchSupervisor,
Khafra.SearchTable.TableSupervisor,
Khafra.SearchTable.TableObserver
]
Supervisor.init(children, strategy: :one_for_one)
end
end