Package com.morpheusdata.core.providers
Interface StorageReplicationProvider
public interface StorageReplicationProvider
Optional facet for
StorageProvider implementations whose arrays support acting
on an existing array-to-array replication relationship, i.e. failover, failback, pause
and resume. Paired with StorageProvider the same way as
StorageProviderVolumeGroupsFacet.
CRUD and discovery of replication groups themselves live on
StorageProviderReplicationGroupFacet; a provider may implement one facet
without the other, e.g. an array that only reports replication state discovered via
StorageProvider.refreshStorageServer(com.morpheusdata.model.StorageServer, java.util.Map) without supporting operator-driven
failover/failback from Morpheus.
- Since:
- 1.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfailbackReplicationGroup(StorageServer storageServer, StorageReplicationGroup group, Map opts) Fail back to the original primary.failoverReplicationGroup(StorageServer storageServer, StorageReplicationGroup group, StorageReplicationGroup.FailoverType type, Map opts) Trigger a planned or unplanned failover.pauseReplication(StorageServer storageServer, StorageReplicationGroup group, Map opts) Pause an active replication relationship without deleting it.resumeReplication(StorageServer storageServer, StorageReplicationGroup group, Map opts) Resume a paused replication relationship.
-
Method Details
-
failoverReplicationGroup
ServiceResponse<StorageReplicationGroup> failoverReplicationGroup(StorageServer storageServer, StorageReplicationGroup group, StorageReplicationGroup.FailoverType type, Map opts) Trigger a planned or unplanned failover. Planned flushes outstanding writes before reversing roles; unplanned promotes the secondary while the primary may be unreachable and may result in data loss.- Parameters:
storageServer- the localStorageServergroup- the group to fail overtype-StorageReplicationGroup.FailoverType.plannedorStorageReplicationGroup.FailoverType.unplannedopts- provider-specific options- Returns:
- ServiceResponse containing the updated group on success
-
failbackReplicationGroup
ServiceResponse<StorageReplicationGroup> failbackReplicationGroup(StorageServer storageServer, StorageReplicationGroup group, Map opts) Fail back to the original primary. Resyncs the recovered array, then reverses roles. Never automatic â the operator must invoke this explicitly.- Parameters:
storageServer- the localStorageServergroup- the group to fail backopts- provider-specific options- Returns:
- ServiceResponse containing the updated group on success
-
pauseReplication
ServiceResponse<StorageReplicationGroup> pauseReplication(StorageServer storageServer, StorageReplicationGroup group, Map opts) Pause an active replication relationship without deleting it.- Parameters:
storageServer- the localStorageServergroup- the group to pauseopts- provider-specific options- Returns:
- ServiceResponse containing the updated group on success
-
resumeReplication
ServiceResponse<StorageReplicationGroup> resumeReplication(StorageServer storageServer, StorageReplicationGroup group, Map opts) Resume a paused replication relationship.- Parameters:
storageServer- the localStorageServergroup- the group to resumeopts- provider-specific options- Returns:
- ServiceResponse containing the updated group on success
-