pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 update_action_states (GListPtr actions)
 
gboolean shutdown_constraints (node_t *node, action_t *shutdown_op, pe_working_set_t *data_set)
 
gboolean stonith_constraints (node_t *node, action_t *stonith_op, pe_working_set_t *data_set)
 
int custom_action_order (resource_t *lh_rsc, char *lh_task, action_t *lh_action, resource_t *rh_rsc, char *rh_task, action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set)
 
int new_rsc_order (resource_t *lh_rsc, const char *lh_task, resource_t *rh_rsc, const char *rh_task, enum pe_ordering type, pe_working_set_t *data_set)
 
void graph_element_from_action (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)
 

Variables

gboolean show_scores
 
int scores_log_level
 
gboolean show_utilization
 
int utilization_log_level
 
const char * transition_idle_timeout
 

Macro Definition Documentation

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

Definition at line 98 of file pcmki_scheduler.h.

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

Definition at line 100 of file pcmki_scheduler.h.

Typedef Documentation

typedef struct lrm_agent_s lrm_agent_t

Definition at line 15 of file pcmki_scheduler.h.

Definition at line 13 of file pcmki_scheduler.h.

typedef struct rsc_ticket_s rsc_ticket_t

Definition at line 14 of file pcmki_scheduler.h.

Enumeration Type Documentation

Enumerator
loss_ticket_stop 
loss_ticket_demote 
loss_ticket_fence 
loss_ticket_freeze 

Definition at line 52 of file pcmki_scheduler.h.

Enumerator
pesf_block 
pesf_stonith 
pesf_ignore 

Definition at line 26 of file pcmki_scheduler.h.

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

void add_maintenance_update ( pe_working_set_t data_set)

Definition at line 922 of file pcmk_sched_graph.c.

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

Definition at line 1521 of file pcmk_sched_constraints.c.

void graph_element_from_action ( action_t action,
pe_working_set_t data_set 
)

Definition at line 1696 of file pcmk_sched_graph.c.

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

Definition at line 1355 of file pcmk_sched_constraints.c.

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

Definition at line 39 of file pcmk_sched_messages.c.

gboolean probe_resources ( pe_working_set_t data_set)

Definition at line 918 of file pcmk_sched_allocate.c.

gboolean shutdown_constraints ( node_t node,
action_t shutdown_op,
pe_working_set_t data_set 
)

Definition at line 704 of file pcmk_sched_graph.c.

gboolean stage0 ( pe_working_set_t data_set)

Definition at line 894 of file pcmk_sched_allocate.c.

gboolean stage2 ( pe_working_set_t data_set)

Definition at line 989 of file pcmk_sched_allocate.c.

gboolean stage3 ( pe_working_set_t data_set)

Definition at line 1031 of file pcmk_sched_allocate.c.

gboolean stage4 ( pe_working_set_t data_set)

Definition at line 1049 of file pcmk_sched_allocate.c.

gboolean stage5 ( pe_working_set_t data_set)

Definition at line 1301 of file pcmk_sched_allocate.c.

gboolean stage6 ( pe_working_set_t data_set)

Definition at line 1523 of file pcmk_sched_allocate.c.

gboolean stage7 ( pe_working_set_t data_set)

Definition at line 2521 of file pcmk_sched_allocate.c.

gboolean stage8 ( pe_working_set_t data_set)

Definition at line 2616 of file pcmk_sched_allocate.c.

gboolean stonith_constraints ( node_t node,
action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 760 of file pcmk_sched_graph.c.

gboolean summary ( GListPtr  resources)
gboolean unpack_constraints ( xmlNode *  xml_constraints,
pe_working_set_t data_set 
)

Definition at line 51 of file pcmk_sched_constraints.c.

gboolean update_action_states ( GListPtr  actions)

Variable Documentation

int scores_log_level

Definition at line 26 of file pcmk_sched_messages.c.

gboolean show_scores

Definition at line 25 of file pcmk_sched_messages.c.

gboolean show_utilization

Definition at line 27 of file pcmk_sched_messages.c.

const char* transition_idle_timeout
int utilization_log_level

Definition at line 28 of file pcmk_sched_messages.c.