pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Data Fields
pe_resource_s Struct Reference

Implementation of pcmk_resource_t. More...

#include <include/crm/common/resources.h>

Collaboration diagram for pe_resource_s:
Collaboration graph
[legend]

Data Fields

char * id
 Resource ID in configuration. More...
 
char * clone_name
 Resource instance ID in history. More...
 
xmlNode * xml
 Resource configuration (possibly expanded from template) More...
 
xmlNode * orig_xml
 Original resource configuration, if using template. More...
 
xmlNode * ops_xml
 Configuration of resource operations (possibly expanded from template) More...
 
pcmk_scheduler_tcluster
 Cluster that resource is part of. More...
 
pcmk_resource_tparent
 Resource's parent resource, if any. More...
 
enum pe_obj_types variant
 Resource variant. More...
 
void * variant_opaque
 Variant-specific (and private) data. More...
 
pcmk_rsc_methods_tfns
 Resource object methods. More...
 
pcmk_assignment_methods_tcmds
 Resource assignment methods. More...
 
enum rsc_recovery_type recovery_type
 How to recover if failed. More...
 
enum pe_restart restart_type
 
int priority
 Configured priority. More...
 
int stickiness
 Extra preference for current node. More...
 
int sort_index
 Promotion score on assigned node. More...
 
int failure_timeout
 Failure timeout. More...
 
int migration_threshold
 Migration threshold. More...
 
guint remote_reconnect_ms
 Retry interval for remote connections. More...
 
char * pending_task
 Pending action in history, if any. More...
 
unsigned long long flags
 Group of enum pcmk_rsc_flags. More...
 
gboolean is_remote_node
 Whether this is a remote connection. More...
 
gboolean exclusive_discover
 Whether exclusive probing is enabled. More...
 
pcmk_node_tallocated_to
 Node resource is assigned to. More...
 
pcmk_node_tpartial_migration_target
 The destination node, if migrate_to completed but migrate_from has not. More...
 
pcmk_node_tpartial_migration_source
 The source node, if migrate_to completed but migrate_from has not. More...
 
GList * running_on
 Nodes where resource may be active. More...
 
GHashTable * known_on
 Nodes where resource has been probed (key is node ID, not name) More...
 
GHashTable * allowed_nodes
 Nodes where resource may run (key is node ID, not name) More...
 
enum rsc_role_e role
 Resource's current role. More...
 
enum rsc_role_e next_role
 Resource's scheduled next role. More...
 
GHashTable * meta
 Resource's meta-attributes. More...
 
GHashTable * parameters
 
GHashTable * utilization
 Resource's utilization attributes. More...
 
GList * children
 Resource's child resources, if any. More...
 
GList * dangling_migrations
 
pcmk_resource_tcontainer
 Resource containing this one, if any. More...
 
GList * fillers
 Resources contained by this one, if any. More...
 
pcmk_node_tpending_node
 Node on which pending_task is happening. More...
 
pcmk_node_tlock_node
 Resource shutdown-locked to this node. More...
 
time_t lock_time
 When shutdown lock started. More...
 
GHashTable * parameter_cache
 
GList * rsc_cons_lhs
 
GList * rsc_cons
 
GList * rsc_location
 
GList * actions
 
GList * rsc_tickets
 

Detailed Description

Implementation of pcmk_resource_t.

Definition at line 399 of file resources.h.

Field Documentation

◆ actions

GList* pe_resource_s::actions

This field should be treated as internal to Pacemaker

Definition at line 447 of file resources.h.

◆ allocated_to

pcmk_node_t* pe_resource_s::allocated_to

Node resource is assigned to.

Definition at line 451 of file resources.h.

◆ allowed_nodes

GHashTable* pe_resource_s::allowed_nodes

Nodes where resource may run (key is node ID, not name)

Definition at line 466 of file resources.h.

◆ children

GList* pe_resource_s::children

Resource's child resources, if any.

Definition at line 475 of file resources.h.

◆ clone_name

char* pe_resource_s::clone_name

Resource instance ID in history.

Definition at line 401 of file resources.h.

◆ cluster

pcmk_scheduler_t* pe_resource_s::cluster

Cluster that resource is part of.

Definition at line 412 of file resources.h.

◆ cmds

pcmk_assignment_methods_t* pe_resource_s::cmds

Resource assignment methods.

Definition at line 417 of file resources.h.

◆ container

pcmk_resource_t* pe_resource_s::container

Resource containing this one, if any.

Definition at line 480 of file resources.h.

◆ dangling_migrations

GList* pe_resource_s::dangling_migrations

Definition at line 478 of file resources.h.

◆ exclusive_discover

gboolean pe_resource_s::exclusive_discover

Whether exclusive probing is enabled.

Definition at line 433 of file resources.h.

◆ failure_timeout

int pe_resource_s::failure_timeout

Failure timeout.

Definition at line 425 of file resources.h.

◆ fillers

GList* pe_resource_s::fillers

Resources contained by this one, if any.

Definition at line 481 of file resources.h.

◆ flags

unsigned long long pe_resource_s::flags

Group of enum pcmk_rsc_flags.

