Mostafa Abdelraouf
499612dd76
Add user to SHOW STATS query ( #108 )
...
* Add user to SHOW STATS query
* user_name => username
2022-08-03 18:16:53 -07:00
Mostafa Abdelraouf
1b648ca00e
Send proper server parameters to clients using admin db ( #103 )
...
* Send proper server parameters to clients using admin db
* clean up
* fix python test
* build
* Add python
* missing &
* debug ls
* fix tests
* fix tests
* fix
* Fix warning
* Address comments
2022-07-31 19:52:23 -07:00
Mostafa Abdelraouf
35381ba8fd
Add test for config Serializer ( #102 )
...
* Add test for serializer
* fmt
2022-07-30 16:28:25 -07:00
Mostafa Abdelraouf
e591865d78
Avoid ValueAfterTable when serializing configs ( #101 )
2022-07-30 16:12:02 -07:00
Mostafa Abdelraouf
48cff1f955
Slightly more light weight health check ( #100 )
2022-07-29 11:58:25 -07:00
Mostafa Abdelraouf
8a06fc4047
Add Serialize trait to configs ( #99 )
2022-07-28 15:42:04 -07:00
Pradeep Chhetri
14d4dc45f5
Minor fix for some stats ( #97 )
2022-07-27 22:59:33 -07:00
Mostafa Abdelraouf
2ae4b438e3
Add support for multi-database / multi-user pools ( #96 )
...
* Add support for multi-database / multi-user pools
* Nothing
* cargo fmt
* CI
* remove test users
* rename pool
* Update tests to use admin user/pass
* more fixes
* Revert bad change
* Use PGDATABASE env var
* send server info in case of admin
2022-07-27 19:47:55 -07:00
Lev
8bcfbed574
forgotten comment
2022-06-27 17:07:40 -07:00
Lev
186f8be5b3
lint
2022-06-27 17:01:40 -07:00
Lev
7667fefead
config check
2022-06-27 17:01:14 -07:00
Lev
c11d595ac7
bye
2022-06-27 16:46:03 -07:00
Lev
8f3202ed92
hmm
2022-06-27 16:45:41 -07:00
Lev
eb58920870
at least it compiles
2022-06-27 15:52:01 -07:00
Lev Kokotov
b974aacd71
check
2022-06-27 09:46:33 -07:00
Lev Kokotov
7dfe59a91a
Fix stats dymanic reload ( #87 )
2022-06-25 12:22:46 -07:00
Lev Kokotov
5bcd3bf9c3
Automatically reload config every seconds (disabled by default) ( #86 )
...
* Automatically reload config every seconds (disabld by default)
* add that
2022-06-25 11:46:20 -07:00
Lev Kokotov
f06f64119c
Fix panic & query router bug ( #85 )
...
* Fix query router bug
* Fix panic
2022-06-24 15:14:31 -07:00
Lev Kokotov
b93303eb83
Live reloading entire config and bug fixes ( #84 )
...
* Support reloading the entire config (including sharding logic) without restart.
* Fix bug incorrectly handing error reporting when the shard is set incorrectly via SET SHARD TO command.
selected wrong shard and the connection keep reporting fatal #80 .
* Fix total_received and avg_recv admin database statistics.
* Enabling the query parser by default.
* More tests.
2022-06-24 14:52:38 -07:00
Lev Kokotov
d3310a62c2
Client md5 auth and clean up scram ( #77 )
...
* client md5 auth and clean up scram
* add pw
* add user
* add user
* log
2022-06-20 06:15:54 -07:00
Lev Kokotov
d412238f47
Implement SCRAM-SHA-256 for server authentication (PG14) ( #76 )
...
* Implement SCRAM-SHA-256
* test it
* trace
* move to community for auth
* hmm
2022-06-18 18:36:00 -07:00
Lev Kokotov
bac4e1f52c
Only set application_name if it's different ( #74 )
...
* Only set application_name if it's different
* keep server named pgcat until something else changes
2022-06-05 09:48:06 -07:00
Lev Kokotov
37e3a86881
Pass application_name to server ( #73 )
...
* Pass application_name to server
* fmt
2022-06-03 00:15:50 -07:00
Lev Kokotov
61db13f614
Fix memory leak in client/server mapping ( #71 )
2022-05-18 16:24:03 -07:00
Lev Kokotov
fe32b5ef17
Reduce traffic on the stats channel ( #69 )
2022-05-17 13:05:25 -07:00
Lev Kokotov
54699222f8
Possible fix for clients waiting stat leak ( #68 )
2022-05-14 21:35:33 -07:00
Lev Kokotov
ccbca66e7a
Poorly behaved client fix ( #65 )
...
* Poorly behaved client fix
* yes officer
* fix tests
* no useless rescue
* Looks ok
2022-05-09 09:09:22 -07:00
Lev Kokotov
df85139281
Update README. Comments. Version bump. ( #60 )
...
* update readme
* comments
* just a version bump
2022-03-10 01:33:29 -08:00
Lev Kokotov
b309ead58f
Handle SIGTERM. Add docker-compose.yml ( #59 )
...
* docker-compsoe
* remove statsd config
* readme
2022-03-08 17:18:48 -08:00
Lev Kokotov
341ebf4123
docs and remove Option ( #58 )
...
* docs and remove Option
* lint
2022-03-07 23:05:40 -08:00
Lev Kokotov
35828a0a8c
Per-shard statistics ( #57 )
...
* per shard stats
* aight
* cleaner
* fix show lists
* comments
* more friendly
* case-insensitive
* test all shards
* ok
* HUH?
2022-03-04 17:04:27 -08:00
Lev Kokotov
1e8fa110ae
Fix pgbouncerhero ( #54 )
2022-03-02 14:46:31 -08:00
Lev Kokotov
d4186b7815
More admin ( #53 )
...
* more admin
* more admin
* show lists
* tests
2022-03-01 22:49:43 -08:00
Lev Kokotov
aaeef69d59
Refactor admin ( #52 )
2022-03-01 08:47:19 -08:00
Lev Kokotov
b21e0f4a7e
admin SHOW DATABASES ( #51 )
...
* admin SHOW DATABASES
* test
* correct replica count
2022-02-28 17:22:28 -08:00
Lev Kokotov
eb1473060e
admin: SHOW CONFIG ( #50 )
...
* admin: SHOW CONFIG
* test
2022-02-28 08:14:39 -08:00
Lev Kokotov
26f75f8d5d
admin RELOAD ( #49 )
...
* admin RELOAD
* test
2022-02-27 10:21:24 -08:00
Lev Kokotov
99d65fc475
Check server versions on startup & refactor ( #48 )
...
* Refactor and check server parameters
* warnings
* fix validator
2022-02-26 11:01:52 -08:00
Lev Kokotov
206fdc9769
Fix some stats ( #47 )
...
* fix some stats
* use constant
* lint
2022-02-26 10:03:11 -08:00
Lev Kokotov
f74101cdfe
admin: SHOW STATS ( #46 )
...
* admin: show stats
* warning
* tests
* lint
* type mod
2022-02-25 18:20:15 -08:00
Lev Kokotov
6db51b4a11
Use Toxiproxy for failover testing ( #44 )
...
* Toxiproxy
* up-to-date config
* debug
* hm
* more
* mroe
* more
* hmm
* aha
* less logs
* cleaner
* hmm
* we test these now
* update readme
2022-02-24 20:55:19 -08:00
Lev Kokotov
a784883611
Allow to set shard and set sharding key without quotes ( #43 )
...
* Allow to set shard and set sharding key without quotes
* cover it
* dont look for these in the middle of another query
* friendly regex
* its own response to set shard key
2022-02-24 12:16:24 -08:00
Lev Kokotov
5972b6fa52
Switch to parking_lot RwLock & Mutex. Use trace! for protocol instead of debug! ( #42 )
...
* RwLock & parking_lot::Mutex
* upgrade to trace
2022-02-24 08:44:41 -08:00
Lev Kokotov
b3c8ca4b8a
Another example of a sharding function ( #41 )
...
* Another example of a sharding function
* tests
2022-02-23 11:50:34 -08:00
Lev Kokotov
dce72ba262
Add debug logging ( #39 )
...
* Add debug for easier debugging
* fmt
* a couple more messages
2022-02-22 19:26:08 -08:00
Lev Kokotov
af1716bcd7
Flush stats ( #38 )
...
* flush stats
* stats
* refactor
2022-02-22 18:10:30 -08:00
Lev Kokotov
a6fc935040
Can pass config path as argument ( #36 )
...
* show better errors for config parsing
* lint
2022-02-21 20:41:32 -08:00
Lev Kokotov
f21a3d8d8c
Add server login stat; refactor for better naming ( #34 )
2022-02-21 17:28:50 -08:00
Lev Kokotov
86941d62e4
Reset query router setting to default ( #32 )
2022-02-21 00:00:50 -08:00
Lev Kokotov
44b5e7eeee
use logger lib; minor refactor; sv_* stats ( #29 )
2022-02-20 22:47:08 -08:00