Configure Bigtable's timeout, enabling by default (#14657)
* Configure bigtable's timeout when read-only * Review comments * Apply nits (thanks!) Co-authored-by: Michael Vines <mvines@gmail.com> * Timeout in the streamed decoding as well Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@ -1287,6 +1287,15 @@ pub fn main() {
|
||||
.default_value(&default_rpc_threads)
|
||||
.help("Number of threads to use for servicing RPC requests"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("rpc_bigtable_timeout")
|
||||
.long("rpc-bigtable-timeout")
|
||||
.value_name("SECONDS")
|
||||
.validator(is_parsable::<u64>)
|
||||
.takes_value(true)
|
||||
.default_value("30")
|
||||
.help("Number of seconds before timing out RPC requests backed by BigTable"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("rpc_pubsub_enable_vote_subscription")
|
||||
.long("rpc-pubsub-enable-vote-subscription")
|
||||
@ -1561,6 +1570,9 @@ pub fn main() {
|
||||
u64
|
||||
),
|
||||
rpc_threads: value_t_or_exit!(matches, "rpc_threads", usize),
|
||||
rpc_bigtable_timeout: value_t!(matches, "rpc_bigtable_timeout", u64)
|
||||
.ok()
|
||||
.map(Duration::from_secs),
|
||||
account_indexes: account_indexes.clone(),
|
||||
},
|
||||
rpc_addrs: value_t!(matches, "rpc_port", u16).ok().map(|rpc_port| {
|
||||
|
Reference in New Issue
Block a user