# This file is in relaxed JSON format (it allows comments and trailing commas).
#
# All worker pools running on this host must be defined here, specifying
# which logical bus should be used and which services it will run.
#
# In this example two worker pools are defined. These are almost identical,
# but use different backend brokers in order to improve fault tolerance.
#
# Each pool definition must contain the following parameters:
#
# - pool_id : arbitrary identifier of worker pool
# - bus_id : identifier of logical bus used by worker processes
# - workers : a map of worker classes to arbitrary config hashes
#
# To start a the worker pools use the "bkpr" command:
#
# $ ./bkpr --pool "myapp-broker" start
# $ ./bkpr --pool "myapp-A" start
# $ ./bkpr --pool "myapp-B" start
[
{
"pool_id" : "myapp-A",
"bus_id" : "backend-1",
"description" : "pool #1 of MyApp workers",
"workers" : {
"Beekeeper::Service::LogTail::Worker" : { "worker_count" : 1 },
"Beekeeper::Service::Router::Worker" : { "worker_count" : 4 },
"MyApp::Service::Chat::Worker" : { "worker_count" : 4 },
"MyApp::Service::Auth::Worker" : { "worker_count" : 2 },
},
},
{
"pool_id" : "myapp-B",
"bus_id" : "backend-2",
"description" : "pool #2 of MyApp workers",
"workers" : {
"Beekeeper::Service::LogTail::Worker" : { "worker_count" : 1 },
"Beekeeper::Service::Router::Worker" : { "worker_count" : 4 },
"MyApp::Service::Chat::Worker" : { "worker_count" : 4 },
"MyApp::Service::Auth::Worker" : { "worker_count" : 2 },
},
},
{
"pool_id" : "myapp-broker",
"bus_id" : "toybroker",
"description" : "ToyBroker",
"workers" : {},
"use_toybroker" : 1,
},
]