Project

General

Profile

Actions

Idea #9550

closed

[SDKs] Go SDK supports an ARVADOS_KEEP_SERVICES environment variable

Added by Brett Smith almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Start date:
07/06/2016
Due date:
Story points:
1.0

Description

ARVADOS_KEEP_SERVICES is an environment variable that lets the client set its own list of Keep services, instead of fetching it from the API server. It is a space-separated list of Keep API endpoint URLs. Those endpoints are expected to be non-disk services: the client should assume it does not know how many replicas the service will store, should send the X-Keep-Desired-Replicas request header, and respect the X-Keep-Replicas-Stored response header.

A client should pay attention to this env var if its api_host/token/insecure settings were also taken from the environment.

Functional requirements:

  • When the variable is unset or empty, the Keep client should behave as it currently does.
  • When the variable is set, it does not query the API server for the Keep services list. Instead it uses the value of the variable as the services list, following the rules above.

Subtasks 3 (0 open3 closed)

Task #9657: Support in old SDKResolvedTom Clegg07/06/2016Actions
Task #9664: Update docsClosedTom Clegg07/06/2016Actions
Task #9642: Review 9550-keep-services-envResolvedTom Clegg07/06/2016Actions

Related issues

Copied to Arvados - Idea #9551: [SDKs] Python SDK supports an ARVADOS_KEEP_SERVICES environment variableResolvedLucas Di Pentima07/06/2016Actions
Actions

Also available in: Atom PDF