You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Image-suggestion

From Wikitech-static
Revision as of 09:52, 31 August 2022 by imported>Kosta Harlan
Jump to navigation Jump to search

image-suggestion is a service that provides read-only access to the Data Gateway Service. It is a relatively simple HTTP service running in Kubernetes. It was created by the Platform Engineering Team. The code lives in Gerrit. The task for setting it up was T304891.

It is not to be confused with its predecessor, the image-suggestions-api service, which serves a one-off dataset. The task for providing a similar public API for live data is T306349.

Configuration

The Helm chart used by the image-suggestion service is based on the cassandra-http-gateway chart. This chart is a generic chart to allow for the configuration of various services that will offer HTTP interfaces to data stored in Cassandra and is service independent for the most part. The image-suggestion service pods use Helmfile configuration to specify the relevant service-specific bits of configuration.

The service connects to Cassandra using a dedicated user configured in puppet.

Access to the service is managed via the Kubernetes ingress.

Deployment

Deployment of the service uses the standard Helm/Kubernetes process. A lightweight healthcheck is available at /healthz.

See also