delta

Deployment modes

By default, delta will run on cluster mode but users can standup a standalonemode. standalone mode primarily for those who want to run delta in an isolated environment. This mode will create a local database and a local static API key for all requests.

Prepare the .env file.

Copy the .env.example file to .env and update the values as needed.

# Node info
NODE_NAME=delta-node
NODE_DESCRIPTION=Experimental Deal Maker
NODE_TYPE=delta-main

# Database configuration
MODE=standalone
DB_DSN=delta.db
DELTA_AUTH=[NODE_API_KEY_HERE]

# Frequencies
MAX_CLEANUP_WORKERS=1500

Here are the fields in the .env file:

Put the .env file in the same location as the binary/executable.

MODE=Standalone

With .env file in place, run the following command to start the node in standalone mode.

./delta daemon --mode=standalone

MODE=Cluster

By default, delta will run on cluster mode. This mode will create a local database that can be reconfigured to use a remote HA database and estuary-auth as the authentication and authorizatio component.

When running in cluster mode, users need to register for an API_KEY using the following command.

Request

curl --location --request GET 'https://auth.estuary.tech/register-new-token'

Response

{
"expires": "2123-02-03T21:12:15.632368998Z",
"token": "<API_KEY>"
}

Place the API_KEY in the .env file.

Run in cluster mode

With .env file in place, run the following command to start the node in standalone mode.

./delta daemon --mode=cluster