pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
pcmki_scheduler.h File Reference
#include <glib.h>
#include <crm/crm.h>
#include <crm/common/iso8601.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/common.h>
#include <crm/pengine/status.h>
#include <crm/pengine/complex.h>
Include dependency graph for pcmki_scheduler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rsc_colocation_s
 
struct  rsc_ticket_s
 

Macros

#define order_start_start(rsc1, rsc2, type)   new_rsc_order(rsc1, CRMD_ACTION_START, rsc2, CRMD_ACTION_START, type, data_set)
 
#define order_stop_stop(rsc1, rsc2, type)   new_rsc_order(rsc1, CRMD_ACTION_STOP, rsc2, CRMD_ACTION_STOP, type, data_set)
 

Typedefs

typedef struct rsc_colocation_s rsc_colocation_t
 
typedef struct rsc_ticket_s rsc_ticket_t
 
typedef struct lrm_agent_s lrm_agent_t
 

Enumerations

enum  pe_stop_fail { pesf_block, pesf_stonith, pesf_ignore }
 
enum  pe_weights {
  pe_weights_none = 0x0, pe_weights_init = 0x1, pe_weights_forward = 0x4, pe_weights_positive = 0x8,
  pe_weights_rollback = 0x10
}
 
enum  loss_ticket_policy_e { loss_ticket_stop, loss_ticket_demote, loss_ticket_fence, loss_ticket_freeze }
 

Functions

gboolean stage0 (pe_working_set_t *data_set)
 
gboolean probe_resources (pe_working_set_t *data_set)
 
gboolean stage2 (pe_working_set_t *data_set)
 
gboolean stage3 (pe_working_set_t *data_set)
 
gboolean stage4 (pe_working_set_t *data_set)
 
gboolean stage5 (pe_working_set_t *data_set)
 
gboolean stage6 (pe_working_set_t *data_set)
 
gboolean stage7 (pe_working_set_t *data_set)
 
gboolean stage8 (pe_working_set_t *data_set)
 
gboolean summary (GListPtr resources)
 
gboolean unpack_constraints (xmlNode *xml_constraints, pe_working_set_t *data_set)
 
gboolean shutdown_constraints (pe_node_t *node, pe_action_t *shutdown_op, pe_working_set_t *data_set)
 
void pcmk__order_vs_fence (pe_action_t *stonith_op, pe_working_set_t *data_set)
 
int custom_action_order (pe_resource_t *lh_rsc, char *lh_task, pe_action_t *lh_action, pe_resource_t *rh_rsc, char *rh_task, pe_action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set)
 
int new_rsc_order (pe_resource_t *lh_rsc, const char *lh_task, pe_resource_t *rh_rsc, const char *rh_task, enum pe_ordering type, pe_working_set_t *data_set)
 
void graph_element_from_action (pe_action_t *action, pe_working_set_t *data_set)
 
void add_maintenance_update (pe_working_set_t *data_set)
 
xmlNode * pcmk__schedule_actions (pe_working_set_t *data_set, xmlNode *xml_input, crm_time_t *now)
 
bool pcmk__ordering_is_invalid (pe_action_t *action, pe_action_wrapper_t *input)
 

Variables

gboolean show_scores
 
gboolean show_utilization
 
const char * transition_idle_timeout
 

Macro Definition Documentation

◆ order_start_start

#define order_start_start (   rsc1,
  rsc2,
  type 
)    new_rsc_order(rsc1, CRMD_ACTION_START, rsc2, CRMD_ACTION_START, type, data_set)

Definition at line 95 of file pcmki_scheduler.h.

◆ order_stop_stop

#define order_stop_stop (   rsc1,
  rsc2,
  type 
)    new_rsc_order(rsc1, CRMD_ACTION_STOP, rsc2, CRMD_ACTION_STOP, type, data_set)

Definition at line 97 of file pcmki_scheduler.h.

Typedef Documentation

◆ lrm_agent_t

typedef struct lrm_agent_s lrm_agent_t

Definition at line 15 of file pcmki_scheduler.h.

◆ rsc_colocation_t

Definition at line 13 of file pcmki_scheduler.h.

◆ rsc_ticket_t

typedef struct rsc_ticket_s rsc_ticket_t

