|
101 | 101 | {requires, pre_boot},
|
102 | 102 | {enables, external_infrastructure}]}).
|
103 | 103 |
|
| 104 | +-rabbit_boot_step({definition_import_worker_pool, |
| 105 | + [{description, "dedicated worker pool for definition import"}, |
| 106 | + {mfa, {rabbit_definitions, boot, []}}, |
| 107 | + {requires, external_infrastructure}, |
| 108 | + {enables, load_core_definitions}]}). |
| 109 | + |
| 110 | +%% We want to A) make sure we apply definitions before the node begins serving |
| 111 | +%% traffic and B) in fact do it before empty_db_check (so the defaults will not |
| 112 | +%% get created if we don't need 'em). |
| 113 | +-rabbit_boot_step({load_core_definitions, |
| 114 | + [{description, "imports definitions"}, |
| 115 | + {mfa, {rabbit_definitions, maybe_load_definitions, []}}, |
| 116 | + {requires, [recovery, definition_import_worker_pool]}, |
| 117 | + {enables, empty_db_check}]}). |
| 118 | + |
104 | 119 | -rabbit_boot_step({external_infrastructure,
|
105 | 120 | [{description, "external infrastructure ready"}]}).
|
106 | 121 |
|
|
188 | 203 | {requires, [core_initialized]},
|
189 | 204 | {enables, routing_ready}]}).
|
190 | 205 |
|
191 |
| -%% We want to A) make sure we apply definitions before the node begins serving |
192 |
| -%% traffic and B) in fact do it before empty_db_check (so the defaults will not |
193 |
| -%% get created if we don't need 'em). |
194 |
| --rabbit_boot_step({load_core_definitions, |
195 |
| - [{description, "imports definitions"}, |
196 |
| - {mfa, {rabbit_definitions, maybe_load_definitions, []}}, |
197 |
| - {requires, recovery}, |
198 |
| - {enables, empty_db_check}]}). |
199 |
| - |
200 | 206 | -rabbit_boot_step({empty_db_check,
|
201 | 207 | [{description, "empty DB check"},
|
202 | 208 | {mfa, {?MODULE, maybe_insert_default_data, []}},
|
|
236 | 242 | [{description, "ready to communicate with peers and clients"},
|
237 | 243 | {requires, [core_initialized, recovery, routing_ready]}]}).
|
238 | 244 |
|
239 |
| --rabbit_boot_step({definition_import_worker_pool, |
240 |
| - [{description, "dedicated worker pool for definition import"}, |
241 |
| - {mfa, {rabbit_definitions, boot, []}}, |
242 |
| - {requires, pre_flight}]}). |
243 |
| - |
244 | 245 | -rabbit_boot_step({cluster_name,
|
245 | 246 | [{description, "sets cluster name if configured"},
|
246 | 247 | {mfa, {rabbit_nodes, boot, []}},
|
|
0 commit comments