Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/tweak consumer node settings #915

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ async function runQueuePublish(options = {}) {
),
{
priority: _messagePriority(reportConfig),
retryLimit: 2,
retryDelay: 10,
retryBackoff: true,
singletonKey: `${appConfig.scriptName}-${agency.agencyName}-${reportConfig.name}`,
},
);
Expand Down
4 changes: 2 additions & 2 deletions manifest.consumer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ applications:
# 1GB is needed right at startup because many child processes are spawned in
# parallel. This could be reduced if we limited the number of simultaneous
# processes.
memory: 384M
memory: 416M
disk_quota: 512M
health-check-type: process
buildpacks:
Expand All @@ -26,7 +26,7 @@ applications:
NEW_RELIC_APP_NAME: ${NEW_RELIC_APP_NAME}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
NODE_ENV: production
NODE_OPTIONS: --max-old-space-size=192
NODE_OPTIONS: --max-old-space-size=312
PGSSLMODE: true
PROXY_USERNAME: ${PROXY_USERNAME}
PROXY_PASSWORD: ${PROXY_PASSWORD}
Expand Down
2 changes: 1 addition & 1 deletion manifest.publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ applications:
# 1GB is needed right at startup because many child processes are spawned in
# parallel. This could be reduced if we limited the number of simultaneous
# processes.
memory: 256M
memory: 192M
disk_quota: 512M
health-check-type: process
buildpacks:
Expand Down