19961: Save separate preemptionNotice key in runtime_status.
[arvados.git] / doc / install / salt-single-host.html.textile.liquid
index 7a191c47662058dbff7e9b7297ea013a45b642ab..28a03a9c553ae37ab51df01c2a7e575b344b41f7 100644 (file)
@@ -20,8 +20,8 @@ SPDX-License-Identifier: CC-BY-SA-3.0
 # "Configure your authentication provider":#authentication
 # "Further customization of the installation":#further_customization
 # "Begin installation":#installation
-# "Confirm the cluster is working":#test-install
 # "Install the CA root certificate":#ca_root_certificate
+# "Confirm the cluster is working":#test-install
 # "Initial user and login":#initial_user
 # "After the installation":#post_install
 
@@ -29,26 +29,26 @@ h2(#limitations). Limitations of the single host install
 
 *NOTE: The single host installation is a good choice for evaluating Arvados, but it is not recommended for production use.*
 
-Using the default configuration, has a number of limitations:
+Using the default configuration, the single host install has scaling limitations compared to a production multi-host install:
 
-* All services run on the same machine, and they will compete for resources. This includes any compute jobs.
-* It uses the local machine disk for Keep storage (under the @/tmp@ directory). There may not be a lot of space available.
-* It installs the @crunch-dispatch-local@ dispatcher, which has a limit of eight concurrent jobs. These jobs will be executed on the same machine that runs all the Arvados services may compete for resources.
+* It uses the local disk for Keep storage (under the @/var/lib/arvados@ directory).
+* It uses the @crunch-dispatch-local@ dispatcher, which has a limit of eight concurrent jobs.
+* Because jobs and Arvados services all run on the same machine, they will compete for CPU/RAM resources.
 
 h2(#prerequisites). Prerequisites and planning
 
 h3. Cluster ID and base domain
 
-Choose a 5-character cluster identifier that will represent the cluster.  Here are "guidelines on choosing a cluster identifier":../architecture/federation.html#cluster_id .  Only lowercase letters and digits 0-9 are allowed.  Examples will use @xarv1@ or ${CLUSTER}, you should substitute the cluster id you have selected.
+Choose a 5-character cluster identifier that will represent the cluster.  Here are "guidelines on choosing a cluster identifier":../architecture/federation.html#cluster_id .  Only lowercase letters and digits 0-9 are allowed.  Examples will use @xarv1@ or @${CLUSTER}@, you should substitute the cluster id you have selected.
 
 Determine if you will use a single hostname, or multiple hostnames.
 
 * Single hostname is simpler to set up and can even be used without a hostname at all, just a bare IP address.
 * Multiple hostnames is more similar to the recommended production configuration may make it easier to migrate to a multi-host production configuration in the future, but is more complicated as it requires adding a number of DNS entries.
 
-If you are using multiple hostnames, determine the base domain for the cluster.  This will be referred to as ${DOMAIN}
+If you are using multiple hostnames, determine the base domain for the cluster.  This will be referred to as @${DOMAIN}@.
 
-For example, if CLUSTER is "xarv1" and DOMAIN is "example.com", then "controller.${CLUSTER}.${DOMAIN}" means "controller.xargv1.example.com".
+For example, if CLUSTER is @xarv1@ and DOMAIN is @example.com@, then @controller.${CLUSTER}.${DOMAIN}@" means @controller.xarv1.example.com@.
 
 h3. Machine specification
 
@@ -56,10 +56,12 @@ You will need a dedicated (virtual) machine for your Arvados server with at leas
 
 {% include 'supportedlinux' %}
 
+Note: if you want to try out Arvados inside a Docker container, use "Arvbox":arvbox.html.  The package-based install method uses @systemd@ to manage services; lightweight container images generally lack an init system and other tools that the installer requires.
+
 The single host install stores user data in a PostgreSQL database (usually found under @/var/lib/postgresql@) and as Keep blocks that are stored as files under @/var/lib/arvados/@.
-Arvados logs are also kept in @/var/log@ and @/var/www/arvados-api/shared/log@.  Accordingly, you should ensure that the disk partition containing @/var@ has adequate storage for your planned usage.  We suggest starting with 50GiB of free space.
+Arvados logs are also kept in @/var/log@ and @/var/www/arvados-api/shared/log@.  Accordingly, you should ensure that the disk partition containing @/var@ has adequate storage for your planned usage.  We suggest starting with at least 50GiB of free space.
 
-h3(#DNS). DNS hostnames for each service
+h3(#DNS). DNS hostnames for each service (multi-hostname only)
 
 If you are using a single hostname for all services (they will be distingushed by listening port), you can skip this section.
 
@@ -83,9 +85,9 @@ This is described in more detail in "DNS entries and TLS certificates":install-m
 
 h3. Additional prerequisites
 
-# Passwordless @sudo@ access on the account where you are doing the install
+# root or passwordless @sudo@ access on the account where you are doing the install
 this usually means adding the account to the @sudo@ group and having a rule like this in @/etc/sudoers.d/arvados_passwordless@ that allows members of group @sudo@ to execute any command without entering a password.
-<pre>%sudo all=(all:all) nopasswd:all</pre>
+<pre>%sudo ALL=(ALL:ALL) NOPASSWD:ALL</pre>
 # @git@ installed on the machine
 # Port 443 reachable by clients
 # For the single-host install, ports 8800-8805 also need to be reachable from your client (configurable in @local.params@, see below)
@@ -94,8 +96,8 @@ this usually means adding the account to the @sudo@ group and having a rule like
 
 h2(#download). Download the installer
 
-{% assign local_params_src = single_host_single_hostname' %}
-{% assign config_examples_src = 'single_host/single_hostname'%}
+{% assign local_params_src = 'single_host_single_hostname' %}
+{% assign config_examples_src = 'single_host/single_hostname' %}
 {% include 'download_installer' %}
 
 If you are using multiple hostname configuration, substitute 'multiple_hostnames' where it says 'single_hostname' in the command above.
@@ -143,9 +145,25 @@ Run this in the @~/arvados-setup-xarv1@ directory:
 ./installer.sh deploy
 </pre>
 
+h2(#ca_root_certificate). Install the CA root certificate (SSL_MODE=self-signed only)
+
+*If you are not using self-signed certificates (you selected SSL_MODE=lets-encrypt or SSL_MODE=bring-your-own), skip this section.*
+
+Arvados uses SSL to encrypt communications. The web interface uses AJAX which will silently fail if the certificate is not valid or signed by an unknown Certification Authority.
+
+For this reason, the installer has the option to create its own a root certificate to authorize Arvados services. The installer script will leave a copy of the generated CA's certificate  (something like @xarv1.example.com-arvados-snakeoil-ca.crt@) in the script's directory so you can add it to your workstation.
+
+{% assign ca_cert_name = 'xarv1.example.com-arvados-snakeoil-ca.crt' %}
+
+{% include 'install_ca_cert' %}
+
 h2(#test-install). Confirm the cluster is working
 
-When everything has finished, you can run the diagnostics.
+When everything has finished, you can run the diagnostics.  This requires the `arvados-client` package:
+
+<pre>
+apt-get install arvados-client
+</pre>
 
 Depending on where you are running the installer, you need to provide @-internal-client@ or @-external-client@.
 
@@ -197,18 +215,6 @@ If this happens, you need to
 <pre>dpkg-reconfigure arvados-api-server</pre>
 # Re-run @./installer.sh deploy@ again to synchronize everything, and so that the install steps that need to contact the API server are run successfully.
 
-h2(#ca_root_certificate). Install the CA root certificate (SSL_MODE=self-signed only)
-
-*If you are not using self-signed certificates (you selected SSL_MODE=lets-encrypt or SSL_MODE=bring-your-own), skip this section.*
-
-Arvados uses SSL to encrypt communications. The web interface uses AJAX which will silently fail if the certificate is not valid or signed by an unknown Certification Authority.
-
-For this reason, the installer has the option to create its own a root certificate to authorize Arvados services. The installer script will leave a copy of the generated CA's certificate  (something like @xarv1.example.com-arvados-snakeoil-ca.crt@) in the script's directory so you can add it to your workstation.
-
-{% assign ca_cert_name = 'xarv1.example.com-arvados-snakeoil-ca.crt' %}
-
-{% include 'install_ca_cert' %}
-
 h2(#initial_user). Initial user and login
 
 At this point you should be able to log into the Arvados cluster. The initial URL for the single hostname install will use the hostname or IP address you put in @HOSTNAME_EXT@:
@@ -217,7 +223,7 @@ https://${HOSTNAME_EXT}
 
 For the multi-hostname install, it will be:
 
-https://workbench.${CLUSTER}.${DOMAIN}
+https://workbench.@${CLUSTER}.${DOMAIN}@
 
 If you did *not* "configure a different authentication provider":#authentication you will be using the "Test" provider, and the provision script creates an initial user for testing purposes. This user is configured as administrator of the newly created cluster.  It uses the values of @INITIAL_USER@ and @INITIAL_USER_PASSWORD@ the @local.params@ file.