pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Data Structures | Enumerations
scheduler.h File Reference

Scheduler API. More...

#include <sys/types.h>
#include <libxml/tree.h>
#include <glib.h>
#include <crm/common/iso8601.h>
#include <crm/common/actions.h>
#include <crm/common/nodes.h>
#include <crm/common/resources.h>
#include <crm/common/roles.h>
#include <crm/common/scheduler_types.h>
#include <crm/common/tags.h>
#include <crm/common/tickets.h>
Include dependency graph for scheduler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pe_working_set_s
 Implementation of pcmk_scheduler_t. More...
 

Enumerations

enum  pe_quorum_policy {
  pcmk_no_quorum_freeze, pcmk_no_quorum_stop, pcmk_no_quorum_ignore, pcmk_no_quorum_fence,
  pcmk_no_quorum_demote, no_quorum_freeze = pcmk_no_quorum_freeze, no_quorum_stop = pcmk_no_quorum_stop, no_quorum_ignore = pcmk_no_quorum_ignore,
  no_quorum_suicide = pcmk_no_quorum_fence, no_quorum_demote = pcmk_no_quorum_demote
}
 Possible responses to loss of quorum. More...
 
enum  pcmk_scheduler_flags {
  pcmk_sched_none = 0ULL, pcmk_sched_quorate = (1ULL << 0), pcmk_sched_symmetric_cluster = (1ULL << 1), pcmk_sched_in_maintenance = (1ULL << 3),
  pcmk_sched_fencing_enabled = (1ULL << 4), pcmk_sched_have_fencing = (1ULL << 5), pcmk_sched_enable_unfencing = (1ULL << 6), pcmk_sched_concurrent_fencing = (1ULL << 7),
  pcmk_sched_stop_removed_resources = (1ULL << 8), pcmk_sched_cancel_removed_actions = (1ULL << 9), pcmk_sched_stop_all = (1ULL << 10), pcmk_sched_start_failure_fatal = (1ULL << 12),
  pcmk_sched_remove_after_stop = (1ULL << 13), pcmk_sched_startup_fencing = (1ULL << 14), pcmk_sched_shutdown_lock = (1ULL << 15), pcmk_sched_probe_resources = (1ULL << 16),
  pcmk_sched_have_status = (1ULL << 17), pcmk_sched_have_remote_nodes = (1ULL << 18), pcmk_sched_location_only = (1ULL << 20), pcmk_sched_sanitized = (1ULL << 21),
  pcmk_sched_no_counts = (1ULL << 23), pcmk_sched_no_compat = (1ULL << 24), pcmk_sched_output_scores = (1ULL << 25), pcmk_sched_show_utilization = (1ULL << 26),
  pcmk_sched_validate_only = (1ULL << 27)
}
 Scheduling options and conditions. More...
 

Detailed Description

Scheduler API.

Definition in file scheduler.h.

Enumeration Type Documentation

◆ pcmk_scheduler_flags

Scheduling options and conditions.

Enumerator
pcmk_sched_none 

No scheduler flags set (compare with equality rather than bit set)

pcmk_sched_quorate 

Whether partition has quorum (via have-quorum property)

pcmk_sched_symmetric_cluster 

Whether cluster is symmetric (via symmetric-cluster property)

pcmk_sched_in_maintenance 

Whether cluster is in maintenance mode (via maintenance-mode property)

pcmk_sched_fencing_enabled 

Whether fencing is enabled (via stonith-enabled property)

pcmk_sched_have_fencing 

Whether cluster has a fencing resource (via CIB resources)

pcmk_sched_enable_unfencing 

Whether any resource provides or requires unfencing (via CIB resources)

pcmk_sched_concurrent_fencing 

Whether concurrent fencing is allowed (via concurrent-fencing property)

pcmk_sched_stop_removed_resources 

Whether resources removed from the configuration should be stopped (via stop-orphan-resources property)

pcmk_sched_cancel_removed_actions 

Whether recurring actions removed from the configuration should be cancelled (via stop-orphan-actions property)

pcmk_sched_stop_all 

Whether to stop all resources (via stop-all-resources property)

pcmk_sched_start_failure_fatal 

Whether start failure should be treated as if migration-threshold is 1 (via start-failure-is-fatal property)

pcmk_sched_remove_after_stop 
Deprecated:
Do not use
pcmk_sched_startup_fencing 

Whether unseen nodes should be fenced (via startup-fencing property)

pcmk_sched_shutdown_lock 

Whether resources should be left stopped when their node shuts down cleanly (via shutdown-lock property)

pcmk_sched_probe_resources 

Whether resources' current state should be probed (when unknown) before scheduling any other actions (via the enable-startup-probes property)

pcmk_sched_have_status 

Whether the CIB status section has been parsed yet.

pcmk_sched_have_remote_nodes 

Whether the cluster includes any Pacemaker Remote nodes (via CIB)

pcmk_sched_location_only 

Whether to skip unpacking the CIB status section and stop the scheduling sequence after applying node-specific location criteria (skipping assignment, ordering, actions, etc.).

pcmk_sched_sanitized 

Whether sensitive resource attributes have been masked.

pcmk_sched_no_counts 

Skip counting of total, disabled, and blocked resource instances.

pcmk_sched_no_compat 

Skip deprecated code kept solely for backward API compatibility (internal code should always set this)

pcmk_sched_output_scores 

Whether node scores should be output instead of logged.

pcmk_sched_show_utilization 

Whether to show node and resource utilization (in log or output)

pcmk_sched_validate_only 

Whether to stop the scheduling sequence after unpacking the CIB, calculating cluster status, and applying node health (skipping applying node-specific location criteria, assignment, etc.)

Definition at line 64 of file scheduler.h.

◆ pe_quorum_policy

Possible responses to loss of quorum.

Enumerator
pcmk_no_quorum_freeze 
pcmk_no_quorum_stop 
pcmk_no_quorum_ignore 
pcmk_no_quorum_fence 
pcmk_no_quorum_demote 
no_quorum_freeze 
Deprecated:
Use pcmk_no_quorum_freeze instead
no_quorum_stop 
Deprecated:
Use pcmk_no_quorum_stop instead
no_quorum_ignore 
Deprecated:
Use pcmk_no_quorum_ignore instead
no_quorum_suicide 
Deprecated:
Use pcmk_no_quorum_fence instead
no_quorum_demote 
Deprecated:
Use pcmk_no_quorum_demote instead

Definition at line 38 of file scheduler.h.