pub struct PodSpec {
pub environment: String,
pub replicas: i32,
pub shards: i32,
pub pod_type: String,
pub pods: i32,
pub metadata_config: Option<Box<PodSpecMetadataConfig>>,
pub source_collection: Option<String>,
}
Expand description
PodSpec : Configuration needed to deploy a pod-based index.
Fields§
§environment: String
The environment where the index is hosted.
replicas: i32
The number of replicas. Replicas duplicate your index. They provide higher availability and throughput. Replicas can be scaled up or down as your needs change.
shards: i32
The number of shards. Shards split your data across multiple pods so you can fit more data into an index.
pod_type: String
The type of pod to use. One of s1
, p1
, or p2
appended with .
and one of x1
, x2
, x4
, or x8
.
pods: i32
The number of pods to be used in the index. This should be equal to shards
x replicas
.’
metadata_config: Option<Box<PodSpecMetadataConfig>>
§source_collection: Option<String>
The name of the collection to be used as the source for the index.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PodSpec
impl<'de> Deserialize<'de> for PodSpec
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
impl StructuralPartialEq for PodSpec
Auto Trait Implementations§
impl Freeze for PodSpec
impl RefUnwindSafe for PodSpec
impl Send for PodSpec
impl Sync for PodSpec
impl Unpin for PodSpec
impl UnwindSafe for PodSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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