MySQL events

event

Linux markdown

markdown

Mysql Slave

===================================MySQL5.7 mysqld_main() |-init_slave() |-int thread_mask= SLAVE_SQL | SLAVE_IO; //Create slave info objects by reading repositories of individual channels and add them into channel_map |-Rpl_info_factory::create_slave_info_objects(opt_mi_repository_id,opt_rli_repository_id,thread_mask,&channel_map))) |-check_slave_sql_config_conflict() //Check if there is any slave SQL config conflict. |-if (!opt_skip_slave_start) //如果配置了skip-slave-start,则不会走下面逻辑去启动IO线程和SQL线程 //Loop through the channel_map and start slave threads for each channel. |-for (mi_map::iterator it= channel_map.begin(); it!=channel_map.end(); it++) |-start_slave_threads() |-if (thread_mask & SLAVE_IO) |-is_error=start_slave_thread(…,handle_slave_io,…) |-if (!is_error && (thread_mask & SLAVE_SQL)) //MTS-recovery gaps gathering is placed onto common execution path for either START-SLAVE and –skip-start-slave= 0 |-if (mi->rli->recovery_parallel_workers != 0) if (mts_recovery_groups(mi->rli)) |-is_error= true; |-if (!is_error) |-start_slave_thread(…,handle_slave_sql,…) mts_recovery_groups() |-

MySQL Transaction

mysql transaction

MySQL Percona Toolkit

percona开源的MySQL常用工具集。

Linux 抓包工具-tcpdump

用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具。 tcpdump可以将网络中传送的数据包的“头”完全截获下来提供分析。它支持针对网络层、协议、主机、网络或端口的过滤,并提供and、or、not等逻辑语句来帮助你去掉无用的信息。

Linux 性能诊断工具-sar

sar(System Activity Reporter, 系统活动情况报告): 是用于监控Linux系统各个性能的优秀工具,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存使用状况、进程活动及IPC有关的活动等。

Linux 网络性能诊断工具-netperf

netperf是一种非常常见的测量网络带宽的工具。

About This Blog

Recent Posts

Categories

Related Links

  • RTEMS
    RTEMS
  • GNU
  • Linux Kernel
  • Arduino

Search


This Site was built by Huang Yongyao, generated with Jekyll, and is hosted on GitHub Pages
©2012-2017 – Huang Yongyao