Configuring DVID
Before running DVID, you can specify the various ports, storage backends, email notification address and mail server in case of crashes, and other run-time options.
DVID configuration is specified in a TOML file. It's an easily readable configuration format that maps unambiguously to a hash table. There are simple and more complex example configuration files within the DVID source code repository.
A filled-in example might look like this:
The only required configuration is the [store]
section. In particular, you must specify at least one store. If you specify more than one store, you must also include the [backend]
section and set a [backend.default]
to the default store.
The [server]
section allows you to set the RPC and HTTP ports as well as the path to a web app that comes up when you point a web browser to the root HTTP address. The httpAddress
option allows for binding to unique IP addresses. This is crucial for hosting on cloud services such as AWS. Note that some port addresses could be protected on your machine, so if you have trouble getting http://myserver:port/api/help
in your web browser, try a different (particularly larger) port. The defaults port 8000 (http) and 8001 (rpc) work well.
The webClient
property is a path to static website code for DVID administration, etc. We suggest you download the dvid console project and set the webClient
path to its location. The stock dvid console lets you browse data repos and provides nice graphical representations of the data versions.
If you've configured the [email]
section and there is a catchable panic, the DVID server will try to email an admin and continue on. Here's an example email you'll hopefully never receive but could be useful during debugging new features: