-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin causing validator to not keep up #8
Comments
Hi @Dassy23 -- The validator I ran with master branch has a plugin writing transactions, accounts, block, secondary indexing to the database and the validator was able to catch up with the network after a couple of hours. You will need to ensure the validator and the postgres server to have enough computing powers. I found that I had to give my nodes more memory to handle the load. |
Thats awesome to hear! What version of the Solana validator did you run? Also if you don't mind can you copy your solana-validator command in this thread? My machine specs are pretty good I believe
|
The following is my validator run command: cargo run --release --bin solana-validator -- --identity ~/validator-keypair.json --vote-account ~/vote-account-keypair.json --rpc-port 8899 --dynamic-port-range 8000-8100 --entrypoint mainnet-beta.solana.com:8001 --limit-ledger-size 50000000 --no-port-check --trusted-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 --trusted-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ --no-check-vote-account --minimal-snapshot-download-speed 40000000 --maximum-snapshot-download-abort 20 --accounts-shrink-optimize-total-space true --accounts-shrink-ratio 0.8 --accountsdb-plugin-config /home/lijun_solana_com/plugin-config-all-txns-and-accounts-idx.json --ledger validator-ledger-mainnet My plugin config: { My virtual machines configuration: I run in google GCP: Validator: 64 CPU Intel(R) Xeon(R) CPU @ 2.80GHz, Memory: 384 G. PostgreSQL: 48 CPU Intel(R) Xeon(R) CPU @ 2.80GHz, Memory: 384 G. |
thank you ser : ) |
@lijunwangs does the thread count(in the config) correlate to the the CPU at all? For example, would it make sense to have 64 CPU and 150 threads? |
The threads count in a system correlate to the count of the CPUs. But they do not have exact one to one mapping. You will see the system usually has much more threads than the CPUs. This makes sense as the thread is not necessarily using the CPU all the time. In our case, it will spend some time waiting on the network IOs (writing or waiting for results from other systems). It does not mean the more threads the better either -- because at certain point the threads has to compete for the CPU and the threads will spend more time context switching than doing real work. The optimal thread count has to be done with some performance measurement with work loads. In this case, you have to also tweak the PostgreSQL concurrent connection counts. |
Are you able to deploy the plugin and keep up with the network, I am consistently falling behind. If you are able to keep up would love to know what flags/settings you have set.
The text was updated successfully, but these errors were encountered: