Sign inSign up

wavesplatform/data-service-candles

By wavesplatform

•Updated over 6 years ago

Image
1

10K+

wavesplatform/data-service-candles repository overview

⁠Data Service Candles Daemon in Docker

⁠About the image

This Docker image contains scripts and configs to run Data Service Candles Daemon. The image adds functionality to Data Service⁠ to calculate and update DEX candles inside the Postgres database (see Requirements).

Container downloads source code and configuration files from the repository⁠ and runs it.

⁠Requirements ⚠️

  1. PostgreSQL 10 database with a table structure found in wavesplatform/blockchain-postgres-sync⁠
  2. Downloaded and continuously updated blockchain data in the database
  3. Docker for running the service in a container

⁠Running the image

The simplest way to run a container:

docker run -e PGHOST=*** -e PGDATABASE=*** -e PGUSER=*** -e PGPASSWORD=*** -it wavesplatform/candles-daemon

You can run container with environment variables:

Env variableDefaultRequiredDescription
PGHOSTYESPostgres host address
PGPORT5432NOPostgres port
PGDATABASEYESPostgres database name
PGUSERYESPostgres user name
PGPASSWORDYESPostgres password
PGPOOLSIZE20NOPostgres pool size
LOG_LEVELinfoNOLog level ['info','warn','error']
CANDLES_UPDATE_INTERVAL_2500NOMinimum daemon update time in ms. If time is exceeded, the next iteration starts immediately
CANDLES_UPDATE_TIMEOUT20000NOIf the update time in ms is exceeded, the daemon terminates
RECALCULATE_ALL_CANDLES_ON_STARTtrueNOTruncate all data from candles table and recalculate all candles

PGPOOLSIZE is used by the pg-pool library to determine Postgres connection pool size per NodeJS process instance. A good value depends on your server and db configuration and can be found empirically. You can leave it at the default value to start with.

Tag summary

Content type

Image

Digest

Size

108.3 MB

Last updated

over 6 years ago

docker pull wavesplatform/data-service-candles