pacemaker
2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
include
pcmki
pcmki_scheduler.h
Go to the documentation of this file.
1
/*
2
* Copyright 2014-2022 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__PCMKI_PCMKI_SCHEDULER__H
11
# define PCMK__PCMKI_PCMKI_SCHEDULER__H
12
13
# include <glib.h>
14
# include <
crm/crm.h
>
15
# include <
crm/common/iso8601.h
>
16
# include <
crm/pengine/rules.h
>
17
# include <
crm/pengine/common.h
>
18
# include <
crm/pengine/status.h
>
19
20
# include <
crm/pengine/complex.h
>
21
22
typedef
struct
{
23
const
char
*
id
;
24
const
char
*
node_attribute
;
25
pe_resource_t
*
dependent
;
// The resource being colocated
26
pe_resource_t
*
primary
;
// The resource the dependent is colocated with
27
28
int
dependent_role
;
// Colocation applies only if dependent has this role
29
int
primary_role
;
// Colocation applies only if primary has this role
30
31
int
score
;
32
bool
influence
;
// Whether dependent influences active primary placement
33
}
pcmk__colocation_t
;
34
35
void
pcmk__unpack_constraints
(
pe_working_set_t
*
data_set
);
36
37
void
pcmk__schedule_actions
(xmlNode *cib,
unsigned
long
long
flags
,
38
pe_working_set_t
*
data_set
);
39
40
#endif
crm.h
A dumping ground.
complex.h
pcmk__colocation_t::dependent
pe_resource_t * dependent
Definition:
pcmki_scheduler.h:25
pcmk__colocation_t::score
int score
Definition:
pcmki_scheduler.h:31
pcmk__colocation_t::primary_role
int primary_role
Definition:
pcmki_scheduler.h:29
pcmk__colocation_t::influence
bool influence
Definition:
pcmki_scheduler.h:32
pe_working_set_s
Definition:
pe_types.h:143
pe_resource_s
Definition:
pe_types.h:328
pcmk__colocation_t::primary
pe_resource_t * primary
Definition:
pcmki_scheduler.h:26
pcmk__colocation_t::dependent_role
int dependent_role
Definition:
pcmki_scheduler.h:28
data_set
pe_working_set_t * data_set
Definition:
native_find_rsc_test.c:23
pcmk__unpack_constraints
void pcmk__unpack_constraints(pe_working_set_t *data_set)
Definition:
pcmk_sched_constraints.c:56
iso8601.h
ISO_8601 Date handling.
rules.h
pcmk__colocation_t::id
const char * id
Definition:
pcmki_scheduler.h:23
status.h
Cluster status and scheduling.
common.h
pcmk__colocation_t::node_attribute
const char * node_attribute
Definition:
pcmki_scheduler.h:24
pcmk__colocation_t
Definition:
pcmki_scheduler.h:22
pcmk__schedule_actions
void pcmk__schedule_actions(xmlNode *cib, unsigned long long flags, pe_working_set_t *data_set)
Definition:
pcmk_sched_allocate.c:766
flags
uint64_t flags
Definition:
remote.c:215
Generated on Thu Dec 8 2022 10:06:22 for pacemaker by
1.8.14