Skip to content

Commit

Permalink
feat: updated workers concurrenct
Browse files Browse the repository at this point in the history
  • Loading branch information
mckrava committed Nov 22, 2023
1 parent eab2fef commit b417a43
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
53 changes: 27 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,32 @@ services:
POSTGRES_PASSWORD: SuperSecret!23
POSTGRES_USER: postgres
POSTGRES_DB: postgres_aggregator_main
# volumes:
# - ./.docker-data/postgres:/var/lib/postgresql/data
# volumes:
# - ./.docker-data/postgres:/var/lib/postgresql/data
networks:
- aggregator_dev

aggregator_app_nest:
build:
context: ./
dockerfile: local.Dockerfile
image: aggregator_app_nest
container_name: aggregator_app_nest
depends_on:
- aggregator_queue_redis
- aggregator_main_pg_db
environment:
AGGREGATOR_DB_HOST: aggregator_main_pg_db
AGGREGATOR_DB_PORT: 5432
AGGREGATOR_REDIS_HOST: aggregator_queue_redis
AGGREGATOR_REDIS_PORT: 6379
AGGREGATOR_HISTORY_RENEW_INTERVAL_MS: 30000
APP_PORT: 8080
NODE_ENV: development
ports:
- '8080:8080'
volumes:
- ./:/app
- /app/node_modules
networks:
- aggregator_dev
# aggregator_app_nest:
# build:
# context: ./
# dockerfile: local.Dockerfile
# image: aggregator_app_nest
# container_name: aggregator_app_nest
# depends_on:
# - aggregator_queue_redis
# - aggregator_main_pg_db
# environment:
# AGGREGATOR_DB_HOST: aggregator_main_pg_db
# AGGREGATOR_DB_PORT: 5432
# AGGREGATOR_REDIS_HOST: aggregator_queue_redis
# AGGREGATOR_REDIS_PORT: 6379
# AGGREGATOR_HISTORY_RENEW_INTERVAL_MS: 30000
# APP_PORT: 8080
# NODE_ENV: development
# ports:
# - '8080:8080'
# volumes:
# - ./:/app
# - /app/node_modules
# networks:
# - aggregator_dev
2 changes: 1 addition & 1 deletion src/modules/queueProcessor/queueProcessor.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { DatasourceChunkParallelHandlingConsumer } from './services/consumers/da
name: SubIdAggregatorQueueName.DATASOURCE_CHUNKS_PARALLEL_HANDLING,
processors: [
{
concurrency: 5,
concurrency: 100,
name: 'TRANSFER_CHUNK',
path: join(
__dirname,
Expand Down

0 comments on commit b417a43

Please sign in to comment.