You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: service_config/service.md
+29
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,11 @@ The environmental variables for the clearlydefined-api-dev App Service include:
79
79
* DEFINITION_MONGO_TRIMMED_COLLECTION_NAME
80
80
* DEFINITION_MONGO_CONNECTION_STRING
81
81
* DEFINITION_STORE_PROVIDER
82
+
* DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE
83
+
* DEFINITION_UPGRADE_PROVIDER
84
+
* DEFINITION_UPGRADE_QUEUE_PROVIDER
85
+
* DEFINITION_UPGRADE_QUEUE_CONNECTION_STRING
86
+
* DEFINITION_UPGRADE_QUEUE_NAME
82
87
* DOCKER_CUSTOM_IMAGE_NAME
83
88
* DOCKER_ENABLE_CI
84
89
* DOCKER_REGISTRY_SERVER_PASSWORD
@@ -233,6 +238,30 @@ This was the Mongo collection which stores the entire definition information in
233
238
234
239
This is the string we use to connect to the **clearlydefined** Mongo DB in the enviroments Azure Cosmos DB account.
235
240
241
+
### DEFINITION_UPGRADE_PROVIDER
242
+
This is a string value that specifies how the service handles the definition when its schema version becomes stale.
243
+
244
+
**Valid values**: `versionCheck`, `upgradeQueue`
245
+
**Default**: `versionCheck`
246
+
247
+
-`versionCheck`: If this option is selected then the service will check the schema version and recompute the definition on-the-fly if it becomes stale.
248
+
-`upgradeQueue`: If this option is selected then service will return the existing definition, and if the schema has changed, the service will queue a recompute operation. The updated definition will be returned in subsequent requests once the recomputation is completed.
249
+
250
+
### DEFINITION_UPGRADE_QUEUE_PROVIDER
251
+
This string value determines which queuing implementation will be used to queue upgrades (recomputes).
252
+
253
+
**Valid values**: `memory`, `azure`
254
+
**Default**: `memory`
255
+
256
+
### DEFINITION_UPGRADE_QUEUE_CONNECTION_STRING
257
+
This is a field for the connection string to the Azure Storage Queue. If no value is provided, the connection information from `HARVEST_AZBLOB_CONNECTION_STRING` will be used.
258
+
259
+
### DEFINITION_UPGRADE_QUEUE_NAME
260
+
This string value specifies the name of the upgrade (recompute) queue. **Default**: `definitions-upgrade`
261
+
262
+
### DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE
263
+
This string value defines the number of messages that will be dequeued at once from the upgrade (recompute) queue. **Default**: `16`
264
+
236
265
### DOCKER
237
266
238
267
The Docker environmental variables define what container image is used for the Crawler, as well as what registry that image is kept in, and authentication info for the registry.
0 commit comments