28 #ifndef Hypertable_RangeServer_MaintenanceScheduler_h
29 #define Hypertable_RangeServer_MaintenanceScheduler_h
134 #endif // Hypertable_RangeServer_MaintenanceScheduler_h
void exclude(const TableIdentifier &table)
Excludes a table from maintenance scheduling.
std::set< std::string > m_table_blacklist
Set of table IDs to exclude from maintenance scheduling.
std::string String
A String is simply a typedef to std::string.
int32_t m_maintenance_queue_worker_count
int32_t m_merges_per_interval
Schedules range server maintenance.
MaintenancePrioritizerLogCleanup m_prioritizer_log_cleanup
bool low_memory_mode()
Checks if low memory maintenance prioritization is enabled.
MaintenancePrioritizer * m_prioritizer
int32_t m_maintenance_interval
MaintenancePrioritizerLowMemory m_prioritizer_low_memory
int64_t m_query_cache_memory
std::chrono::steady_clock::time_point m_last_check
MaintenanceQueuePtr m_queue
Maintenance queue.
Declarations for TableInfoMap.
int32_t m_low_memory_limit_percentage
int32_t m_move_compactions_per_interval
std::shared_ptr< MaintenanceQueue > MaintenanceQueuePtr
Smart pointer to MaintenanceQueue.
bool debug_signal_file_exists(std::chrono::steady_clock::time_point now)
Checks to see if scheduler debug signal file exists.
int32_t m_initialization_per_interval
void include(const TableIdentifier &table)
Includes a table for maintenance scheduling.
void schedule()
Schedules maintenance.
void write_debug_output(std::chrono::steady_clock::time_point now, Ranges &ranges, const String &header_str)
Writes debugging output and removes signal file.
std::shared_ptr< TableInfoMap > TableInfoMapPtr
Shared smart pointer to TableInfoMap.
std::chrono::steady_clock::time_point m_last_low_memory
void set_low_memory_mode(bool on)
Sets low memory maintenance prioritization.
TableInfoMapPtr m_live_map
MaintenanceScheduler(MaintenanceQueuePtr &queue, TableInfoMapPtr &live_map)
Constructor.
int get_level(RangeData &rd)
std::shared_ptr< MaintenanceScheduler > MaintenanceSchedulerPtr
Smart pointer to MaintenanceScheduler.
Declarations for LoadStatistics.
Holds pointers to a Range and associated Range::MaintenanceData.
std::mutex m_mutex
Mutex to serialize concurrent access
Holds vector of RangeData objects and memory arena.
bool m_low_memory_prioritization