James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 1 | :title: Components |
| 2 | |
| 3 | .. _components: |
| 4 | |
| 5 | Components |
| 6 | ========== |
| 7 | |
| 8 | Zuul is a distributed system consisting of several components, each of |
James E. Blair | e86abe1 | 2017-08-04 14:46:00 -0700 | [diff] [blame] | 9 | which is described below. |
| 10 | |
| 11 | |
| 12 | .. graphviz:: |
| 13 | :align: center |
| 14 | |
| 15 | graph { |
| 16 | node [shape=box] |
| 17 | Gearman [shape=ellipse] |
| 18 | Gerrit [fontcolor=grey] |
| 19 | Zookeeper [shape=ellipse] |
| 20 | Nodepool |
| 21 | GitHub [fontcolor=grey] |
| 22 | |
| 23 | Merger -- Gearman |
| 24 | Executor -- Gearman |
| 25 | Web -- Gearman |
| 26 | |
| 27 | Gearman -- Scheduler; |
| 28 | Scheduler -- Gerrit; |
| 29 | Scheduler -- Zookeeper; |
| 30 | Zookeeper -- Nodepool; |
| 31 | Scheduler -- GitHub; |
| 32 | } |
| 33 | |
| 34 | |
| 35 | |
| 36 | All Zuul processes read the ``/etc/zuul/zuul.conf`` file (an alternate |
| 37 | location may be supplied on the command line) which uses an INI file |
| 38 | syntax. Each component may have its own configuration file, though |
| 39 | you may find it simpler to use the same file for all components. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 40 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 41 | An example ``zuul.conf``: |
| 42 | |
| 43 | .. code-block:: ini |
| 44 | |
| 45 | [gearman] |
| 46 | server=localhost |
| 47 | |
| 48 | [gearman_server] |
| 49 | start=true |
| 50 | log_config=/etc/zuul/gearman-logging.yaml |
| 51 | |
| 52 | [zookeeper] |
| 53 | hosts=zk1.example.com,zk2.example.com,zk3.example.com |
| 54 | |
| 55 | [webapp] |
| 56 | status_url=https://zuul.example.com/status |
| 57 | |
| 58 | [scheduler] |
| 59 | log_config=/etc/zuul/scheduler-logging.yaml |
| 60 | |
| 61 | A minimal Zuul system may consist of a :ref:`scheduler` and |
| 62 | :ref:`executor` both running on the same host. Larger installations |
| 63 | should consider running multiple executors, each on a dedicated host, |
| 64 | and running mergers on dedicated hosts as well. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 65 | |
| 66 | Common |
| 67 | ------ |
| 68 | |
| 69 | The following applies to all Zuul components. |
| 70 | |
| 71 | Configuration |
| 72 | ~~~~~~~~~~~~~ |
| 73 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 74 | The following sections of ``zuul.conf`` are used by all Zuul components: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 75 | |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 76 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 77 | .. attr:: gearman |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 78 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 79 | Client connection information for Gearman. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 80 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 81 | .. attr:: server |
| 82 | :required: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 83 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 84 | Hostname or IP address of the Gearman server. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 85 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 86 | .. attr:: port |
| 87 | :default: 4730 |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 88 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 89 | Port on which the Gearman server is listening. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 90 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 91 | .. attr:: ssl_ca |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 92 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 93 | An openssl file containing a set of concatenated “certification |
| 94 | authority” certificates in PEM formet. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 95 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 96 | .. attr:: ssl_cert |
| 97 | |
| 98 | An openssl file containing the client public certificate in PEM format. |
| 99 | |
| 100 | .. attr:: ssl_key |
| 101 | |
| 102 | An openssl file containing the client private key in PEM format. |
James E. Blair | fdb111d | 2017-06-23 20:56:05 +0100 | [diff] [blame] | 103 | |
James E. Blair | ded241e | 2017-10-10 13:22:40 -0700 | [diff] [blame] | 104 | .. attr:: statsd |
| 105 | |
| 106 | Information about the optional statsd server. If the ``statsd`` |
| 107 | python module is installed and this section is configured, |
| 108 | statistics will be reported to statsd. See :ref:`statsd` for more |
| 109 | information. |
| 110 | |
| 111 | .. attr:: server |
| 112 | |
| 113 | Hostname or IP address of the statsd server. |
| 114 | |
| 115 | .. attr:: port |
| 116 | :default: 8125 |
| 117 | |
| 118 | The UDP port on which the statsd server is listening. |
| 119 | |
| 120 | .. attr:: prefix |
| 121 | |
| 122 | If present, this will be prefixed to all of the keys before |
| 123 | transmitting to the statsd server. |
| 124 | |
James E. Blair | 4f3e622 | 2017-07-05 14:52:08 -0700 | [diff] [blame] | 125 | .. NOTE: this is a white lie at this point, since only the scheduler |
| 126 | uses this, however, we expect other components to use it later, so |
| 127 | it's reasonable for admins to plan for this now. |
| 128 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 129 | .. attr:: zookeeper |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 130 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 131 | Client connection information for ZooKeeper |
James E. Blair | fdb111d | 2017-06-23 20:56:05 +0100 | [diff] [blame] | 132 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 133 | .. attr:: hosts |
| 134 | :required: |
| 135 | |
| 136 | A list of zookeeper hosts for Zuul to use when communicating |
| 137 | with Nodepool. |
| 138 | |
James E. Blair | e2f0a87 | 2017-09-28 10:35:12 -0700 | [diff] [blame] | 139 | .. attr:: session_timeout |
| 140 | :default: 10.0 |
| 141 | |
| 142 | The ZooKeeper session timeout, in seconds. |
| 143 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 144 | |
| 145 | .. _scheduler: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 146 | |
| 147 | Scheduler |
| 148 | --------- |
| 149 | |
| 150 | The scheduler is the primary component of Zuul. The scheduler is not |
| 151 | a scalable component; one, and only one, scheduler must be running at |
| 152 | all times for Zuul to be operational. It receives events from any |
| 153 | connections to remote systems which have been configured, enqueues |
| 154 | items into pipelines, distributes jobs to executors, and reports |
| 155 | results. |
| 156 | |
| 157 | Configuration |
| 158 | ~~~~~~~~~~~~~ |
| 159 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 160 | The following sections of ``zuul.conf`` are used by the scheduler: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 161 | |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 162 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 163 | .. attr:: gearman_server |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 164 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 165 | The builtin gearman server. Zuul can fork a gearman process from |
| 166 | itself rather than connecting to an external one. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 167 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 168 | .. attr:: start |
| 169 | :default: false |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 170 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 171 | Whether to start the internal Gearman server. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 172 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 173 | .. attr:: listen_address |
| 174 | :default: all addresses |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 175 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 176 | IP address or domain name on which to listen. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 177 | |
Tristan Cacqueray | a7586c9 | 2017-08-29 10:10:08 +0000 | [diff] [blame] | 178 | .. attr:: port |
| 179 | :default: 4730 |
| 180 | |
| 181 | TCP port on which to listen. |
| 182 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 183 | .. attr:: log_config |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 184 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 185 | Path to log config file for internal Gearman server. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 186 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 187 | .. attr:: ssl_ca |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 188 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 189 | An openssl file containing a set of concatenated “certification |
| 190 | authority” certificates in PEM formet. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 191 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 192 | .. attr:: ssl_cert |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 193 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 194 | An openssl file containing the server public certificate in PEM |
| 195 | format. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 196 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 197 | .. attr:: ssl_key |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 198 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 199 | An openssl file containing the server private key in PEM format. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 200 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 201 | .. attr:: webapp |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 202 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 203 | .. attr:: listen_address |
| 204 | :default: all addresses |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 205 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 206 | IP address or domain name on which to listen. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 207 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 208 | .. attr:: port |
| 209 | :default: 8001 |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 210 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 211 | Port on which the webapp is listening. |
James E. Blair | 4f3e622 | 2017-07-05 14:52:08 -0700 | [diff] [blame] | 212 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 213 | .. attr:: status_expiry |
| 214 | :default: 1 |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 215 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 216 | Zuul will cache the status.json file for this many seconds. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 217 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 218 | .. attr:: status_url |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 219 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 220 | URL that will be posted in Zuul comments made to changes when |
| 221 | starting jobs for a change. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 222 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 223 | .. TODO: is this effectively required? |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 224 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 225 | .. attr:: scheduler |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 226 | |
Paul Belanger | 40d3ce6 | 2017-11-28 11:49:55 -0500 | [diff] [blame] | 227 | .. attr:: command_socket |
| 228 | :default: /var/lib/zuul/scheduler.socket |
| 229 | |
| 230 | Path to command socket file for the scheduler process. |
| 231 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 232 | .. attr:: tenant_config |
| 233 | :required: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 234 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 235 | Path to :ref:`tenant-config` file. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 236 | |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 237 | .. attr:: log_config |
| 238 | |
| 239 | Path to log config file. |
| 240 | |
| 241 | .. attr:: pidfile |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 242 | :default: /var/run/zuul-schedurecr/zuul-scheduler.pid |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 243 | |
| 244 | Path to PID lock file. |
| 245 | |
| 246 | .. attr:: state_dir |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 247 | :default: /var/lib/zuul |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 248 | |
| 249 | Path to directory in which Zuul should save its state. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 250 | |
| 251 | Operation |
| 252 | ~~~~~~~~~ |
| 253 | |
| 254 | To start the scheduler, run ``zuul-scheduler``. To stop it, kill the |
| 255 | PID which was saved in the pidfile specified in the configuration. |
| 256 | |
| 257 | Most of Zuul's configuration is automatically updated as changes to |
| 258 | the repositories which contain it are merged. However, Zuul must be |
| 259 | explicitly notified of changes to the tenant config file, since it is |
| 260 | not read from a git repository. To do so, send the scheduler PID |
James E. Blair | 9794019 | 2017-08-03 14:47:47 -0700 | [diff] [blame] | 261 | (saved in the pidfile specified in the configuration) a `SIGHUP` |
| 262 | signal. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 263 | |
| 264 | Merger |
| 265 | ------ |
| 266 | |
| 267 | Mergers are an optional Zuul service; they are not required for Zuul |
| 268 | to operate, but some high volume sites may benefit from running them. |
| 269 | Zuul performs quite a lot of git operations in the course of its work. |
| 270 | Each change that is to be tested must be speculatively merged with the |
| 271 | current state of its target branch to ensure that it can merge, and to |
| 272 | ensure that the tests that Zuul perform accurately represent the |
| 273 | outcome of merging the change. Because Zuul's configuration is stored |
| 274 | in the git repos it interacts with, and is dynamically evaluated, Zuul |
| 275 | often needs to perform a speculative merge in order to determine |
| 276 | whether it needs to perform any further actions. |
| 277 | |
| 278 | All of these git operations add up, and while Zuul executors can also |
| 279 | perform them, large numbers may impact their ability to run jobs. |
| 280 | Therefore, administrators may wish to run standalone mergers in order |
| 281 | to reduce the load on executors. |
| 282 | |
| 283 | Configuration |
| 284 | ~~~~~~~~~~~~~ |
| 285 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 286 | The following section of ``zuul.conf`` is used by the merger: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 287 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 288 | .. attr:: merger |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 289 | |
Paul Belanger | 7650611 | 2017-11-27 14:10:30 -0500 | [diff] [blame] | 290 | ,, attr:: command_socket |
| 291 | :default: /var/lib/zuul/merger.socket |
| 292 | |
| 293 | Path to command socket file for the merger process. |
| 294 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 295 | .. attr:: git_dir |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 296 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 297 | Directory in which Zuul should clone git repositories. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 298 | |
Paul Belanger | edadfed | 2017-10-05 16:04:27 -0400 | [diff] [blame] | 299 | .. attr:: git_http_low_speed_limit |
| 300 | :default: 1000 |
| 301 | |
| 302 | If the HTTP transfer speed is less then git_http_low_speed_limit for |
| 303 | longer then git_http_low_speed_time, the transfer is aborted. |
| 304 | |
| 305 | Value in bytes, setting to 0 will disable. |
| 306 | |
| 307 | .. attr:: git_http_low_speed_time |
| 308 | :default: 30 |
| 309 | |
| 310 | If the HTTP transfer speed is less then git_http_low_speed_limit for |
| 311 | longer then git_http_low_speed_time, the transfer is aborted. |
| 312 | |
| 313 | Value in seconds, setting to 0 will disable. |
| 314 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 315 | .. attr:: git_user_email |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 316 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 317 | Value to pass to `git config user.email |
| 318 | <https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup>`_. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 319 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 320 | .. attr:: git_user_name |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 321 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 322 | Value to pass to `git config user.name |
| 323 | <https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup>`_. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 324 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 325 | .. attr:: log_config |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 326 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 327 | Path to log config file for the merger process. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 328 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 329 | .. attr:: pidfile |
| 330 | :default: /var/run/zuul-merger/zuul-merger.pid |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 331 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 332 | Path to PID lock file for the merger process. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 333 | |
| 334 | Operation |
| 335 | ~~~~~~~~~ |
| 336 | |
| 337 | To start the merger, run ``zuul-merger``. To stop it, kill the |
| 338 | PID which was saved in the pidfile specified in the configuration. |
| 339 | |
David Shrewsbury | b040b0a | 2017-08-03 15:53:59 -0400 | [diff] [blame] | 340 | .. _executor: |
| 341 | |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 342 | Executor |
| 343 | -------- |
| 344 | |
| 345 | Executors are responsible for running jobs. At the start of each job, |
| 346 | an executor prepares an environment in which to run Ansible which |
| 347 | contains all of the git repositories specified by the job with all |
| 348 | dependent changes merged into their appropriate branches. The branch |
| 349 | corresponding to the proposed change will be checked out (in all |
| 350 | projects, if it exists). Any roles specified by the job will also be |
| 351 | present (also with dependent changes merged, if appropriate) and added |
| 352 | to the Ansible role path. The executor also prepares an Ansible |
| 353 | inventory file with all of the nodes requested by the job. |
| 354 | |
| 355 | The executor also contains a merger. This is used by the executor to |
| 356 | prepare the git repositories used by jobs, but is also available to |
| 357 | perform any tasks normally performed by standalone mergers. Because |
| 358 | the executor performs both roles, small Zuul installations may not |
| 359 | need to run standalone mergers. |
| 360 | |
| 361 | Trusted and Untrusted Playbooks |
| 362 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 363 | |
| 364 | The executor runs playbooks in one of two execution contexts depending |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 365 | on whether the project containing the playbook is a |
| 366 | :term:`config-project` or an :term:`untrusted-project`. If the |
| 367 | playbook is in a config project, the executor runs the playbook in the |
| 368 | *trusted* execution context, otherwise, it is run in the *untrusted* |
| 369 | execution context. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 370 | |
Clint Byrum | 48b5a67 | 2017-08-18 14:44:00 -0700 | [diff] [blame] | 371 | Both execution contexts use `bubblewrap`_ [#nullwrap]_ to create a |
| 372 | namespace to ensure that playbook executions are isolated and are unable |
| 373 | to access files outside of a restricted environment. The administrator |
| 374 | may configure additional local directories on the executor to be made |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 375 | available to the restricted environment. |
| 376 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 377 | The trusted execution context has access to all Ansible features, |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 378 | including the ability to load custom Ansible modules. Needless to |
| 379 | say, extra scrutiny should be given to code that runs in a trusted |
| 380 | context as it could be used to compromise other jobs running on the |
| 381 | executor, or the executor itself, especially if the administrator has |
| 382 | granted additional access through bubblewrap, or a method of escaping |
| 383 | the restricted environment created by bubblewrap is found. |
| 384 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 385 | Playbooks run in the untrusted execution context are not permitted to |
| 386 | load additional Ansible modules or access files outside of the |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 387 | restricted environment prepared for them by the executor. In addition |
| 388 | to the bubblewrap environment applied to both execution contexts, in |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 389 | the untrusted context some standard Ansible modules are replaced with |
| 390 | versions which prohibit some actions, including attempts to access |
| 391 | files outside of the restricted execution context. These redundant |
| 392 | protections are made as part of a defense-in-depth strategy. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 393 | |
| 394 | .. _bubblewrap: https://github.com/projectatomic/bubblewrap |
Clint Byrum | 48b5a67 | 2017-08-18 14:44:00 -0700 | [diff] [blame] | 395 | .. [#nullwrap] Unless one has set execution_wrapper to nullwrap in the |
| 396 | executor configuration. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 397 | |
| 398 | Configuration |
| 399 | ~~~~~~~~~~~~~ |
| 400 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 401 | The following sections of ``zuul.conf`` are used by the executor: |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 402 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 403 | .. attr:: executor |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 404 | |
Paul Belanger | 2092091 | 2017-11-28 11:22:30 -0500 | [diff] [blame] | 405 | .. attr:: command_socket |
| 406 | :default: /var/lib/zuul/executor.socket |
| 407 | |
| 408 | Path to command socket file for the executor process. |
| 409 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 410 | .. attr:: finger_port |
| 411 | :default: 79 |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 412 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 413 | Port to use for finger log streamer. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 414 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 415 | .. attr:: git_dir |
| 416 | :default: /var/lib/zuul/git |
James E. Blair | 7e6e0a1 | 2017-07-25 11:04:42 -0700 | [diff] [blame] | 417 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 418 | Directory that Zuul should clone local git repositories to. The |
| 419 | executor keeps a local copy of every git repository it works |
| 420 | with to speed operations and perform speculative merging. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 421 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 422 | This should be on the same filesystem as |
| 423 | :attr:`executor.job_dir` so that when git repos are cloned into |
| 424 | the job workspaces, they can be hard-linked to the local git |
| 425 | cache. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 426 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 427 | .. attr:: job_dir |
| 428 | :default: /tmp |
James E. Blair | 7e6e0a1 | 2017-07-25 11:04:42 -0700 | [diff] [blame] | 429 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 430 | Directory that Zuul should use to hold temporary job directories. |
| 431 | When each job is run, a new entry will be created under this |
| 432 | directory to hold the configuration and scratch workspace for |
| 433 | that job. It will be deleted at the end of the job (unless the |
| 434 | `--keep-jobdir` command line option is specified). |
James E. Blair | 7e6e0a1 | 2017-07-25 11:04:42 -0700 | [diff] [blame] | 435 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 436 | This should be on the same filesystem as :attr:`executor.git_dir` |
| 437 | so that when git repos are cloned into the job workspaces, they |
| 438 | can be hard-linked to the local git cache. |
James E. Blair | 7e6e0a1 | 2017-07-25 11:04:42 -0700 | [diff] [blame] | 439 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 440 | .. attr:: log_config |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 441 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 442 | Path to log config file for the executor process. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 443 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 444 | .. attr:: pidfile |
| 445 | :default: /var/run/zuul-executor/zuul-executor.pid |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 446 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 447 | Path to PID lock file for the executor process. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 448 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 449 | .. attr:: private_key_file |
| 450 | :default: ~/.ssh/id_rsa |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 451 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 452 | SSH private key file to be used when logging into worker nodes. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 453 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 454 | .. attr:: user |
| 455 | :default: zuul |
Jamie Lennox | 7655b55 | 2017-03-17 12:33:38 +1100 | [diff] [blame] | 456 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 457 | User ID for the zuul-executor process. In normal operation as a |
| 458 | daemon, the executor should be started as the ``root`` user, but |
| 459 | it will drop privileges to this user during startup. |
Jamie Lennox | 7655b55 | 2017-03-17 12:33:38 +1100 | [diff] [blame] | 460 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 461 | .. _admin_sitewide_variables: |
Jamie Lennox | 7655b55 | 2017-03-17 12:33:38 +1100 | [diff] [blame] | 462 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 463 | .. attr:: variables |
Jamie Lennox | 7655b55 | 2017-03-17 12:33:38 +1100 | [diff] [blame] | 464 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 465 | Path to an Ansible variables file to supply site-wide variables. |
| 466 | This should be a YAML-formatted file consisting of a single |
| 467 | dictionary. The contents will be made available to all jobs as |
| 468 | Ansible variables. These variables take precedence over all |
| 469 | other forms (job variables and secrets). Care should be taken |
| 470 | when naming these variables to avoid potential collisions with |
| 471 | those used by jobs. Prefixing variable names with a |
| 472 | site-specific identifier is recommended. The default is not to |
| 473 | add any site-wide variables. See the :ref:`User's Guide |
| 474 | <user_sitewide_variables>` for more information. |
Clint Byrum | dc8a090 | 2017-07-20 16:36:27 -0700 | [diff] [blame] | 475 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 476 | .. attr:: disk_limit_per_job |
| 477 | :default: 250 |
Clint Byrum | dc8a090 | 2017-07-20 16:36:27 -0700 | [diff] [blame] | 478 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 479 | This integer is the maximum number of megabytes that any one job |
| 480 | is allowed to consume on disk while it is running. If a job's |
| 481 | scratch space has more than this much space consumed, it will be |
| 482 | aborted. |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 483 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 484 | .. attr:: trusted_ro_paths |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 485 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 486 | List of paths, separated by ``:`` to read-only bind mount into |
| 487 | trusted bubblewrap contexts. |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 488 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 489 | .. attr:: trusted_rw_paths |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 490 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 491 | List of paths, separated by ``:`` to read-write bind mount into |
| 492 | trusted bubblewrap contexts. |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 493 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 494 | .. attr:: untrusted_ro_paths |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 495 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 496 | List of paths, separated by ``:`` to read-only bind mount into |
| 497 | untrusted bubblewrap contexts. |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 498 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 499 | .. attr:: untrusted_rw_paths |
Monty Taylor | 01380dd | 2017-07-28 16:01:20 -0500 | [diff] [blame] | 500 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 501 | List of paths, separated by ``:`` to read-write bind mount into |
| 502 | untrusted bubblewrap contexts. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 503 | |
Clint Byrum | 48b5a67 | 2017-08-18 14:44:00 -0700 | [diff] [blame] | 504 | .. attr:: execution_wrapper |
| 505 | :default: bubblewrap |
| 506 | |
| 507 | Name of the execution wrapper to use when executing |
| 508 | `ansible-playbook`. The default, `bubblewrap` is recommended for |
| 509 | all installations. |
| 510 | |
| 511 | There is also a `nullwrap` driver for situations where one wants |
| 512 | to run Zuul without access to bubblewrap or in such a way that |
| 513 | bubblewrap may interfere with the jobs themselves. However, |
| 514 | `nullwrap` is considered unsafe, as `bubblewrap` provides |
| 515 | significant protections against malicious users and accidental |
| 516 | breakage in playbooks. As such, `nullwrap` is not recommended |
| 517 | for use in production. |
| 518 | |
| 519 | This option, and thus, `nullwrap`, may be removed in the future. |
| 520 | `bubblewrap` has become integral to securely operating Zuul. If you |
| 521 | have a valid use case for it, we encourage you to let us know. |
| 522 | |
Clint Byrum | 3cef7ed | 2017-09-29 20:18:54 -0700 | [diff] [blame] | 523 | .. attr:: load_multiplier |
| 524 | :default: 2.5 |
| 525 | |
| 526 | When an executor host gets too busy, the system may suffer |
| 527 | timeouts and other ill effects. The executor will stop accepting |
| 528 | more than 1 job at a time until load has lowered below a safe |
| 529 | level. This level is determined by multiplying the number of |
| 530 | CPU's by `load_multiplier`. |
| 531 | |
| 532 | So for example, if the system has 2 CPUs, and load_multiplier |
| 533 | is 2.5, the safe load for the system is 5.00. Any time the |
| 534 | system load average is over 5.00, the executor will quit |
| 535 | accepting multiple jobs at one time. |
| 536 | |
| 537 | The executor will observe system load and determine whether |
| 538 | to accept more jobs every 30 seconds. |
| 539 | |
Tobias Henkel | 055cda3 | 2017-10-17 13:08:18 +0200 | [diff] [blame] | 540 | .. attr:: hostname |
| 541 | :default: hostname of the server |
| 542 | |
| 543 | The executor needs to know its hostname under which it is reachable by |
| 544 | zuul-web. Otherwise live console log streaming doesn't work. In most cases |
| 545 | This is automatically detected correctly. But when running in environments |
| 546 | where it cannot determine its hostname correctly this can be overridden |
| 547 | here. |
| 548 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 549 | .. attr:: merger |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 550 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 551 | .. attr:: git_user_email |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 552 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 553 | Value to pass to `git config user.email |
| 554 | <https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup>`_. |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 555 | |
James E. Blair | 9d0b4cc | 2017-08-03 15:08:47 -0700 | [diff] [blame] | 556 | .. attr:: git_user_name |
| 557 | |
| 558 | Value to pass to `git config user.name |
| 559 | <https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup>`_. |
James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 560 | |
| 561 | Operation |
| 562 | ~~~~~~~~~ |
| 563 | |
| 564 | To start the executor, run ``zuul-executor``. |
| 565 | |
| 566 | There are several commands which can be run to control the executor's |
| 567 | behavior once it is running. |
| 568 | |
| 569 | To stop the executor immediately, aborting all jobs (they may be |
| 570 | relaunched according to their retry policy), run ``zuul-executor |
| 571 | stop``. |
| 572 | |
| 573 | To request that the executor stop executing new jobs and exit when all |
| 574 | currently running jobs have completed, run ``zuul-executor graceful``. |
| 575 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 576 | To enable or disable running Ansible in verbose mode (with the |
| 577 | ``-vvv`` argument to ansible-playbook) run ``zuul-executor verbose`` |
| 578 | and ``zuul-executor unverbose``. |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 579 | |
| 580 | Web Server |
| 581 | ---------- |
| 582 | |
| 583 | The Zuul web server currently acts as a websocket interface to live log |
| 584 | streaming. Eventually, it will serve as the single process handling all |
| 585 | HTTP interactions with Zuul. |
| 586 | |
| 587 | Configuration |
| 588 | ~~~~~~~~~~~~~ |
| 589 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 590 | In addition to the common configuration sections, the following |
| 591 | sections of ``zuul.conf`` are used by the web server: |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 592 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 593 | .. attr:: web |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 594 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 595 | .. attr:: listen_address |
| 596 | :default: 127.0.0.1 |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 597 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 598 | IP address or domain name on which to listen. |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 599 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 600 | .. attr:: log_config |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 601 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 602 | Path to log config file for the web server process. |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 603 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 604 | .. attr:: pidfile |
| 605 | :default: /var/run/zuul-web/zuul-web.pid |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 606 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 607 | Path to PID lock file for the web server process. |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 608 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 609 | .. attr:: port |
| 610 | :default: 9000 |
David Shrewsbury | 6b3b49b | 2017-07-11 13:00:38 -0400 | [diff] [blame] | 611 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 612 | Port to use for web server process. |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 613 | |
James E. Blair | afe27e6 | 2017-08-03 15:11:47 -0700 | [diff] [blame] | 614 | .. attr:: websocket_url |
| 615 | |
| 616 | Base URL on which the websocket service is exposed, if different |
| 617 | than the base URL of the web app. |
Tobias Henkel | b4407fc | 2017-07-07 13:52:56 +0200 | [diff] [blame] | 618 | |
Tristan Cacqueray | 3c2d39d | 2017-11-29 05:36:55 +0000 | [diff] [blame] | 619 | .. attr:: static_cache_expiry |
| 620 | :default: 3600 |
| 621 | |
| 622 | The Cache-Control max-age response header value for static files served |
| 623 | by the zuul-web. Set to 0 during development to disable Cache-Control. |
| 624 | |
David Shrewsbury | ae734d1 | 2017-07-11 12:41:59 -0400 | [diff] [blame] | 625 | Operation |
| 626 | ~~~~~~~~~ |
| 627 | |
| 628 | To start the web server, run ``zuul-web``. To stop it, kill the |
| 629 | PID which was saved in the pidfile specified in the configuration. |