package
0.0.0-20250312052118-2008840fee0c
Repository: https://github.com/couchbase/indexing.git
Documentation: pkg.go.dev
# Functions
This function convert a single index definition to IndexUsage.
This function convert index definitions from a single metadata repository to a list of IndexUsage.
No description provided by the author
This function creates a new indexer node.
No description provided by the author
No description provided by the author
ExecutePlan2 is the entry point for tenant aware planner for integration with metadata provider.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExecuteTenantAwarePlanForResume provides index placement planning on a tenant resume .
ExecuteTenantAwareRebalance is the entry point for tenant aware rebalancer.
No description provided by the author
No description provided by the author
Generate a map for replicaId.
GetDefragmentedUtilization is the entry method for planner to compute the utilization stats in the given cluster after rebalance.
Alternate approach: Get Scope Limit from clusterInfoClient from proxy.go But in order to get Scope limit only bucket and scope name is required and multiple calls need not be made to fetch bucket list, pool etc.
GetIndexStat function relies on the format of the stat returned by the indexer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDefaultShardDealer is a constructor for the ShardDealer with default alternate shard ID generator.
During index creation, either of SAPlanner and GreedyPlanner can be used.
No description provided by the author
NewShardDealer is a constructor for the ShardDealer.
No description provided by the author
Convert memory string from string to int.
No description provided by the author
Sibling index is only populated for shard proxies where an entire shard has to be repaired (E.g., the node containing the shard is failed over)
The initialNode for a shard that needs repair will be to nil.
No description provided by the author
No description provided by the author
No description provided by the author
This function retrieves the current index layout from a live cluster.
No description provided by the author
SetStatsInIndexer will collect all the relevant stats from statsMap and put them in indexer so that it can be planned in the cluster.
SolutionFromPlan2 creates a Solution from the input Plan.
No description provided by the author
Validate solution.
# Constants
constant - simulated annealing.
3.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
255.
constant - simulated annealing.
No description provided by the author
constant - simulated annealing.
constant - simulated annealing.
constant - simulated annealing.
constant - index sizing - MOI.
constant - index sizing - MOI.
constant - index sizing - MOI.
No description provided by the author
Keep this consistent with indexer.go.
CpuViolation = "CpuViolation".
constant - simulated annealing.
constant - simulated annealing.
No description provided by the author
1.
2.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
SAPlanner uses simulated annealing method to find optimal index placement.
No description provided by the author
Indexer Node is a description of one index node used by Planner to track which indexes are planned to reside on this node.
No description provided by the author
No description provided by the author
IndexUsage is a description of one instance of an index used by Planner to keep track of which indexes are planned to be on which nodes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShardDealer is a shard distributor on cluster level.
ShardLoad Captures the load of a shard "slot" across all nodes in the cluster.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Resource Usage Thresholds for serverless model.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
constant - command.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShardCategory defines the shard category for an index it can be Standard, Vector or Bhive.
No description provided by the author
No description provided by the author
constant - violation code.