@twin.org/node-core 0.9.2-next.7 → 0.9.2-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/builders/engineEnvBuilder.js +50 -10
- package/dist/es/builders/engineEnvBuilder.js.map +1 -1
- package/dist/es/builders/helper/envHelpers.js +0 -8
- package/dist/es/builders/helper/envHelpers.js.map +1 -1
- package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
- package/dist/es/models/engineEnvironmentVariableKeys.js +27 -2
- package/dist/es/models/engineEnvironmentVariableKeys.js.map +1 -1
- package/dist/es/node.js +1 -1
- package/dist/es/node.js.map +1 -1
- package/dist/types/builders/helper/envHelpers.d.ts +3 -2
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +102 -2
- package/docs/changelog.md +14 -0
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +204 -4
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ export async function buildEngineConfiguration(envVars) {
|
|
|
26
26
|
silentLoggers: commaSeparatedListToArray(envVars.loggingSilentComponents),
|
|
27
27
|
types: {}
|
|
28
28
|
};
|
|
29
|
-
const mutexTimeoutMs = envMs(envVars, "
|
|
29
|
+
const mutexTimeoutMs = envMs(envVars, "mutexTimeoutDefault");
|
|
30
30
|
if (!Is.empty(mutexTimeoutMs)) {
|
|
31
31
|
Mutex.setDefaultTimeoutMs(mutexTimeoutMs);
|
|
32
32
|
}
|
|
@@ -109,7 +109,8 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
109
109
|
accessKeyId: envVars.awsDynamodbAccessKeyId,
|
|
110
110
|
secretAccessKey: envVars.awsDynamodbSecretAccessKey,
|
|
111
111
|
endpoint: envVars.awsDynamodbEndpoint,
|
|
112
|
-
connectionTimeoutMs: envMs(envVars, "awsDynamodbConnectionTimeout")
|
|
112
|
+
connectionTimeoutMs: envMs(envVars, "awsDynamodbConnectionTimeout"),
|
|
113
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
|
|
113
114
|
},
|
|
114
115
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
115
116
|
}
|
|
@@ -123,7 +124,8 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
123
124
|
endpoint: envVars.azureCosmosdbEndpoint ?? "",
|
|
124
125
|
key: envVars.azureCosmosdbKey ?? "",
|
|
125
126
|
databaseId: envVars.azureCosmosdbDatabaseId ?? "",
|
|
126
|
-
containerId: envVars.azureCosmosdbContainerId ?? ""
|
|
127
|
+
containerId: envVars.azureCosmosdbContainerId ?? "",
|
|
128
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
|
|
127
129
|
},
|
|
128
130
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
129
131
|
}
|
|
@@ -138,7 +140,8 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
138
140
|
credentials: envVars.gcpFirestoreCredentials ?? "",
|
|
139
141
|
databaseId: envVars.gcpFirestoreDatabaseId ?? "",
|
|
140
142
|
collectionName: envVars.gcpFirestoreCollectionName ?? "",
|
|
141
|
-
endpoint: envVars.gcpFirestoreEndpoint ?? ""
|
|
143
|
+
endpoint: envVars.gcpFirestoreEndpoint ?? "",
|
|
144
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
|
|
142
145
|
},
|
|
143
146
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
144
147
|
}
|
|
@@ -152,7 +155,12 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
152
155
|
hosts: commaSeparatedListToArray(envVars.scylladbHosts),
|
|
153
156
|
localDataCenter: envVars.scylladbLocalDataCenter ?? "",
|
|
154
157
|
keyspace: envVars.scylladbKeyspace ?? "",
|
|
155
|
-
port: envInteger(envVars, "scylladbPort")
|
|
158
|
+
port: envInteger(envVars, "scylladbPort"),
|
|
159
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout"),
|
|
160
|
+
pool: {
|
|
161
|
+
coreConnectionsPerHost: envCount(envVars, "scylladbPoolCoreConnectionsPerHost"),
|
|
162
|
+
maxRequestsPerConnection: envCount(envVars, "scylladbPoolMaxRequestsPerConnection")
|
|
163
|
+
}
|
|
156
164
|
},
|
|
157
165
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
158
166
|
}
|
|
@@ -167,7 +175,16 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
167
175
|
port: envInteger(envVars, "mySqlPort"),
|
|
168
176
|
user: envVars.mySqlUser ?? "",
|
|
169
177
|
password: envVars.mySqlPassword ?? "",
|
|
170
|
-
database: envVars.mySqlDatabase ?? ""
|
|
178
|
+
database: envVars.mySqlDatabase ?? "",
|
|
179
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout"),
|
|
180
|
+
pool: {
|
|
181
|
+
connectionLimit: envCount(envVars, "mySqlPoolConnectionLimit"),
|
|
182
|
+
maxIdle: envCount(envVars, "mySqlPoolMaxIdle"),
|
|
183
|
+
idleTimeout: envMs(envVars, "mySqlPoolIdleTimeout"),
|
|
184
|
+
enableKeepAlive: envBoolean(envVars, "mySqlPoolEnableKeepAlive"),
|
|
185
|
+
waitForConnections: envBoolean(envVars, "mySqlPoolWaitForConnections"),
|
|
186
|
+
queueLimit: envCount(envVars, "mySqlPoolQueueLimit")
|
|
187
|
+
}
|
|
171
188
|
},
|
|
172
189
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
173
190
|
}
|
|
@@ -182,7 +199,14 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
182
199
|
port: envInteger(envVars, "mongoDbPort"),
|
|
183
200
|
user: envVars.mongoDbUser ?? "",
|
|
184
201
|
password: envVars.mongoDbPassword ?? "",
|
|
185
|
-
database: envVars.mongoDbDatabase ?? ""
|
|
202
|
+
database: envVars.mongoDbDatabase ?? "",
|
|
203
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout"),
|
|
204
|
+
pool: {
|
|
205
|
+
maxPoolSize: envCount(envVars, "mongoDbPoolMaxPoolSize"),
|
|
206
|
+
minPoolSize: envCount(envVars, "mongoDbPoolMinPoolSize"),
|
|
207
|
+
maxIdleTimeMs: envMs(envVars, "mongoDbPoolMaxIdleTime"),
|
|
208
|
+
waitQueueTimeoutMs: envMs(envVars, "mongoDbPoolWaitQueueTimeout")
|
|
209
|
+
}
|
|
186
210
|
},
|
|
187
211
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
188
212
|
}
|
|
@@ -197,7 +221,14 @@ async function configureEntityStorage(coreConfig, envVars) {
|
|
|
197
221
|
port: envInteger(envVars, "postgreSqlPort"),
|
|
198
222
|
user: envVars.postgreSqlUser ?? "",
|
|
199
223
|
password: envVars.postgreSqlPassword ?? "",
|
|
200
|
-
database: envVars.postgreSqlDatabase ?? ""
|
|
224
|
+
database: envVars.postgreSqlDatabase ?? "",
|
|
225
|
+
mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout"),
|
|
226
|
+
pool: {
|
|
227
|
+
max: envCount(envVars, "postgreSqlPoolMax"),
|
|
228
|
+
idleTimeout: envSeconds(envVars, "postgreSqlPoolIdleTimeout"),
|
|
229
|
+
connectTimeout: envSeconds(envVars, "postgreSqlPoolConnectTimeout"),
|
|
230
|
+
maxLifetime: envSeconds(envVars, "postgreSqlPoolMaxLifetime")
|
|
231
|
+
}
|
|
201
232
|
},
|
|
202
233
|
tablePrefix: envVars.entityStorageTablePrefix
|
|
203
234
|
}
|
|
@@ -964,7 +995,9 @@ async function configureIdentity(coreConfig, envVars) {
|
|
|
964
995
|
? envVars.iotaIdentityPackageId
|
|
965
996
|
: undefined,
|
|
966
997
|
walletAddressIndex: envCount(envVars, "identityWalletAddressIndex") ?? 0,
|
|
967
|
-
didResolutionCacheTtlMs: envMs(envVars, "
|
|
998
|
+
didResolutionCacheTtlMs: envMs(envVars, "identityDidResolutionCacheTtl"),
|
|
999
|
+
didResolutionCacheCapacity: envCount(envVars, "identityDidResolutionCacheCapacity"),
|
|
1000
|
+
didResolutionCacheMutexTimeoutMs: envMs(envVars, "identityDidResolutionCacheMutexTimeout")
|
|
968
1001
|
}
|
|
969
1002
|
}
|
|
970
1003
|
});
|
|
@@ -1409,7 +1442,14 @@ async function configureDataspace(coreConfig, envVars) {
|
|
|
1409
1442
|
options: {
|
|
1410
1443
|
config: {
|
|
1411
1444
|
retainActivityLogsForMs: envSecToMs(envVars, "dataspaceRetainActivityLogsFor"),
|
|
1412
|
-
activityLogsCleanUpIntervalMs: envSecToMs(envVars, "dataspaceActivityLogsCleanupInterval")
|
|
1445
|
+
activityLogsCleanUpIntervalMs: envSecToMs(envVars, "dataspaceActivityLogsCleanupInterval"),
|
|
1446
|
+
retryCount: envCount(envVars, "dataspaceRetryCount"),
|
|
1447
|
+
pushRetryCount: envCount(envVars, "dataspacePushRetryCount"),
|
|
1448
|
+
pushRetryBaseDelayMs: envMs(envVars, "dataspacePushRetryBaseDelay"),
|
|
1449
|
+
pushTimeoutMs: envMs(envVars, "dataspacePushTimeout"),
|
|
1450
|
+
pushSubscriptionCleanupIntervalMs: envMs(envVars, "dataspacePushSubscriptionCleanupInterval"),
|
|
1451
|
+
agreementCacheTtlMs: envMs(envVars, "dataspaceAgreementCacheTtl"),
|
|
1452
|
+
agreementCacheMutexTimeoutMs: envMs(envVars, "dataspaceAgreementCacheMutexTimeout")
|
|
1413
1453
|
}
|
|
1414
1454
|
}
|
|
1415
1455
|
});
|