3 final class PhabricatorPHDConfigOptions
4 extends PhabricatorApplicationConfigOptions
{
6 public function getName() {
10 public function getDescription() {
11 return pht('Options relating to PHD (daemons).');
14 public function getIcon() {
15 return 'fa-pied-piper-alt';
18 public function getGroup() {
22 public function getOptions() {
24 $this->newOption('phd.log-directory', 'string', '/var/tmp/phd/log')
27 pht('Directory that the daemons should use to store log files.')),
28 $this->newOption('phd.taskmasters', 'int', 4)
30 ->setSummary(pht('Maximum taskmaster daemon pool size.'))
33 "Maximum number of taskmaster daemons to run at once. Raising ".
34 "this can increase the maximum throughput of the task queue. The ".
35 "pool will automatically scale down when unutilized.".
37 "If you are running a cluster, this limit applies separately ".
38 "to each instance of `phd`. For example, if this limit is set ".
39 "to `4` and you have three hosts running daemons, the effective ".
40 "global limit will be 12.".
42 "After changing this value, you must restart the daemons. Most ".
43 "configuration changes are picked up by the daemons ".
44 "automatically, but pool sizes can not be changed without a ".
46 $this->newOption('phd.user', 'string', null)
48 ->setSummary(pht('System user to run daemons as.'))
51 'Specify a system user to run the daemons as. Primarily, this '.
52 'user will own the working copies of any repositories that '.
53 'Phabricator imports or manages. This option is new and '.
55 $this->newOption('phd.garbage-collection', 'wild', array())
59 'This option can not be edited from the web UI. Use %s to adjust '.
60 'garbage collector policies.',
61 phutil_tag('tt', array(), 'bin/garbage set-policy')))
62 ->setSummary(pht('Retention policies for garbage collection.'))
65 'Customizes retention policies for garbage collectors.')),