At some point, after applying update or after doing deployment, there's need to restart wdqs-* units in a particular manner. Currently, @Gehel does this:
sudo cumin -b 1 -s 30 'A:wdqs-main' 'depool ; sleep 10 ; systemctl restart wdqs-blazegraph ; systemctl restart wdqs-categories ; sleep 20 ; systemctl restart wdqs-updater ; sleep 30 ; pool
It will be good to have this as cookbook instead of running a cumin command.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| wdqs: add WDQS restart cookbook | operations/cookbooks | master | +54 -0 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T203943 Spicerack cookbooks TODO list | |||
| Resolved | • Mathew.onipe | T221832 Create Cookbook to restart WDQS |
Event Timeline
Comment Actions
(side note – you might as well combine the two restarts without sleep between them into a single systemctl restart wdqs-blazegraph wdqs-categories, should be equivalent but slightly nicer)
Comment Actions
@Lucas_Werkmeister_WMDE Thanks! will keep that mind. Your reviews will be welcome when I submit a patch too.
Comment Actions
Change 507347 had a related patch set uploaded (by Mathew.onipe; owner: Mathew.onipe):
[operations/cookbooks@master] wdqs: add WDQS restart cookbook
Comment Actions
Change 507347 merged by Gehel:
[operations/cookbooks@master] wdqs: add WDQS restart cookbook