Table of Contents
高可用负载均衡组件
缓存DNS
Home Database Mysql Tutorial 搭建高可用负载均衡组件及缓存DNS

搭建高可用负载均衡组件及缓存DNS

Jun 07, 2016 pm 04:32 PM
dns Available work build components cache load High availability

该项工作,如题所示,主要分为两部分:高可用负载均衡组件、缓存DNS。 高可用负载均衡组件 需求:优化业务系统架构中某些关键环节,针对TCP层数据流量进行负载均衡,并保证服务的高可用。 技术选型:HAProxy + Keepalived,这对组合比较常见成熟。 另外,由

该项工作,如题所示,主要分为两部分:高可用负载均衡组件、缓存DNS。

高可用负载均衡组件

需求:优化业务系统架构中某些关键环节,针对TCP层数据流量进行负载均衡,并保证服务的高可用。

技术选型:HAProxy + Keepalived,这对组合比较常见成熟。

另外,由于HAProxy的负载均衡任务可能比较多,靠人工修改配置来增删改任务不方便可靠,所以实现了一个简单的HAProxy管理系统, 以后经实际使用验证和完善会开放源码。

high availability load balancer

缓存DNS

先以www.qq.com为例,解释一下域名解析过程:

resolve qq.com

1. 用户向Local DNS发起www.qq.com.查询请求;

2. Local DNS向根服务器发起com.查询请求;

3. 根服务器向Local DNS返回com.解析记录;

4. Local DNS向com.权威服务器发起qq.com.查询请求;

5. com.权威服务器向Local DNS返回qq.com.解析记录;

6. Local DNS向qq.com.权威服务器发起www.qq.com.查询请求;

7. qq.com.权威服务器向Local DNS返回www.qq.com.解析记录;

8. Local DNS向用户返回www.qq.com解析记录。

Local DNS一般由网络运营商(如电信、网通等)提供。

缓存DNS处于用户端(这是一个相对的概念)与local DNS之间,利用DNS服务器软件的缓存功能以及缓存DNS与用户端的近距离特点来加速域名解析。

也可以在缓存DNS上按需求进行域名劫持。运营商为了牟利,也会在local DNS上进行域名劫持,这对于各大互联网公司对外提供的服务来说是个很大的问题。


在完成该工作后,我编写了一份安装配置文档,方便其他同事参考。文档见: HAProxy+HAProxyConsole+Keepalived+BIND安装配置文档.pdf。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why NameResolutionError(self.host, self, e) from e and how to solve it Why NameResolutionError(self.host, self, e) from e and how to solve it Mar 01, 2024 pm 01:20 PM

Why NameResolutionError(self.host, self, e) from e and how to solve it

How to implement SSL passthrough in HAProxy How to implement SSL passthrough in HAProxy Mar 20, 2024 am 09:30 AM

How to implement SSL passthrough in HAProxy

How to view and refresh dns cache in Linux How to view and refresh dns cache in Linux Mar 07, 2024 am 08:43 AM

How to view and refresh dns cache in Linux

Angular components and their display properties: understanding non-block default values Angular components and their display properties: understanding non-block default values Mar 15, 2024 pm 04:51 PM

Angular components and their display properties: understanding non-block default values

What is the use of modifying dns address in win11? What is the use of modifying dns address in win11? Feb 29, 2024 pm 05:22 PM

What is the use of modifying dns address in win11?

Can buildings be built in the wild in Mistlock Kingdom? Can buildings be built in the wild in Mistlock Kingdom? Mar 07, 2024 pm 08:28 PM

Can buildings be built in the wild in Mistlock Kingdom?

APCu Best Practices: Improving the Efficiency of Your Applications APCu Best Practices: Improving the Efficiency of Your Applications Mar 01, 2024 pm 10:58 PM

APCu Best Practices: Improving the Efficiency of Your Applications

How to save video files from browser cache to local How to save video files from browser cache to local Feb 23, 2024 pm 06:45 PM

How to save video files from browser cache to local

See all articles