connection-pooling

Postgres connection pooling - multiple users

我的未来我决定 提交于 2021-02-08 03:07:57
问题 In order to secure our database we create a schema for each new customer. We then create a user for this schema and when a customer logs in via the web we use their user and hence prevent them gaining access to other areas of the database. Our issue is with connection pooling as it is a bit inefficient to keep creating/dropping new connections for these users. We would like to have a solution that can work across many hundreds of different database users. We've looked at pg_bouncer, but the

How to use connection pooling with HttpsUrlConnectionMessageSender

拟墨画扇 提交于 2021-02-07 10:35:45
问题 I am trying to make a Soap request using Spring WS. The request needs to send across client certificate to the server. I have figured out the configuration that makes the correct request to the server. Code presented below @Bean public HttpsUrlConnectionMessageSender messageSender() throws Exception { HttpsUrlConnectionMessageSender httpsUrlConnectionMessageSender = new HttpsUrlConnectionMessageSender(); httpsUrlConnectionMessageSender.setTrustManagers(<TrustManager>);

How to use connection pooling with HttpsUrlConnectionMessageSender

前提是你 提交于 2021-02-07 10:35:21
问题 I am trying to make a Soap request using Spring WS. The request needs to send across client certificate to the server. I have figured out the configuration that makes the correct request to the server. Code presented below @Bean public HttpsUrlConnectionMessageSender messageSender() throws Exception { HttpsUrlConnectionMessageSender httpsUrlConnectionMessageSender = new HttpsUrlConnectionMessageSender(); httpsUrlConnectionMessageSender.setTrustManagers(<TrustManager>);

Oracle RESET_PACKAGE does not reset value of a variable in the session

邮差的信 提交于 2021-02-05 09:42:42
问题 I have an app where JDBC connections are pooled. This is related to my question. For simplicity let's assume I have 1 connection and I need to set a variable then reset session / context state. However the idea is not reverse / reset the 'app1_ctx' variable particularly as in the actual case users can enter many procedures that set many variables so what I need is one procedure that clears all session related variables or even restart session. (please check this question too to understand the

Changes in database session context persists with pooled connection reuse

二次信任 提交于 2021-02-05 07:17:44
问题 In my application I have multithreads that needs to access database and I am using apache.tomcat.jdbc.pool.DataSource as a JDBC connection pool. In some cases users execute stored procedures that might affect the database session context/variables before executing another query to retrieve some data. After a thread is finished, connection is closed but the way the pooled connections work, the connection is not actually closed but rather returned to the connection pool for reuse. The problem

Changes in database session context persists with pooled connection reuse

允我心安 提交于 2021-02-05 07:17:10
问题 In my application I have multithreads that needs to access database and I am using apache.tomcat.jdbc.pool.DataSource as a JDBC connection pool. In some cases users execute stored procedures that might affect the database session context/variables before executing another query to retrieve some data. After a thread is finished, connection is closed but the way the pooled connections work, the connection is not actually closed but rather returned to the connection pool for reuse. The problem

Does RDS proxy affects current application side pooling?

此生再无相见时 提交于 2021-02-04 21:00:37
问题 I have a Saas application on AWS ECS and databases on AWS RDS. We are planning to implement AWS RDS Proxy for pooling implementation. From the RDS proxy documentation, I saw that we don't need to make any changes to the application code. Currently, we are using application side connection pooling. When we implement an RDS proxy for pooling, does the current pooling have any impact? Do we need to remove the application side pooling to work with RDS effectively? My main concern is, if I choose

Cannot configure pgpool with master and slave nodes

╄→гoц情女王★ 提交于 2021-01-29 22:02:12
问题 I have created a master-slave postgreSQL (I have one cluster as main and the other one as hot_standby). All local host. I used the "pgpool.conf.sample" and changed the backend 1+2 for my master and slave nodes. whenever I open the pgpool and run show pool_nodes; I can see the master + slave but slave is on waiting status. If I return to the configuration file and turn on the master_slave_mode, now both nodes are "up" but they're standby and all goes through the master one. What i'm trying to

Cannot configure pgpool with master and slave nodes

房东的猫 提交于 2021-01-29 17:24:54
问题 I have created a master-slave postgreSQL (I have one cluster as main and the other one as hot_standby). All local host. I used the "pgpool.conf.sample" and changed the backend 1+2 for my master and slave nodes. whenever I open the pgpool and run show pool_nodes; I can see the master + slave but slave is on waiting status. If I return to the configuration file and turn on the master_slave_mode, now both nodes are "up" but they're standby and all goes through the master one. What i'm trying to

How to get the number of connections used (and free) to the MongoDB (from a client perspective)?

我的梦境 提交于 2021-01-29 11:59:40
问题 I'm posting the question here just to be sure I'm not barking on the wrong tree. How to get the number of connections used (and free ) to the MongoDB, but from a client perspective (eg. Java client), using the 4.x driver? There are posts regarding using the serverStatus(Get the number of open connections in mongoDB using java), but it presumes having 'admin' access to the MongoDB. Using a 'regular user'(an db user with lower privileges (e.g access to only one database)) cannot run the