pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
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/rules.h>
#include <crm/common/scheduler_types.h>
#include <crm/common/tags.h>
#include <crm/common/tickets.h>
Go to the source code of this file.
Data Structures | |
struct | pe_working_set_s |
Functions | |
pcmk_node_t * | pcmk_get_dc (const pcmk_scheduler_t *scheduler) |
enum pe_quorum_policy | pcmk_get_no_quorum_policy (const pcmk_scheduler_t *scheduler) |
int | pcmk_set_scheduler_cib (pcmk_scheduler_t *scheduler, xmlNode *cib) |
bool | pcmk_has_quorum (const pcmk_scheduler_t *scheduler) |
pcmk_node_t * | pcmk_find_node (const pcmk_scheduler_t *scheduler, const char *node_name) |
Find a node by name in scheduler data. More... | |
Variables | |
gboolean | was_processing_error |
gboolean | was_processing_warning |
Scheduler API.
Definition in file scheduler.h.
enum pcmk_scheduler_flags |
Enumerator | |
---|---|
pcmk_sched_none | |
pcmk_sched_quorate |
|
pcmk_sched_symmetric_cluster | |
pcmk_sched_in_maintenance | |
pcmk_sched_fencing_enabled | |
pcmk_sched_have_fencing |
|
pcmk_sched_enable_unfencing | |
pcmk_sched_concurrent_fencing | |
pcmk_sched_stop_removed_resources | |
pcmk_sched_cancel_removed_actions | |
pcmk_sched_stop_all | |
pcmk_sched_start_failure_fatal | |
pcmk_sched_remove_after_stop | |
pcmk_sched_startup_fencing | |
pcmk_sched_shutdown_lock | |
pcmk_sched_probe_resources | |
pcmk_sched_have_status | |
pcmk_sched_have_remote_nodes | |
pcmk_sched_location_only | |
pcmk_sched_sanitized | |
pcmk_sched_no_counts | |
pcmk_sched_no_compat | |
pcmk_sched_output_scores | |
pcmk_sched_show_utilization | |
pcmk_sched_validate_only |
Definition at line 72 of file scheduler.h.
enum 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 |
|
no_quorum_stop |
|
no_quorum_ignore |
|
no_quorum_suicide |
|
no_quorum_demote |
|
Definition at line 40 of file scheduler.h.
pcmk_node_t* pcmk_find_node | ( | const pcmk_scheduler_t * | scheduler, |
const char * | node_name | ||
) |
Find a node by name in scheduler data.
[in] | scheduler | Scheduler data |
[in] | node_name | Name of node to find |
node_name
if any, otherwise NULL Definition at line 103 of file scheduler.c.
pcmk_node_t* pcmk_get_dc | ( | const pcmk_scheduler_t * | scheduler | ) |
Definition at line 33 of file scheduler.c.
enum pe_quorum_policy pcmk_get_no_quorum_policy | ( | const pcmk_scheduler_t * | scheduler | ) |
Definition at line 47 of file scheduler.c.
bool pcmk_has_quorum | ( | const pcmk_scheduler_t * | scheduler | ) |
Definition at line 85 of file scheduler.c.
int pcmk_set_scheduler_cib | ( | pcmk_scheduler_t * | scheduler, |
xmlNode * | cib | ||
) |
Definition at line 67 of file scheduler.c.
gboolean was_processing_error |
Definition at line 21 of file scheduler.c.
gboolean was_processing_warning |
Definition at line 22 of file scheduler.c.