Definition at line 429 of file resources.h.

◆ fns

pcmk_rsc_methods_t* pe_resource_s::fns

Resource object methods.

Definition at line 416 of file resources.h.

◆ id

char* pe_resource_s::id

Resource ID in configuration.

Definition at line 400 of file resources.h.

◆ is_remote_node

gboolean pe_resource_s::is_remote_node

Whether this is a remote connection.

Definition at line 432 of file resources.h.

◆ known_on

GHashTable* pe_resource_s::known_on

Nodes where resource has been probed (key is node ID, not name)

Definition at line 463 of file resources.h.

◆ lock_node

pcmk_node_t* pe_resource_s::lock_node

Resource shutdown-locked to this node.

Definition at line 485 of file resources.h.

◆ lock_time

time_t pe_resource_s::lock_time

When shutdown lock started.

Definition at line 487 of file resources.h.

◆ meta

GHashTable* pe_resource_s::meta

Resource's meta-attributes.

Definition at line 471 of file resources.h.

◆ migration_threshold

int pe_resource_s::migration_threshold

Migration threshold.

Definition at line 426 of file resources.h.

◆ next_role

enum rsc_role_e pe_resource_s::next_role

Resource's scheduled next role.

Definition at line 469 of file resources.h.

◆ ops_xml

xmlNode* pe_resource_s::ops_xml

Configuration of resource operations (possibly expanded from template)

Definition at line 410 of file resources.h.

◆ orig_xml

xmlNode* pe_resource_s::orig_xml

Original resource configuration, if using template.

Definition at line 407 of file resources.h.

◆ parameter_cache

GHashTable* pe_resource_s::parameter_cache

Resource parameters may have node-attribute-based rules, which means the values can vary by node. This table has node names as keys and parameter name/value tables as values. Use pe_rsc_params() to get the table for a given node rather than use this directly.

Definition at line 495 of file resources.h.

◆ parameters

GHashTable* pe_resource_s::parameters
Deprecated:
Use pe_rsc_params() instead

Definition at line 472 of file resources.h.

◆ parent

pcmk_resource_t* pe_resource_s::parent

Resource's parent resource, if any.

Definition at line 413 of file resources.h.

◆ partial_migration_source

pcmk_node_t* pe_resource_s::partial_migration_source

The source node, if migrate_to completed but migrate_from has not.

Definition at line 457 of file resources.h.

◆ partial_migration_target

pcmk_node_t* pe_resource_s::partial_migration_target

The destination node, if migrate_to completed but migrate_from has not.

Definition at line 454 of file resources.h.

◆ pending_node

pcmk_node_t* pe_resource_s::pending_node

Node on which pending_task is happening.

Definition at line 484 of file resources.h.

◆ pending_task

char* pe_resource_s::pending_task

Pending action in history, if any.

Definition at line 428 of file resources.h.

◆ priority

int pe_resource_s::priority

Configured priority.

Definition at line 422 of file resources.h.

◆ recovery_type

enum rsc_recovery_type pe_resource_s::recovery_type

How to recover if failed.

Definition at line 419 of file resources.h.

◆ remote_reconnect_ms

guint pe_resource_s::remote_reconnect_ms

Retry interval for remote connections.

Definition at line 427 of file resources.h.

◆ restart_type

enum pe_restart pe_resource_s::restart_type
Deprecated:
Do not use

Definition at line 421 of file resources.h.

◆ role

enum rsc_role_e pe_resource_s::role

Resource's current role.

Definition at line 468 of file resources.h.

◆ rsc_cons

GList* pe_resource_s::rsc_cons

This field should be treated as internal to Pacemaker

Definition at line 445 of file resources.h.

◆ rsc_cons_lhs

GList* pe_resource_s::rsc_cons_lhs

This field should be treated as internal to Pacemaker

Definition at line 444 of file resources.h.

◆ rsc_location

GList* pe_resource_s::rsc_location

This field should be treated as internal to Pacemaker

Definition at line 446 of file resources.h.

◆ rsc_tickets

GList* pe_resource_s::rsc_tickets

This field should be treated as internal to Pacemaker

Definition at line 448 of file resources.h.

◆ running_on

GList* pe_resource_s::running_on

Nodes where resource may be active.

Definition at line 460 of file resources.h.

◆ sort_index

int pe_resource_s::sort_index

Promotion score on assigned node.

Definition at line 424 of file resources.h.

◆ stickiness

int pe_resource_s::stickiness

Extra preference for current node.

Definition at line 423 of file resources.h.

◆ utilization

GHashTable* pe_resource_s::utilization

Resource's utilization attributes.

Definition at line 473 of file resources.h.

◆ variant

enum pe_obj_types pe_resource_s::variant

Resource variant.

Definition at line 414 of file resources.h.

◆ variant_opaque

void* pe_resource_s::variant_opaque

Variant-specific (and private) data.

Definition at line 415 of file resources.h.

◆ xml

xmlNode* pe_resource_s::xml

Resource configuration (possibly expanded from template)

Definition at line 404 of file resources.h.


The documentation for this struct was generated from the following file: