-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Make it possible to configure the number of max accepted connections over the command-line args. After this change, the RPC now accepts two connection count parameters (one for the DB connection pool, and one for its own accepted connections) so we also tweak the DB connection pool argument name to make the difference clearer. This change also introduces defaults for the RPC's args, for convenience. ## Test plan By default: ``` sui$ cargo run -p sui-indexer-alt-jsonrpc -- \ --database-url $DB 2024-12-18T14:50:26.798833Z INFO sui_indexer_alt_jsonrpc: Starting JSON-RPC service on 0.0.0.0:6000 2024-12-18T14:50:30.565621Z INFO connection{remote_addr=127.0.0.1:49379 conn_id=0}: jsonrpsee_server::server: Accepting new connection 1/100 ``` Overridden: ``` sui$ cargo run -p sui-indexer-alt-jsonrpc -- \ --database-url $DB --max-rpc-connections 200 2024-12-18T14:50:26.798833Z INFO sui_indexer_alt_jsonrpc: Starting JSON-RPC service on 0.0.0.0:6000 2024-12-18T14:50:30.565621Z INFO connection{remote_addr=127.0.0.1:49379 conn_id=0}: jsonrpsee_server::server: Accepting new connection 1/200 ```
- Loading branch information
Showing
2 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters