Skip to content
Snippets Groups Projects
Commit 394081f3 authored by Diego Molteni's avatar Diego Molteni
Browse files

fix: fixed throughput settings

parent cc591a34
No related branches found
No related tags found
2 merge requests!379Removing File Metadata Service,!263fix: fixed throughput settings for Azure cosmo DB
Pipeline #76858 passed
......@@ -41,8 +41,7 @@ export class AzureConfig extends Config {
// max len for a group name in DE
public static DES_GROUP_CHAR_LIMIT = 256;
// cosmo throughput settings
public static COSMO_THROUGHPUT: number;
// cosmo db max throughput settings
public static COSMO_MAX_THROUGHPUT: number;
public async init(): Promise<void> {
......@@ -85,7 +84,6 @@ export class AzureConfig extends Config {
AzureConfig.SERVICE_AUTH_PROVIDER_CREDENTIAL || process.env.SERVICE_AUTH_PROVIDER_CREDENTIAL;
// cosmo throughput settings
AzureConfig.COSMO_THROUGHPUT = +process.env.COSMO_THROUGHPUT || 2500;
AzureConfig.COSMO_MAX_THROUGHPUT = +process.env.COSMO_MAX_THROUGHPUT || 25000;
// init generic configurations
......
......@@ -44,7 +44,6 @@ export class AzureCosmosDbDAO extends AbstractJournal {
const { database } = await cosmosClient.databases.createIfNotExists({id: 'seistore-' + this.dataPartition + '-db'});
const { container } = await database.containers.createIfNotExists({
id: 'seistore-' + this.dataPartition + '-container',
throughput: AzureConfig.COSMO_THROUGHPUT,
maxThroughput: AzureConfig.COSMO_MAX_THROUGHPUT,
partitionKey: '/key'
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment