Jitsu Server
There' two options on how to deploy Jitsu Server.
-
Standalone Deployment (with ENV variables): server won't pull configuration from Configurator. This is a easiest way to deploy Jitsu server. For configuring destinations, sources, API keys and etc you'll need to use
API_KEYS_URL
,DESTINATIONS_URL
orSOURCES_URL
which point to local file or, URL containing configuration, or JSON object (yes,_URL
postfix is a little confusing). See detailed explanation below. -
Standalone Deployment (with config file): Jistu server is configured with Configurator UI β it pulls configuration from Configurator with HTTP.
-
Coupled with Configurator (config with a file): Jitsu server is configured with Configurator UI, it pulls configuration from Configurator with HTTP (see
JITSU_CONFIGURATOR_URL
). You'll still need to set system properties such asCLUSTER_ADMIN_TOKEN
,REDIS_URL
In all cases you should use @jitsucom/server
image
Standalone deployment#
Please, read a section about structure of Jitsu Server configuration file. The is
file called eventnative.yaml
(we renamed from EventNative to Jitsu a while ago, but you'll see the name in config and code here and there).
Don't forget to map /home/eventnative/data/config/eventnative.yaml
to locally created configuration file!
Exposed ports#
@jitsucom/server
image exposes 8001
port
Environment Variable#
If you're configuring Jitsu in Standalone mode (with configuration file) - skip this section, those variables will not work!
Admin Token for authorizing requests from/to Configurator.
Redis connection string: redis://:password@host:port
or
redis://host:port
without password
Jitsu Server listening port. Default value is 8001
.
HTTP URL of Jitsu Configurator. Required if Jitsu Server is going to be configured with Configurator UI. If
JITSU_CONFIGURATOR_URL
following env variables will be
ignored: API_KEYS_URL
, DESTINATIONS_URL
and
SOURCES_URL
Default value is 10080 minutes (7 days). This setting controls when user events are evicted from user recognition cache. Read more about user recognition eviction policy
Redis: skip client certificate verification
If Retroactive User Recognition should be enabled.
false
by default
Redis connection string: redis://:password@host:port
or
redis://host:port without password
for using separate Redis for anonymous events. Read more about
Redis storage memory optimization.
Redis connection string: redis://:password@host:port
or
redis://host:port without password
for using separate Redis for incoming events JSON queue. All destinations in stream
mode uses Redis events queue (if REDIS_URL or EVENTS_QUEUE_REDIS_URL configured). Otherwise they use in-memory queue).
Path to MaxMind file (read more about geo-resolution).
Can be either path to file (inside docker-mounted dir) or maxmind://[license key]
.
The latter will make Jitsu to download files from MaxMind servers using your license key. Read more about the capability
read more about here.
Slack webhook URL. Server starts, system errors, and panics information will be sent there
Enable SQL DDL debug logs (create, update table statements). Default value is true
Enable SQL inserts debug logs. Warning: this feature can take significant disk space: all SQL
insert statements will be written into the log file.
Default value is false
Synchronization data batch size for writing into destinations. Default value is 10000
.
If you server has enough RAM you can increase this value for speed up your sources synchronization.
Can be an URL for getting API keys JSON or raw JSON. Read more about API keys configuration format.
This var is not compatible with JITSU_CONFIGURATOR_URL
(see above)
Can be an URL for getting Destinations configuration JSON or raw JSON. Read more about Destinations configuration format.
This var is not compatible with JITSU_CONFIGURATOR_URL
(see above)
Can be an URL for getting Sources configuration JSON or raw JSON. Read more about Sources configuration format.
This var is not compatible with JITSU_CONFIGURATOR_URL
(see above)
Disables extended telemetry collection.
Deployment ID for extended telemetry collection. By default, clusterId
would be used as deployment ID.
Base Configurator UI URL for generating links in notifications.
Whether the server should enrich incoming HTTP events with HTTP context (headers, etc.).
Please note that when upgrading from Jitsu 1.41.6 you can switch this setting to true
only separately from the upgrade itself, otherwise event data may get corrupted.
Volumes#
Do not forget to chmod 777 /local_logs_mount
if you're mounting
/home/eventnative/data/logs/
Do mount jitsu_workspace
and /var/run/docker.sock
if you want Airbyte based connectors to work
Path (inside docker image) | Description |
---|---|
/home/eventnative/data/logs/ *(Highly recommended to mount) | To send data in batches to destination,
Jitsu needs to persist current batch on local disk. Internal queues are also persisted locally. If you
don't want to loose the data, it's highly recommended to mount this volume. |
/home/eventnative/data/airbyte (optional) | Required for Airbyte connectors support. Mount with |
/var/run/docker.sock (optional) | Required for Airbyte connectors support. Mount to |
/home/eventnative/data/config/eventnative.yaml (optional) | That's the server configuration file. Do not touch it unless you're configuring Jitsu in standalone mode |