Proxy

Struct Proxy 

Source
pub struct Proxy {
Show 32 fields pub uid: u32, pub bdb_uid: u32, pub node_uid: u32, pub status: String, pub addr: Option<String>, pub port: Option<u16>, pub max_connections: Option<u32>, pub threads: Option<u32>, pub backlog: Option<u32>, pub client_eviction: Option<bool>, pub client_keepcnt: Option<u32>, pub client_keepidle: Option<u32>, pub client_keepintvl: Option<u32>, pub conns: Option<u32>, pub corefile: Option<bool>, pub duration_usage_threshold: Option<u32>, pub dynamic_threads_scaling: Option<bool>, pub ignore_bdb_cconn_limit: Option<bool>, pub ignore_bdb_cconn_output_buff_limits: Option<bool>, pub incoming_connections_capacity: Option<u32>, pub incoming_connections_min_capacity: Option<u32>, pub incoming_connections_rate_limit: Option<u32>, pub log_level: Option<String>, pub max_listeners: Option<u32>, pub max_servers: Option<u32>, pub max_threads: Option<u32>, pub max_worker_client_conns: Option<u32>, pub max_worker_server_conns: Option<u32>, pub max_worker_txns: Option<u32>, pub maxmemory_clients: Option<u32>, pub threads_usage_threshold: Option<u32>, pub extra: Value,
}
Expand description

Proxy information

Fields§

§uid: u32§bdb_uid: u32§node_uid: u32§status: String§addr: Option<String>§port: Option<u16>§max_connections: Option<u32>§threads: Option<u32>§backlog: Option<u32>

Maximum number of pending connections in the listen queue

§client_eviction: Option<bool>

Whether automatic client eviction is enabled when limits are reached

§client_keepcnt: Option<u32>

Number of TCP keepalive probes before connection is dropped

§client_keepidle: Option<u32>

Time in seconds before TCP keepalive probes start

§client_keepintvl: Option<u32>

Interval in seconds between TCP keepalive probes

§conns: Option<u32>

Current number of active connections

§corefile: Option<bool>

Whether core dump files are generated on crash

§duration_usage_threshold: Option<u32>

Threshold in milliseconds for slow operation logging

§dynamic_threads_scaling: Option<bool>

Whether proxy can dynamically adjust thread count based on load

§ignore_bdb_cconn_limit: Option<bool>

Whether to bypass database connection limit checks

§ignore_bdb_cconn_output_buff_limits: Option<bool>

Whether to bypass database output buffer limit checks

§incoming_connections_capacity: Option<u32>

Maximum capacity for incoming connection handling

§incoming_connections_min_capacity: Option<u32>

Minimum reserved capacity for incoming connections

§incoming_connections_rate_limit: Option<u32>

Maximum rate of new incoming connections per second

§log_level: Option<String>

Logging level for proxy (e.g., ‘debug’, ‘info’, ‘warning’, ‘error’)

§max_listeners: Option<u32>

Maximum number of listener sockets

§max_servers: Option<u32>

Maximum number of backend server connections

§max_threads: Option<u32>

Maximum number of worker threads

§max_worker_client_conns: Option<u32>

Maximum client connections per worker thread

§max_worker_server_conns: Option<u32>

Maximum server connections per worker thread

§max_worker_txns: Option<u32>

Maximum concurrent transactions per worker thread

§maxmemory_clients: Option<u32>

Maximum memory in bytes allocated for client connections

§threads_usage_threshold: Option<u32>

CPU usage threshold percentage for thread scaling decisions

§extra: Value

Trait Implementations§

Source§

impl Clone for Proxy

Source§

fn clone(&self) -> Proxy

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Proxy

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Proxy

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Proxy

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Proxy

§

impl RefUnwindSafe for Proxy

§

impl Send for Proxy

§

impl Sync for Proxy

§

impl Unpin for Proxy

§

impl UnwindSafe for Proxy

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,