MySQL 9.7.0
Source Code Documentation
resource_manager_stats_collector.cc File Reference
#include <chrono>
#include <cmath>
#include <ctime>
#include <iomanip>
#include <sstream>
#include <thread>
#include <my_systime.h>
#include <my_thread.h>
#include "resource_manager.h"
#include "resource_manager_channel_lag.h"
#include "resource_manager_stats_collector.h"
#include <mysql/components/my_service.h>
#include <mysql/components/services/group_replication_management_service.h>
#include <mysql/components/services/group_replication_status_service.h>

Namespaces

namespace  gr_resource_manager
 

Macros

#define GR_STOP_SERVICE_STR   "group_replication.group_replication_management"
 
#define GR_STOP_SERVICE   group_replication.group_replication_management
 

Functions

 REQUIRES_SERVICE_PLACEHOLDER_AS (registry, mysql_srv_reg)
 
 REQUIRES_SERVICE_PLACEHOLDER_AS (psi_thread_v5, thread_srv)
 
 REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_cond_v1, cond_srv)
 
 REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_mutex_v1, mutex_srv)
 
static void * gr_resource_manager::start_routine (void *arg)
 Static routine for thread instrumentation interface. More...
 

Variables

gr_resource_manager::Lag_metadata_thresholds lag_metadata_threshold
 
static constexpr uint64_t hundredth_ns {10000000}
 
int gr_resource_manager::threshhold_hit {0}
 

Macro Definition Documentation

◆ GR_STOP_SERVICE

#define GR_STOP_SERVICE   group_replication.group_replication_management

◆ GR_STOP_SERVICE_STR

#define GR_STOP_SERVICE_STR   "group_replication.group_replication_management"

Function Documentation

◆ REQUIRES_SERVICE_PLACEHOLDER_AS() [1/4]

REQUIRES_SERVICE_PLACEHOLDER_AS ( mysql_cond_v1  ,
cond_srv   
)

◆ REQUIRES_SERVICE_PLACEHOLDER_AS() [2/4]

REQUIRES_SERVICE_PLACEHOLDER_AS ( mysql_mutex_v1  ,
mutex_srv   
)

◆ REQUIRES_SERVICE_PLACEHOLDER_AS() [3/4]

REQUIRES_SERVICE_PLACEHOLDER_AS ( psi_thread_v5  ,
thread_srv   
)

◆ REQUIRES_SERVICE_PLACEHOLDER_AS() [4/4]

REQUIRES_SERVICE_PLACEHOLDER_AS ( registry  ,
mysql_srv_reg   
)

Variable Documentation

◆ hundredth_ns

constexpr uint64_t hundredth_ns {10000000}
staticconstexpr

◆ lag_metadata_threshold

gr_resource_manager::Lag_metadata_thresholds lag_metadata_threshold
extern