Definition at line 14 of file pcmki_scheduler.h.

Enumeration Type Documentation

◆ loss_ticket_policy_e

Enumerator
loss_ticket_stop 
loss_ticket_demote 
loss_ticket_fence 
loss_ticket_freeze 

Definition at line 52 of file pcmki_scheduler.h.

◆ pe_stop_fail

Enumerator
pesf_block 
pesf_stonith 
pesf_ignore 

Definition at line 26 of file pcmki_scheduler.h.

◆ pe_weights

enum pe_weights
Enumerator
pe_weights_none 
pe_weights_init 
pe_weights_forward 
pe_weights_positive 
pe_weights_rollback 

Definition at line 32 of file pcmki_scheduler.h.

Function Documentation

◆ add_maintenance_update()

void add_maintenance_update ( pe_working_set_t data_set)

Definition at line 928 of file pcmk_sched_graph.c.

◆ custom_action_order()

int custom_action_order ( pe_resource_t lh_rsc,
char *  lh_task,
pe_action_t lh_action,
pe_resource_t rh_rsc,
char *  rh_task,
pe_action_t rh_action,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 1579 of file pcmk_sched_constraints.c.

◆ graph_element_from_action()

void graph_element_from_action ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 1804 of file pcmk_sched_graph.c.

◆ new_rsc_order()

int new_rsc_order ( pe_resource_t lh_rsc,
const char *  lh_task,
pe_resource_t rh_rsc,
const char *  rh_task,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 1401 of file pcmk_sched_constraints.c.

◆ pcmk__order_vs_fence()

void pcmk__order_vs_fence ( pe_action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 772 of file pcmk_sched_graph.c.

◆ pcmk__ordering_is_invalid()

bool pcmk__ordering_is_invalid ( pe_action_t action,
pe_action_wrapper_t input 
)

Definition at line 1719 of file pcmk_sched_graph.c.

◆ pcmk__schedule_actions()

xmlNode* pcmk__schedule_actions ( pe_working_set_t data_set,
xmlNode *  xml_input,
crm_time_t now 
)

Definition at line 79 of file pcmk_sched_messages.c.

◆ probe_resources()

gboolean probe_resources ( pe_working_set_t data_set)

Definition at line 910 of file pcmk_sched_allocate.c.

◆ shutdown_constraints()

gboolean shutdown_constraints ( pe_node_t node,
pe_action_t shutdown_op,
pe_working_set_t data_set 
)

Definition at line 717 of file pcmk_sched_graph.c.

◆ stage0()

gboolean stage0 ( pe_working_set_t data_set)

Definition at line 886 of file pcmk_sched_allocate.c.

◆ stage2()

gboolean stage2 ( pe_working_set_t data_set)

Definition at line 1079 of file pcmk_sched_allocate.c.

◆ stage3()

gboolean stage3 ( pe_working_set_t data_set)

Definition at line 1124 of file pcmk_sched_allocate.c.

◆ stage4()

gboolean stage4 ( pe_working_set_t data_set)

Definition at line 1142 of file pcmk_sched_allocate.c.

◆ stage5()

gboolean stage5 ( pe_working_set_t data_set)

Definition at line 1376 of file pcmk_sched_allocate.c.

◆ stage6()

gboolean stage6 ( pe_working_set_t data_set)

Definition at line 1606 of file pcmk_sched_allocate.c.

◆ stage7()

gboolean stage7 ( pe_working_set_t data_set)

Definition at line 2799 of file pcmk_sched_allocate.c.

◆ stage8()

gboolean stage8 ( pe_working_set_t data_set)

Definition at line 2909 of file pcmk_sched_allocate.c.

◆ summary()

gboolean summary ( GListPtr  resources)

◆ unpack_constraints()

gboolean unpack_constraints ( xmlNode *  xml_constraints,
pe_working_set_t data_set 
)

Definition at line 69 of file pcmk_sched_constraints.c.

Variable Documentation

◆ show_scores

gboolean show_scores

Definition at line 25 of file pcmk_sched_messages.c.

◆ show_utilization

gboolean show_utilization

Definition at line 26 of file pcmk_sched_messages.c.

◆ transition_idle_timeout

const char* transition_idle_timeout