Commit 3fd1d5580ec33cb230a33fa7ca83fe164d1c7143
1 parent
a7978199
Exists in
master
and in
83 other branches
Set number of workers for colab
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
8 changed files
with
14 additions
and
1 deletions
Show diff stats
config/cdtc/config.yaml
config/dev/config.yaml
config/homologa/config.yaml
... | ... | @@ -17,3 +17,4 @@ external_outgoing_mail_relay: 189.9.150.53 |
17 | 17 | external_outgoing_mail_domain: serpro.gov.br |
18 | 18 | raven_dsn: https://a5e2f92a83774dfc9de66486e0fe970b:1a9229a4e1d2483582144d302fb53115@sentry.tracy.com.br/19 |
19 | 19 | google_analytics_id: 'UA-64206731-3' |
20 | +colab_http_workers: 8 | ... | ... |
config/lappis/config.yaml
config/local/config.yaml
config/prod/config.yaml
cookbooks/colab/recipes/default.rb
... | ... | @@ -47,6 +47,13 @@ execute 'secret-key' do |
47 | 47 | notifies :create, 'template[/etc/colab/settings.yaml]' |
48 | 48 | end |
49 | 49 | |
50 | +template '/etc/sysconfig/colab' do | |
51 | + owner 'root' | |
52 | + group 'root' | |
53 | + mode '0640' | |
54 | + notifies :restart, 'service[colab]' | |
55 | +end | |
56 | + | |
50 | 57 | template '/etc/colab/settings.yaml' do |
51 | 58 | owner 'root' |
52 | 59 | group 'colab' | ... | ... |
... | ... | @@ -0,0 +1 @@ |
1 | +WEB_CONCURRENCY=<%= node['config']['colab_http_workers'] %> | ... | ... |