Configuration needed to deploy a pod-based index.

PodSpec

interface PodSpec {
    environment: string;
    metadataConfig?: PodSpecMetadataConfig;
    pods?: number;
    podType: string;
    replicas?: number;
    shards?: number;
    sourceCollection?: string;
}

Properties

environment: string

The environment where the index is hosted.

PodSpec

metadataConfig?: PodSpecMetadataConfig

PodSpec

pods?: number

The number of pods to be used in the index. This should be equal to shards x replicas.'

PodSpec

podType: string

The type of pod to use. One of s1, p1, or p2 appended with . and one of x1, x2, x4, or x8.

PodSpec

replicas?: number

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.

PodSpec

shards?: number

The number of shards. Shards split your data across multiple pods so you can fit more data into an index.

PodSpec

sourceCollection?: string

The name of the collection to be used as the source for the index.

PodSpec