extcosmosdb

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const CosmosDbFailoverActionId = "com.steadybit.extension_azure.cosmosdb.account.failover"
View Source
const (
	TargetIDCosmosDbAccount = "com.steadybit.extension_azure.cosmosdb.account"
)

Variables

This section is empty.

Functions

func NewAccountDiscovery

func NewAccountDiscovery() discovery_kit_sdk.TargetDiscovery

Types

type CosmosDbFailoverState

type CosmosDbFailoverState struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	// PromotedRegion is the region we will promote to priority 0. Captured for log messaging.
	PromotedRegion string
	// NewPolicies is the full priority order to submit at Start (computed from the current order
	// at Prepare, with PromotedRegion swapped to priority 0).
	NewPolicies []failoverPolicy
}

CosmosDbFailoverState carries the computed new failover priorities from Prepare to Start. This attack is one-shot (no Stop / no rollback): Azure's FailoverPriorityChange is async and takes 5-15 min per call, so a transient experiment-style "set & restore" semantics is misleading. Users who want to switch back can run the experiment again against the (now-secondary) region.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL