• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > 编程与数据库 > php编程 >

PHP企业级应用缓存技术详解(2)

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-02-08点击:

  [client]

  ……

  default-character-set=gbk

  default-storage-engine=MYISAM

  max_connections=600

  max_connect_errors=500

  back_log=200

  interactive_timeout=7200

  query_cache_size=64M

  ……

  table_cache=512

  ……

  myisam_max_sort_file_size=100G

  myisam_max_extra_sort_file_size=100G

  myisam_sort_buffer_size=128M

  key_buffer_size=1024M

  read_buffer_size=512M

  ……

  thread_concurrency=8

 

  基于反向代理的Web缓存

  如Nginx,SQUID,mod_PRoxy(apache2以上又分为mod_proxy和mod_cache)

  NGINX的例子:

 

  #user nobody;

  worker_processes 4;

  error_log logs/error.log crit;

  pid logs/nginx.pid;

  worker_rlimit_nofile 10240;

  events {

  use epoll;

  worker_connections 51200;

  }

  http {

  include mime.types;

  default_type application/octet-stream;

  sendfile on;

  keepalive_timeout 65;

  tcp_nodelay on;

  # server pool

  upstream bspfrontsvr {

  server 10.10.10.224:80 weight=1;

  server 10.10.10.221:80 weight=1;

  }

  upstream bspimgsvr {

  server 10.10.10.201:80 weight=1;

  }

  upstream bspstylesvr {

  server 10.10.10.202:80 weight=1;

  }

  upstream bsphelpsvr {

  server 10.10.10.204:80 weight=1;

  }

  upstream bspwsisvr {

  server 10.10.10.203:80 weight=1;

  }

  upstream bspadminsvr {

  server 10.10.10.222:80 weight=1;

  }

  upstream bspbuyersvr {

  server 10.10.10.223:80 weight=1;

  }

  upstream bspsellersvr {

  server 10.10.10.225:80 weight=1;

  }

  upstream bsploginsvr {

  server 10.10.10.220:443 weight=1;

  }

  upstream bspregistersvr {

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