cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [RFC PATCH 0/5] add new command reload_config set_config
@ 2021-09-25 14:21 Heming Zhao
  2021-09-25 14:21 ` [Cluster-devel] [PATCH 1/5] dlm_tool man: add command "joinleave", add "USAGE" section Heming Zhao
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Heming Zhao @ 2021-09-25 14:21 UTC (permalink / raw)
  To: cluster-devel.redhat.com

This serial patches gives dlm ability to change config settings
on the fly.
It's very useful for debugging, and also useful for adjusting HA
behaviours while running. This feature gives more power function to
advanced users. And HA Resource-Agent (RA) could also benefit from this
feature.

There are two ways to do the dynamic changing job:
- by modification dlm.conf
- by dlm_tool command

The man page of dlm_tool.8 and dlm.conf.5 show examples of this feature.

Original code has bug for those no_arg type options. Whatever use 0 or 1
to set no_arg type option, the option value always 1. To fix this bug,
the 03/05 patch changes some options type from no_arg to req_arg_bool:
 daemon_debug, foreground, log_debug, debug_logfile, plock_debug.
Only keeps help & version with no_arg type.

For daemon_debug option, the 03/05 patch changes dlm_controld behavior.
Before this patch, when the value is 1, dlm_controld won't become a
daemon.
With 03/05 patch, daemon_debug only means dlm_controld enter debug mode.
the foreground option totally controls whether the program becomes a
daemon.


Heming Zhao (5):
  dlm_tool man: add command "joinleave", add "USAGE" section
  man: add reload_config in dlm_tool & dlm.conf
  dlm_controld: add reload_config feature
  dlm_tool man: add new command set_config
  dlm_controld: add new feature set_config

 dlm_controld/action.c        |   5 +
 dlm_controld/config.c        | 288 +++++++++++++++++++++++++++++++++--
 dlm_controld/dlm.conf.5      |  42 +++--
 dlm_controld/dlm_controld.h  |   2 +
 dlm_controld/dlm_daemon.h    |  15 ++
 dlm_controld/helper.c        |   4 -
 dlm_controld/lib.c           |  55 +++++++
 dlm_controld/libdlmcontrol.h |   2 +
 dlm_controld/logging.c       |  18 ++-
 dlm_controld/main.c          | 146 +++++++++++-------
 dlm_tool/dlm_tool.8          | 179 ++++++++++++++++++++++
 dlm_tool/main.c              |  48 +++++-
 12 files changed, 715 insertions(+), 89 deletions(-)

-- 
2.32.0




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-25 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-25 14:21 [Cluster-devel] [RFC PATCH 0/5] add new command reload_config set_config Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 1/5] dlm_tool man: add command "joinleave", add "USAGE" section Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 2/5] man: add reload_config in dlm_tool & dlm.conf Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 3/5] dlm_controld: add reload_config feature Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 4/5] dlm_tool man: add new command set_config Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 5/5] dlm_controld: add new feature set_config Heming Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).