The DataJet server configuration file is called djserver.cnfg. This file can be either in plain text, or encrypted (supplied by DataJet), depending on system requirements. Every Datajet server requires access to a djserver.cnfg file - it is possible for multiple engine instances to reference the same file.
Config file location
The default location of the server config is the engine user folder. Control which server config file is used with the inipath command-line parameter in the engine start-up file:
inipath=[ini_file_location]
The chosen path appears in the start-up log.
Note! — When using
inipath, make sure bothdjserver.cnfganddjclient.cnfgare in the specified location.
Example start-up file
cd bin
DatajetServer.exe path=f:\datajet\ bin=f:\datajet\bin\ porta=5555 portb=5556 shareddatapath=D:\LiveDropbox\Dropbox\DJSharedData\sources datapath=f:\datajet\datasources\ mongoURL=127.0.0.1 mongoPort=27017 rms=48
pause
Configuration file settings
| Setting | Value | Description |
|---|---|---|
| path | path | Root DataJet path. |
| bin | path | Location of the server binaries. |
| datapath | path | Location of the data sources. |
| shareddatapath | path | Location of shared data sources. |
| porta | port | Primary port. |
| portb | port | Secondary port. |
| mongoURL | host | MongoDB host. |
| mongoPort | port | MongoDB port. |
| rms | 16–256 | Requestable Memory Size in GB; see Command Line → rms. Default = 32 |
| processPoolSize | integer | |
| IP | address | |
| localPort | port | |
| corePort | port | |
| coreLGB | integer | |
| fragments | integer | |
| coreCache | integer | |
| scriptSemaphoreSize | integer | |
| exportSemaphoreSize | integer | |
| allowLocalLogin | true / false | |
| FTP_ROOT, FTP_USERNAME, FTP_PASSWORD, FTP_URL, FTP_PORT, FTP_MODE, FTP_FILE_DESTINATION, FTP_DEBUG_INFO | — | |
| python | path | Path to the Python executable. |
| R | command | R invocation (for example RScript). |
| smtpServerName, smtpPort, senderEmailId, senderPassword | — | Outbound email settings (SMTP). |
| ASvrLoggingEndpoint, ASvrLoggingSecret | — | |
| PSvrLoggingEndpoint, PSvrLoggingSecret | — | |
| ASvrEndpoint, ASvrSecret | — | Access-server endpoint and shared secret. |
| TestASvrEndpoint | — | Overrides ASvrEndpoint when a test_access_server.url flag file is present. For test environments only. |
Sample config file (local machine)
{
"processPoolSize": 8,
"IP": "0.0.0.0",
"localPort": 5555,
"corePort": 5556,
"mongoURL": "127.0.0.1",
"mongoPort": 27017,
"coreLGb": 32,
"rms": 32,
"fragments": 2000,
"coreCache": 256,
"scriptSemaphoreSize": 2,
"exportSemaphoreSize": 2,
"allowLocalLogin": true,
"FTP_ROOT": "/path/to/ftp/root/",
"FTP_USERNAME": "<username>",
"FTP_PASSWORD": "<password>",
"FTP_URL": "<ftp-host>",
"FTP_PORT": 22,
"FILE_MODE": "FILE_MOVE",
"FTP_FILE_DESTINATION": "/path/to/destination",
"FTP_DEBUG_INFO": true,
"python": "C:/Program Files/Python311/python.exe",
"R": "RScript",
"smtpServerName": "smtp.example.com",
"smtpPort": 587,
"senderEmailId": "support@example.com",
"senderPassword": "<smtp-password>",
"ASvrLoggingEndpoint": "https://access.example.com/api/0/engine",
"ASvrLoggingSecret": "<asvr-logging-secret>",
"PSvrLoggingEndpoint": "https://access.example.com/api/0/engine",
"PSvrLoggingSecret": "<psvr-logging-secret>",
"TestASvrEndpoint": "https://access.example.com/api/0/key",
"ASvrEndpoint": "https://access.example.com/api/0/key"
}