2021-03-16 05:59:14 +00:00
|
|
|
pid_file "/tmp/odyssey.pid"
|
2021-05-06 19:58:11 +00:00
|
|
|
daemonize yes
|
2020-07-26 07:58:15 +00:00
|
|
|
|
|
|
|
unix_socket_dir "/tmp"
|
|
|
|
unix_socket_mode "0644"
|
|
|
|
|
|
|
|
log_format "%p %t %l [%i %s] (%c) %m\n"
|
|
|
|
|
|
|
|
log_to_stdout yes
|
|
|
|
|
|
|
|
log_syslog no
|
|
|
|
log_syslog_ident "odyssey"
|
|
|
|
log_syslog_facility "daemon"
|
|
|
|
|
2021-01-14 06:54:16 +00:00
|
|
|
log_debug yes
|
2020-07-26 07:58:15 +00:00
|
|
|
log_config yes
|
|
|
|
log_session yes
|
2021-01-14 06:54:16 +00:00
|
|
|
log_query yes
|
2020-07-26 07:58:15 +00:00
|
|
|
log_stats yes
|
|
|
|
stats_interval 60
|
|
|
|
|
2021-01-23 13:49:54 +00:00
|
|
|
workers 2
|
2020-07-26 07:58:15 +00:00
|
|
|
resolvers 1
|
|
|
|
|
|
|
|
readahead 8192
|
|
|
|
|
|
|
|
cache_coroutine 0
|
|
|
|
|
|
|
|
coroutine_stack_size 8
|
|
|
|
|
|
|
|
nodelay yes
|
|
|
|
|
|
|
|
keepalive 15
|
|
|
|
keepalive_keep_interval 75
|
|
|
|
keepalive_probes 9
|
|
|
|
|
|
|
|
keepalive_usr_timeout 0
|
|
|
|
|
|
|
|
|
|
|
|
listen {
|
|
|
|
host "*"
|
|
|
|
port 6432
|
|
|
|
backlog 128
|
2020-11-23 11:55:42 +00:00
|
|
|
compression yes
|
2020-07-26 07:58:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
storage "postgres_server" {
|
|
|
|
type "remote"
|
|
|
|
host "localhost"
|
|
|
|
port 5432
|
|
|
|
}
|
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
# ldapserver=localhost ldapbinddn="cn=admin,dc=example,dc=org" ldapbasedn="dc=example,dc=org" ldapbindpasswd="admin" ldapsearchfilter="(uid=$username)"
|
|
|
|
|
|
|
|
ldap_endpoint "ldap1" {
|
|
|
|
ldapscheme "ldap"
|
|
|
|
ldapbasedn "dc=example,dc=org"
|
|
|
|
ldapbinddn "cn=admin,dc=example,dc=org"
|
|
|
|
ldapbindpasswd "admin"
|
|
|
|
ldapsearchattribute "gecos"
|
|
|
|
ldapserver "localhost"
|
|
|
|
ldapport 389
|
|
|
|
}
|
|
|
|
|
2021-04-28 17:43:02 +00:00
|
|
|
ldap_endpoint "ldap_unreachable" {
|
|
|
|
ldapscheme "ldap"
|
|
|
|
ldapbasedn "dc=example,dc=org"
|
|
|
|
ldapbinddn "cn=admin,dc=example,dc=org"
|
|
|
|
ldapbindpasswd "admin"
|
|
|
|
ldapsearchattribute "gecos"
|
|
|
|
ldapserver "localhost"
|
|
|
|
ldapport 38
|
|
|
|
}
|
|
|
|
|
2020-07-26 07:58:15 +00:00
|
|
|
database default {
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
2021-01-21 11:24:43 +00:00
|
|
|
pool "session"
|
2020-07-26 07:58:15 +00:00
|
|
|
pool_size 0
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
2021-02-20 17:10:24 +00:00
|
|
|
pool_ttl 1201
|
2020-07-26 07:58:15 +00:00
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
2021-04-21 13:11:18 +00:00
|
|
|
# seconds
|
2021-02-11 16:52:36 +00:00
|
|
|
pool_client_idle_timeout 20
|
2021-04-21 13:11:18 +00:00
|
|
|
# seconds
|
|
|
|
pool_idle_in_transaction_timeout 20
|
2020-07-26 07:58:15 +00:00
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
2021-02-11 16:52:36 +00:00
|
|
|
server_lifetime 1901
|
2020-07-26 07:58:15 +00:00
|
|
|
log_debug no
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
2021-04-21 13:11:18 +00:00
|
|
|
client_max 107
|
2020-07-26 07:58:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
database "postgres2" {
|
|
|
|
user "user3" {
|
|
|
|
authentication "clear_text"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
pool "session"
|
|
|
|
pool_size 10
|
|
|
|
|
|
|
|
ldap_pool_size 10
|
|
|
|
|
|
|
|
ldap_pool_timeout 0
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
reserve_session_server_connection no
|
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
2021-04-28 17:43:02 +00:00
|
|
|
ldap_endpoint_name "ldap_unreachable"
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
user "user1" {
|
|
|
|
authentication "clear_text"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
2021-04-30 11:30:58 +00:00
|
|
|
# storage_password "lolol"
|
2021-04-28 17:43:02 +00:00
|
|
|
pool "session"
|
|
|
|
|
|
|
|
ldap_pool_size 1
|
|
|
|
|
|
|
|
ldap_pool_timeout 0
|
|
|
|
|
|
|
|
pool_size 1
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
reserve_session_server_connection no
|
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
ldap_endpoint_name "ldap1"
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
user "user2" {
|
|
|
|
authentication "clear_text"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
storage_password "1"
|
|
|
|
pool "session"
|
|
|
|
|
|
|
|
ldap_pool_size 1
|
|
|
|
|
|
|
|
ldap_pool_timeout 0
|
|
|
|
|
|
|
|
pool_size 1
|
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
reserve_session_server_connection no
|
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
|
|
|
|
ldap_endpoint_name "ldap1"
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
|
|
|
|
pool "session"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-02 16:13:50 +00:00
|
|
|
database "postgres" {
|
|
|
|
user "user1" {
|
2021-04-21 13:11:18 +00:00
|
|
|
authentication "clear_text"
|
2020-09-02 16:13:50 +00:00
|
|
|
|
|
|
|
storage "postgres_server"
|
2021-04-30 11:30:58 +00:00
|
|
|
# storage_password "1"
|
2021-01-21 11:24:43 +00:00
|
|
|
pool "session"
|
2021-01-14 06:54:16 +00:00
|
|
|
pool_size 1
|
2020-09-02 16:13:50 +00:00
|
|
|
|
|
|
|
pool_timeout 0
|
|
|
|
|
|
|
|
pool_ttl 60
|
|
|
|
|
|
|
|
pool_discard no
|
|
|
|
|
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
2021-02-20 17:10:24 +00:00
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
reserve_session_server_connection no
|
2020-09-02 16:13:50 +00:00
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
2021-04-21 13:11:18 +00:00
|
|
|
ldap_endpoint_name "ldap1"
|
2020-09-02 16:13:50 +00:00
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
2021-04-21 13:11:18 +00:00
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
user "user2" {
|
|
|
|
authentication "clear_text"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
storage_password "1"
|
|
|
|
pool "session"
|
|
|
|
pool_size 1
|
2021-03-04 15:33:07 +00:00
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
pool_timeout 0
|
2021-03-04 15:33:07 +00:00
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
pool_ttl 60
|
2021-03-04 15:33:07 +00:00
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
pool_discard no
|
2021-03-04 15:33:07 +00:00
|
|
|
|
2021-04-21 13:11:18 +00:00
|
|
|
pool_cancel yes
|
|
|
|
|
|
|
|
pool_rollback yes
|
|
|
|
|
|
|
|
client_fwd_error yes
|
|
|
|
|
|
|
|
application_name_add_host yes
|
|
|
|
|
|
|
|
reserve_session_server_connection no
|
|
|
|
|
|
|
|
server_lifetime 3600
|
|
|
|
log_debug no
|
|
|
|
|
|
|
|
ldap_endpoint_name "ldap1"
|
|
|
|
|
|
|
|
quantiles "0.99,0.95,0.5"
|
|
|
|
client_max 107
|
|
|
|
}
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
|
|
|
|
|
|
|
storage "postgres_server"
|
|
|
|
|
|
|
|
pool "session"
|
|
|
|
}
|
2020-09-02 16:13:50 +00:00
|
|
|
}
|
2020-07-26 07:58:15 +00:00
|
|
|
storage "local" {
|
|
|
|
type "local"
|
|
|
|
}
|
|
|
|
|
|
|
|
database "console" {
|
|
|
|
user default {
|
|
|
|
authentication "none"
|
2021-01-21 11:24:43 +00:00
|
|
|
pool "session"
|
2020-07-26 07:58:15 +00:00
|
|
|
storage "local"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
locks_dir "/tmp/odyssey"
|
|
|
|
|
|
|
|
graceful_die_on_errors yes
|
2021-03-16 05:59:14 +00:00
|
|
|
enable_online_restart no
|
2020-07-26 07:58:15 +00:00
|
|
|
bindwith_reuseport yes
|