pacemaker
2.1.8-3980678f03
Scalable High-Availability cluster resource manager
|
Cluster status and scheduling. More...
#include <glib.h>
#include <stdbool.h>
#include <crm/common/util.h>
#include <crm/common/iso8601.h>
#include <crm/pengine/common.h>
#include <crm/pengine/pe_types.h>
#include <crm/pengine/complex.h>
#include <crm/pengine/status_compat.h>
Go to the source code of this file.
Functions | |
const char * | rsc_printable_id (const pcmk_resource_t *rsc) |
gboolean | cluster_status (pcmk_scheduler_t *scheduler) |
pcmk_scheduler_t * | pe_new_working_set (void) |
Create a new object to hold scheduler data. More... | |
void | pe_free_working_set (pcmk_scheduler_t *scheduler) |
Free scheduler data. More... | |
void | set_working_set_defaults (pcmk_scheduler_t *scheduler) |
void | cleanup_calculations (pcmk_scheduler_t *scheduler) |
Reset scheduler data to defaults without freeing it or constraints. More... | |
void | pe_reset_working_set (pcmk_scheduler_t *scheduler) |
Reset scheduler data to default state without freeing it. More... | |
pcmk_resource_t * | pe_find_resource (GList *rsc_list, const char *id_rh) |
pcmk_resource_t * | pe_find_resource_with_flags (GList *rsc_list, const char *id, enum pe_find flags) |
pcmk_node_t * | pe_find_node_id (const GList *node_list, const char *id) |
Find a node by ID in a list of nodes. More... | |
pcmk_node_t * | pe_find_node_any (const GList *node_list, const char *id, const char *node_name) |
Find a node by name or ID in a list of nodes. More... | |
GList * | find_operations (const char *rsc, const char *node, gboolean active_filter, pcmk_scheduler_t *scheduler) |
void | calculate_active_ops (const GList *sorted_op_list, int *start_index, int *stop_index) |
int | pe_bundle_replicas (const pcmk_resource_t *rsc) |
Get the number of configured replicas in a bundle. More... | |
Cluster status and scheduling.
Definition in file status.h.
void calculate_active_ops | ( | const GList * | sorted_op_list, |
int * | start_index, | ||
int * | stop_index | ||
) |
void cleanup_calculations | ( | pcmk_scheduler_t * | scheduler | ) |
Reset scheduler data to defaults without freeing it or constraints.
[in,out] | scheduler | Scheduler data to reset |
gboolean cluster_status | ( | pcmk_scheduler_t * | scheduler | ) |
GList* find_operations | ( | const char * | rsc, |
const char * | node, | ||
gboolean | active_filter, | ||
pcmk_scheduler_t * | scheduler | ||
) |
int pe_bundle_replicas | ( | const pcmk_resource_t * | rsc | ) |
pcmk_node_t* pe_find_node_any | ( | const GList * | nodes, |
const char * | id, | ||
const char * | uname | ||
) |
Find a node by name or ID in a list of nodes.
[in] | nodes | List of nodes (as pcmk_node_t*) |
[in] | id | If not NULL, ID of node to find |
[in] | node_name | If not NULL, name of node to find |
nodes
that matches id
if any, otherwise node from nodes
that matches uname
if any, otherwise NULL pcmk_node_t* pe_find_node_id | ( | const GList * | nodes, |
const char * | id | ||
) |
pcmk_resource_t* pe_find_resource | ( | GList * | rsc_list, |
const char * | id_rh | ||
) |
pcmk_resource_t* pe_find_resource_with_flags | ( | GList * | rsc_list, |
const char * | id, | ||
enum pe_find | flags | ||
) |
void pe_free_working_set | ( | pcmk_scheduler_t * | scheduler | ) |
pcmk_scheduler_t* pe_new_working_set | ( | void | ) |
Create a new object to hold scheduler data.
void pe_reset_working_set | ( | pcmk_scheduler_t * | scheduler | ) |
const char* rsc_printable_id | ( | const pcmk_resource_t * | rsc | ) |
void set_working_set_defaults | ( | pcmk_scheduler_t * | scheduler | ) |