|
186 | 186 | -rabbit_boot_step({recovery,
|
187 | 187 | [{description, "exchange, queue and binding recovery"},
|
188 | 188 | {mfa, {rabbit, recover, []}},
|
189 |
| - {requires, [core_initialized]}, |
| 189 | + {requires, upgrade_queues}, |
190 | 190 | {enables, routing_ready}]}).
|
191 | 191 |
|
192 | 192 | -rabbit_boot_step({empty_db_check,
|
|
197 | 197 |
|
198 | 198 | -rabbit_boot_step({routing_ready,
|
199 | 199 | [{description, "message delivery logic ready"},
|
200 |
| - {requires, core_initialized}]}). |
| 200 | + {requires, [core_initialized, recovery]}]}). |
201 | 201 |
|
202 | 202 | -rabbit_boot_step({direct_client,
|
203 | 203 | [{description, "direct client"},
|
204 | 204 | {mfa, {rabbit_direct, boot, []}},
|
205 |
| - {requires, routing_ready}]}). |
| 205 | + {requires, routing_ready} |
| 206 | + ]}). |
206 | 207 |
|
207 | 208 | -rabbit_boot_step({connection_tracking,
|
208 |
| - [{description, "sets up internal storage for node-local connections"}, |
| 209 | + [{description, "connection tracking infrastructure"}, |
209 | 210 | {mfa, {rabbit_connection_tracking, boot, []}},
|
210 |
| - {requires, routing_ready}]}). |
211 |
| - |
212 |
| --rabbit_boot_step({networking, |
213 |
| - [{mfa, {rabbit_networking, boot, []}}, |
214 |
| - {requires, routing_ready}]}). |
215 |
| - |
216 |
| --rabbit_boot_step({notify_cluster, |
217 |
| - [{description, "notify cluster nodes"}, |
218 |
| - {mfa, {rabbit_node_monitor, notify_node_up, []}}, |
219 |
| - {requires, networking}]}). |
| 211 | + {enables, routing_ready}]}). |
220 | 212 |
|
221 | 213 | -rabbit_boot_step({background_gc,
|
222 | 214 | [{description, "background garbage collection"},
|
223 | 215 | {mfa, {rabbit_sup, start_restartable_child,
|
224 | 216 | [background_gc]}},
|
225 |
| - {enables, networking}]}). |
| 217 | + {requires, [core_initialized, recovery]}, |
| 218 | + {enables, routing_ready}]}). |
226 | 219 |
|
227 | 220 | -rabbit_boot_step({rabbit_core_metrics_gc,
|
228 | 221 | [{description, "background core metrics garbage collection"},
|
229 | 222 | {mfa, {rabbit_sup, start_restartable_child,
|
230 | 223 | [rabbit_core_metrics_gc]}},
|
231 |
| - {enables, networking}]}). |
| 224 | + {requires, [core_initialized, recovery]}, |
| 225 | + {enables, routing_ready}]}). |
232 | 226 |
|
233 | 227 | -rabbit_boot_step({rabbit_looking_glass,
|
234 | 228 | [{description, "Looking Glass tracer and profiler"},
|
235 | 229 | {mfa, {rabbit_looking_glass, boot, []}},
|
236 |
| - {requires, networking}]}). |
| 230 | + {requires, [core_initialized, recovery]}, |
| 231 | + {enables, routing_ready}]}). |
| 232 | + |
| 233 | +-rabbit_boot_step({pre_flight, |
| 234 | + [{description, "ready to communicate with peers and clients"}, |
| 235 | + {requires, [core_initialized, recovery, routing_ready]}]}). |
| 236 | + |
| 237 | +-rabbit_boot_step({notify_cluster, |
| 238 | + [{description, "notifies cluster peers of our presence"}, |
| 239 | + {mfa, {rabbit_node_monitor, notify_node_up, []}}, |
| 240 | + {requires, pre_flight}]}). |
| 241 | + |
| 242 | +-rabbit_boot_step({networking, |
| 243 | + [{description, "TCP and TLS listeners"}, |
| 244 | + {mfa, {rabbit_networking, boot, []}}, |
| 245 | + {requires, notify_cluster}]}). |
237 | 246 |
|
238 | 247 | %%---------------------------------------------------------------------------
|
239 | 248 |
|
|
0 commit comments