Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.46 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.46 KB

Build Status Coverage Status Code Health

metadatastore

NSLS2 Beamlines metadatastore prototype implemented in MongoDB.

metadatastore configuration

Metadatastore requires the following configuration information:

database: metadatastore
port: 27017
host: 127.0.0.1
timezone: US/Eastern

where

This configuration information can live in up to four different places, as defined in the docstring of the load_configuration function in metadatastore/conf.py. In order of increasing precedence:

  1. The conda environment
  • CONDA_ENV/etc/{name}.yaml (if CONDA_ETC_env is defined)
  1. At the system level
  • /etc/{name}.yml
  1. In the user's home directory
  • ~/.config/{name}/connection.yml
  1. Environmental variables
  • {PREFIX}_{FIELD}

where

  • {name} is metadatastore
  • {PREFIX} is MDS and {FIELD} is one of {host, database, port, timezone}