concordia server configured to work with pgbouncer

This commit is contained in:
rjawor 2015-08-18 11:46:01 +02:00
parent e8f1f21195
commit e51a4c4a37
10 changed files with 228 additions and 2 deletions

View File

@ -51,6 +51,9 @@ set(CONFIG_FILE_PATH "${concordia-server_SOURCE_DIR}/concordia.cfg")
# -------------- # --------------
set (DB_NAME "concordia_server") set (DB_NAME "concordia_server")
set (DB_USER "concordia") set (DB_USER "concordia")
set (DB_PASSWORD "concordia")
set (DB_HOST "localhost")
set (DB_PORT "6543")
configure_file ( configure_file (
"${concordia-server_SOURCE_DIR}/concordia-server/config.hpp.in" "${concordia-server_SOURCE_DIR}/concordia-server/config.hpp.in"

View File

@ -3,3 +3,6 @@
// database connection information // database connection information
#define DB_NAME "concordia_server" #define DB_NAME "concordia_server"
#define DB_USER "concordia" #define DB_USER "concordia"
#define DB_PASSWORD "concordia"
#define DB_HOST "localhost"
#define DB_PORT "6543"

View File

@ -3,3 +3,6 @@
// database connection information // database connection information
#define DB_NAME "@DB_NAME@" #define DB_NAME "@DB_NAME@"
#define DB_USER "@DB_USER@" #define DB_USER "@DB_USER@"
#define DB_PASSWORD "@DB_PASSWORD@"
#define DB_HOST "@DB_HOST@"
#define DB_PORT "@DB_PORT@"

View File

@ -8,11 +8,14 @@
#include "logger.hpp" #include "logger.hpp"
DBconnection::DBconnection() throw(ConcordiaException) { DBconnection::DBconnection() throw(ConcordiaException) {
std::string connectionInfo = "dbname="DB_NAME" user="DB_USER; std::string connectionInfo = "dbname="DB_NAME" user="DB_USER" password="DB_PASSWORD" host="DB_HOST" port="DB_PORT;
_connection = PQconnectdb(connectionInfo.c_str()); _connection = PQconnectdb(connectionInfo.c_str());
if (PQstatus(_connection) != CONNECTION_OK) { if (PQstatus(_connection) != CONNECTION_OK) {
close(); close();
throw ConcordiaException("Could not establish connection with the database"); std::stringstream ss;
ss << "Could not establish connection with the database. ";
ss << "Connection string: " << connectionInfo;
throw ConcordiaException(ss.str());
} }
} }

4
db/connectToPGbouncer.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
psql -U concordia -p 6543 -h localhost concordia_server

11
db/pgbouncer.ini Normal file
View File

@ -0,0 +1,11 @@
[databases]
concordia_server = host=127.0.0.1 port=5432 dbname=concordia_server
[pgbouncer]
listen_port = 6543
listen_addr = *
auth_type = md5
auth_file = users.txt
logfile = pgbouncer.log
pidfile = pgbouncer.pid
admin_users = concordia

194
db/pgbouncer.log Normal file
View File

@ -0,0 +1,194 @@
2015-08-07 13:36:35.255 20192 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-07 13:36:35.258 20194 LOG listening on 127.0.0.1:6543
2015-08-07 13:36:35.258 20194 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-07 13:36:35.258 20194 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-07 13:37:35.258 20194 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:38:35.259 20194 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:38:46.692 20249 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-07 13:38:46.693 20249 LOG takeover_init: launching connection
2015-08-07 13:38:46.693 20249 LOG S-0x10daf60: pgbouncer/pgbouncer@unix:6543 new connection to server
2015-08-07 13:38:46.693 20194 LOG C-0x151cf60: (nodb)/(nouser)@unix(20249):6543 closing because: client unexpected eof (age=0)
2015-08-07 13:38:46.694 20194 LOG C-0x151d0c8: (nodb)/pgbouncer@unix(20249):6543 pgbouncer access from unix socket
2015-08-07 13:38:46.694 20194 LOG C-0x151d0c8: pgbouncer/pgbouncer@unix(20249):6543 login attempt: db=pgbouncer user=pgbouncer
2015-08-07 13:38:46.694 20249 LOG S-0x10daf60: pgbouncer/pgbouncer@unix:6543 Login OK, sending SUSPEND
2015-08-07 13:38:46.694 20194 LOG SUSPEND command issued
2015-08-07 13:38:46.694 20249 LOG SUSPEND finished, sending SHOW FDS
2015-08-07 13:38:46.695 20249 LOG got pooler socket: 127.0.0.1:6543
2015-08-07 13:38:46.695 20249 LOG got pooler socket: unix:6543
2015-08-07 13:38:46.695 20249 LOG SHOW FDS finished
2015-08-07 13:38:46.695 20249 LOG disko over, going background
2015-08-07 13:38:46.695 20249 LOG sending SHUTDOWN;
2015-08-07 13:38:46.696 20194 LOG SHUTDOWN command issued
2015-08-07 13:38:46.696 20249 LOG S-0x10daf60: pgbouncer/pgbouncer@unix:6543 closing because: disko over (age=0)
2015-08-07 13:38:46.696 20249 LOG old process killed, resuming work
2015-08-07 13:38:46.696 20249 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-07 13:38:55.591 20249 LOG Got SIGINT, shutting down
2015-08-07 13:38:55.725 20249 LOG server connections dropped, exiting
2015-08-07 13:39:12.854 20259 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-07 13:39:12.856 20261 LOG listening on 127.0.0.1:6543
2015-08-07 13:39:12.856 20261 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-07 13:39:12.856 20261 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-07 13:40:12.857 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:41:12.858 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:42:12.858 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:43:12.859 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:44:12.860 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:45:12.861 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:46:12.861 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:47:12.862 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:48:12.863 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:49:12.864 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:50:12.864 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:51:12.865 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:52:12.865 20261 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-07 13:52:24.631 20261 LOG Got SIGTERM, fast exit
2015-08-07 13:52:32.301 20633 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-07 13:52:32.302 20633 LOG listening on 127.0.0.1:6543
2015-08-07 13:52:32.302 20633 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-07 13:52:32.302 20633 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-07 13:53:10.931 20633 LOG Got SIGINT, shutting down
2015-08-07 13:53:11.096 20633 LOG server connections dropped, exiting
2015-08-07 13:58:19.960 20723 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-07 13:58:19.962 20723 LOG listening on 127.0.0.1:6543
2015-08-07 13:58:19.962 20723 WARNING Cannot listen on unix:/var/run/postgresql/.s.PGSQL.6543: bind(): Permission denied
2015-08-07 13:58:19.978 20723 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-07 13:58:41.493 20723 LOG Got SIGHUP re-reading config
2015-08-07 13:58:53.570 20723 LOG Got SIGTERM, fast exit
2015-08-13 10:43:02.457 3958 FATAL @src/main.c:752 in function main(): PgBouncer should not run as root
2015-08-13 10:43:13.087 3963 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-13 10:43:13.088 3963 LOG listening on 127.0.0.1:6543
2015-08-13 10:43:13.088 3963 WARNING Cannot listen on unix:/var/run/postgresql/.s.PGSQL.6543: bind(): Permission denied
2015-08-13 10:43:13.159 3963 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-13 10:43:22.274 3963 LOG Got SIGINT, shutting down
2015-08-13 10:43:22.450 3963 LOG server connections dropped, exiting
2015-08-13 10:43:32.112 3967 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-13 10:43:32.113 3967 LOG listening on 127.0.0.1:8989
2015-08-13 10:43:32.113 3967 WARNING Cannot listen on unix:/var/run/postgresql/.s.PGSQL.8989: bind(): Permission denied
2015-08-13 10:43:32.114 3967 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-13 10:43:43.725 3967 LOG Got SIGINT, shutting down
2015-08-13 10:43:43.817 3967 LOG server connections dropped, exiting
2015-08-13 10:45:32.799 4036 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-13 10:45:32.891 4036 FATAL @src/pooler.c:428 in function parse_addr(): getaddrinfo(''*'', '8989') = Name or service not known [-2]
2015-08-13 10:45:53.666 4039 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-13 10:45:53.667 4039 LOG listening on 0.0.0.0:8989
2015-08-13 10:45:53.667 4039 LOG listening on ::/8989
2015-08-13 10:45:53.667 4039 WARNING Cannot listen on unix:/var/run/postgresql/.s.PGSQL.8989: bind(): Permission denied
2015-08-13 10:45:53.667 4039 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-13 10:46:08.949 4039 LOG Got SIGINT, shutting down
2015-08-13 10:46:09.051 4039 LOG server connections dropped, exiting
2015-08-13 10:46:16.055 4052 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-13 10:46:16.056 4052 LOG listening on 0.0.0.0:6543
2015-08-13 10:46:16.056 4052 LOG listening on ::/6543
2015-08-13 10:46:16.056 4052 WARNING Cannot listen on unix:/var/run/postgresql/.s.PGSQL.6543: bind(): Permission denied
2015-08-13 10:46:16.057 4052 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-13 10:46:18.253 4052 LOG Got SIGINT, shutting down
2015-08-13 10:46:18.396 4052 LOG server connections dropped, exiting
2015-08-13 10:48:52.233 4113 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-13 10:48:52.235 4113 LOG listening on 0.0.0.0:6543
2015-08-13 10:48:52.235 4113 LOG listening on ::/6543
2015-08-13 10:48:52.235 4113 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-13 10:48:52.235 4113 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-13 10:49:12.342 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60132 login attempt: db=concordia_server user=concordia
2015-08-13 10:49:12.343 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60132 closing because: client unexpected eof (age=0)
2015-08-13 10:49:18.471 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60133 login attempt: db=concordia_server user=concordia
2015-08-13 10:49:18.471 4113 LOG S-0x1ee1910: concordia_server/concordia@127.0.0.1:5432 new connection to server (from 127.0.0.1:38662)
2015-08-13 10:49:30.694 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60133 closing because: client close request (age=12)
2015-08-13 10:49:46.199 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60136 login attempt: db=concordia_server user=concordia
2015-08-13 10:49:46.199 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60136 closing because: client unexpected eof (age=0)
2015-08-13 10:49:48.158 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60137 login attempt: db=concordia_server user=concordia
2015-08-13 10:49:50.748 4113 LOG C-0x1ec3f60: concordia_server/concordia@127.0.0.1:60137 closing because: client close request (age=2)
2015-08-13 10:49:52.235 4113 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-13 10:50:10.771 4113 LOG Got SIGINT, shutting down
2015-08-13 10:50:10.771 4113 LOG S-0x1ee1910: concordia_server/concordia@127.0.0.1:5432 closing because: pause mode (age=52)
2015-08-13 10:50:10.823 4113 LOG server connections dropped, exiting
2015-08-18 11:10:43.415 27662 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-18 11:10:43.447 27662 LOG listening on 0.0.0.0:6543
2015-08-18 11:10:43.447 27662 LOG listening on ::/6543
2015-08-18 11:10:43.447 27662 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-18 11:10:43.448 27662 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-18 11:10:51.188 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50351 login attempt: db=concordia_server user=concordia
2015-08-18 11:10:51.188 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50351 closing because: client unexpected eof (age=0)
2015-08-18 11:10:57.604 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50354 login attempt: db=concordia_server user=concordia
2015-08-18 11:10:57.604 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50354 closing because: client unexpected eof (age=0)
2015-08-18 11:11:43.448 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:12:43.448 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:13:43.449 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:14:43.450 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:15:06.687 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50392 login attempt: db=concordia_server user=concordia
2015-08-18 11:15:06.688 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50392 closing because: client unexpected eof (age=0)
2015-08-18 11:15:16.728 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50395 login attempt: db=concordia_server user=concordia
2015-08-18 11:15:16.728 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50395 closing because: client unexpected eof (age=0)
2015-08-18 11:15:39.637 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50398 login attempt: db=concordia_server user=concordia
2015-08-18 11:15:39.637 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50398 closing because: client unexpected eof (age=0)
2015-08-18 11:15:43.451 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:16:43.451 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:17:43.452 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:18:43.452 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:19:14.912 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50404 login attempt: db=concordia_server user=concordia
2015-08-18 11:19:14.912 27662 LOG C-0xfc7f60: concordia_server/concordia@127.0.0.1:50404 closing because: client unexpected eof (age=0)
2015-08-18 11:19:43.453 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:20:43.454 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:21:43.455 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:22:43.455 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:23:43.456 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:24:43.457 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:25:43.457 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:26:43.458 27662 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:27:04.799 27662 LOG Got SIGINT, shutting down
2015-08-18 11:27:04.981 27662 LOG server connections dropped, exiting
2015-08-18 11:27:37.632 28211 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-18 11:27:37.633 28211 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-18 11:27:37.634 28211 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-18 11:27:52.528 28211 LOG Got SIGINT, shutting down
2015-08-18 11:27:52.683 28211 LOG server connections dropped, exiting
2015-08-18 11:27:59.391 28219 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-18 11:27:59.393 28219 LOG listening on 0.0.0.0:6543
2015-08-18 11:27:59.393 28219 LOG listening on ::/6543
2015-08-18 11:27:59.393 28219 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-18 11:27:59.393 28219 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-18 11:28:03.659 28219 LOG C-0x80cf60: concordia_server/concordia@127.0.0.1:50492 login attempt: db=concordia_server user=concordia
2015-08-18 11:28:03.659 28219 LOG C-0x80cf60: concordia_server/concordia@127.0.0.1:50492 closing because: client unexpected eof (age=0)
2015-08-18 11:28:59.393 28219 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:29:59.394 28219 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:30:59.394 28219 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:31:18.180 28219 LOG C-0x80cf60: concordia_server/concordia@127.0.0.1:50525 login attempt: db=concordia_server user=concordia
2015-08-18 11:31:18.180 28219 LOG C-0x80cf60: concordia_server/concordia@127.0.0.1:50525 closing because: client unexpected eof (age=0)
2015-08-18 11:31:23.832 28219 LOG C-0x80cf60: concordia_server/concordia@127.0.0.1:50526 login attempt: db=concordia_server user=concordia
2015-08-18 11:31:23.832 28219 LOG S-0x82a910: concordia_server/concordia@127.0.0.1:5432 new connection to server (from 127.0.0.1:35485)
2015-08-18 11:31:25.259 28219 LOG C-0x80cf60: concordia_server/concordia@127.0.0.1:50526 closing because: client close request (age=1)
2015-08-18 11:31:30.703 28219 LOG Got SIGINT, shutting down
2015-08-18 11:31:30.703 28219 LOG S-0x82a910: concordia_server/concordia@127.0.0.1:5432 closing because: pause mode (age=6)
2015-08-18 11:31:30.752 28219 LOG server connections dropped, exiting
2015-08-18 11:34:47.764 28522 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-18 11:34:47.765 28522 LOG listening on 0.0.0.0:6543
2015-08-18 11:34:47.766 28522 LOG listening on ::/6543
2015-08-18 11:34:47.766 28522 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-18 11:34:47.766 28522 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-18 11:34:51.818 28522 LOG C-0xcedf60: concordia_server/concordia@127.0.0.1:50543 login attempt: db=concordia_server user=concordia
2015-08-18 11:34:51.818 28522 LOG C-0xcedf60: concordia_server/concordia@127.0.0.1:50543 closing because: Auth failed (age=0)
2015-08-18 11:34:51.818 28522 WARNING C-0xcedf60: concordia_server/concordia@127.0.0.1:50543 Pooler Error: Auth failed
2015-08-18 11:35:47.766 28522 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:36:47.767 28522 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:37:47.768 28522 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:38:47.768 28522 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:39:47.769 28522 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:40:14.733 28522 LOG C-0xcedf60: concordia_server/concordia@127.0.0.1:50548 login attempt: db=concordia_server user=concordia
2015-08-18 11:40:14.733 28522 LOG C-0xcedf60: concordia_server/concordia@127.0.0.1:50548 closing because: client unexpected eof (age=0)
2015-08-18 11:40:18.430 28522 LOG C-0xcedf60: concordia_server/concordia@127.0.0.1:50549 login attempt: db=concordia_server user=concordia
2015-08-18 11:40:18.431 28522 LOG C-0xcedf60: concordia_server/concordia@127.0.0.1:50549 closing because: Auth failed (age=0)
2015-08-18 11:40:18.431 28522 WARNING C-0xcedf60: concordia_server/concordia@127.0.0.1:50549 Pooler Error: Auth failed
2015-08-18 11:40:47.770 28522 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:40:56.918 28522 LOG Got SIGINT, shutting down
2015-08-18 11:40:56.990 28522 LOG server connections dropped, exiting
2015-08-18 11:41:03.982 28589 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds possible: 130
2015-08-18 11:41:03.984 28589 LOG listening on 0.0.0.0:6543
2015-08-18 11:41:03.984 28589 LOG listening on ::/6543
2015-08-18 11:41:03.984 28589 LOG listening on unix:/tmp/.s.PGSQL.6543
2015-08-18 11:41:03.984 28589 LOG process up: pgbouncer 1.6, libevent 2.0.21-stable (epoll), adns: evdns2
2015-08-18 11:41:06.506 28589 LOG C-0x1b89f80: concordia_server/concordia@127.0.0.1:50553 login attempt: db=concordia_server user=concordia
2015-08-18 11:41:06.506 28589 LOG S-0x1ba7930: concordia_server/concordia@127.0.0.1:5432 new connection to server (from 127.0.0.1:35512)
2015-08-18 11:41:06.514 28589 LOG C-0x1b89f80: concordia_server/concordia@127.0.0.1:50553 closing because: client close request (age=0)
2015-08-18 11:42:03.984 28589 LOG Stats: 0 req/s, in 5 b/s, out 5 b/s,query 3087 us
2015-08-18 11:43:03.985 28589 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:44:03.986 28589 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us
2015-08-18 11:45:03.986 28589 LOG Stats: 0 req/s, in 0 b/s, out 0 b/s,query 0 us

1
db/pgbouncer.pid Normal file
View File

@ -0,0 +1 @@
28589

3
db/startPGbouncer.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
pgbouncer pgbouncer.ini

1
db/users.txt Normal file
View File

@ -0,0 +1 @@
"concordia" "concordia"