Commit Graph

53 Commits

Author SHA1 Message Date
reshke 146ff3d8e2 add more comments to documentation/internals 2021-05-19 18:15:04 +05:00
reshke a78664e7b7 Add password_passthrough option to route 2021-05-19 17:18:49 +05:00
Rui Marinho 4dfc1c65cd Update server_login_retry on odyssey.conf 2021-05-09 22:29:24 +01:00
Andrey Borodin 4b90eb8971 Fix injection in auth_query 2021-03-05 09:42:45 +05:00
reshke 4323568a41 fix typos 2021-02-25 14:00:53 +05:00
reshke 9c3d23a815 rename param 2021-02-25 13:40:15 +05:00
reshke ade1b4c111 wait for pending data 2021-02-20 22:52:12 +05:00
reshke 107f0ae171 add pool idle in transaction setting 2021-02-12 13:03:06 +05:00
reshke e4bea27f66 introduse pool client idle timeout in session pooling mode 2021-02-12 02:30:03 +05:00
Daniil Zakhlystov e97f7e1f1c
Add compression toggle to config, cmake && Add dependencies to BuildDebian (#234)
* Add compression option to config

* Add BUILD_COMPRESSION option to cmake

* Escape identifiers

* Add preprocessing directives for OD_BUILD_COMPRESSION

* Add dependencies for BuildDebian

* apply fmt

Co-authored-by: root <root@ubuntu-build-machine.ru-central1.internal>
2020-11-23 16:55:42 +05:00
reshke 52b0abb647 fix infinte loop + add signals tests 2020-08-10 13:39:09 +05:00
reshke f030093484 use SO_REUSEPORT to graceful shutdown 2020-08-10 13:39:09 +05:00
reshke bde82dec9b tcp keepalive settings 2020-07-22 13:05:16 +05:00
Kazantcev Andrey e7c4c574c7
Fix mistake (#184) 2020-06-27 21:04:08 +05:00
kirill reshke 41a5449969
odyssey modules (#156) 2020-06-09 14:19:11 +05:00
Andrey Borodin b7bcb86956
Implement server lifetime (#129) 2020-02-28 15:20:55 +05:00
efimkin 60d7229cdc Enhance settings for replication support (#107) 2020-01-27 18:01:53 +05:00
Andrey Borodin 507682fdd5
Quantiles for transactions and queries (#95) 2020-01-24 17:31:15 +05:00
Andrey 3732c8b8b7 Refactor server_max_routing setting, use it for expiration too 2020-01-24 12:02:35 +05:00
Andrey 8496cde80a Implement server_max_routing restriction 2020-01-23 11:35:47 +05:00
Andrey 0bf792c4af Add server_login_retry timeout 2020-01-23 11:35:47 +05:00
Andrey e773dbb260 Add application_name_add_host setting 2020-01-20 11:43:16 +05:00
Andrey Borodin b98d34d489 Increase default client_max_routing 2019-12-04 15:21:50 +05:00
Andrey Borodin eb7299748d Implement login timeout 2019-12-02 18:28:39 +05:00
Dima Starkov a8ca664a63 Implements SCRAM Authentication (#73) 2019-11-11 12:28:50 +03:00
Andrey Borodin 298cdca895
Implement client_max_routing (#72) 2019-10-15 17:15:37 +03:00
reshke debfd09d8e Add PAM auth support 2019-09-26 13:54:53 +05:00
Andrey Borodin c4e2cedc35 Support of replication protocol 2019-04-12 15:13:50 +05:00
Dmitry Simonenko 6c0a1f09f8 odyssey: major rework of io architecture
This patch intend is to improve overall io performance, reduce
cpu and system usage.

Machinarium:

IO read/write logic is highly simplified and now based on conditions
instead of previously made internal readahead buffer and msg
queues. This allows to give user more control over io operations and
avoid doing undesired readahead copying.

Above that, TLS implementation reworked to use async logic instead of
separate BIO layer.

Direct pooling functions removed.

New objects machine_cond_t and machine_iov_t objects.

Odyssey:

Introduced readahead, io and relay objects.

Relay allows to connect two io handles for direct data retransmission
without double copying.

Removed configuration options no longer needed:
packet_read_size, packet_write_queue
2019-01-23 18:43:52 +03:00
Dmitry Simonenko 82f0deba7d odyssey: disable discard by default 2018-12-13 15:40:18 +03:00
Dmitry Simonenko c4f383ccfb odyssey: introduce pool_discard configuration parameter 2018-12-11 12:57:52 +03:00
Dmitry Simonenko dc3ae5ca2e odyssey: allow to set process/workers priority 2018-11-14 16:14:13 +03:00
Dmitry Simonenko 2d4f61f923 odyssey: introduce packet_write_queue 2018-11-13 18:29:25 +03:00
Dmitry Simonenko fbc037aa23 odyssey: implement packet retransmission in chunks; packet_read_size 2018-10-23 16:51:30 +03:00
Dmitry Simonenko 14d4a7f478 odyssey: add cache_msg_gc_size option and disable default caching 2018-09-26 18:18:17 +03:00
Dmitry Simonenko da7e6ea7a5 odyssey: major io rework and refactoring
This patch moves Odyssey from stream based write caching
to message driven. All write operations are delayed
and happen on a group of messages.

This removes necessity to do IO and wait for write completion during calls
from SSL_write() context. Write timings should behave more predictable now and
number of used syscalls should be also decreased.

This patch also simplifies caching management. All clients are simply
reusing cached messages without prolonged contention.

Several configuration options are no longer used:
pipeline, cache, cache_chunk
2018-08-28 17:43:46 +03:00
Dmitry Simonenko be59c897cc odyssey: gather current stats in routes instead of server 2018-08-09 17:39:36 +03:00
Dmitry Simonenko 008efe6727 odyssey: make stats_interval compatible with pgbouncer 2018-08-03 17:09:37 +03:00
Dmitry Simonenko c495b9ea8a odyssey: add unix_socket_mode configuration param 2018-07-03 16:02:46 +03:00
Dmitry Simonenko fb023d42cb odyssey: add unix socket support. fix #31 2018-07-02 18:41:17 +03:00
Dmitry Simonenko 7e636b9139 machinarium: support openssl >= 1.1.*. fix #17 2018-06-07 14:43:06 +03:00
Dmitry Simonenko cf3e99ecca odyssey: implement coroutine_stack_size config param. #9 2018-06-04 14:51:13 +03:00
Dmitry Simonenko af4a2a4c80 odyssey: add variadic buffer size read/write test 2018-05-15 15:13:44 +03:00
Dmitry Simonenko f5a4bd9a35 odyssey: support configurable list of common names to check 2018-05-10 15:49:31 +03:00
Dmitry Simonenko a907873715 odyssey: implement authenitcation "cert" 2018-04-26 16:02:18 +03:00
Dmitry Simonenko 65877bcf06 odyssey: minor documentation fixes 2018-03-20 17:24:48 +03:00
Dmitry Simonenko 7be3abed51 odyssey: minor fixes 2018-03-20 17:06:30 +03:00
Dmitry Simonenko dfc5e1b8f8 odyssey: document rest of config file 2018-03-20 16:38:31 +03:00
Dmitry Simonenko b3af6a28e9 odyssey: document routing rules in config 2018-03-20 16:10:08 +03:00
Dmitry Simonenko 392661556e odyssey: update config file documentation 2018-03-19 17:27:28 +03:00