echoi
October 18, 2024, 4:35am
1
Hi,
I understand I can run multiple processes with the same app via
[processes]
app = 'npm run start'
worker = 'npm run start:worker'
What I would like to learn is how to configure each of them separately. Specifically the vm ram size, scaling options (including metrics), and perhaps the cpu config.
Thanks in advance!
echoi
October 19, 2024, 6:11am
2
I don’t have 100% confidence but this seems to be working for now
app = '###'
primary_region = 'nrt'
swap_size_mb = 512
[processes]
app = 'npm run start'
worker = "npm run start:worker"
[build]
[build.args]
[deploy]
strategy = "bluegreen"
[env]
[services]
processes = ['worker']
max_machines_running = 1
min_machines_running = 1
auto_stop_machines = 'off'
auto_start_machines = true
[http_service]
processes = ['app']
internal_port = 3000
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 1
max_machines_running = 2
[http_service.concurrency]
type = 'requests'
hard_limit = 80
soft_limit = 40
[[http_service.checks]]
name = "app route"
interval = "30s"
timeout = "5s"
grace_period = "10s"
method = "GET"
path = "/resources/healthcheck"
[[http_service.checks]]
name = "api route"
interval = "30s"
timeout = "5s"
grace_period = "10s"
method = "GET"
path = "/api/ping"
[[vm]]
size = 'shared-cpu-1x'
memory_mb = 512
processes=['app']
[[vm]]
size = 'shared-cpu-1x'
memory_mb = 256
processes=['worker']
system
Closed
October 26, 2024, 6:12am
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.