Repository navigation
·
27 commits
to main
since this release
Changelog
- 37c4701 backend, net: reduce memory allocation in forwarding packets (pingcap#394)
- 9dac468 proxy: listen on additional addrs (pingcap#393)
- 8d0bf38 api: add grpc and diagnostics (pingcap#388)
- c7ea81a backend, net: optimize read/write connection by forwarding packets (pingcap#391)
- 5da388a backend: fix duplicated import (pingcap#390)
- c9c5817 auth: reconnect backend (pingcap#389)
- 28d53d3 manager: get unicast ip only when the config one is not (pingcap#386)
- 3354c7a api: add json format response (pingcap#385)
- 35f3c79 net, config: optimize read and write packets (pingcap#382)
- a4d2de9 net: fix packet sequence when sequence overflows (pingcap#378)
- 419e26d backend, net: Support compression protocol (pingcap#373)
- d3cc47c infosync: increase timeout for
infosynctests (pingcap#376) - b9e7d6f *: fix docker file for new arg (pingcap#372)
- e4b65b7 readme: add future plans and blog link (pingcap#370)
- 01f1152 proxy, util: recover from connection panic (pingcap#368)
- 8fe7525 backend, net: support connection attrs in COM_CHANGE_USER (pingcap#367)
- eb5b4b9 backend, net: Remind the user when TiDB sets wrong proxy-protocol (pingcap#362)
- be8f39b backend: refine the error message when require TLS (pingcap#359)
- 53a957f net, backend: fix wrong format in error packet (pingcap#357)
- cc62e05 server: print more info about build and runtime (pingcap#354)
- 8551648 *: rename TiProxy to tiproxy in go import (pingcap#353)
- 7f0eed6 security: report warning when TLS version is below 1.2 (pingcap#350)
- efd29b1 proxy: use a real proxy conn id (pingcap#348)
- bcb0848 make: add clean target (pingcap#344)
- 44234f6 fix link in readme (pingcap#342)
- 6780eee ctl: use versioninfo (pingcap#341)
- b944a8f fix: remove mirrot test (pingcap#339)
- 456af03 fix: remove https in Dockerfile (pingcap#338)
- 81f4897 *: remove more about tidb/parser/mysql (pingcap#301)
- 98009c1 Update README.md (pingcap#335)
- 4b29db8 *: remove connector test in gh (pingcap#334)
- 56eb332 backend: fix
using passwordin the error message is wrong (pingcap#333) - 9a49933 *: fix goreleaser build (pingcap#330)
- 2b7b6ea *: add darwin os for goreleaser (pingcap#329)
- a2953aa chore: update OWNERS (pingcap#328)
- 0c03603 *: add mysql client test (pingcap#323)
- 2726b7a config: skip irrelevant config file events (pingcap#322)
- 4035b4b infosync: remove topology info after TiProxy shuts down (pingcap#317)
- 2ac6896 infosync, router: remove tombstone check for TiDB topology (pingcap#311)
- d418199 infosync, router: register TiProxy to ETCD (pingcap#309)
- 66d42d5 api: change loglevel (pingcap#306)
- d507def cert, security: dynamically update tls config (pingcap#304)
- 95c9c3c backend: keep backend TLS config consistent with frontend TLS config (pingcap#303)
- e89da8f proxy: use pnet.Command (pingcap#299)
- b2b6cdc *: use spdx ident (pingcap#298)
- 8d06a7a backend, net: return handshake errors to the client (pingcap#294)
- 98555ee backend: fix authenticator tests (pingcap#296)
- df69e53 router: remove useless error (pingcap#292)
- db9c99f config: log every change (pingcap#290)
- e9768be workflow: fix typo (pingcap#291)
- 48e745b *: add goreleaser (pingcap#285)
- 74113ab router: add RefreshBackend method for Router interface (pingcap#287)
- 2f5bfd8 backend: ignore parsing attrs error during handshake (pingcap#284)
- 1538fcd backend: use atomic.Pointer for *signalRedirect (pingcap#271)
- 04120b6 router, backend: show server version from TiDB (pingcap#281)
- 8bbb0e9 metrics: fix metrics
Get Backend CountandPing Backend Duration(pingcap#280) - ea6ae2e net: move OnConnClose before Swap (pingcap#277)
- d0e6292 net: fix proxy protocol (pingcap#274)
- 396efd1 backend: add onTraffic callback for serverless (pingcap#276)
- e776585 server: add proxyprotocol to http (pingcap#270)
- 177cae4 lib: configurable TLS version (pingcap#267)
- 35f19b9 *: customize server version (pingcap#268)
- ec35e64 docker: fix script on some older docker builder (pingcap#269)
- bd8d8aa security: set minimum version to TLS11 (pingcap#265)
- 9e46036 router: fix backends are unbalanced when the workload starts (pingcap#263)
- 28ce2c6 metrics: add more metrics and fix some metrics (pingcap#261)
- e85dc2a router, backend: refine some logs (pingcap#259)
- 6c751f9 metrics: add uptime and cpu limit to grafana (pingcap#257)
- 05b9446 metrics: correct a typo (pingcap#253)
- 645756a metrics: shorten backend name on TiDB Operator based clusters (pingcap#252)
- 45df1bc net: complete some definitions (pingcap#250)
- a688abf proxy: move proxyprotocol as a seperate package (pingcap#247)
- c369737 server: graceful shutdown notice in HTTP (pingcap#246)
- 15a1f4f config: adjust keep alive parameters and add comments (pingcap#242)
- 0ed81af *: remove docs and update readme (pingcap#223)
- f05556d manager: remove expiration judgement and reload certs periodically (pingcap#244)
- 5a00605 backend: add namespace/token to the log of BackendConnManager (pingcap#241)
- 8a67487 router: remove connMap (pingcap#238)
- 97b6b32 keepalive: RT timeout parameters (pingcap#239)
- 14429a3 backend: add quit source to ConnContext (pingcap#236)
- cfa03e5 router: generic list (pingcap#237)
- edce57f router: set keepalive according to status (pingcap#234)
- 67e2c78 proxy: provide keepalive helpers (pingcap#231)
- 513b8f2 backend, net: make connection concurrency safe (pingcap#232)
- 707f415 proxy: set keepalive for backend connections (pingcap#227)
- 61c436c backend: add ssl to packet for HandshakeHandler (pingcap#226)
- 7561e08 backend: do not add CLIENT_SSL for HandshakeHandler (pingcap#225)
- a55e6b6 tls: fix server side verification (pingcap#221)
- c68bfd3 backend: always set ClientPluginAuth (pingcap#222)
- 1af65db proxy: fix proxy-protocol under originAddr (pingcap#219)
- d968def router: add http timeout in health check (pingcap#215)
- 249245f backend, metrics: add logs and metrics for getting a backend (pingcap#212)
- e3d8e52 backend: adjust timeout parameters (pingcap#209)
- 32e96e6 router, config: fix deadlock during closing the router (pingcap#208)
- 4a70be3 config, router: add health check switch (pingcap#206)
- df06ec4 config, api: add API for getting the config checksum (pingcap#203)
- f388efb backend: revert PR 201 because to make the test accurate (pingcap#204)
- 1af49c8 test: use require.Eventually instead of sleep (pingcap#201)
- e9b628c backend: set tls state in conncontext (pingcap#200)
- a15dd3e config: add json tag (pingcap#199)
- d6e1f92 backend, net: close the client connection when the backend is down (pingcap#198)
- ae713b2 api: add configversion to /api/debug/health (pingcap#197)
- f2a197c api: add /api/debug/health (pingcap#193)
- e201bdf config: use fsnotify to do config file reload (pingcap#191)
- 8288910 backend: send the error to the client when the handler encounters an error (pingcap#187)
- 8dbe706 *: fix docker build problem (pingcap#194)
- b26d28e api: refactor config API to adapt tidb-operator/TOML changes (pingcap#176)
- 565fb8e *: fix CI debug (pingcap#186)
- 6dc29b9 *: fix CI debug (pingcap#185)
- 17cf8c8 router, backend: stop retrying connecting to backends if the fetcher fails (pingcap#182)
- dec59b4 proxy: ensure conn is always non-nil (pingcap#184)
- b93030e *: fix tmate debug (pingcap#183)
- ef3f28b backend, net: track traffic for each client connection (pingcap#178)
- 6be0611 cmd: add version (pingcap#177)
- 483af7d backend: use BackendConnMgr as ConnContext (pingcap#172)
- 7167d40 router: refresh backends when the backends are empty (pingcap#173)
- 66e47e3 router, backend: retry connecting to different backends (pingcap#171)
- f41b593 *: upgrade tidb to latest (pingcap#170)
- da56a2c *: avoid using official atomic.Int64 (pingcap#169)
- d774f31 lib/config: reasonable default config values (pingcap#167)
- 8bc079b proxy: optional server-side verification (pingcap#166)
- 68d4015 backend: fix connection won't close if graceful shutdown starts during handshake (pingcap#164)
- d642637 *: adapt to toml (pingcap#165)
- 644009c backend: remove getBackendIO (pingcap#160)
- 1649979 security: fix server cert config (pingcap#163)
- f725184 server, backend: graceful shutdown (pingcap#159)
- 2c9d13a backend: add OnHandshake (pingcap#158)
- b5d2300 backend: closed before/after handshake (pingcap#157)
- 8aee2ce router: add ConnCount (pingcap#156)
- 6c986bb metrics: add alertmanager (pingcap#155)
- e0ec1ae Route retry (pingcap#153)
- a27ec65 update etcd version (pingcap#152)
- 1a5316d proxy: add OnConnClose for handler (pingcap#154)
- 5490197 *: tls refactor (pingcap#146)
- 32b4c29 *: remove write timeout (pingcap#151)
- 9ad7689 metrics: add goroutine panel (pingcap#150)
- c8493a8 *: timeout for cli and server (pingcap#149)
- 37df9d1 server: default rate limit (pingcap#148)
- be49463 *: fix integration with serverless due to opentelemetry (pingcap#147)
- 153e336 server: support custom handler for Server (pingcap#145)
- 3cc9581 backend: add context to pass parameters need by handler (pingcap#144)
- ed9650d server: remove etcd (pingcap#140)
- cc58ecd backend: update handshakeHandler interface (pingcap#143)
- a853843 router: refactor creation of backendFetcher (pingcap#141)
- b6599aa proxy: remove NamespaceManager from HandshakeHandler interface (pingcap#142)
- b94d61b backend: Add HandshakeHandler to customize handling handshake (pingcap#138)
- 3572e4e *: Update README.md (pingcap#139)
- 2efc1db router: support fetching backend list from external interface (pingcap#135)
- d482ba1 *: add back salt (pingcap#134)
- 6a5e31d *: change user (pingcap#132)
- 31a09e9 *: add log for mysql error (pingcap#131)
- 73255cd *: fix TLS cases (pingcap#128)
- b8de341 *: fix log format (pingcap#130)
- 4f31e77 *: handle more nil error cases (pingcap#129)
- c60d0ad *: add mod tidy action (pingcap#125)
- 376829c *: redirect without TLS (pingcap#126)
- fa4b426 *: replace old encoder with new encoder (pingcap#123)
- ac74724 *: update README (pingcap#122)
- 87878b2 *: fix newtidb encoder (pingcap#92)
- 544b0cc *: fix cli stdin (pingcap#121)
- ff1f40a *: improve dockerfile (pingcap#120)
- 92077f9 *: fix static backends & support route by user (pingcap#119)
- d3971a8 manager: rotate ca (pingcap#115)
- 80ff910 router: do not fail if tiproxy can not connect PD in the first try (pingcap#118)
- 9542e0c proxy: enable non-TLS connection to TiDB (pingcap#117)
- 9917e02 *: pass rsa key size correctly (pingcap#116)
- c0ab948 manager: auto reload certs (pingcap#114)
- 458b03c *: support clustering (pingcap#112)
- c96dd43 *: support proxy protocol on reconnection (pingcap#113)
- 3432991 backend: handshake with client first (pingcap#108)
- b1e0a00 *: fix CI cache (pingcap#107)
- c46acb9 *: improve docker scripts (pingcap#104)
- e255b6b *: output coverage stats to the makefile (pingcap#106)
- 6a218a1 *: fix master CI cache (pingcap#103)
- 87e4081 *: better workflow (pingcap#101)
- 876ba28 backend: update db in the handshake (pingcap#102)
- 3b6c664 *: support proxy-protocol (pingcap#96)
- 0ef11e1 *: add lint CI (pingcap#99)
- 475eb1b *: ctl TLS refine (pingcap#98)
- b3616a3 logger: fix case
TestUpdateCfg(pingcap#100) - 3bf1000 manager, config: watch and apply the latest log configuration online (pingcap#95)
- fefaaa3 *: filter nil errors (pingcap#97)
- 0354249 proxy/client: do not print error on EOF (pingcap#90)
- 1eca8bd *: compute rev before firing go routines (pingcap#93)
- 3c8839f *: fix hang bug (pingcap#91)
- f3c5305 proxy/net: human readable capability flag (pingcap#89)
- 31a5604 manager: add logger manager (pingcap#88)
- ea3cd6f *: apply some lint (pingcap#87)
- a922101 *: another operator adapt PR (pingcap#86)
- 8f2d1fd router, proxy: refine logs of router and backend (pingcap#85)
- d7f1885 *: new tls configuration for operator (pingcap#80)
- 08a75db *: remove logutil in proxy (pingcap#84)
- 10073ed metrics: add grafana panel (pingcap#81)
- 5461943 router: fix unstable test
TestConnBalanced(pingcap#82) - 349d1d6 *: add metrics to prometheus (pingcap#79)
- b1853c4 *: fix multi module test (pingcap#78)
- 06effc0 *: adapt needs for operator support (pingcap#76)
- c4d3fa9 router: add tests for router (pingcap#74)
- ddf7bfb backend: fix the bug that the redirection signal may be discarded (pingcap#75)
- 8d8a09e backend, router: fix errors when closing and redirecting concurrently (pingcap#72)
- a4b095d namespace: create default namespace fallback if not any (pingcap#65)
- 8d47abe docker: add docker support (pingcap#70)
- d3ebbdf util: try to fix panic (pingcap#61)
- 77b931f router: refine BackendObserver and add tests (pingcap#59)
- e665dba config: consistent marshal name (pingcap#67)
- 12c633b server: use json for API and internal storage (pingcap#66)
- b49db9a *: add pingcap/log encoder as the default encoder (pingcap#62)
- 8915c07 util: remove ast package (pingcap#63)
- bacaced config: dynamic proxy config (pingcap#56)
- 64e87f0 backend: support CLIENT_DEPRECATE_EOF (pingcap#52)
- d62e002 *: trigger test and build (pingcap#55)
- 9e60836 *: only ref to workflows directory are allowed (pingcap#54)
- 2ca3230 *: add CI pipe line (pingcap#53)
- 0de79f7 backend: report errors for unsupported capabilities (pingcap#51)
- c5b871a backend: remove support for protocol_41 (pingcap#49)
- ed53270 backend: add tests for BackendConnMgr (pingcap#41)
- 9d6726a proxy: bring back auto tls cert creation (pingcap#44)
- d6a5878 config: fix url config (pingcap#43)
- 4bf1155 backend: add tests for network error (pingcap#39)
- 930663c backend: add tests for forwarding multi-statements (pingcap#37)
- 5bd467f backend: add tests for transaction status (pingcap#35)
- 898d46a backend: add tests for prepared statements (pingcap#33)
- 3974260 backend: add tests for processing simple commands (pingcap#31)
- 1c4b17f proxy: refine sqlserver.SQLServer (pingcap#27)
- 94aadce util: remove useless components (pingcap#26)
- bc0f00e proxy: extract tcp logic out further (pingcap#24)
- d86b629 proxy: expose proxy protocol API (pingcap#25)
- a6db638 proxy: remove driver and queryctx (pingcap#18)
- 080c85f backend: extract protocol processing from
Authenticatorand add a test suite (pingcap#22) - 7edc004 manager: add basic UT for config manager (pingcap#21)
- 7febab7 proxy: fix compilation (pingcap#20)
- 2270308 proxy: fix TLS buffering (pingcap#19)
- df86464 proxy: simplified packetIO and proxyv2 en(de)coding (pingcap#17)
- fe7b92e manager: new namespace manager based on etcd (pingcap#13)
- 2a653c3 config: remove useless fields, fix tests (pingcap#12)
- 309eb2c utils: new error package (pingcap#9)
- d90e307 *: refine github templates (pingcap#10)
- 64a12cd proxy: rename package
servertosqlserver(pingcap#6) - 73ed0af *: update license and remove unused packages (pingcap#5)
- 8441634 *: update tidb dependency to latest (pingcap#4)
- cdd54bf proxy: remove sessionmgr (pingcap#3)
- a6781e8 *: replace the imports from djshow832/weir to pingcap/TiProxy (pingcap#2)
- 6bc5d2d fix wrong API address
- 3b47695 *: introduce etcd and cli (pingcap#1)
- 0aae864 *: remove useless code (pingcap#27)
- d167be5 *: add license (pingcap#26)
- eb7f7c4 backend: fix redirection fails if the initial db is dropped during session (pingcap#25)
- 25a775d router: skip checking health for static TiDB instances (pingcap#24)
- eaaad93 router: fix router sometimes doesn't redirect sessions when scale-out (pingcap#23)
- db60dca router: make routing more even when there is a sudden flow (pingcap#22)
- 07234b4 router: migrate connection automatically during scale-in and scale-out (pingcap#21)
- d0f9096 router: enable router to manage backend connections directly (pingcap#20)
- 97c9a82 router: observe the backend members and check health (pingcap#19)
- 155680c backend: support com_change_user and multiple statements (pingcap#18)
- 98f30f1 backend: support closing connections (pingcap#17)
- 6bdb86f backend: fix handling COM_STMT_CLOSE (pingcap#16)
- bc8c195 backend: wait for the end of prepared statements before redirection (pingcap#15)
- b5ad314 backend: always enable TLS with the server (pingcap#14)
- 3b42347 backend: wait for the end of transactions before redirecting the session (pingcap#13)
- bcdb706 backend, security: support token-based authentication (pingcap#12)
- 0888d77 backend: support query and init session states (pingcap#11)
- f11ee8d *: upgrade go to 1.18 (pingcap#10)
- 8b2d928 backend: support reconnecting to server with caching_sha2_password (pingcap#9)
- 43b941d api, backend: support sending redirect command (pingcap#8)
- a61243c util: add 2 missing packages (pingcap#7)
- eef460b backend: support TLS connection (pingcap#6)
- de506b0 backend: add authenticator to parse authInfo (pingcap#5)
- d87f436 *: remove unnecessary code (pingcap#4)
- 76afa98 sessionmgr: handshake and forward msg between client and server (pingcap#3)
- dfbb217 Merge pull request pingcap#2 from djshow832/auth_and_ns
- f0deaba auth be compatible with namespace
- be4de2c Merge pull request pingcap#1 from djshow832/demo
- b2f92c1 refactor architecture
- b758675 fix readme pic path (pingcap#73)
- b17c352 fix readme (pingcap#71)
- 8ca3c28 Merge pull request pingcap#70 from eastfisher/dev-upgrade-dependency
- 3ab3d8f upgrade dependency (gin) to avoid security problem
- 348497f Merge pull request pingcap#67 from qingfeng777/master
- c63052e Merge pull request pingcap#66 from EAHITechnology/master
- a4ffba1 refactor: rename module to github.com/tidb-incubator/weir (pingcap#69)
- 11e77c4 fix comment
- edab9e4 exec mod tidy
- efdc07b Merge pull request pingcap#1 from EAHITechnology/fix_getBreakerName_scope_type
- 3e1e6b0 fix namespace
- a694b53 use rand2 instead of std rand (pingcap#65)
- 9b3dab2 add cluster name to metrics (pingcap#64)
- dd5825b change log level to warn when sql error occurs (pingcap#63)
- a2833d7 doc: add grafana template (pingcap#62)
- 4478b88 update doc: namespace config (pingcap#61)
- 0b02d63 dev rate limiter (pingcap#60)
- 75533ad dev sql blacklist and whitelist (pingcap#59)
- 51c97df fix attached conn metric (pingcap#58)
- 4b3a14c Fix sql breaker (pingcap#57)
- 578a9e3 fix breaker config nil (pingcap#56)
- 873e1a7 fix attached conn metric (pingcap#55)
- 176b4c6 Refactor circuit breaker (pingcap#54)
- 2a8814a upgrade breaker configuration (pingcap#52)
- 65c79ce use util/errors.Is() instead of std errors.Is() (pingcap#50)
- 853c5e8 fix error set ErrBadConn (pingcap#49)
- 51db0ef remove set session vars (pingcap#47)
- 10e39cb fix recordQueryMetrics()
- 6d90a02 add first table name in queryctx metrics (pingcap#45)
- c60a3c3 add Session timeout (pingcap#44)
- 5bc89ac add more pprof api (pingcap#43)
- aa30efd fix connection was bad (pingcap#42)
- 6363ab8 fix: check namespace nil in when close queryctx (pingcap#41)
- ec193f2 update README (pingcap#40)
- 3a51c40 add cn docs (pingcap#39)
- 34e19eb fix: desc conn count metrics
- 126a5b2 add attached conn gauge metrics (pingcap#38)
- 2b92e2e fix backend sysvar error (pingcap#37)
- d2fa422 fix: SET NAMES execute error in backend conn (pingcap#36)
- da38687 Merge pull request pingcap#35 from eastfisher/fix-backend-namespace-name
- 0f30255 fix: set backend namespace name
- 1fc95b6 change metrics label name
- c403129 Merge pull request pingcap#34 from eastfisher/fix-set-names
- db6ec34 fix charset error
- 0d01823 remove proxy server concurrent limiter (pingcap#32)
- a1e44fe remove token limit confs
- bd33318 remove proxy server concurrent limiter
- 1e5a8cb add more proxy metrics (pingcap#31)
- ca16e32 fix metrics pkg import
- ac74f75 fix metrics pkg import
- 3873c2f add basic proxy metrics (pingcap#30)
- fdd28f7 add proxy metrics (pingcap#29)
- 0ec7878 support set session system variables (pingcap#28)
- 39a5992 fix queryctx close panic when init failed (pingcap#27)
- 7c3c682 add example config files (pingcap#26)
- 8177a35 fix affectrows (pingcap#25)
- 9da3cf0 dev fsm conn prepare (pingcap#24)
- 29d142f add fsm conn manager (pingcap#23)
- cbe8a36 fix txn conn execute error (pingcap#21)
- bb85a36 fix error compile code (pingcap#20)
- ef19a06 support binary prepare commands (pingcap#19)
- c5ee15d refactor: extract AttachedConnHolder to handle txn (pingcap#18)
- c501296 fix: function FieldList lose one row of data. (pingcap#17)
- 171bead add error close in PooledBackendConn (pingcap#15)
- 3734c13 replace go-mysql dependency (pingcap#14)
- 3addc39 pass gomysql result from backend TiDB to server (pingcap#13)
- 899fe1d update proxy config
- 5219d59 add configcenter (pingcap#12)
- a28b944 update Makefile weirproxy
- 7850961 change namespace impl to one (pingcap#11)
- 9ba91bf Merge pull request pingcap#10 from eastfisher/dev-proxy-api
- 69672dc add cmd proxy
- 7592eba add proxy api and proxy wrapper
- 695a68a dev proxy (pingcap#9)
- 077faba first commit proxy driver (pingcap#8)
- fcdd3fc Merge pull request pingcap#5 from eastfisher/feat-proxy-server
- 248ca7c add proxy server
- da85ff5 add proxy config and namespace config
- 0526a73 update go.mod
- 2eb37d9 Merge pull request pingcap#2 from eastfisher/dev-utils
- 6eb2571 migrate some utils
- 0d5b344 change project name in github template files
- 2ea17c6 copy ISSUE_TEMPLATE and pull_request_template.md from pd
- a46f357 create Makefile
- 2752d7a add .golangci.yaml
- 51b5fe3 go mod init
- 630b07a add .gitignore
- a65047a add CONTRIBUTING.md and OWNERS
- 158c444 Create README.md
- a623200 copy LICENSE and code-of-conduct from template