Controller to coordinate all requests between frontend CMS and APIs involved in dataset upload, creation and editing.
To run this service you must have Golang installed on a UNIX machine.
Once you have installed those dependencies and cloned this repo you need to run the following:
- Move into the correct directory
cd dp-publishing-dataset-controller
- Run the service
make debug
Environment variable | Default | Description |
---|---|---|
BIND_ADDR | :24000 | The host and port to bind to |
API_ROUTER_URL | http://localhost:23200/v1 | The URL of the dp-api-router |
BABBAGE_URL | http://localhost:8080 | The URL for Babbage |
DATASET_BATCH_SIZE | 100 | Size of the batches, used for pagination |
DATASET_BATCH_WORKERS | 10 | Number of batch workers, used for pagination |
GRACEFUL_SHUTDOWN_TIMEOUT | 5s | The graceful shutdown timeout in seconds |
HEALTHCHECK_INTERVAL | 30s | Healthcheck interval in seconds |
HEALTHCHECK_CRITICAL_TIMEOUT | 90s | Healthcheck timeout in seconds |
See CONTRIBUTING for details.
Copyright © 2021, Office for National Statistics (https://www.ons.gov.uk)
Released under MIT license, see LICENSE for details.