pgbouncer

    2热度

    1回答

    我正在运行一个服务器,其中包含20个cpu核心和96 GB的ram。我已经配置Postgresql和Pgbouncer一次处理1000个连接。 但是当连接增加时(即使它们远低于我设置的1000个限制),我开始获得失败的连接。我检查了pgbouncer日志,并注意到以下内容 ERROR accept() failed: Too many open files 我需要增加哪些限制才能解决此问题?我

    2热度

    1回答

    这是我的第一个stackoverflow帖子,所以我想这么说你好! ;) 我有关于pgbouncer的问题。我刚开始与我的django应用程序和postgres一起使用。 我以为一切都设置正确,但我在日志中只得到这样的信息: "LOG Stats: 0 req/s, in 0 b/s, out 0 b/s" 好像它没有运行,还是我错过它的概念?没有其他的错误,除了那些只有0的统计线。该应用程序

    0热度

    1回答

    我在web服务器上有一个haproxy的体系结构,它是路由到从服务器的,在那里我通过postgre使用pgbouncer。 HAPoxy配置: global log 127.0.0.1 local1 debug user haproxy group haproxy defaults log global retries 3 timeo

    2热度

    1回答

    有没有办法让pgbouncer强制重新读取/etc/hosts文件而不重启?我已将一台新服务器添加到/etc/hosts,并且我希望pgbouncer能够以最少的麻烦连接到新服务器。 我知道发出RELOAD;命令会强制重新读取配置文件,但看起来这不适用于/etc/hosts。同时运行命令SHOW DNS_HOSTS(配置更改后和/etc/hosts)新增主机名值会出现,但addrs值留空。 pgb

    1热度

    1回答

    我最近为连接池设置了pgbouncer。我pgbouncer.ini文件包含 [databases] mydb = host=localhost port=5432 user=user dbname=mydb [pgbouncer] auth_type = any auth_file = /etc/pgbouncer/users.txt listen_addr = 127.0.0.1

    -1热度

    1回答

    我正在使用C#和PostgreSQL。我已经使用Npgsql连接到PostgreSQL。 Everthing工作正常。现在我想在PgBouncer工具的帮助下使用连接池。数据库信息已经设置为PgBouncer。因为现在PgBouncer将负责连接到PostgreSQL数据库(如果我错了,请纠正我)。 但问题是,我找不到在C#中连接PgBouncer的方式。如果有人也这样做了,请告诉我。 在Post

    2热度

    1回答

    我试图将我的PGbouncer从1.5.4升级到1.7.2,但没有运气。它返回错误: # gmake CC lib/usual/tls/tls.c lib/usual/tls/tls.c: In function `tls_info_callback': lib/usual/tls/tls.c:295: error: structure has no member named `e

    3热度

    1回答

    包pgbouncer试图在亚马逊安装pgbouncer遇到这样的: [[email protected] ~]# uname -a Linux somehost 4.4.35-33.55.amzn1.x86_64 #1 SMP Tue Dec 6 20:30:04 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [[email protected] ~]# yu

    1热度

    1回答

    我在我的Django网络应用程序中使用pgbouncer。应用程序服务器和数据库服务器是两个独立的VM。 pgbouncer安装在应用程序服务器上。在pgbouncer.ini相关的设置是: [databases] dbname = host=80.211.128.113 port=5432 dbname=dbname pool_mode = transaction max_client_

    1热度

    1回答

    我是一个“偶然dba”,所以在这里为一个真正的noob问题道歉。我在pool_mode =交易模式中使用pgbouncer。昨天我开始在我的PHP错误日志: 没有更多的连接允许(max_client_conn) 我max_client_conn = 150在我的postgresql.conf匹配MAX_CONNECTIONS。 所以我的第一个问题是,应该pgbouncer max_client_c