Skip to content

dveeden/proxysql-tidb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING: This is for proof-of-concept demonstration only.

This can be scheduled via the ProxySQL Scheduler like this:

INSERT INTO scheduler(id, active, interval_ms, filename) values (1, 1, 10000, '/tmp/proxysql-tidb');
LOAD SCHEDULER TO RUNTIME;
SAVE SCHEDULER TO DISK;

You then should check journalctl -u proxysql -f or elswhere for output.

What this does is to do a soft offline of TiDB servers that are in a graceful shutdown.

This require the TiDB server to have a non-zero graceful-wait-before-shutdown

Possible future improvements:

  • Logging via slog
  • More defensive coding and error checking
  • Also onlineing servers when they are healty again
  • Adding hostgroup filtering

Other possible solutions:

About

Improved ProxySQL integration with TiDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages