1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 02:12:41 +01:00
phorge-phorge/src
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
..
aphront Share more HTTPSink code 2012-12-25 06:17:45 -08:00
applications Fix a MetaMTA array_combine() warning 2013-01-08 10:39:49 -08:00
docs Document that ext/mysqli may be used instead of ext/mysql 2013-01-04 12:50:09 -08:00
infrastructure Enable log discard modes for all scripts 2013-01-08 15:54:08 -08:00
view Add the rest of the "Debug/Developer" config group. 2013-01-03 05:48:21 -08:00
__celerity_resource_map__.php Move LDAP config into PHP 2013-01-02 14:04:05 -08:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Port Diviner Core to Phabricator 2013-01-07 14:04:23 -08:00