Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaUnisikhin committed Mar 18, 2024
1 parent eaba126 commit 50f7070
Show file tree
Hide file tree
Showing 14 changed files with 1,281 additions and 455 deletions.
115 changes: 32 additions & 83 deletions config-examples/odyssey-dev.conf
Original file line number Diff line number Diff line change
@@ -1,98 +1,54 @@
pid_file "/tmp/odyssey.pid"
daemonize yes

unix_socket_dir "/tmp"
unix_socket_mode "0644"

log_format "%p %t %l [%i %s] (%c) %m\n"

log_to_stdout no

log_syslog no
log_syslog_ident "odyssey"
log_syslog_facility "daemon"

log_debug no
log_config yes
log_session yes
log_query no
log_stats yes
stats_interval 60
log_general_stats_prom yes
log_route_stats_prom no
promhttp_server_port 7777

workers "auto"
resolvers 1

readahead 8192

cache_coroutine 0

coroutine_stack_size 16

nodelay yes

keepalive 15
keepalive_keep_interval 75
keepalive_probes 9

keepalive_usr_timeout 0

listen {
host "*"
port 6432
backlog 128
compression yes
tls "disable"
}


storage "postgres_server" {
type "remote"
host "[localhost]:5432,localhost"
port 5550

host "localhost"
port 5432
}

database default {
user default {
authentication "md5"

password "md588cb17a149f659b9a78ec4a33cbb3c7f"
authentication "none"

storage "postgres_server"
pool "transaction"
pool_size 0
# storage_db "db"
# storage_user "user"
# storage_password "password"

# auth_query "SELECT usename, passwd FROM pg_shadow WHERE usename=$1"
# auth_query_db "postgres"
# auth_query_user "reshke"
# storage_password "reshke"
pool "session"

pool_timeout 0
client_fwd_error yes
}
}

pool_ttl 1201
unix_socket_dir "/tmp"
unix_socket_mode "0644"

pool_discard no
log_format "%p %t %l [%i %s] (%c) %m\n"
log_debug yes
log_config yes
log_session yes
log_query yes
log_stats yes
daemonize yes

pool_cancel yes
log_file "/home/nikunis/odyssey/logs.txt"

pool_rollback yes
# seconds
pool_client_idle_timeout 20
# seconds
pool_idle_in_transaction_timeout 20
locks_dir "/tmp/odyssey"
graceful_die_on_errors yes
enable_online_restart no
bindwith_reuseport yes

client_fwd_error yes
application_name_add_host yes
server_lifetime 1901
log_debug no
stats_interval 60

quantiles "0.99,0.95,0.5"
client_max 107
}
pid_file "/tmp/odyssey.pid"

listen {
host "*"
port 6432
}


storage "local" {
type "local"
}
Expand All @@ -105,10 +61,3 @@ database "console" {
storage "local"
}
}


locks_dir "/tmp/odyssey"

graceful_die_on_errors yes
enable_online_restart no
bindwith_reuseport yes
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ COPY ./docker/gorm /gorm

COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh

RUN touch ./logs.txt

RUN chmod a+x /usr/local/bin/entrypoint.sh

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
8 changes: 0 additions & 8 deletions docker/gorm/gorm-spqr/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions docker/gorm/gorm-spqr/README.md

This file was deleted.

55 changes: 0 additions & 55 deletions docker/gorm/gorm-spqr/controllers/person.go

This file was deleted.

20 changes: 0 additions & 20 deletions docker/gorm/gorm-spqr/go.mod

This file was deleted.

36 changes: 0 additions & 36 deletions docker/gorm/gorm-spqr/go.sum

This file was deleted.

8 changes: 0 additions & 8 deletions docker/gorm/gorm-spqr/models/person.go

This file was deleted.

77 changes: 0 additions & 77 deletions docker/gorm/gorm-spqr/models/setup.go

This file was deleted.

Loading

0 comments on commit 50f7070

Please sign in to comment.