10#ifndef PCMK__CRM_COMMON_SCHEDULER__H
11# define PCMK__CRM_COMMON_SCHEDULER__H
14#include <libxml/tree.h>
45#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
struct crm_time_s crm_time_t
Scheduler API for resources.
Scheduler API for resource roles.
pe_quorum_policy
Possible responses to loss of quorum.
pcmk_scheduler_flags
Scheduling options and conditions.
@ pcmk_sched_stop_removed_resources
@ pcmk_sched_sanitized
Whether sensitive resource attributes have been masked.
@ pcmk_sched_in_maintenance
Whether cluster is in maintenance mode (via maintenance-mode property)
@ pcmk_sched_symmetric_cluster
Whether cluster is symmetric (via symmetric-cluster property)
@ pcmk_sched_fencing_enabled
Whether fencing is enabled (via stonith-enabled property)
@ pcmk_sched_probe_resources
@ pcmk_sched_have_remote_nodes
Whether the cluster includes any Pacemaker Remote nodes (via CIB)
@ pcmk_sched_have_fencing
Whether cluster has a fencing resource (via CIB resources)
@ pcmk_sched_shutdown_lock
@ pcmk_sched_no_counts
Skip counting of total, disabled, and blocked resource instances.
@ pcmk_sched_location_only
@ pcmk_sched_quorate
Whether partition has quorum (via have-quorum property)
@ pcmk_sched_concurrent_fencing
Whether concurrent fencing is allowed (via concurrent-fencing property)
@ pcmk_sched_none
No scheduler flags set (compare with equality rather than bit set)
@ pcmk_sched_start_failure_fatal
@ pcmk_sched_validate_only
@ pcmk_sched_show_utilization
Whether to show node and resource utilization (in log or output)
@ pcmk_sched_have_status
Whether the CIB status section has been parsed yet.
@ pcmk_sched_output_scores
Whether node scores should be output instead of logged.
@ pcmk_sched_enable_unfencing
Whether any resource provides or requires unfencing (via CIB resources)
@ pcmk_sched_remove_after_stop
@ pcmk_sched_cancel_removed_actions
@ pcmk_sched_stop_all
Whether to stop all resources (via stop-all-resources property)
@ pcmk_sched_startup_fencing
Whether unseen nodes should be fenced (via startup-fencing property)
Type aliases needed to define scheduler objects.
Implementation of pcmk_node_t.
Implementation of pcmk_scheduler_t.
GHashTable * singletons
Actions for which there can be only one (such as "fence node X")
GList * colocation_constraints
Colocation constraints.
GList * ticket_constraints
guint node_pending_timeout
Pending join times out after this (ms)
const char * stonith_action
Default fencing action.
char * dc_uuid
Node ID of designated controller.
int action_id
ID to use for next created action.
GHashTable * tags
Configuration tags (ID -> pcmk_tag_t *)
const char * placement_strategy
Value of placement-strategy property.
int blocked_resources
Number of blocked resources in cluster.
guint shutdown_lock
How long to lock resources (seconds)
int ninstances
Total number of resource instances.
GHashTable * config_hash
Cluster properties.
int stonith_timeout
Value of stonith-timeout property.
GList * param_check
History entries that need to be checked.
GList * actions
Scheduled actions.
GHashTable * template_rsc_sets
Mappings of template ID to resource ID.
GList * resources
Resources in cluster.
xmlNode * failed
History entries of failed actions.
xmlNode * graph
Transition graph.
int disabled_resources
Number of disabled resources in cluster.
unsigned long long flags
Group of enum pcmk_scheduler_flags.
xmlNode * rsc_defaults
Configured resource defaults.
pcmk_node_t * dc_node
Node object for DC.
void * priv
For Pacemaker use only.
xmlNode * op_defaults
Configured operation defaults.
enum pe_quorum_policy no_quorum_policy
Response to loss of quorum.
GList * stop_needed
Containers that need stop actions.
GList * placement_constraints
Location constraints.
GList * nodes
Nodes in cluster.
GList * ordering_constraints
Ordering constraints.
time_t recheck_by
Hint to controller when to reschedule.
int num_synapse
Number of transition graph synapses.
int priority_fencing_delay
Priority fencing delay.
crm_time_t * now
Current time for evaluation purposes.
int order_id
ID to use for next created ordering.
Scheduler API for tickets.