@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1@title Cluster: Daemons
2@group cluster
3
4Configuring Phorge to use multiple daemon hosts.
5
6Overview
7========
8
9You can run daemons on multiple hosts. The advantages of doing this are:
10
11 - you can completely survive the loss of multiple daemon hosts; and
12 - worker queue throughput may improve.
13
14This configuration is simple, but you must configure repositories first. For
15details, see @{article:Cluster: Repositories}.
16
17Since repository hosts must run daemons anyway, you usually do not need to do
18any additional work and can skip this entirely if you have already configured
19multiple repository hosts.
20
21
22Adding Daemon Hosts
23===================
24
25After configuring repositories for clustering, launch daemons on every
26repository host according to the documentation in
27@{article:Cluster: Repositories}. These daemons are necessary: repositories
28will not fetch, update, or synchronize properly without them.
29
30If your repository clustering is redundant (you have at least two repository
31hosts), these daemons are also likely to be sufficient in most cases. If you
32want to launch additional hosts anyway (for example, to increase queue capacity
33for unusual workloads), see "Dedicated Daemon Hosts" below.
34
35
36Dedicated Daemon Hosts
37======================
38
39You can launch additional daemon hosts without any special configuration.
40Daemon hosts must be able to reach other hosts on the network, but do not need
41to run any services (like HTTP or SSH). Simply deploy the Phorge software
42and configuration and start the daemons.
43
44Normally, there is little reason to deploy dedicated daemon hosts. They can
45improve queue capacity, but generally do not improve availability or increase
46resistance to data loss on their own. Instead, consider deploying more
47repository hosts: repository hosts run daemons, so this will increase queue
48capacity but also improve repository availability and cluster resistance.
49
50
51Next Steps
52==========
53
54Continue by:
55
56 - returning to @{article:Clustering Introduction}; or
57 - configuring repositories first with @{article:Cluster: Repositories}.