pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
pcmki_simulate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021-2022 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__PCMKI_PCMKI_SIMULATE__H
11 # define PCMK__PCMKI_PCMKI_SIMULATE__H
12 
14 #include <crm/pengine/pe_types.h>
15 #include <pcmki/pcmki_transition.h>
16 #include <crm/cib.h> // cib_t
17 #include <pacemaker.h>
18 #include <stdbool.h>
19 #include <stdint.h>
20 
36 void pcmk__profile_dir(const char *dir, long long repeat, pe_working_set_t *data_set,
37  char *use_date);
38 
50  cib_t *cib,
51  GList *op_fail_list);
52 
85  pcmk_injections_t *injections, unsigned int flags,
86  uint32_t section_opts, char *use_date, char *input_file,
87  char *graph_file, char *dot_file);
88 
95 extern bool pcmk__simulate_node_config;
96 
97 #endif
transition_status
High Level API.
void pcmk__profile_dir(const char *dir, long long repeat, pe_working_set_t *data_set, char *use_date)
Formatted output for pacemaker tools.
pe_working_set_t * data_set
bool pcmk__simulate_node_config
enum transition_status pcmk__simulate_transition(pe_working_set_t *data_set, cib_t *cib, GList *op_fail_list)
Cluster Configuration.
Synthetic cluster events that can be injected into the cluster for running simulations.
Definition: pacemaker.h:50
This structure contains everything that makes up a single output formatter.
Data types for cluster status.
uint64_t flags
Definition: remote.c:149
int pcmk__simulate(pe_working_set_t *data_set, pcmk__output_t *out, pcmk_injections_t *injections, unsigned int flags, uint32_t section_opts, char *use_date, char *input_file, char *graph_file, char *dot_file)