Commit Graph

21 Commits

Author SHA1 Message Date
Roman Khapov 0037260bd4
fix typos after previous pr (#702)
Signed-off-by: rkhapov <r.khapov@ya.ru>
Co-authored-by: rkhapov <r.khapov@ya.ru>
2024-10-15 15:53:17 +05:00
Roman Khapov 2875a713bc
Keepalive usr default value (#701)
* machinarium: add advice tcp usr timeout fn

The value of tcp user timeout should be computed from keepalive values.
This patch adds advice function to machinarium for formulae of
keepalive + interval + probes - 0.5

Signed-off-by: rkhapov <r.khapov@ya.ru>

* sources/config_reader.c: use advice tcp usr timeout

Now, default value of keepalive_usr_timeout will lead to
adviced value of tcp usr timeout, computed with values of keepalive.

Signed-off-by: rkhapov <r.khapov@ya.ru>

* test_advice_keepalive_usr_timeout.c: fix milliseconds

According to `man 7 tcp`, delay and interval values are presented
seconds.
But tcp user timeout are presented in milliseconds.
So formula fixed.

Signed-off-by: rkhapov <r.khapov@ya.ru>

---------

Signed-off-by: rkhapov <r.khapov@ya.ru>
Co-authored-by: rkhapov <r.khapov@ya.ru>
2024-10-15 15:28:41 +05:00
Victor 14c491efbe
Style fixes (#625)
* all infinite loops to for(;;)

* error in word

* change kebab case in test folders in snake case

* now for test ip6 use ip6-localhost for ip4 use ip4-localhost

* malloc restyle for easier finding allocation of structures

* lint
2024-07-10 15:54:57 +05:00
kirill reshke c4878697ee
fix formatting & apply fmt target in MAkefiel (#251)
Co-authored-by: reshke <Kirill Reshke>
2020-12-28 16:22:53 +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
Daniil Zakhlystov 222da0c70a
Implement libpq compression (#230)
* Add zlib and zstd to cmake

* Add zpq_stream to machinarium

--
zpq_stream is used for streaming compression/decompression of Postgres protocol

* Add zpq_stream-related functions to machinarium

* Add compression set/free/read/write logic to machinarium

* Add startup packet compression var to kiwi

* Add compression_ack backend message support for kiwi

* Add compression setup logic for main odyssey project

* apply fmt

* fix format #2

Co-authored-by: root <root@ubuntu-build-machine.ru-central1.internal>
2020-11-23 13:22:17 +05:00
reshke bde82dec9b tcp keepalive settings 2020-07-22 13:05:16 +05:00
Georgy Rylov c25c5bd050
Applying clang-format with saving indentations (#140)
* applying clang-format with saving indentations

* rebase
2020-04-02 16:00:56 +05:00
Andrey Borodin b2d75b0b3c
Coverity scan results (#119)
A lot of small fixes for small bugs of various severity
2020-02-18 18:05:02 +05:00
Andrey Borodin 4198f2694d Restore odyssey_stress 2019-04-29 14:01:15 +05:00
Dmitry Simonenko 9115d60117 machinarium: rework time update logic 2018-11-27 16:19:16 +03:00
Dmitry Simonenko b870c0e3a1 odyssey: rework odyssey_stress for new io api 2018-08-23 17:12:28 +03:00
Dmitry Simonenko 7e0cf28b79 odyssey: rename stress.c to odyssey_stress.c 2018-04-04 16:34:10 +03:00
Dmitry Simonenko 5ca3fa926a odyssey: update source file headers 2018-04-04 16:19:58 +03:00
Dmitry Simonenko 1b7566b106 odyssey: do leftover renames 2018-03-13 16:41:20 +03:00
Dmitry Simonenko f108dcba09 odyssey: project rename 2018-03-12 17:03:15 +03:00
Dmitry Simonenko 11d89831c1 odissey: use msg enum names instead of hardcoded types 2018-03-01 16:22:08 +03:00
Dmitry Simonenko 981a4c6626 odissey: update to latest machinarium changes 2018-02-02 14:49:10 +03:00
Dmitry Simonenko 1bc8d873da odissey: stress: send empty query instead of 'SELECT 1' 2018-01-31 15:38:33 +03:00
Dmitry Simonenko 03ef6a30d8 odissey: handle cli options and implement histogram for odissey-stress 2017-12-20 16:50:12 +03:00
Dmitry Simonenko 2ae8c3a4c0 odissey: introduce odissey-stress benchmark tool 2017-12-19 18:30:15 +03:00