Struct mz_controller::clusters::ReplicaAllocation
source · pub struct ReplicaAllocation {
pub memory_limit: Option<MemoryLimit>,
pub cpu_limit: Option<CpuLimit>,
pub disk_limit: Option<DiskLimit>,
pub scale: u16,
pub workers: usize,
pub credits_per_hour: Numeric,
pub disabled: bool,
}
Expand description
Configures the resource allocation for a cluster replica.
Fields§
§memory_limit: Option<MemoryLimit>
The memory limit for each process in the replica.
cpu_limit: Option<CpuLimit>
The CPU limit for each process in the replica.
disk_limit: Option<DiskLimit>
The disk limit for each process in the replica.
scale: u16
The number of processes in the replica.
workers: usize
The number of worker threads in the replica.
credits_per_hour: Numeric
The number of credits per hour that the replica consumes.
disabled: bool
Whether instances of this type can be created
Trait Implementations§
source§impl Clone for ReplicaAllocation
impl Clone for ReplicaAllocation
source§fn clone(&self) -> ReplicaAllocation
fn clone(&self) -> ReplicaAllocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReplicaAllocation
impl Debug for ReplicaAllocation
source§impl<'de> Deserialize<'de> for ReplicaAllocation
impl<'de> Deserialize<'de> for ReplicaAllocation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq<ReplicaAllocation> for ReplicaAllocation
impl PartialEq<ReplicaAllocation> for ReplicaAllocation
source§fn eq(&self, other: &ReplicaAllocation) -> bool
fn eq(&self, other: &ReplicaAllocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReplicaAllocation
impl Serialize for ReplicaAllocation
impl StructuralPartialEq for ReplicaAllocation
Auto Trait Implementations§
impl RefUnwindSafe for ReplicaAllocation
impl Send for ReplicaAllocation
impl Sync for ReplicaAllocation
impl Unpin for ReplicaAllocation
impl UnwindSafe for ReplicaAllocation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.