Charmed MongoDB

Channel Revision Published Runs on
6/stable 164 26 Mar 2024
Ubuntu 22.04
6/candidate 164 26 Mar 2024
Ubuntu 22.04
6/beta 164 26 Mar 2024
Ubuntu 22.04
6/edge 170 17 Apr 2024
Ubuntu 22.04
5/stable 117 20 Apr 2023
Ubuntu 22.04
5/candidate 117 20 Apr 2023
Ubuntu 22.04
5/edge 139 21 Nov 2023
Ubuntu 22.04
3.6/stable 100 28 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/candidate 100 13 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/edge 100 03 Feb 2023
Ubuntu 20.04 Ubuntu 18.04
juju deploy mongodb --channel 6/stable
Show information

Platform:

Ubuntu
22.04

charms.mongodb.v0.config_server_interface

In this class, we manage relations between config-servers and shards.

This class handles the sharing of secrets between sharded components, adding shards, and removing shards.


class ClusterProvider

Description

Manage relations between the config server and mongos router on the config-server side. None

Methods

ClusterProvider. __init__( self , charm: CharmBase , relation_name: str )

Description

Constructor for ShardingProvider object. None

ClusterProvider. pass_hook_checks( self , event: EventBase )

Description

Runs the pre-hooks checks for ClusterProvider, returns True if all pass. None

ClusterProvider. update_config_server_db( self , event )

Description

Provides related mongos applications with new config server db. None

ClusterProvider. generate_config_server_db( self )

Description

Generates the config server database for mongos to connect to. None

class ClusterRequirer

Description

Manage relations between the config server and mongos router on the mongos side. None

Methods

ClusterRequirer. __init__( self , charm: CharmBase , relation_name: str )

Description

Constructor for ShardingProvider object. None

ClusterRequirer. is_mongos_running( self )

Description

Returns true if mongos service is running. None

ClusterRequirer. update_config_server_db( self , config_server_db )

Description

Updates config server str when necessary. None

ClusterRequirer. update_keyfile( self , key_file_contents: str )

Description

Updates keyfile when necessary. None