- 基本
基本
配置文件里有四个基本的sections: global, defaults, frontend and backend。
- global
- 定义全局指令
- 需要定义
nuster cache onornuster nosql on,否则cache和nosql无法使用
- defaults
- 定义
frontend,backend的默认参数 - 可以在
frontendorbackendsection重新定义
- 定义
- frontend
- 定义监听端口等等面向用户的设置
- bankend
- 定义后端服务器等等设置
- 需要设置
nuster cache onornuster nosql on, 否则该backend没有nosql或者nosql功能 - 需要设置
nuster rule可以定义多个frontendorbackend. 如果定义了nuster cache|nosql off或者没有nuster cache|nosql on|off, nuster就是一个HAProxy。
无法在listen里定义nuster。
具体参考/doc下的HAProxy文档, 或者在线HAProxy文档
