Server configuration
Command line configuration
TypeDB can use command line arguments for server configuration. For a full list of acceptable arguments run:
typedb server --help
or see Reference below.
All CLI arguments must:
-
start with the double dash prefix
--
, -
be separated from their value (if any) either by an equals sign (
=
) or a whitespace (` `).
Coming soon: configuration via config files. |
Configuration options
Server
The server
section of the configuration contains network and encryption options.
For example, a server can be booted up on 0.0.0.0:1730
by using this command:
typedb server --server.address=0.0.0.0:1730
See the respective section of Reference below for details.
Encryption
If encryption is required, but there are no certificate authorities available on the machine, refer to In-flight encryption certificate for encryption certification recommendations.
Storage
The storage
section of the configuration contains the storage layer options.
For production use, it is recommended that the |
See the respective section of Reference below for details.
Diagnostics
TypeDB optionally reports anonymous diagnostics to guide the development and optimisation of TypeDB. This data includes unex pected errors and occasional system status updates for number and size of databases, as well as numbers of transactions and queries executed per hour.
To see what information is being reported, enable and access the monitoring Web page of the server (e.g. localhost:4104/diagnostics?format=json
).
To configure diagnostics reporting and monitoring, see the respective section of Reference below.
Reference
The following arguments can be used for TypeDB configuration:
Argument | Alias | Description |
---|---|---|
Server |
||
|
Server host and port. Default value: |
|
|
Enable in-flight encryption. Do not specify this argument to leave it disabled. |
|
|
Encryption certificate in PEM format. Must be supplied if encryption is enabled. |
|
|
Encryption certificate key. Must be supplied if encryption is enabled. |
|
|
Encryption CA in PEM format. |
|
Storage |
||
|
Path to the user data directory. Defaults to within the server distribution under server/data. |
|
Diagnostics |
||
|
Enable usage metrics reporting by setting a boolean flag. Default value: |
|
|
Enable critical error reporting by setting a boolean flag. Default value: |
|
|
Enable a diagnostics monitoring HTTP endpoint by setting a boolean flag. Default value: |
|
|
Port on which to expose the diagnostics monitoring endpoint. Default value: |
|
Common |
||
|
|
Show help message. |
|
|
Print version information and exit. |