Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13979990
D15720.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15720.id.diff
View Options
diff --git a/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php b/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
--- a/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
+++ b/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
@@ -78,6 +78,7 @@
'logs' => 'optional list<wild>',
'cluster' => 'optional list<wild>',
'pidfile' => 'string',
+ 'memory.hint' => 'optional int',
));
} catch (Exception $ex) {
throw new PhutilArgumentUsageException(
@@ -508,10 +509,22 @@
return $root.'/support/aphlict/server/aphlict_server.js';
}
+ private function getNodeArgv() {
+ $argv = array();
+
+ $hint = idx($this->configData, 'memory.hint');
+ $hint = nonempty($hint, 256);
+
+ $argv[] = sprintf('--max-old-space-size=%d', $hint);
+
+ return $argv;
+ }
+
private function getStartCommand(array $server_argv) {
return csprintf(
- '%s %s %Ls',
+ '%R %Ls -- %s %Ls',
$this->getNodeBinary(),
+ $this->getNodeArgv(),
$this->getAphlictScriptPath(),
$server_argv);
}
diff --git a/src/docs/user/configuration/notifications.diviner b/src/docs/user/configuration/notifications.diviner
--- a/src/docs/user/configuration/notifications.diviner
+++ b/src/docs/user/configuration/notifications.diviner
@@ -80,6 +80,9 @@
- `cluster`: //Optional list.// A list of cluster peers. This is an advanced
feature.
- `pidfile`: //Required string.// Path to a PID file.
+ - `memory.hint`: //Optional int.// Suggestion to `node` about how much
+ memory to use, via `--max-old-stack-size`. In most cases, this can be
+ left unspecified.
Each server in the `servers` list should be an object with these keys:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 20 2024, 7:46 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712710
Default Alt Text
D15720.id.diff (1 KB)
Attached To
Mode
D15720: Add a "memory.hint" parameter to Aphlict
Attached
Detach File
Event Timeline
Log In to Comment