Skip to content

๐Ÿ•ต๏ธ Investigating a dataset with scout

โฏ datatrail scout --help
Usage: datatrail scout [OPTIONS] [SCOPES]... DATASET

Scout a dataset.

Options:
-v, --verbose Verbosity: v=INFO, vv=DEBUG.
-q, --quiet Set log level to ERROR.
--help Show this message and exit.

Overview

The purpose of this function is the give users easy visibility into the current situation for a given dataset across all of Datatrail's storage elements. The number of datasets that information is given for depends on the number of scopes that the given dataset name has registered. However, this can be filtered by providing a list of scopes to the command.

Usage

Below is an example of the output for the dataset named 382085503, both filtered to only show information for the chime.event.baseband.raw scope and unfiltered.

Note

The output below does not show the correct colouring. The rows of the table are colour-coded to indicate if it is observed or expected. Observed values are displayed in blue and expected values are in yellow.

Bash
โฏ datatrail scout chime.event.baseband.raw 382085503
                          Scout Results for 382085503
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Scope                    โ”ƒ chime โ”ƒ baseband_buffer โ”ƒ kko โ”ƒ gbo โ”ƒ hco โ”ƒ minoc โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ chime.event.baseband.raw โ”‚ 824   โ”‚ 0               โ”‚ 0   โ”‚ -1  โ”‚ -1  โ”‚ 824   โ”‚ # (1)!
โ”‚ chime.event.baseband.raw โ”‚ 824   โ”‚ 0               โ”‚ 0   โ”‚ 0   โ”‚ 0   โ”‚ 824   โ”‚ # (2)!
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Legend: Observed, Expected
NOTE: In the case where more files are expected at a site other than minoc, that
this may be due to the file type filtering when querying each site. This is a
known limitation of the current implementation.
  1. The Observed number of files.
  2. The Expected number of files.
Bash
โฏ datatrail scout 382085503
                           Scout Results for 382085503
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Scope                     โ”ƒ chime โ”ƒ baseband_buffer โ”ƒ kko โ”ƒ gbo  โ”ƒ hco โ”ƒ minoc โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ chime.event.baseband.raw  โ”‚ 824   โ”‚ 0               โ”‚ 0   โ”‚ -1   โ”‚ -1  โ”‚ 824   โ”‚
โ”‚ chime.event.baseband.raw  โ”‚ 824   โ”‚ 0               โ”‚ 0   โ”‚ 0    โ”‚ 0   โ”‚ 824   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ chime.event.intensity.raw โ”‚ 162   โ”‚ 0               โ”‚ 0   โ”‚ -1   โ”‚ -1  โ”‚ 164   โ”‚
โ”‚ chime.event.intensity.raw โ”‚ 164   โ”‚ 0               โ”‚ 0   โ”‚ 0    โ”‚ 0   โ”‚ 164   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ gbo.event.baseband.raw    โ”‚ 0     โ”‚ 0               โ”‚ 0   โ”‚ -1   โ”‚ -1  โ”‚ 1024  โ”‚
โ”‚ gbo.event.baseband.raw    โ”‚ 0     โ”‚ 0               โ”‚ 0   โ”‚ 1024 โ”‚ 0   โ”‚ 1024  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Legend: Observed, Expected
NOTE: In the case where more files are expected at a site other than minoc, that this may
be due to the file type filtering when querying each site. This is a known limitation of
the current implementation.

Negative files

If the server encounters an error it is represented as a negative number. Which can occur when communicating with the mini-servers running at each storage element.

Healing at Minoc

In some cases, the number of files expected at minoc may be less than the number that actually exist there. This can occur when API requests drop, leading to an inconsistent state in the database. When this is seen by scout, the command offers to remedy the situation by adding the missing replicas.

Bash
โฏ datatrail scout chime.event.baseband.raw 383577603
                          Scout Results for 383577603
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Scope                    โ”ƒ chime โ”ƒ baseband_buffer โ”ƒ kko โ”ƒ gbo โ”ƒ hco โ”ƒ minoc โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ chime.event.baseband.raw โ”‚ 702   โ”‚ 0               โ”‚ 0   โ”‚ -1  โ”‚ -1  โ”‚ 702   โ”‚
โ”‚ chime.event.baseband.raw โ”‚ 702   โ”‚ 0               โ”‚ 0   โ”‚ 0   โ”‚ 0   โ”‚ 699   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Legend: Observed, Expected
NOTE: In the case where more files are expected at a site other than minoc, that this may
be due to the file type filtering when querying each site. This is a known limitation of
the current implementation.

Scopes with minoc discrepancy:
 - chime.event.baseband.raw

Would you like to attempt to heal this discrepancy? [y/n]: y
chime.event.baseband.raw - Healing successful.