diff --git a/docs/setup/setup.md b/docs/setup/setup.md index f7e7a794b..53cac5562 100644 --- a/docs/setup/setup.md +++ b/docs/setup/setup.md @@ -148,7 +148,16 @@ username, password, IP address/hostname, and port. "ConnectionStrings": { "Type": "mongodb", "InformaticsGatewayDatabase": "mongodb://username:password@IP:port", - "DatabaseName": "InformaticsGateway" + "DatabaseOptions": { + "DatabaseName": "InformaticsGateway", + "retries": { + "delays": [ + "750", + "1201", + "2500" + ] + } + } } } ``` diff --git a/src/InformaticsGateway/appsettings.Development.json b/src/InformaticsGateway/appsettings.Development.json index 6c6e82c55..c37228d88 100755 --- a/src/InformaticsGateway/appsettings.Development.json +++ b/src/InformaticsGateway/appsettings.Development.json @@ -5,7 +5,16 @@ "ConnectionStrings": { "Type": "mongodb", "InformaticsGatewayDatabase": "mongodb://root:rootpassword@localhost:27017", - "DatabaseName": "InformaticsGateway" + "DatabaseOptions": { + "DatabaseName": "InformaticsGateway", + "retries": { + "delays": [ + "750", + "1201", + "2500" + ] + } + } }, "InformaticsGateway": { "dicom": { diff --git a/tests/Integration.Test/appsettings.mongodb.json b/tests/Integration.Test/appsettings.mongodb.json index 93e9973e5..59d8b044c 100644 --- a/tests/Integration.Test/appsettings.mongodb.json +++ b/tests/Integration.Test/appsettings.mongodb.json @@ -2,6 +2,15 @@ "ConnectionStrings": { "Type": "mongodb", "InformaticsGatewayDatabase": "mongodb://root:rootpassword@localhost:27017", - "DatabaseName": "InformaticsGateway" + "DatabaseOptions": { + "DatabaseName": "InformaticsGateway", + "retries": { + "delays": [ + "750", + "1201", + "2500" + ] + } + } } } \ No newline at end of file