Skip to content

Commit d0b6ffb

Browse files
authored
Merge pull request #118 from qtomlinson/qt/update_doc
Document environment variables related to queueing upgrade/recompute
2 parents 4da865b + b81d90d commit d0b6ffb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

service_config/service.md

+29
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ The environmental variables for the clearlydefined-api-dev App Service include:
7979
* DEFINITION_MONGO_TRIMMED_COLLECTION_NAME
8080
* DEFINITION_MONGO_CONNECTION_STRING
8181
* 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
8287
* DOCKER_CUSTOM_IMAGE_NAME
8388
* DOCKER_ENABLE_CI
8489
* DOCKER_REGISTRY_SERVER_PASSWORD
@@ -233,6 +238,30 @@ This was the Mongo collection which stores the entire definition information in
233238

234239
This is the string we use to connect to the **clearlydefined** Mongo DB in the enviroments Azure Cosmos DB account.
235240

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+
236265
### DOCKER
237266

238267
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

Comments
 (0)