Struct tikv::server::config::Config[][src]

pub struct Config {
    pub cluster_id: u64,
    pub addr: String,
    pub advertise_addr: String,
    pub status_addr: String,
    pub advertise_status_addr: String,
    pub status_thread_pool_size: usize,
    pub max_grpc_send_msg_len: i32,
    pub grpc_compression_type: GrpcCompressionType,
    pub grpc_concurrency: usize,
    pub grpc_concurrent_stream: i32,
    pub grpc_raft_conn_num: usize,
    pub grpc_memory_pool_quota: ReadableSize,
    pub grpc_stream_initial_window_size: ReadableSize,
    pub grpc_keepalive_time: ReadableDuration,
    pub grpc_keepalive_timeout: ReadableDuration,
    pub concurrent_send_snap_limit: usize,
    pub concurrent_recv_snap_limit: usize,
    pub end_point_recursion_limit: u32,
    pub end_point_stream_channel_size: usize,
    pub end_point_batch_row_limit: usize,
    pub end_point_stream_batch_row_limit: usize,
    pub end_point_enable_batch_if_possible: bool,
    pub end_point_request_max_handle_duration: ReadableDuration,
    pub end_point_max_concurrency: usize,
    pub snap_max_write_bytes_per_sec: ReadableSize,
    pub snap_max_total_size: ReadableSize,
    pub stats_concurrency: usize,
    pub heavy_load_threshold: usize,
    pub heavy_load_wait_duration: ReadableDuration,
    pub enable_request_batch: bool,
    pub background_thread_count: usize,
    pub end_point_slow_log_threshold: ReadableDuration,
    pub forward_max_connections_per_address: usize,
    pub labels: HashMap<String, String>,
    // some fields omitted
}

Configuration for the server module.

Fields

cluster_id: u64addr: Stringadvertise_addr: Stringstatus_addr: Stringadvertise_status_addr: Stringstatus_thread_pool_size: usizemax_grpc_send_msg_len: i32grpc_compression_type: GrpcCompressionTypegrpc_concurrency: usizegrpc_concurrent_stream: i32grpc_raft_conn_num: usizegrpc_memory_pool_quota: ReadableSizegrpc_stream_initial_window_size: ReadableSizegrpc_keepalive_time: ReadableDurationgrpc_keepalive_timeout: ReadableDurationconcurrent_send_snap_limit: usize

How many snapshots can be sent concurrently.

concurrent_recv_snap_limit: usize

How many snapshots can be recv concurrently.

end_point_recursion_limit: u32end_point_stream_channel_size: usizeend_point_batch_row_limit: usizeend_point_stream_batch_row_limit: usizeend_point_enable_batch_if_possible: boolend_point_request_max_handle_duration: ReadableDurationend_point_max_concurrency: usizesnap_max_write_bytes_per_sec: ReadableSizesnap_max_total_size: ReadableSizestats_concurrency: usizeheavy_load_threshold: usizeheavy_load_wait_duration: ReadableDurationenable_request_batch: boolbackground_thread_count: usizeend_point_slow_log_threshold: ReadableDurationforward_max_connections_per_address: usize

Max connections per address for forwarding request.

labels: HashMap<String, String>

Implementations

impl Config[src]

pub fn validate(&mut self) -> Result<()>[src]

Validates the configuration and returns an error if it is misconfigured.

pub fn grpc_compression_algorithm(&self) -> CompressionAlgorithms[src]

Gets configured grpc compression algorithm.

Trait Implementations

impl Clone for Config[src]

impl<'lt> Configuration<'lt> for Config[src]

type Encoder = Config_encoder_c626a200461aa863<'lt>

impl Debug for Config[src]

impl Default for Config[src]

impl<'de> Deserialize<'de> for Config where
    Config: Default
[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]