pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Data Structures | Typedefs | Enumerations | Functions
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/rules.h>
#include <crm/common/scheduler_types.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  pcmk__scheduler
 

Typedefs

typedef struct pcmk__scheduler_private pcmk__scheduler_private_t
 

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...
 

Functions

pcmk_node_tpcmk_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_tpcmk_find_node (const pcmk_scheduler_t *scheduler, const char *node_name)
 Find a node by name in scheduler data. More...
 

Detailed Description

Scheduler API.

Definition in file scheduler.h.

Typedef Documentation

◆ pcmk__scheduler_private_t

Definition at line 68 of file scheduler.h.

Enumeration Type Documentation

◆ pe_quorum_policy

Possible responses to loss of quorum.

Enumerator
pcmk_no_quorum_freeze 

Do not recover resources from outside partition.

pcmk_no_quorum_stop 

Stop all resources in partition.

pcmk_no_quorum_ignore 

Act as if partition still holds quorum.

pcmk_no_quorum_fence 

Fence all nodes in partition.

pcmk_no_quorum_demote 

Demote promotable resources and stop all others.

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.

Function Documentation

◆ pcmk_find_node()

pcmk_node_t* pcmk_find_node ( const pcmk_scheduler_t scheduler,
const char *  node_name 
)

Find a node by name in scheduler data.

Parameters
[in]schedulerScheduler data
[in]node_nameName of node to find
Returns
Node from scheduler data that matches node_name if any, otherwise NULL

Definition at line 100 of file scheduler.c.

◆ pcmk_get_dc()

pcmk_node_t* pcmk_get_dc ( const pcmk_scheduler_t scheduler)

Definition at line 30 of file scheduler.c.

◆ pcmk_get_no_quorum_policy()

enum pe_quorum_policy pcmk_get_no_quorum_policy ( const pcmk_scheduler_t scheduler)

Definition at line 44 of file scheduler.c.

◆ pcmk_has_quorum()

bool pcmk_has_quorum ( const pcmk_scheduler_t scheduler)

Definition at line 82 of file scheduler.c.

◆ pcmk_set_scheduler_cib()

int pcmk_set_scheduler_cib ( pcmk_scheduler_t scheduler,
xmlNode *  cib 
)

Definition at line 64 of file scheduler.c.