From: heming.zhao@suse.com Date: Wed, 22 Sep 2021 17:32:49 +0800 Subject: [Cluster-devel] [RFC PATCH dlm 00/10] dlm_controld config settings can be In-Reply-To: <20210921135404.GA27196@redhat.com> References: <20210919064322.1670-1-heming.zhao@suse.com> <20210920175736.GA19901@redhat.com> <20210921135404.GA27196@redhat.com> Message-ID: <36d545a4-0551-6ab4-42da-0816020c4da6@suse.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 9/21/21 9:54 PM, David Teigland wrote: > On Tue, Sep 21, 2021 at 02:38:45PM +0800, heming.zhao at suse.com wrote: >> But I am ok with the reload_config idea, it's more basic. >> We could give dlm_controld a chance to change behavior on the fly. >> If needed, I could file a new patch for feature "reload_config", can I do it? > > Yes, I'd welcome a patch adding a dlm_tool reload_config option to reread > dlm.conf and apply new settings from it. > Thanks, > Dave > Before sending the new feature patch, I want to have more discussion. In my opinion, changing and reloading dlm.conf is a ***heavy*** way to update dlm_controld settings. This manner is well suited for the change of a setting still valid to next turn startup dlm_controld. There are some use cases which require a ***light*** way to update settings. It just needs updating settings in memory and validating in a short time (or until one dlm_controld running turn). Examples: 1. debug debugging the code temporarily with no intention to change dlm.conf. 2. to get some log temporarily enable dlm log for checking status. 3. temporarily change dlm_controld behaviour (there is a production use case.) a. In 3+ nodes HA cluster env, dlm_controld startup with default settings. b. after stopping 2 of 3 nodes in cluster. (by cmd "crm cluster stop") c. the only left node is lacking quorum and quorate become "NO". (by cmd "corosync-quorumtool") d. on the last active node, run "crm cluster stop" to stop this node. the result is the node will be hung and will be fenced for a short while by trigging timeout. The hanging in can be avoid by temporarily changing settings: enable_quorum_fencing and enable_quorum_lockspace from default value 1 to 0. and the changing does not need lasting for node restart. So, If there is no chance to add dynamic updating setting by run command. Is it a good idea to add a parameter "-I", like "dlm_tool -I reload_config". "-I" means directly change without reading from dlm.conf. When users want to restore the original setting, run "dlm_tool reload_config" (without "-I") to override with predefined/default values. Thanks Heming