Cache account stores, flush from AccountsBackgroundService (#13140) (#14542)

(cherry picked from commit 6dfad0652f)

Co-authored-by: carllin <wumu727@gmail.com>
This commit is contained in:
mergify[bot]
2021-01-12 06:12:18 +00:00
committed by GitHub
parent 25fe93e9fb
commit 0e3e3a03cc
25 changed files with 2727 additions and 837 deletions

View File

@@ -1423,6 +1423,11 @@ pub fn main() {
.value_name("INDEX")
.help("Enable an accounts index, indexed by the selected account field"),
)
.arg(
Arg::with_name("accounts_db_caching_enabled")
.long("accounts-db-caching-enabled")
.help("Enable accounts caching"),
)
.get_matches();
let identity_keypair = Arc::new(keypair_of(&matches, "identity").unwrap_or_else(Keypair::new));
@@ -1593,6 +1598,7 @@ pub fn main() {
poh_pinned_cpu_core: value_of(&matches, "poh_pinned_cpu_core")
.unwrap_or(poh_service::DEFAULT_PINNED_CPU_CORE),
account_indexes,
accounts_db_caching_enabled: matches.is_present("accounts_db_caching_enabled"),
..ValidatorConfig::default()
};