Get started with Lifecycle Manager (LCM)
Lifecycle Manager (LCM) is a provisioning and configuration management system for DataStax Enterprise (DSE) clusters. The LCM UI simplifies the process of installing and configuring DSE, helping you to effectively manage DSE clusters without requiring extensive platform expertise.
Supported platforms for LCM
LCM runs on OpsCenter-supported Linux environments only.
LCM isn’t compatible with container orchestration tools. LCM relies on SSH to communicate with target nodes, and it requires that target nodes have a full, traditional Linux operating system. LCM works best with IaaS, virtual machines, or bare metal targets.
Cluster topology and configuration profiles
The LCM cluster topology model allows completely defining the cluster configuration including datacenter and node topology. The LCM model works in conjunction with a flexible, configurable profile system that integrates deeply with the full spectrum of DSE settings. The declarative model facilitates inheritance of configuration profiles (and more) when installing and configuring DSE across a cluster, datacenter, or a single node:
-
Efficiently monitor and prevent configuration drift by defining configuration profiles that apply to an entire cluster, a specific datacenter, or a single node.
-
Enforce uniform configurations that adhere to the desired baseline configurations for the workload of each datacenter.
-
Securely store credentials to automate access to machines and package repositories without the need to repeatedly enter credentials during install and configure jobs.
-
Monitor job status with transparency into each recorded and timestamped event during the deployment process.
-
Drill into job details in the LCM UI to troubleshoot install and configure jobs without the immediate need to scour various logs for information.
Upper limit for large clusters
The LCM web interface has an upper limit of 300 nodes per cluster. Larger clusters cannot be managed using the LCM web interface. If sufficient heap memory is available, you can use the OpsCenter APIs to manage larger clusters.
Decommission nodes manually
LCM doesn’t support automatic node decommissioning, and OpsCenter isn’t designed to manage the infrastructure on which DSE is installed. When decommissioning resources, actions are required in OpsCenter, LCM, and elsewhere.
Before you run another LCM job, you must remove decommissioned resources from the LCM topology model. Otherwise, LCM attempts to restore the old topology, which can have unpredictable results.
For more information, see Decommission clusters, datacenters, or nodes.
Configuration values and secret fields aren’t encrypted
Lifecycle Manager (LCM) is not compatible with configuration encryption in DSE or OpsCenter.
If configuration encryption is enabled in OpsCenter or the DSE cluster, you must disable configuration encryption before you can use LCM to configure your DSE clusters. To manage configuration encryption, see the following:
|
Secret fields in configuration profiles aren’t encrypted during storage, and these values are returned in API responses to clients that have permission to read configuration profiles. This behavior specifically applies to configuration profiles. For other OpsCenter objects, such as SSH credentials, repositories, and clusters, secret fields are encrypted during storage and not included in API responses. |
Compatibility with DSE features
- DSE Multi-Instance
-
LCM doesn’t support managing DSE Multi-Instance nodes, also referred to as dense nodes. However, OpsCenter supports monitoring multi-instance nodes that you manage without LCM.
- Snitches
-
When managing or importing clusters to LCM, the only compatible snitch is the GossipingPropertyFileSnitch (GPFS). This is the only snitch that supports all possible topologies and independent configuration for each node.
GPFS is automatically configured according to the rack setting on each node in the cluster topology.
Before you import an existing cluster into LCM, make sure the cluster uses the GPFS. If not, migrate to the GPFS before importing the cluster.
- Partitioners
-
LCM supports the Murmur3Partitioner (default) and the RandomPartitioner.
- Transparent Data Encryption (TDE)
-
See Configuration values and secret fields aren’t encrypted.
Access LCM
You can access LCM through the OpsCenter UI or the LCM API.
|
If OpsCenter authentication is enabled (recommended) you must have an Admin role to access the LCM UI or authenticate LCM API requests.
In addition to OpsCenter authentication, DataStax recommends that you enable TLS between OpsCenter and the DataStax Agent to protect data in transit, including secrets used by LCM to perform provisioning and configuration actions, such as SSH credentials and DSE user passwords. |
The first time that you start OpsCenter, you can click Create a new cluster on the Welcome page to launch LCM and add your first cluster to LCM and OpsCenter simultaneously. After you add at least one cluster (in either LCM or only OpsCenter), you can access LCM through the Lifecycle Manager option on the OpsCenter navigation menu.
When you access LCM through the UI, it opens in a separate browser tab from the OpsCenter interface. This allows you to run and monitor LCM jobs in one tab while monitoring clusters in another tab. For example, after you run an LCM install job on a new cluster, you can switch to the OpsCenter tab to view and manage monitoring details for the managed cluster.
If you have multiple LCM tabs open, and you click Lifecycle Manager in the navigation menu again, the tab remains within LCM. If you refresh the page, the tab redirects to OpsCenter Monitoring.
From within the LCM UI, you can click OpsCenter Monitoring to return to OpsCenter, or click Go Back to return to the Welcome page.
Meta-configuration for LCM
You can configure the high-level behavior and options for LCM in the lifecycle_manager section of the opscenterd.conf file.
For example:
[lifecycle_manager]
db_location = /var/lib/opscenter/lcm.db
cacerts_directory = /var/lib/opscenter/ssl/lcm
cacerts_truststore_location = /var/lib/opscenter/ssl/lcm/lcm-auto-generated.truststore
cacerts_truststore_password = changeit
crypto_key_file = /etc/opscenter/lcm.key
job_manager_polling_interval = 5
node_install_idle_timeout = 900
node_restart_idle_timeout = 300
node_configure_idle_timeout = 300
node_cluster_import_idle_timeout = 120
node_install_agent_idle_timeout = 120
cassandra_connection_timeout = 30
ssh_connect_timeout_in_seconds = 30
ssh_max_attempts = 3
ssh_retry_delay_in_seconds = 5
disable_platform_check = true
dse_healthcheck_startup_timeout = 60
dse_healthcheck_attempt_wait_time = 10
meld_upload_method = http
enable_local_query_health_check = true
After editing the opscenterd.conf file, you must restart OpsCenter to apply the changes.
LCM data
The data for LCM is stored in the lcm.db database, including cluster topology, configuration profiles, credentials, repositories, and job history.
Your organization is responsible for backing up the lcm.db database.
You are responsible for backing up the lcm.db database.
If you enable failover, make sure that your mirror includes the lcm.db database.
The location of the lcm.db database is set in the lifecycle_manager section of the opscenterd.conf file.
