View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000591 | Pgpool-II | Bug | public | 2020-03-04 15:18 | 2020-03-06 10:24 |
| Reporter | nervzhang | Assigned To | t-ishii | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | open | ||
| Platform | Linux | OS | CentOS | OS Version | 7.7.1908 |
| Product Version | 4.1.1 | ||||
| Summary | 0000591: pgpoo stuck under a large amount of concurrency | ||||
| Description | when I do stress tests,if the concurrency is higher than the num_init_children,pgpool will stuck until I shutdown the test. After the test close,pgpool show me following information: 2020-03-04 11:46:04: pid 2658: ERROR: unable to read data from frontend 2020-03-04 11:46:04: pid 2658: DETAIL: EOF encountered with frontend | ||||
| Steps To Reproduce | postgresql master node:192.168.100.1 postgresql slave1 node:192.168.100.11 postgresql slave2 node:192.168.100.12 pgpool:192.168.100.20 tester:192.168.100.60 All nodes are virtual machine,and connected by internal switch. 1.start postgresql nodes and pgpool node as normal 2.run "sudo -u postgres /usr/pgsql-12/bin/pgbench -h 192.168.100.20 -t 20 -c 250 -j 16 -r postgres -p 9999 -f select.sql" from tester node | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
It's normal. See the FAQ: https://pgpool.net/mediawiki/index.php/FAQ#When_I_run_pgbench_to_test_pgpool-II.2C_pgbench_hangs._If_I_directly_run_pgbench_against_PostgreSQL.2C_it_works_fine._Why.3F |
|
|
My concurrency value is 250,num_init_children value is 180,postgresql max_connections value is 300.In my opnion,first batch of 180 connections will execute correctly,and then when first batch done,second batch of 70 connections will execute from the queue.Could you tell me where is wrong,thanks. |
|
|
No, that's not how pgbench works. Until all of 250 connections is established, no transaction will be issued by pgbench. So "first batch" will never be executed. |
|
|
Thanks a lot. |
|
|
May I close this issue? |
|
|
Yes thanks |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-03-04 15:18 | nervzhang | New Issue | |
| 2020-03-04 15:18 | nervzhang | File Added: pgpool.conf | |
| 2020-03-04 15:18 | nervzhang | File Added: postgresql.conf | |
| 2020-03-04 15:18 | nervzhang | File Added: select.sql | |
| 2020-03-04 16:03 | t-ishii | Assigned To | => t-ishii |
| 2020-03-04 16:03 | t-ishii | Status | new => feedback |
| 2020-03-04 16:03 | t-ishii | Description Updated | |
| 2020-03-04 16:03 | t-ishii | Steps to Reproduce Updated | |
| 2020-03-04 16:03 | t-ishii | Note Added: 0003239 | |
| 2020-03-04 16:22 | nervzhang | Note Added: 0003240 | |
| 2020-03-04 16:22 | nervzhang | Status | feedback => assigned |
| 2020-03-04 16:51 | t-ishii | Note Added: 0003241 | |
| 2020-03-04 16:53 | nervzhang | Note Added: 0003242 | |
| 2020-03-05 17:28 | t-ishii | Note Added: 0003245 | |
| 2020-03-05 17:28 | t-ishii | Status | assigned => feedback |
| 2020-03-05 17:30 | nervzhang | Note Added: 0003246 | |
| 2020-03-05 17:30 | nervzhang | Status | feedback => assigned |
| 2020-03-06 10:24 | t-ishii | Status | assigned => closed |