Overview
Note
Note
- All the nodes will apply the Frontend patch/set wherever the Postgresql and OpenSearch changes will be used to only one cluster node.
- After patching/setting any configuration, certain services will restart. The time required for your services to regain stability may vary depending on the amount of data stored in your system.
Warning
- For certificate rotation, don’t use
config patch
. Instead, thecert-rotate
command can be used. To know more about certificate rotation, click here - While patching the same from the provision host, structures such as TLS from the OpenSearch configuration .toml file and SSL from the PostgreSQL configuration toml file will be ignored.
Show Configuration
Showing configuration in all nodes can be done from the bastion server using the below commands.
Show Configuration for Automate cluster
To show the configuration for Automate cluster, run the following command:
chef-automate config show --automate
or
chef-automate config show -a
or
chef-automate config show --a2
Show Configuration for Chef Server cluster
To show the configuration for the Chef Server cluster, run the following command:
chef-automate config show --chef_server
or
chef-automate config show -c
or
chef-automate config show --cs
Show Configuration for Postgresql cluster
To show the configuration for the Postgresql cluster, run the following command:
chef-automate config show --postgresql
or
chef-automate config show -p
or
chef-automate config show --pg
Show Configuration for OpenSearch cluster
To show the configuration for the OpenSearch cluster, run the following command:
chef-automate config show --opensearch
or
chef-automate config show -o
or
chef-automate config show --os
Patch Configuration
The bastion server can patch new configurations in all nodes using the commands below.
Patch Configuration for Frontend cluster
To patch configuration for the Frontend cluster (includes Automate and Chef Server), run the following command:
chef-automate config patch path/to/automate-config.toml --frontend
or
chef-automate config patch path/to/automate-config.toml -f
or
chef-automate config patch path/to/automate-config.toml --fe
Patch Configuration for Automate cluster
To patch the configuration for Automate cluster, run the following command:
chef-automate config patch path/to/automate-config.toml --automate
or
chef-automate config patch path/to/automate-config.toml -a
or
chef-automate config patch path/to/automate-config.toml --a2
Patch Configuration for Chef Server cluster
To patch the configuration for the Chef Server cluster, run the following command:
chef-automate config patch path/to/chef_server-config.toml --chef_server
or
chef-automate config patch path/to/chef_server-config.toml -c
or
chef-automate config patch path/to/chef_server-config.toml --cs
Patch Configuration for Postgresql cluster
For Information on PostgreSQL node configs visit links below:
- Click here for PostgreSQL
To patch the configuration for the Postgresql cluster, run the following command:
chef-automate config patch path/to/postgresql-config.toml --postgresql
or
chef-automate config patch path/to/postgresql-config.toml -p
or
chef-automate config patch path/to/postgresql-config.toml --pg
Patch Configuration for OpenSearch cluster
For Information on OpenSearch node configs visit links below:
- Click here for OpenSearch
To patch the configuration for the OpenSearch cluster, run the following command:
chef-automate config patch path/to/opensearch-config.toml --opensearch
or
chef-automate config patch path/to/opensearch-config.toml -o
or
chef-automate config patch path/to/opensearch-config.toml --os
Set Configuration
Setting new configurations in all nodes can be done from the bastion server using the below commands.
Set Configuration for Automate cluster
To set the configuration for Automate cluster, run the following command:
chef-automate config set path/to/automate-config.toml --automate
or
chef-automate config set path/to/automate-config.toml -a
or
chef-automate config set path/to/automate-config.toml --a2
Set Configuration for Chef Server cluster
To set the configuration for the Chef Server cluster, run the following command:
chef-automate config set path/to/chef_server-config.toml --chef_server
or
chef-automate config set path/to/chef_server-config.toml -c
or
chef-automate config set path/to/chef_server-config.toml --cs
Set Configuration for Postgresql cluster
For Information on PostgreSQL node configs visit links below:
- Click here for PostgreSQL
To set the configuration for the Postgresql cluster, run the following command:
chef-automate config set path/to/postgresql-config.toml --postgresql
or
chef-automate config set path/to/postgresql-config.toml -p
or
chef-automate config set path/to/postgresql-config.toml --pg
Set Configuration for OpenSearch cluster
For Information on OpenSearch node configs visit links below:
- Click here for OpenSearch
To set the configuration for the OpenSearch cluster, run the following command:
chef-automate config set path/to/opensearch-config.toml --opensearch
or
chef-automate config set path/to/opensearch-config.toml -o
or
chef-automate config set path/to/opensearch-config.toml --os
How to patch max shards per node for opensearch
To configure OpenSearch max shard per node, create a TOML file that contains the partial configuration below. Change max_shards_per_node as needed, and then run command to apply change.
[cluster]
max_shards_per_node = "2000"