pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
scheduler_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2023 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_COMMON_SCHEDULER_INTERNAL__H
11 # define PCMK__CRM_COMMON_SCHEDULER_INTERNAL__H
12 
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /* Some warnings are too noisy when logged every time a give function is called
25  * (for example, using a deprecated feature). As an alternative, we allow
26  * warnings to be logged once per scheduler sequence (transition). Each of those
27  * warnings needs a flag defined here.
28  */
30  pcmk__wo_blind = (1 << 0),
32  pcmk__wo_role_after = (1 << 2),
33  pcmk__wo_poweroff = (1 << 3),
38  pcmk__wo_ping_node = (1 << 8),
39  pcmk__wo_order_inst = (1 << 9),
40  pcmk__wo_coloc_inst = (1 << 10),
41  pcmk__wo_group_order = (1 << 11),
42  pcmk__wo_group_coloc = (1 << 12),
43  pcmk__wo_upstart = (1 << 13),
44  pcmk__wo_nagios = (1 << 14),
45  pcmk__wo_set_ordering = (1 << 15),
46 };
47 
49  /* Clear fail count if parameters changed for un-expired start or monitor
50  * last_failure.
51  */
53 
54  /* Clear fail count if parameters changed for start, monitor, promote, or
55  * migrate_from actions for active resources.
56  */
58 };
59 
60 // Group of enum pcmk__sched_warnings flags for warnings we want to log once
61 extern uint32_t pcmk__warnings;
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif // PCMK__CRM_COMMON_SCHEDULER_INTERNAL__H
pcmk__sched_warnings
pcmk__check_parameters
uint32_t pcmk__warnings
Definition: scheduler.c:14