Mysql 体系结构系列之六

本文继续探讨MySQL体系结构,重点关注服务器配置为从服务器时的初始化模块与从服务器模块的交互,以及客户端/服务器协议模块如何通过低层次网络I/O模块进行数据传输和加密。此外,还强调了核心API在服务器组件中的关键作用,它提供包括文件I/O、内存管理和字符串操作等功能。
摘要由CSDN通过智能技术生成

前言:接上一篇Mysql 体系结构系列之五: 核心模块之间的交互

Mysql 体系结构系列之五 http://blog.csdn.net/u010993297/article/details/9704493

1. 核心模块之间的交互 Interaction of the Core Modules

<<-------第十四段 讲的是服务器配置为从服务器:初始化模块-从服务器模块-SQL Thread | I/O thread------->>

If the server is configured as a replication slave, the Initialization Module will call the  Replication Slave Module, which in turn will start two threads, called the SQLThread and theI/O thread.

如果服务部被配置为从服务器,那么初始化模块将调用从服务器模块。该模块将启动两个线程:SQL线程和I/O线程。

 

They take care of  propagating updates that happened on the master to the slave.

他们负责将主数据库的更新传送到从服务器上。

 

It is possible for the same server to be configured as both a master and a slave.

同一台服务器即可配置为主服务器,也可配置为从服务器。

<<-------第十五段 讲的是客户端/服务器协议模块—低层次网络I/O 模块------->>

Network communication with a client goes through the  Client/Server Protocol Module,which is responsible for packaging the data in the proper format, and depending on the connection settings,compressing it.

与客户端的网络通信通过客户端/服务器协议模块进行,该模块负责以合适的格式打包数据,然后根据连接设置进行压缩。

 

The Client/Server Protocol Module in turn uses the Low-Level Network I/O module, which is responsible for sending and receiving the data on the socket level in a cross-platform portable way.

客户端/服务器协议模块使用低层次网络I/O模块,该模块负责以跨平台可移植方式在套接字层上发送和接收数据。

 

It is also responsible for encrypting the data using the  OpenSSL library calls if the connection options are set appropriately.

如果选项设置恰当,该模块还可以使用OpenSSL库调用,负责对数据加密。

 

<<-------第十六段 讲的是核心API------->>

As they perform their respective tasks, the core components of the server heavily rely on the Core API.

在执行各自任务的时候,服务器的核心组件极度地依赖核心API

 

The Core API provides a rich functionality set, which includes file I/O, memory management, string manipulation, implementations of various data structures and algorithms, and many other useful capabilities.

核心API提供了丰富的功能集,包括文件I/O、内存管理、字符串操作、各种数据结构和算法的实现以及其他有用的功能。

 

MySQL developers are encouraged to avoid direct  libc calls, and use the  Core API to facilitate ports to new platforms and  code optimization in the future.

Mysql开发人员最好避免直接调用libc,要使用核心API来实现调用,这有利于以后移植到新的系统平台、以及优化代码。

 

Interaction of the core modules is end. We will take a closer look at each of the components in the later study.

 

附图,温习一下。核心模块之间的交互。

                                                            图1   核心模块的交互

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值