Wikifunctions/Runbook

From Wikitech
Jump to navigation Jump to search

This page serves as a set of runbooks for the Wikifunctions services.

What services?

  • function-orchestrator, a service to co-ordinate function requests.
  • function-evaluator, a service to execute user-written code.

How to deploy a change

Main article: Kubernetes/Deployments

Deploying a function-orchestrator change

  1. Create and merge change into the deployment-charts repo for the function-orchestrator service.
  2. Log in to a deployment server and go to /srv/deployment-charts/helmfile.d/services/function-orchestrator (wait for the every-60-seconds cron to update the /srv/deployment-charts directory with the contents from git if needed).
  3. Execute helmfile -e staging -i apply, which will test the patch in staging (see the k8s clusters docs)
  4. If successful, helmfile -e wikikube -i apply for actual production traffic.

Deploying a function-evaluator change

  1. Create and merge change into the deployment-charts repo for the function-evaluator service.
  2. Log in to a deployment server and go to /srv/deployment-charts/helmfile.d/services/function-evaluator (wait for the every-60-seconds cron to update the /srv/deployment-charts directory with the contents from git if needed).
  3. Execute helmfile -e staging -i apply, which will test the patch in staging (see the k8s clusters docs)
  4. If successful, helmfile -e wikikube -i apply for actual production traffic.

How to monitor usage

How to debug an issue