You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the candidate has been inspected, begin backfilling before importing historical documents. This enables concurrent writes and deletions to the candidate:
175
175
176
176
```php
177
-
$deployment = $deployer->beginBackfill('posts');
177
+
$deployment = $deployer->backfill('posts');
178
178
179
179
$deployment->writeIndexes();
180
180
```
181
181
182
+
The same transition is available from the command line:
183
+
184
+
```bash
185
+
php artisan opensearch:deploy:backfill posts
186
+
```
187
+
182
188
After application-specific validation succeeds, mark the candidate ready and atomically move the alias:
183
189
184
190
```php
185
191
$deployer->markReady('posts');
186
192
$deployer->cutover('posts');
187
193
```
188
194
195
+
```bash
196
+
php artisan opensearch:deploy:ready posts
197
+
php artisan opensearch:deploy:cutover posts
198
+
```
199
+
189
200
Cancel and delete a candidate that should not be promoted:
190
201
191
202
```php
192
203
$deployer->cancel('posts');
193
204
```
194
205
206
+
```bash
207
+
php artisan opensearch:deploy:cancel posts
208
+
```
209
+
195
210
The previous index remains in the deployment's write indexes during the rollback window:
196
211
197
212
```php
198
213
$deployer->rollback('posts');
199
214
```
200
215
216
+
```bash
217
+
php artisan opensearch:deploy:rollback posts
218
+
```
219
+
201
220
Once the new index is verified in production, delete the previous physical index and complete the deployment:
202
221
203
222
```php
204
223
$deployer->retire('posts');
205
224
```
206
225
226
+
```bash
227
+
php artisan opensearch:deploy:retire posts
228
+
```
229
+
230
+
Inspect one or every deployment at any point in the lifecycle:
231
+
232
+
```bash
233
+
php artisan opensearch:deploy:status
234
+
php artisan opensearch:deploy:status posts
235
+
```
236
+
207
237
`opensearch:migrate:fresh` deletes all deployment records because it drops all physical indexes. Migration reset and refresh commands refuse to run while managed deployments exist.
0 commit comments