Installing controller service » History » Version 2
Tom Clegg, 06/15/2018 05:35 PM
| 1 | 1 | Tom Clegg | h1. Installing controller service |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Tom Clegg | refs #13497 |
| 4 | |||
| 5 | 1 | Tom Clegg | Add to "upgrading to master" section of doc.arvados.org: |
| 6 | * Create /etc/arvados/config.yml on your API server node, if you haven't already |
||
| 7 | * Add to /etc/arvados/config.yml: <pre><code class="yaml"> |
||
| 8 | Clusters: |
||
| 9 | {your-uuid-prefix}: |
||
| 10 | SystemNodes: |
||
| 11 | *: |
||
| 12 | arvados-controller: |
||
| 13 | Listen: ":9004" # choose a port |
||
| 14 | arvados-api-server: |
||
| 15 | Listen: ":8000" # must match Rails server port in your Nginx config |
||
| 16 | </code></pre> |
||
| 17 | * Install the arvados-controller package on your API server node |
||
| 18 | * Update your Nginx configuration so incoming traffic for $ARVADOS_API_HOST is routed to port 9004 (or whichever port you chose for arvados-controller in your config). |
||
| 19 | ** Add: <pre> |
||
| 20 | upstream arvados-controller { |
||
| 21 | server 127.0.0.1:9004; |
||
| 22 | } |
||
| 23 | </pre> |
||
| 24 | ** Update server section that currently forwards traffic to @http://api@: <pre><code class="diff"> |
||
| 25 | server { |
||
| 26 | listen [your public IP address]:443 ssl; |
||
| 27 | server_name uuid_prefix.your.domain; |
||
| 28 | # ... |
||
| 29 | location / { |
||
| 30 | - proxy_pass http://api; |
||
| 31 | + proxy_pass http://arvados-controller; |
||
| 32 | # ... |
||
| 33 | } |
||
| 34 | } |
||
| 35 | </code></pre> |
||
| 36 | |||
| 37 | Update install docs: |
||
| 38 | * Add arvados-controller to the list of deb/rpm packages to install |
||
| 39 | * Create /etc/arvados/config.yml (as above) |
||
| 40 | * If using systemd, run @systemctl start arvados-controller@ and confirm running status |
||
| 41 | * If not using systemd, set up a supervised service using runit |