This website requires JavaScript.
Explore
Help
Sign In
gaspersic
/
solana
Watch
1
Star
0
Fork
0
You've already forked solana
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
Files
7da2df7d8c3960c0694513f65ff2d26c963d6acd
solana
/
accountsdb-plugin-postgres
/
src
/
lib.rs
4 lines
88 B
Rust
Raw
Normal View
History
Unescape
Escape
AccountsDb plugin framework (#20047) Summary of Changes Create a plugin mechanism in the accounts update path so that accounts data can be streamed out to external data stores (be it Kafka or Postgres). The plugin mechanism allows Data stores of connection strings/credentials to be configured, Accounts with patterns to be streamed PostgreSQL implementation of the streaming for different destination stores to be plugged in. The code comprises 4 major parts: accountsdb-plugin-intf: defines the plugin interface which concrete plugin should implement. accountsdb-plugin-manager: manages the load/unload of plugins and provide interfaces which the validator can notify of accounts update to plugins. accountsdb-plugin-postgres: the concrete plugin implementation for PostgreSQL The validator integrations: updated streamed right after snapshot restore and after account update from transaction processing or other real updates. The plugin is optionally loaded on demand by new validator CLI argument -- there is no impact if the plugin is not loaded.
2021-09-30 14:26:17 -07:00
pub
mod
accounts_selector
;
pub
mod
accountsdb_plugin_postgres
;
Accountsdb stream plugin improvement (#20419) Support using connection pooling and use multiple threads to do Postgres db operations. The performance is improved from 1500 RPS to 40,000 RPS measured during validator start. Support multiple plugins at the same time.
2021-10-08 20:06:58 -07:00
pub
mod
postgres_client
;
Reference in New Issue
Copy Permalink