Follow steps outlined here: https://wikitech.wikimedia.org/wiki/Services/FirstDeployment#Deploy_Repo_Set-up
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add scap configuration | mediawiki/services/recommendation-api/deploy | master | +199 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • schana | T148129 Productization of Recommendation API | |||
Resolved | Joe | T165760 Deploy Recommendation API as a service | |||
Resolved | • schana | T148128 Set up scap3 for deployment |
Event Timeline
@schana if I remember correctly, you mentioned you will work on this yourself, correct?
Here's the canary and the list of targets. In general, you can look at Citoid's Scap3 configuration to get inspiration :)
@mobrovac It looks like citoid is using scap for deploying config. Is this preferred to puppet? Or is this config something else?
The config template should be in the deploy repo, just as it is for Citoid. Some config variables will need to come from Puppet, though, like the URIs for the services that your service is contacting (RESTBase, wdqs). For now you can put the default values for these in scap/vars.yaml and we can work on them in a second step.
Change 357640 had a related patch set uploaded (by Nschaaf; owner: Nschaaf):
[mediawiki/services/recommendation-api/deploy@master] Add scap configuration
- For the config template, will sending the domain in the mwapi_req host header be an issue when not in the production cluster?
- Is there a problem with using the same port as Citoid (1970), or will this service need a unique port? Are these tracked anywhere?
No, but that is not relevant as in the deploy repo we mostly focus on the WMF production environment. If one wanted to, one could set up a different scap environment and have a separate config for it, but that is outside the scope of this ticket / effort.
- Is there a problem with using the same port as Citoid (1970), or will this service need a unique port? Are these tracked anywhere?
Yes. Two services cannot attach to the same port. The exact port number is not that relevant, we will take care of that in the upcoming ops/puppet patch.
Change 357640 merged by Mobrovac:
[mediawiki/services/recommendation-api/deploy@master] Add scap configuration