Commit 344faa3ea1885f6a6e919e4311fce6094f7e2e6a

Authored by Antonio Terceiro
1 parent 83c63929

colab: use (CPUs x 2) workers

no need to hardcode numbers
config/cdtc/config.yaml
... ... @@ -12,4 +12,3 @@ relay_hostname: relay.spb.cdtc.unb.br
12 12 relay_ip: 164.41.9.48
13 13 alt_ssh_port: 55555
14 14 from_address: noreply@spb.cdtc.unb.br
15   -colab_http_workers: 4
... ...
config/dev/config.yaml
... ... @@ -16,4 +16,3 @@ alt_ssh_port: 55555
16 16 external_outgoing_mail_domain: serpro.gov.br
17 17 raven_dsn: https://a5e2f92a83774dfc9de66486e0fe970b:1a9229a4e1d2483582144d302fb53115@sentry.tracy.com.br/19
18 18 google_analytics_id: 'UA-64206731-2'
19   -colab_http_workers: 8
... ...
config/homologa/config.yaml
... ... @@ -17,4 +17,3 @@ 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
... ... @@ -12,4 +12,4 @@ relay_hostname: relay.softwarepublico.lappis
12 12 relay_ip: 10.0.0.15
13 13 alt_ssh_port: 5555
14 14 from_address: noreply@softwarepublico.lappis
15   -colab_http_workers: 4
  15 +
... ...
config/local/config.yaml
... ... @@ -13,4 +13,3 @@ relay_ip: 10.10.10.3
13 13 alt_ssh_port: 5555
14 14 from_address: noreply@softwarepublico.dev
15 15 raven_dsn: https://a5e2f92a83774dfc9de66486e0fe970b:1a9229a4e1d2483582144d302fb53115@sentry.tracy.com.br/19
16   -colab_http_workers: 2
... ...
config/prod/config.yaml
... ... @@ -18,4 +18,3 @@ external_outgoing_mail_domain: serpro.gov.br
18 18 raven_dsn: https://4418146896924efe9b73d557f803f047:8a59f39b5f584ff589ecf3dd47faaead@sentry.tracy.com.br/13
19 19 google_analytics_id: 'UA-64206731-1'
20 20 munin_master: 10.21.0.10
21   -colab_http_workers: 16
... ...
cookbooks/colab/templates/colab.erb
1   -WEB_CONCURRENCY=<%= node['config']['colab_http_workers'] %>
  1 +WEB_CONCURRENCY=<%= `nproc`.to_i * 2 %>
... ...