webserver

Definition

Starts an Airflow webserver instance. You can run this command by using the Add/Remove components action in ADCM.

Usage

$ airflow webserver [-h] [-A ACCESS_LOGFILE] [-L ACCESS_LOGFORMAT] [-D] [-d]
                  [-E ERROR_LOGFILE] [-H HOSTNAME] [-l LOG_FILE] [--pid [PID]]
                  [-p PORT] [--ssl-cert SSL_CERT] [--ssl-key SSL_KEY]
                  [--stderr STDERR] [--stdout STDOUT] [-t WORKER_TIMEOUT]
                  [-k {sync,eventlet,gevent,tornado}] [-w WORKERS]

Arguments

Parameter Description

-A, --access-logfile

The logfile to store the webserver access log. Use - to print to stdout

-L, --access-logformat

The access log format for gunicorn logs

-D, --daemon

Run as a daemon instead of running in the foreground

-d, --debug

Use the server that is shipped with Flask in debug mode

-E, --error-logfile

The logfile to store the webserver error log. Use - to print to stderr

-H, --hostname

Hostname on which to run the webserver

-l, --log-file

Location of the log file

--pid

PID file location

-p, --port

Port on which to run the server

--ssl-cert

Path to the SSL certificate for the webserver

--ssl-key

Path to the key to use with the SSL certificate

--stderr

Redirect stderr to the specified file

--stdout

Redirect stdout to the specified file

-t, --worker-timeout

The timeout for waiting on webserver workers

-k, --workerclass

The worker class to use for Gunicorn. Possible values: sync, eventlet, gevent, tornado. Default: sync

-w, --workers

Number of workers to run the webserver on

Examples

Example command for starting a webserver:

$ airflow webserver -p 8080 -H 0.0.0.0 -w 4 -D -A /logs/access.log -E /logs/error.log --ssl-cert /etc/ssl/certs/airflow.crt --ssl-key /etc/ssl/private/airflow.key
Found a mistake? Seleсt text and press Ctrl+Enter to report it