pacemaker  2.1.2-ada5c3b36
Scalable High-Availability cluster resource manager
pcmki_simulate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 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 PCMKI_SIMULATE__H
11 # define PCMKI_SIMULATE__H
12 
14 #include <crm/pengine/pe_types.h>
15 #include <pacemaker.h>
16 #include <stdbool.h>
17 
31 int pcmk__write_sim_dotfile(pe_working_set_t *data_set, const char *dot_file,
32  bool all_actions, bool verbose);
33 
47 void pcmk__profile_file(const char *xml_file, long long repeat, pe_working_set_t *data_set,
48  char *use_date);
49 
64 void pcmk__profile_dir(const char *dir, long long repeat, pe_working_set_t *data_set,
65  char *use_date);
66 
80 void pcmk__set_effective_date(pe_working_set_t *data_set, bool print_original, char *use_date);
81 
113  pcmk_injections_t *injections, unsigned int flags,
114  unsigned int section_opts, char *use_date, char *input_file,
115  char *graph_file, char *dot_file);
116 
117 #endif
High Level API.
void pcmk__profile_dir(const char *dir, long long repeat, pe_working_set_t *data_set, char *use_date)
Profile the configuration updates and scheduler actions in every CIB file in a given directory...
Formatted output for pacemaker tools.
int pcmk__write_sim_dotfile(pe_working_set_t *data_set, const char *dot_file, bool all_actions, bool verbose)
Write out a file in dot(1) format describing the actions that will be taken by the scheduler in respo...
void pcmk__set_effective_date(pe_working_set_t *data_set, bool print_original, char *use_date)
Set the date of the cluster, either to the value given by use_date, or to the "execution-date" value ...
Synthetic cluster events that can be injected into the cluster for running simulations.
Definition: pacemaker.h:48
This structure contains everything that makes up a single output formatter.
int pcmk__simulate(pe_working_set_t *data_set, pcmk__output_t *out, pcmk_injections_t *injections, unsigned int flags, unsigned int section_opts, char *use_date, char *input_file, char *graph_file, char *dot_file)
Simulate a cluster&#39;s response to events.
Data types for cluster status.
void pcmk__profile_file(const char *xml_file, long long repeat, pe_working_set_t *data_set, char *use_date)
Profile the configuration updates and scheduler actions in a single CIB file, printing the profiling ...
uint64_t flags
Definition: remote.c:149