1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/infrastructure/env
epriestley cbe9aea876 Enable log discard modes for all scripts
Summary:
Fixes T2273. We currently discard logs, service calls, etc., for daemons, but not for other scripts. However, other scripts may be long-running or issue a large body of service calls (e.g., `bin/search index --all`). We never retrieve this information from scripts (it is used to build darkconsole; in scripts, we echo it immediately under --trace), so discard it immediately to prevent these scripts from requiring a large amount of memory.

(When the daemons load `__init_script__.php` they end up calling this code, so this doesn't change anything for them. They hit another ServiceProfiler discard along the daemon pathways in libphutil, but the call is idempotent.)

Test Plan: Ran `bin/search index --all` and saw increasing memory usage before this patch, but steady memory usage after this patch.

Reviewers: btrahan, vrana, codeblock

Reviewed By: codeblock

CC: aran

Maniphest Tasks: T2273

Differential Revision: https://secure.phabricator.com/D4364
2013-01-08 15:54:08 -08:00
..
__tests__ Formalize configuration sources and source stacks 2012-12-25 06:44:29 -08:00
management Add a local configuration source and a non-environmental ENV config source 2012-12-30 06:16:15 -08:00
PhabricatorConfigDefaultSource.php Show all configuration defaults when editing configuration 2013-01-01 14:10:33 -08:00
PhabricatorConfigDictionarySource.php Formalize configuration sources and source stacks 2012-12-25 06:44:29 -08:00
PhabricatorConfigFileSource.php Formalize configuration sources and source stacks 2012-12-25 06:44:29 -08:00
PhabricatorConfigLocalSource.php Add a local configuration source and a non-environmental ENV config source 2012-12-30 06:16:15 -08:00
PhabricatorConfigProxySource.php Show all configuration defaults when editing configuration 2013-01-01 14:10:33 -08:00
PhabricatorConfigSource.php Show all configuration defaults when editing configuration 2013-01-01 14:10:33 -08:00
PhabricatorConfigStackSource.php Show all configuration defaults when editing configuration 2013-01-01 14:10:33 -08:00
PhabricatorEnv.php Enable log discard modes for all scripts 2013-01-08 15:54:08 -08:00
PhabricatorScopedEnv.php Formalize configuration sources and source stacks 2012-12-25 06:44:29 -08:00