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
Lev Kokotov
108f5715c0
License as MIT ( #28 )
...
* License as MIT
* license
* s
2022-02-20 13:49:30 -08:00
Lev Kokotov
3b795464a8
Fix client states reporting ( #27 )
...
* Fix client states reporting
* clean
2022-02-20 12:40:09 -08:00
Lev Kokotov
d4c1fc87ee
Reloadable config ( #26 )
...
* Reloadable config
* readme
* live config reload
* test matrix
2022-02-19 13:57:35 -08:00
Lev Kokotov
a556ec1c43
More query router commands; settings last until changed again; docs ( #25 )
...
* readme
* touch up docs
* stuff
* refactor query router
* remove unused
* less verbose
* docs
* no link
* method rename
2022-02-19 08:57:24 -08:00
Lev Kokotov
bbacb9cf01
Explicit shard selection; Rails tests ( #24 )
...
* Explicit shard selection; Rails tests
* try running ruby tests
* try without lockfile
* aha
* ok
2022-02-18 09:43:07 -08:00
Lev Kokotov
aa796289bf
Query parser 3.0 ( #23 )
...
* Starting query parsing
* Query parser
* working config
* disable by default
* fix tsets
* introducing log crate; test for query router; comments
* typo
* fixes for banning
* added test for prepared stmt
2022-02-18 07:10:18 -08:00
Lev Kokotov
4c8a3987fe
Refactor query routing into its own module ( #22 )
...
* Refactor query routing into its own module
* commments; tests; dead code
* error message
* safer startup
* hm
* dont have to be public
* wow
* fix ci
* ok
* nl
* no more silent errors
2022-02-16 22:52:11 -08:00
Lev Kokotov
7b0ceefb96
Constants, comments, CI fixes, dead code clean-up ( #21 )
...
* constants
* server.rs docs
* client.rs comments
* dead code; comments
* comment
* query cancellation comments
* remove unnecessary cast
* move db setup up one step
* query cancellation test
* new line; good night
2022-02-15 22:45:45 -08:00
Lev Kokotov
05b4cccb97
More statistics ( #20 )
...
* cleaner stats
* remove shard selection there
2022-02-15 08:18:01 -08:00
Lev Kokotov
8e5e28a139
Some stats ( #19 )
2022-02-14 10:00:55 -08:00
Lev Kokotov
9c521f07c1
parse startup client parameters ( #16 )
2022-02-14 05:11:53 -08:00
Lev Kokotov
4aa9c3d3c7
Cleaner shutdown ( #12 )
...
* Cleaner shutdown
* mark as bad just in case although im pretty sure we dont need it
* server session duration
* test clean shutdown
* ah
2022-02-12 10:16:05 -08:00
Lev Kokotov
20ceb729a0
print session duration; connect to all servers when validating ( #11 )
2022-02-12 09:24:24 -08:00
Lev Kokotov
526b9eb666
Pass real server info to the client ( #10 )
2022-02-11 22:19:49 -08:00
Lev Kokotov
0d369ab90a
add default server role; bug fix
2022-02-11 11:19:40 -08:00
Lev Kokotov
06575eae7b
once_cell is way faster
2022-02-10 17:05:20 -08:00
Lev Kokotov
1798065b76
max_workers = 4 = so much faster
2022-02-10 13:48:56 -08:00
Lev Kokotov
495d6ce6c3
fmt
2022-02-10 10:38:06 -08:00
Lev Kokotov
883b6ee793
todo complete
2022-02-10 10:37:55 -08:00
Lev Kokotov
22c6f13dc7
removed atomic round-robin
2022-02-10 10:37:49 -08:00
Lev Kokotov
c1476d29da
config tests
2022-02-10 09:07:10 -08:00
Lev Kokotov
8209633e05
pool fixes
2022-02-10 08:54:06 -08:00
Lev Kokotov
daf120aeac
more tests
2022-02-10 08:35:25 -08:00
Lev Kokotov
a9b2a41a9b
fixes to the banlist
2022-02-09 21:19:14 -08:00
Lev Kokotov
28c70d47b6
#1 Primary/replica selection
2022-02-09 20:02:20 -08:00
Lev Kokotov
4c16ba3848
some comments
2022-02-09 06:51:31 -08:00
Lev Kokotov
bb1474f175
remove unused
2022-02-08 17:40:28 -08:00
Lev Kokotov
dfc05c3dca
sharding readme
2022-02-08 17:15:35 -08:00
Lev Kokotov
edf6a69ca4
warnings
2022-02-08 17:08:17 -08:00
Lev Kokotov
95c2d593cc
health check timeout config
2022-02-08 16:56:29 -08:00
Lev Kokotov
9657256adf
fixed health check; sharding setup and tests
2022-02-08 15:48:28 -08:00
Lev Kokotov
eb682db52e
Update main.rs
2022-02-08 15:00:16 -08:00
Lev Kokotov
75dd88a099
Update main.rs
2022-02-08 14:59:44 -08:00
Lev Kokotov
a80f118a8d
Update main.rs
2022-02-08 14:59:10 -08:00
Lev Kokotov
af6f770271
sharded query routing
2022-02-08 13:11:50 -08:00
Lev Kokotov
5f9f2c21fc
usize
2022-02-08 11:14:20 -08:00
Lev Kokotov
39a9dff26b
pg sharding works
2022-02-08 11:10:28 -08:00