github.com/weaviate/weaviate@v1.24.6/entities/replication/config.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package replication
    13  
    14  // GlobalConfig represents system-wide config that may restrict settings of an
    15  // individual class
    16  type GlobalConfig struct {
    17  	// MinimumFactor can enforce replication. For example, with MinimumFactor set
    18  	// to 2, users can no longer create classes with a factor of 1, therefore
    19  	// forcing them to have replicated classes.
    20  	MinimumFactor int `json:"minimum_factor" yaml:"minimum_factor"`
    21  }