|
12 | 12 | "SKU": { |
13 | 13 | "defaultValue": "F1", |
14 | 14 | "type": "String", |
| 15 | + "metadata": { |
| 16 | + "description": "The SKU of App Service Plan (e.g B1, B2, POV3, P2MV3, I3MV2, I6V2 etc.)." |
| 17 | + } |
| 18 | + }, |
| 19 | + "ApplicationLogLevel": { |
| 20 | + "defaultValue": "INFO", |
| 21 | + "type": "String", |
15 | 22 | "allowedValues": [ |
16 | | - "B1", |
17 | | - "B2", |
18 | | - "B3", |
19 | | - "D1", |
20 | | - "F1", |
21 | | - "FREE", |
22 | | - "I1", |
23 | | - "I1v2", |
24 | | - "I2", |
25 | | - "I2v2", |
26 | | - "I3", |
27 | | - "I3v2", |
28 | | - "P1V2", |
29 | | - "P1V3", |
30 | | - "P2V2", |
31 | | - "P2V3", |
32 | | - "P3V2", |
33 | | - "P3V3", |
34 | | - "PC2", |
35 | | - "PC3", |
36 | | - "PC4", |
37 | | - "S1", |
38 | | - "S2", |
39 | | - "S3", |
40 | | - "SHARED", |
41 | | - "WS1", |
42 | | - "WS2", |
43 | | - "WS3" |
| 23 | + "DEBUG", |
| 24 | + "INFO", |
| 25 | + "WARNING", |
| 26 | + "ERROR" |
44 | 27 | ], |
45 | 28 | "metadata": { |
46 | | - "description": "The SKU of App Service Plan." |
| 29 | + "description": "The Level of logging for the application." |
47 | 30 | } |
48 | 31 | }, |
49 | 32 | "MongodbConnectionString": { |
|
96 | 79 | } |
97 | 80 | }, |
98 | 81 | "IncrementalSyncBatchSize": { |
99 | | - "defaultValue": "10000", |
| 82 | + "defaultValue": "1000", |
100 | 83 | "type": "String", |
101 | 84 | "metadata": { |
102 | 85 | "description": "Batch size (rows) used for incremental sync" |
103 | 86 | } |
104 | | - } |
105 | | - |
| 87 | + }, |
| 88 | + "IncrementalSyncMaxTimeInterval": { |
| 89 | + "defaultValue": "180", |
| 90 | + "type": "String", |
| 91 | + "metadata": { |
| 92 | + "description": "Time interval (in secs), incremental sync waits before replicating accumulated changes when next event occurs" |
| 93 | + } |
| 94 | + } |
106 | 95 | }, |
107 | 96 | "variables": { |
108 | 97 | "appServicePlanPortalName": "[format('AppServicePlan-{0}', parameters('webAppName'))]" |
|
150 | 139 | "[resourceId('Microsoft.Web/sites', parameters('webAppName'))]" |
151 | 140 | ], |
152 | 141 | "properties": { |
153 | | - "LOG_LEVEL": "INFO", |
| 142 | + "APP_LOG_LEVEL": "[parameters('ApplicationLogLevel')]", |
154 | 143 | "MONGO_CONN_STR": "[parameters('MongodbConnectionString')]", |
155 | 144 | "MONGO_DB_NAME": "[parameters('MongodbDatabaseName')]", |
156 | 145 | "MONGO_COLLECTION": "[parameters('MongodbCollection')]", |
|
159 | 148 | "SECRET": "[parameters('AzureApplicationSecret')]", |
160 | 149 | "TENANT_ID": "[parameters('AzureApplicationTenantID')]", |
161 | 150 | "INIT_LOAD_BATCH_SIZE": "[parameters('InitSyncBatchSize')]", |
162 | | - "DELTA_SYNC_BATCH_SIZE": "[parameters('IncrementalSyncBatchSize')]" |
| 151 | + "DELTA_SYNC_BATCH_SIZE": "[parameters('IncrementalSyncBatchSize')]", |
| 152 | + "TIME_THRESHOLD_IN_SEC": "[parameters('IncrementalSyncMaxTimeInterval')]" |
163 | 153 | } |
164 | 154 | }, |
165 | 155 | { |
|
0 commit comments