18 #ifndef FOEDUS_LOG_LOG_OPTIONS_HPP_
19 #define FOEDUS_LOG_LOG_OPTIONS_HPP_
117 #endif // FOEDUS_LOG_LOG_OPTIONS_HPP_
std::string convert_folder_path_pattern(int node, int logger) const
converts folder_path_pattern_ into a string with the given IDs.
std::string construct_suffixed_log_path(int node, int logger, LogFileOrdinal ordinal) const
construct full path of individual log file (log_folder/LOGGERID_ORDINAL.log)
Represents an object that can be written to and read from files/bytes in XML format.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Set of options for log manager.
bool flush_at_shutdown_
Whether to flush transaction logs and take savepoint when uninitialize() is called.
#define EXTERNALIZABLE(clazz)
Macro to declare/define essential methods for an externalizable class.
fs::FixedPath folder_path_pattern_
String pattern of path of log folders in each NUMA node.
Typedefs of ID types used in log package.
LogOptions()
Constructs option values with default values.
uint32_t LogFileOrdinal
Ordinal of log files (eg "log.0", "log.1").
uint32_t log_buffer_kb_
Size in KB of log buffer for each worker thread.
#define CXX11_FINAL
Used in public headers in place of "final" of C++11.
Default value for log_file_size_mb_.
Default value for log_buffer_kb_.
std::string construct_meta_log_path() const
metadata log file is placed in node-0/logger-0 folder
Set of configurations to emulate slower devices for some experiments.
foedus::fs::DeviceEmulationOptions emulation_
Settings to emulate slower logging device.
uint32_t log_file_size_mb_
Size in MB of each file loggers write out.
Constants
Constant values.
uint16_t loggers_per_node_
Number of loggers per NUMA node.