Documentation Index

Fetch the complete documentation index at: https://docs.datajet.app/llms.txt

Use this file to discover all available pages before exploring further.

Server Configuration File

Prev Next

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 both djserver.cnfg and djclient.cnfg are 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

SettingValueDescription
pathpathRoot DataJet path.
binpathLocation of the server binaries.
datapathpathLocation of the data sources.
shareddatapathpathLocation of shared data sources.
portaportPrimary port.
portbportSecondary port.
mongoURLhostMongoDB host.
mongoPortportMongoDB port.
rms16–256Requestable Memory Size in GB; see Command Line → rms. Default = 32
processPoolSizeinteger
IPaddress
localPortport
corePortport
coreLGBinteger
fragmentsinteger
coreCacheinteger
scriptSemaphoreSizeinteger
exportSemaphoreSizeinteger
allowLocalLogintrue / false
FTP_ROOT, FTP_USERNAME, FTP_PASSWORD, FTP_URL, FTP_PORT, FTP_MODE, FTP_FILE_DESTINATION, FTP_DEBUG_INFO—
pythonpathPath to the Python executable.
RcommandR 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"
}

See also