Skip to content
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
15 changes: 10 additions & 5 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ image: kcdragon/community-foundations
# Deploy to these servers.
servers:
web:
- 5.78.199.12
hosts:
- 5.78.199.12
# Cap the container at a single CPU core (renders to `docker run --cpus 1`).
options:
cpus: 1
# job:
# hosts:
# - 192.168.0.1
Expand Down Expand Up @@ -49,11 +53,12 @@ env:
# When you start using multiple servers, you should split out job processing to a dedicated machine.
SOLID_QUEUE_IN_PUMA: true

# Set number of processes dedicated to Solid Queue (default: 1)
# JOB_CONCURRENCY: 3
# Solid Queue is pinned to 1 process and 1 thread in config/queue.yml,
# so JOB_CONCURRENCY is intentionally left unset (no-op).
# JOB_CONCURRENCY: 1

# Set number of cores available to the application on each server (default: 1).
# WEB_CONCURRENCY: 2
# Run a single Puma worker to match the single-CPU limit above (default: 1).
WEB_CONCURRENCY: 1

# Match this to any external database server to configure Active Record correctly
# Use community_foundations-db for a db accessory server on same machine via local kamal docker network.
Expand Down
4 changes: 2 additions & 2 deletions config/queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ default: &default
batch_size: 500
workers:
- queues: "*"
threads: 3
processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %>
threads: 1
processes: 1
polling_interval: 0.1

development:
Expand Down
Loading