Charmed MySQL

  • By Canonical Data Platform
  • Cloud
Channel Revision Published Runs on
8.0/stable 240 20 Jun 2024
Ubuntu 22.04
8.0/candidate 240 17 Jun 2024
Ubuntu 22.04
8.0/beta 240 17 Jun 2024
Ubuntu 22.04
8.0/edge 251 11 Jul 2024
Ubuntu 22.04
8.0/edge 250 11 Jul 2024
Ubuntu 22.04
juju deploy mysql --channel 8.0/stable
Show information

Platform:

Ubuntu
22.04

charms.mysql.v0.async_replication

MySQL cluster-set async replication module.


class ClusterSetInstanceState

Description

Cluster set instance state. None

class States

Description

States for the relation. None

class MySQLAsyncReplication

Description

MySQL async replication base class. None

Methods

MySQLAsyncReplication. __init__( self , charm , relation_name: str )

MySQLAsyncReplication. role( self )

Description

Current cluster set role of the unit, after the relation is established. None

MySQLAsyncReplication. cluster_name( self )

Description

This cluster name. None

MySQLAsyncReplication. cluster_set_name( self )

Description

Cluster set name. None

MySQLAsyncReplication. relation( self )

Description

Relation. None

MySQLAsyncReplication. relation_data( self )

Description

Relation data. None

MySQLAsyncReplication. remote_relation_data( self )

Description

Remote relation data. None

MySQLAsyncReplication. on_async_relation_broken( self , event: RelationBrokenEvent )

Description

Handle the async relation being broken from either side. None

class MySQLAsyncReplicationOffer

MySQL async replication primary side.

Description

Implements the setup phase of the async replication for the primary side.

Methods

MySQLAsyncReplicationOffer. __init__( self , charm )

MySQLAsyncReplicationOffer. state( self )

Description

State of the relation, on primary side. None

MySQLAsyncReplicationOffer. idle( self )

Description

Whether the async replication is idle for all related clusters. None

MySQLAsyncReplicationOffer. secret( self )

Description

Return the async replication secret. None

class MySQLAsyncReplicationConsumer

MySQL async replication replica side.

Description

Implements the setup phase of the async replication for the replica side.

Methods

MySQLAsyncReplicationConsumer. __init__( self , charm )

MySQLAsyncReplicationConsumer. state( self )

Description

State of the relation, on consumer side. None

MySQLAsyncReplicationConsumer. idle( self )

Description

Whether the async replication is idle. None

MySQLAsyncReplicationConsumer. returning_cluster( self )

Whether to skip checks.

Description

Used for skipping checks when a replica cluster was removed through broken relation.

MySQLAsyncReplicationConsumer. replica_initialized( self )

Description

Whether the replica cluster was initialized. None