NSLS2 Beamlines metadatastore prototype implemented in MongoDB.
Metadatastore requires the following configuration information:
database: metadatastore
port: 27017
host: 127.0.0.1
timezone: US/Eastern
where
metadatastore
can be any valid string127.0.0.1
can be any IP/DNS nameUS/Eastern
can be any [of these timezone strings] (https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/timezone.html)
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:
- The conda environment
- CONDA_ENV/etc/{name}.yaml (if CONDA_ETC_env is defined)
- At the system level
- /etc/{name}.yml
- In the user's home directory
- ~/.config/{name}/connection.yml
- Environmental variables
- {PREFIX}_{FIELD}
where
- {name} is metadatastore
- {PREFIX} is MDS and {FIELD} is one of {host, database, port, timezone}