Pisanix
A Database Mesh Project Sponsored by SphereEx
Install / Use
/learn @database-mesh/PisanixREADME
Briefly, if applications want a MySQL, just access
localhost:3306.
Introduction
Pisanix [Pi-sanics] is a modern database governance framework for Kubernetes. Pisanix adds SQL-aware traffic control, audit, security and extension abilities to help manage various databases in the Database Mesh way.
Pisanix has 4 major features:
- Local Service as Database: Pisanix provides a local database service, that is one applications could access a MySQL at localhost:3306 without any knowledge of the real data source.
- Unified Config Management: Pisanix provides a centralized management of Database Mesh configurations, including traffic strategies like read-write splitting, sharding, encryption and concurrency control.
- Multi Protocol Support: Pisanix has a bunch of different plugins to help build a Glue Layer for any database protocols.
- Cloud Native Architecture: Pisanix takes advantage of the classic control plane and data plane pattern, using Infrastructure as Code to make it a versioned database access behavior.
Current Status
Pisanix now supports TrafficStrategy of Database Mesh Specificiation, besides VirtualDatabase, DatabaseEndpoint, and other features like AuditRequest and AccessControl are also on the way:
- TrafficStrategy
- Load Balance
- [x] Simple LoadBalance
- [x] Read Write Splitting
- [x] Static
- [x] Dynamic
- [x] Master-Slave Replication
- [x] MHA
- Plugins
- [x] Circuit Break
- [x] Concurrency Control
- Load Balance
- DataStrategy
- Sharding
- [x] Sharding with keys
- [x] Single Database Sharding Tables
- [x] Sharding Databases
- [x] Sharding Databases with Sharding Tables
- [x] Sharding with keys
- Sharding
- AuditRequest
- [ ] Audit with AWS
- AccessControl
- [ ] Fine-Grained Access Control
- QoSClaim
- [x] TrafficQoS
- DatabaseClass
- [x] AWSRdsInstance
Getting Started
Highlights
Pisanix has 3 components:
- Pisa-Controller: A Golang control plane designed for sidecar injection and configuration transformation
- Pisa-Proxy: A high performance Rust data plane used as SQL traffic proxy, support various of traffic governance capabilities.
- Pisa-Daemon(Coming Soon): A optional data plane works on every node, provide programmable runtime management such as TrafficQoS.
Goals
Pisanix has the following goals:
- SQL-Aware Traffic Control: supports SQL traffic load balancing, access control, observability.
- Runtime Resource-oriented Programming: supports extensible resource control abilities.
- Database Reliability Engineering: make DBA's life easier with Kubernetes
Database traffic governance
Applications access databases with SQL, so Pisanix will hijack all SQL traffic. This is a great opportunity to do a lot of things around traffic, like loadbalancing and SQL firewall.
Observability
In the past, metrics could be retrieved from database instances and display in kinds of charts. Now with Pisanix, DBAs could have more chances to achieve better observability.
Programmable
For DBAs who could and would like to solve problems with programming. Pisanix supports many kinds of plugin mechanism, like Lua and Wasm. People will have the chance to 'reshape' the expected behavior of databases.
Documentation
Full documentation will be available on the Pisanix website.
Contribution
Please follows Contributing Guide
Community & Support
| | | |:-|:-| | Mailing List| https://groups.google.com/g/database-mesh | | Dev Meetings (Starting Feb 16th, 2022), Bi-weekly Wednesday 9:00AM PST|https://meet.google.com/yhv-zrby-pyt | | Dev Meetings APAC Friendly (Starting April 27th, 2022), Bi-weekly APAC Wednesday 9:00PM GMT+8|https://meeting.tencent.com/dm/6UXDMNsHBVQO | | Wechat Broker|pisanix| | Slack |https://join.slack.com/t/databasemesh/shared_invite/zt-19rhvnxkz-USjZ~am~ghd_Q0q~8bAJXA | | Meetings Notes |https://bit.ly/39Fqt3x |
- Wechat User Group: Broker wechat to add you into the user group. <img src="static/wechat-user-group-broker.jpeg" width="200" length="200"/>
Roadmap
The Pisanix project is still at an early stage. In the next work, it will focus on enhancing the governance capabilities of traffic, such as data sharding, application data access auditing , and runtime resource QoS, etc. And it will continuously improve the performance and provide an ease of use experience, support plugin extensions to fit different business scenarios.
License
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
notion
343.1kNotion API for creating and managing pages, databases, and blocks.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
