pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
include
crm
common
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
13
#include <
crm/common/action_relation_internal.h
>
14
#include <
crm/common/clone_internal.h
>
15
#include <
crm/common/digests_internal.h
>
16
#include <
crm/common/failcounts_internal.h
>
17
#include <
crm/common/group_internal.h
>
18
#include <
crm/common/roles_internal.h
>
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
*/
29
enum
pcmk__sched_warnings
{
30
pcmk__wo_blind
= (1 << 0),
31
pcmk__wo_restart_type
= (1 << 1),
32
pcmk__wo_role_after
= (1 << 2),
33
pcmk__wo_poweroff
= (1 << 3),
34
pcmk__wo_require_all
= (1 << 4),
35
pcmk__wo_order_score
= (1 << 5),
36
pcmk__wo_neg_threshold
= (1 << 6),
37
pcmk__wo_remove_after
= (1 << 7),
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
48
enum
pcmk__check_parameters
{
49
/* Clear fail count if parameters changed for un-expired start or monitor
50
* last_failure.
51
*/
52
pcmk__check_last_failure
,
53
54
/* Clear fail count if parameters changed for start, monitor, promote, or
55
* migrate_from actions for active resources.
56
*/
57
pcmk__check_active
,
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__wo_blind
Definition:
scheduler_internal.h:30
clone_internal.h
pcmk__wo_group_coloc
Definition:
scheduler_internal.h:42
pcmk__wo_nagios
Definition:
scheduler_internal.h:44
digests_internal.h
group_internal.h
pcmk__check_active
Definition:
scheduler_internal.h:57
pcmk__wo_set_ordering
Definition:
scheduler_internal.h:45
pcmk__sched_warnings
pcmk__sched_warnings
Definition:
scheduler_internal.h:29
pcmk__wo_upstart
Definition:
scheduler_internal.h:43
pcmk__wo_poweroff
Definition:
scheduler_internal.h:33
pcmk__wo_order_score
Definition:
scheduler_internal.h:35
pcmk__wo_neg_threshold
Definition:
scheduler_internal.h:36
pcmk__wo_ping_node
Definition:
scheduler_internal.h:38
failcounts_internal.h
pcmk__check_parameters
pcmk__check_parameters
Definition:
scheduler_internal.h:48
roles_internal.h
pcmk__wo_require_all
Definition:
scheduler_internal.h:34
pcmk__wo_remove_after
Definition:
scheduler_internal.h:37
pcmk__wo_restart_type
Definition:
scheduler_internal.h:31
pcmk__warnings
uint32_t pcmk__warnings
Definition:
scheduler.c:14
action_relation_internal.h
pcmk__check_last_failure
Definition:
scheduler_internal.h:52
pcmk__wo_group_order
Definition:
scheduler_internal.h:41
pcmk__wo_coloc_inst
Definition:
scheduler_internal.h:40
pcmk__wo_order_inst
Definition:
scheduler_internal.h:39
pcmk__wo_role_after
Definition:
scheduler_internal.h:32
Generated on Tue Dec 19 2023 17:32:56 for pacemaker by
1.8.14