Skip to content

Commit edbe09f

Browse files
author
Dushyant Bhalgami
authored
Merge pull request #45 from topcoder-platform/develop
added connection pool and other configs
2 parents 8a71554 + 6b87963 commit edbe09f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
KAFKA_ERROR_TOPIC: process.env.KAFKA_ERROR_TOPIC || 'common.error.reporting',
3030

3131
// health check timeout in milliseconds
32-
HEALTH_CHECK_TIMEOUT: process.env.HEALTH_CHECK_TIMEOUT || 3000,
32+
HEALTH_CHECK_TIMEOUT: process.env.HEALTH_CHECK_TIMEOUT || 60000,
3333

3434
// Kafka Topics
3535
KAFKA_GROUP_CREATE_TOPIC: process.env.KAFKA_GROUP_CREATE_TOPIC || 'groups.notification.create',

src/common/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ let busApiClient
1717

1818
const driver = neo4j.driver(config.GRAPH_DB_URI, neo4j.auth.basic(config.GRAPH_DB_USER, config.GRAPH_DB_PASSWORD), {
1919
maxConnectionLifetime: 20 * 60 * 1000,
20-
// connectionTimeout: 1000 * 45,
21-
// connectionAcquisitionTimeout: 60000,
20+
connectionTimeout: 120000,
21+
connectionAcquisitionTimeout: 120000,
2222
maxTransactionRetryTime: 10000,
2323
connectionPoolSize: 300
2424
})

0 commit comments

Comments
 (0)