Sign inSign up

wavesplatform/data-service-pairs

By wavesplatform

•Updated over 6 years ago

Image
1

10K+

wavesplatform/data-service-pairs repository overview

⁠Data Service Pairs Daemon in Docker

⁠About the image

This Docker image contains scripts and configs to run Waves Pairs Daemon. The image is focused on work with pairs precalculation.

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/pairs-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']
PAIRS_UPDATE_INTERVAL2500NOMinimum daemon update time. If time is exceeded, the next iteration starts immediately
PAIRS_UPDATE_TIMEOUT20000NOIf the update time is exceeded, the daemon terminates

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

109.3 MB

Last updated

over 6 years ago

docker pull wavesplatform/data-service-pairs