Skip to content

Commit

Permalink
Allow the grains to set our workers and celery count (#87)
Browse files Browse the repository at this point in the history
Ops has optimized on the amount of workers we should have based upon our orca .sls. We should follow this pattern and allow this to updated based upon what ops likes

Where grain is set:
https://github.com/lyft/salt/blob/1308c64f5ab9ae5f735f6e404e6e3aa16a87ab37/salt/grains/core.py#L90-L140

@lyft/command-center @mistercrunch @amalakar @betodealmeida
  • Loading branch information
hughhhh authored and lyft-buildnotify-2 committed Dec 7, 2017
1 parent cbba254 commit c57c0c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops/config/pillar/superset.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
}%}
{% else %}
{% set conf = {
'web_workers': 8,
'celery_workers': 32,
'web_workers': grains.num_cpus,
'celery_workers': grains.num_cpus * 4,
'timeout_sec': 120,
}%}
} %}
{% endif %}

python_executable: python3.6
Expand Down

0 comments on commit c57c0c3

Please sign in to comment.