Services/F1/Server/ServicesStatusDB

< Services‎ | F1/Server
Revision as of 13:05, 29 April 2011 by Tarek.ziade (talk | contribs) (Created page with "= Services Status DB = The DB is a key/value storage, and stores for each Service: * a status ratio * a disabled flag * a retry-after value The DB is replicated in several pla...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Services Status DB

The DB is a key/value storage, and stores for each Service:

  • a status ratio
  • a disabled flag
  • a retry-after value

The DB is replicated in several places and is eventually consistent.

Ratio

Each service has a (GR / BR) ratio stored in that DB.

  • GR = Number of good responses.
  • BR = Number of bad responses.

What are "Good" and "Bad" responses is to the workers discretion.

Disabled

The DB also store a disabled flag for each service, that can be toggled manually to shut down a service if needed.

Retry-After

For each service, the DB stores a Retry-After value. When the DB starts, the value is loaded from a configuration file, but can be changed by the workers or the admin application.