When running an NodeJs application with OracleNosql, found multiple connections are being open and not getting closed after execution. When there is a high throughput or request timeout issue case also the connections are opening large in count and not getting closed. Can anyone suggest how to control huge open connections between nodejs application and oraclenosql.
https://oracle.github.io/nosql-node-sdk/global.html#Config Here at this documentation too, could not find any max connection pool-size property configuration.
Edit1:
public noSQLClient: NoSQLClient = new NoSQLClient({
serviceType: ServiceType.KVSTORE,
endpoint: env.DB_HOST
});
You can add httpOpt as follows:
The particular numbers above are just as example.
Another thing that you can do is to set keepAlive to false (by default it is set to true currently):
This will make sure that no free sockets are open, but may affect the performance.