MongoDB

Channel Revision Published Runs on
6/stable 199 04 Oct 2024
Ubuntu 22.04
6/candidate 199 04 Oct 2024
Ubuntu 22.04
6/beta 199 04 Oct 2024
Ubuntu 22.04
6/edge 202 16 Oct 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 Ubuntu 20.04
5/edge 109 06 Mar 2023
Ubuntu 22.04 Ubuntu 20.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 20.04 18.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. is_valid_mongos_integration( self )

Description

Returns true if the integration to mongos is valid. 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

ClusterProvider. update_ca_secret( self , new_ca: str )

Description

Updates the new CA for all related shards. 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 , substrate: str )

Description

Constructor for ShardingProvider object. None

ClusterRequirer. pass_hook_checks( self , event )

Description

Runs the pre-hooks checks for ClusterRequirer, returns True if all pass. 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

ClusterRequirer. get_tls_statuses( self )

Description

Returns statuses relevant to TLS. None

ClusterRequirer. get_config_server_name( self )

Description

Returns the name of the Juju Application that mongos is using as a config server. None

ClusterRequirer. get_config_server_uri( self )

Description

Returns the short form URI of the config server. None

ClusterRequirer. is_ca_compatible( self )

Description

Returns true if both the mongos and the config server use the same CA. None

ClusterRequirer. is_mongos_tls_missing( self )

Description

Returns true if the config-server has TLS enabled but mongos does not. None

ClusterRequirer. is_config_server_tls_missing( self )

Description

Returns true if the mongos has TLS enabled but the config-server does not. None