Merge branch 'master' into 9998-no-count-items-available
[arvados.git] / doc / install / install-manual-prerequisites.html.textile.liquid
1 ---
2 layout: default
3 navsection: installguide
4 title: Prerequisites
5 ...
6
7 h2. Hardware (or virtual machines)
8
9 This guide assumes you have seven systems available in the same network subnet:
10
11 <div class="offset1">
12 table(table table-bordered table-condensed).
13 |_Function_|_Number of nodes_|
14 |Arvados API, Crunch dispatcher, Git, Websockets and Workbench|1|
15 |Arvados Compute node|1|
16 |Arvados Keepproxy and Keep-web server|1|
17 |Arvados Keepstore servers|2|
18 |Arvados Shell server|1|
19 |Arvados SSO server|1|
20 </div>
21
22 The number of Keepstore, shell and compute nodes listed above is a minimum. In a real production installation, you will likely run many more of each of those types of nodes. In such a scenario, you would probably also want to dedicate a node to the Workbench server and Crunch dispatcher, respectively. For performance reasons, you may want to run the database server on a separate node as well.
23
24 h2. Supported GNU/Linux distributions
25
26 table(table table-bordered table-condensed).
27 |_Distribution_|_State_|_Last supported version_|
28 |CentOS 7|Supported|Latest|
29 |Debian 8 ("jessie")|Supported|Latest|
30 |Ubuntu 12.04 ("precise")|Supported|Latest|
31 |Ubuntu 14.04 ("trusty")|Supported|Latest|
32 |Debian 7 ("wheezy")|EOL|997479d1408139e96ecdb42a60b4f727f814f6c9 (2016-12-28)|
33 |CentOS 6 |EOL|997479d1408139e96ecdb42a60b4f727f814f6c9 (2016-12-28)|
34
35 h2(#repos). Arvados package repositories
36
37 On any host where you install Arvados software, you'll need to set up an Arvados package repository.  They're available for several popular distributions.
38
39 h3. CentOS
40
41 Packages are available for CentOS 7.  First, register the Curoverse signing key in RPM's database:
42
43 {% include 'install_redhat_key' %}
44
45 Then save this configuration block in @/etc/yum.repos.d/arvados.repo@:
46
47 <notextile>
48 <pre><code>[arvados]
49 name=Arvados
50 baseurl=http://rpm.arvados.org/CentOS/$releasever/os/$basearch/
51 </code></pre>
52 </notextile>
53
54 h3. Debian and Ubuntu
55
56 Packages are available for Debian 8 ("jessie"), Ubuntu 12.04 ("precise"), and Ubuntu 14.04 ("trusty").
57
58 First, register the Curoverse signing key in apt's database:
59
60 {% include 'install_debian_key' %}
61
62 Configure apt to retrieve packages from the Arvados package repository. This command depends on your OS vendor and version:
63
64 table(table table-bordered table-condensed).
65 |OS version|Command|
66 |Debian 8 ("jessie")|<notextile><code><span class="userinput">echo "deb http://apt.arvados.org/ jessie main" &#x7c; sudo tee /etc/apt/sources.list.d/arvados.list</span></code></notextile>|
67 |Ubuntu 12.04 ("precise")|<notextile><code><span class="userinput">echo "deb http://apt.arvados.org/ precise main" &#x7c; sudo tee /etc/apt/sources.list.d/arvados.list</span></code></notextile>|
68 |Ubuntu 14.04 ("trusty")|<notextile><code><span class="userinput">echo "deb http://apt.arvados.org/ trusty main" &#x7c; sudo tee /etc/apt/sources.list.d/arvados.list</span></code></notextile>|
69
70 {% include 'notebox_begin' %}
71
72 Arvados packages for Ubuntu may depend on third-party packages in Ubuntu's "universe" repository.  If you're installing on Ubuntu, make sure you have the universe sources uncommented in @/etc/apt/sources.list@.
73
74 {% include 'notebox_end' %}
75
76 Retrieve the package list:
77
78 <notextile>
79 <pre><code>~$ <span class="userinput">sudo apt-get update</span>
80 </code></pre>
81 </notextile>
82
83 h2. A unique identifier
84
85 Each Arvados installation should have a globally unique identifier, which is a unique 5-character lowercase alphanumeric string. For testing purposes, here is one way to make a random 5-character string:
86
87 <notextile>
88 <pre><code>~$ <span class="userinput">tr -dc 0-9a-z &lt;/dev/urandom | head -c5; echo</span>
89 </code></pre>
90 </notextile>
91
92 You may also use a different method to pick the unique identifier. The unique identifier will be part of the hostname of the services in your Arvados cluster. The rest of this documentation will refer to it as your @uuid_prefix@.
93
94
95 h2. SSL certificates
96
97 There are six public-facing services that require an SSL certificate. If you do not have official SSL certificates, you can use self-signed certificates.
98
99 {% include 'notebox_begin' %}
100
101 Most Arvados clients and services will accept self-signed certificates when the @ARVADOS_API_HOST_INSECURE@ environment variable is set to @true@.  However, web browsers generally do not make it easy for users to accept self-signed certificates from Web sites.
102
103 Users who log in through Workbench will visit at least three sites: the SSO server, the API server, and Workbench itself.  When a browser visits each of these sites, it will warn the user if the site uses a self-signed certificate, and the user must accept it before continuing.  This procedure usually only needs to be done once in a browser.
104
105 After that's done, Workbench includes JavaScript clients for other Arvados services.  Users are usually not warned if these client connections are refused because the server uses a self-signed certificate, and it is especially difficult to accept those cerficiates:
106
107 * JavaScript connects to the Websockets server to provide incremental page updates and view logs from running jobs.
108 * JavaScript connects to the API and Keepproxy servers to upload local files to collections.
109 * JavaScript connects to the Keep-web server to download log files.
110
111 In sum, Workbench will be much less pleasant to use in a cluster that uses self-signed certificates.  You should avoid using self-signed certificates unless you plan to deploy a cluster without Workbench; you are deploying only to evaluate Arvados as an individual system administrator; or you can push configuration to users' browsers to trust your self-signed certificates.
112
113 {% include 'notebox_end' %}
114
115 By convention, we use the following hostname pattern:
116
117 <div class="offset1">
118 table(table table-bordered table-condensed).
119 |_Function_|_Hostname_|
120 |Arvados API|@uuid_prefix@.your.domain|
121 |Arvados Git server|git.@uuid_prefix@.your.domain|
122 |Arvados Keepproxy server|keep.@uuid_prefix@.your.domain|
123 |Arvados Keep-web server|download.@uuid_prefix@.your.domain
124 _and_
125 *.collections.@uuid_prefix@.your.domain or
126 *<notextile>--</notextile>collections.@uuid_prefix@.your.domain or
127 collections.@uuid_prefix@.your.domain (see the "keep-web install docs":install-keep-web.html)|
128 |Arvados SSO Server|auth.your.domain|
129 |Arvados Websockets endpoint|ws.@uuid_prefix@.your.domain|
130 |Arvados Workbench|workbench.@uuid_prefix@.your.domain|
131 </div>