pub struct CoreReservations {
pub databases: f64,
pub tokio_workers: f64,
pub rayon: f64,
pub irq: usize,
pub reserved: usize,
}Expand description
The desired distribution of available cores to purposes.
Note that, in addition to reserved, Cores reserves two additional
cores for the operating system. That is, the denominator for fractions
given below is num_cpus - reserved - 2.
Fields§
§databases: f64Cores to run database instances on.
Default: 1/8
tokio_workers: f64Cores to run tokio worker threads on.
Default: 4/8
rayon: f64Cores to run rayon threads on.
Default: 1/8
irq: usizeCores to reserve for IRQ handling.
This will be the first n CoreIds in the list.
Only make use of this if you’re configuring the machine for IRQ pinning!
Default: 2
reserved: usizeExtra reserved cores.
If greater than zero, this many cores will be reserved before any of the other reservations are made (but after reserving the OS cores).
Default: 0
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreReservations
impl RefUnwindSafe for CoreReservations
impl Send for CoreReservations
impl Sync for CoreReservations
impl Unpin for CoreReservations
impl UnwindSafe for CoreReservations
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more