generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 8
Internal Data Model
Mehdi Bendriss edited this page Jul 9, 2024
·
21 revisions
Backwards compatibility, during minor version upgrades, can be broken due to changes in the relations data.
This document is intended only for charm developers.
We aim to document the internal data models currently used in order to carefully assess any breaking changes in future releases of the OpenSearch charm.
We distinguish between the different types of relations.
-
- Relation endpoint:
opensearch-peers
: - Content:
-
security_index_initialised: bool
: whether the security index has been initialized through the opensearch securityadmin script. -
admin_user_initialized: bool
: indicates that the admin user has been created and set. -
bootstrap_contributors_count: int
: -
nodes_config: List[Node]
: full list of current nodes configured by the charm. -
deployment_description: DeploymentDescription
: description of the current deployment. -
update-ts: int
: current time in nanoseconds since epoch (used to trigger apeer-rel-changed
event by the leader).
-
- Relation endpoint:
-
- Relation endpoint:
opensearch-peers
- Content:
-
cluster_fleet_apps: PeerClusterFleetApps
: Mapping offull application id
andPeerClusterApp
(full descriptor of a juju opensearch app)
-
- Relation endpoint:
-
- Relation endpoint:
node-lock-fallback
- Content:
-
unit-with-lock: str
: full name of the unit holding the lock, when peer relation is used for locking. -
leader-acquired-lock-after-juju-event-id: str
: indicates the juju event id whereunit-with-lock
was set.
-
- Relation endpoint:
-
- Relation endpoint:
opensearch-peers
- Content:
-
started: bool
: whether this unit has fully started and the node is up. -
tls_configured: bool
: flag set when TLS is fully configured in a unit (the TLS secrets / certificates and keys have been set and stored on disk) -
bootstrap_contributor: bool
: whether acluster_manager
eligible node has been part of the bootstrapping process (initial_cluster_manager
inopensearch.yml
) -
certs_exp_checked_at: str
: expiration date of the certificates (date_format%Y-%m-%d %H:%M:%S
) -
update-ts: int
: current time in nanoseconds since epoch (used to trigger apeer-rel-changed
event by any unit).
-
- Relation endpoint:
-
- Relation endpoint:
node-lock-fallback
- Content:
-
lock-requested: bool
: whether this unit requested the lock. -
-trigger: str
: set the current juju context id to trigger a rel changed event on the leader (from a non leader unit).
-
- Relation endpoint: