From 6ef345bd1840c5bd411c9f76b098790ea31d3c9b Mon Sep 17 00:00:00 2001 From: Akshay Patel Date: Mon, 29 Aug 2022 14:09:30 +0000 Subject: [PATCH] GitBook: [#1] Update number of providers --- .../deploying-components/deploying-provider.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/building-with-ocean/deploying-components/deploying-provider.md b/building-with-ocean/deploying-components/deploying-provider.md index 35e41a13a..efcfe83e1 100644 --- a/building-with-ocean/deploying-components/deploying-provider.md +++ b/building-with-ocean/deploying-components/deploying-provider.md @@ -34,6 +34,10 @@ AQUARIUS_URL= ### Create docker-compose file +{% hint style="info" %} +Set the value of OCEAN\_PROVIDER\_WORKERS to 2 or more to avoid a race condition when provider checks whether it should call a remote provider or not. +{% endhint %} + {% code title="docker-compose.provider.yml" %} ```yaml version: '3' @@ -50,7 +54,7 @@ services: PROVIDER_PRIVATE_KEY: ${PROVIDER_PRIVATE_KEY} LOG_LEVEL: DEBUG OCEAN_PROVIDER_URL: "http://0.0.0.0:8030" - OCEAN_PROVIDER_WORKERS: "1" + OCEAN_PROVIDER_WORKERS: "2" OCEAN_PROVIDER_TIMEOUT: "9000" # Defining OPERATOR_SERVICE_URL is optional. Set the value only if Provider should support Compute-to-data. OPERATOR_SERVICE_URL: ""