当前位置: 首页 > news >正文

网站开发工程师累不累seo 技术优化

网站开发工程师累不累,seo 技术优化,什么网站教做美食,wordpress轮播设置在部署mysql 主主高可用时&#xff0c;使用haproxy进行负载&#xff0c;在服务部使用的情况下发现服务器cpu占比高&#xff0c;负载也高&#xff0c;因此急需解决这个问题。 1.解决前现状 1.1 部署配置文件 cat > haproxy.cfg << EOF globalmaxconn 4000nbthrea…

在部署mysql 主主高可用时,使用haproxy进行负载,在服务部使用的情况下发现服务器cpu占比高,负载也高,因此急需解决这个问题。

1.解决前现状

1.1 部署配置文件

cat > haproxy.cfg << EOF
globalmaxconn     4000nbthread    2daemon 
defaultslog     globallog 127.0.0.1 local3mode    httpoption  tcplogoption  dontlognullretries 10option redispatchmaxconn         2000timeout connect         30stimeout client          10mtimeout server          10m#timeout http-keep-alive 10stimeout check           10s
######## 监控界面配置 #################	
listen  admin_stats#监控界面的访问的IP和端口bind  0.0.0.0:8888#访问协议mode        http#URI相对地址stats uri   /dbs#统计报告格式stats realm     Global\ statistics#登陆帐户信息stats auth  admin:admin# 隐藏HAProxy的版本号stats hide-version# 管理界面,如果认证成功了,可通过webui管理节点stats admin if TRUE# 统计页面自动刷新时间stats  refresh  30s
listen  mysqlbind 0.0.0.0:3306mode tcp#负载均衡算法(轮询算法)#轮询算法:roundrobin#权重算法:static-rr#最少连接算法:leastconn#请求源IP算法:source balance  roundrobin# 监控检查需要一个无密码的账号# mysql健康检查  haproxy为mysql登录用户名(需要在实体数据有这个账户,且无密码)# option mysql-check  user haproxy server s1 mysql-master1:3306 check weight 1 maxconn 2000 inter 5000 rise 2 fall 2server s2 mysql-master2:3306 check weight 1 maxconn 2000 inter 5000 rise 2 fall 2 backup
EOFcat > dokcer-stark-haproxy.yml << EOF
version: '3'networks:liuhm-net:external: true services:haproxy:image: haproxy:alpinehostname: haproxyvolumes:- "${PWD}/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg"- "/etc/localtime:/etc/localtime:ro"restart: alwaysprivileged: trueports:- 8888:8888- 3306:3306networks:- liuhm-netdeploy:mode: global
EOF

在这里插入图片描述

2.解决后

  • 修改了镜像版haproxy:2.9.1-alpine
  • 增加了配置 tune.disable-zero-copy-forwarding
  • github 解决问题地址
  • 在这里插入图片描述

cat > haproxy.cfg << EOF
globalmaxconn     4000nbthread    2daemon ## tune.disable-zero-copy-forwarding必须配置,不然cpu占比很高tune.disable-zero-copy-forwarding                       
defaultslog     globallog 127.0.0.1 local3mode    httpoption  tcplogoption  dontlognullretries 10option redispatchmaxconn         2000timeout connect         30stimeout client          10mtimeout server          10m#timeout http-keep-alive 10stimeout check           10s
######## 监控界面配置 #################	
listen  admin_stats#监控界面的访问的IP和端口bind  0.0.0.0:8888#访问协议mode        http#URI相对地址stats uri   /dbs#统计报告格式stats realm     Global\ statistics#登陆帐户信息stats auth  admin:admin# 隐藏HAProxy的版本号stats hide-version# 管理界面,如果认证成功了,可通过webui管理节点stats admin if TRUE# 统计页面自动刷新时间stats  refresh  30s
listen  mysqlbind 0.0.0.0:3306mode tcp#负载均衡算法(轮询算法)#轮询算法:roundrobin#权重算法:static-rr#最少连接算法:leastconn#请求源IP算法:source balance  roundrobin# 监控检查需要一个无密码的账号# mysql健康检查  haproxy为mysql登录用户名(需要在实体数据有这个账户,且无密码)# option mysql-check  user haproxy server s1 mysql-master1:3306 check weight 1 maxconn 2000 inter 5000 rise 2 fall 2server s2 mysql-master2:3306 check weight 1 maxconn 2000 inter 5000 rise 2 fall 2 backup
EOFcat > dokcer-stark-haproxy.yml << EOF
version: '3'networks:liuhm-net:external: true services:haproxy:image: haproxy:2.9.1-alpinehostname: haproxyvolumes:- "${PWD}/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg"- "/etc/localtime:/etc/localtime:ro"restart: alwaysprivileged: trueports:- 8888:8888- 3306:3306networks:- liuhm-netdeploy:mode: global
EOF

实际配置后没有飙升
在这里插入图片描述

http://www.khdw.cn/news/12207.html

相关文章:

  • wordpress建站详细教程视频加盟网络营销推广公司
  • 淘宝做任务网站网络品牌推广
  • 网站开发案例详解pdf网络网站推广选择乐云seo
  • 建站魔方极速网站建设北京seo费用是多少
  • 怎么做网站关键词库排名百度识图扫一扫入口
  • c2c网站有哪几个seo教程书籍
  • 沧州建设局网站百度指数批量获取
  • 中国最好的公关公司网站播放视频速度优化
  • 网站开发设计实训总结自己如何制作网页
  • 坪山网站建设哪家便宜百度打开
  • 如何建设好英文网站特大新闻凌晨刚刚发生
  • web手机版下载班级优化大师网页版
  • 视频互动网站建设天津做网站的网络公司
  • 做任务送科比网站百度排行榜风云榜
  • 网站项目怎么做的宁波seo优化流程
  • 网站备案公安常州seo排名收费
  • 上海微网站公司百度一下官方网页
  • 温州建站软件百度一下你就知道移动官网
  • 合肥建立网站竞价托管外包哪家好
  • wordpress的图床seo优化教程
  • 做外贸网站效果图深圳全网信息流推广公司
  • wordpress agoda镇江关键字优化品牌
  • wordpress云盘视频上海seo有哪些公司
  • 网站服务器及运营维护公告百度搜索优化怎么做
  • 建设高端网站公司国际大新闻最新消息
  • 从网站建设到网站运营重庆百度推广排名优化
  • html5网站开发案例河南郑州网站顾问
  • 完美政府网站管理系统推广费用一般多少
  • 个人网站设计规划深圳网络营销全网推广
  • 上海建设工程施工许可证查询网站软件开发外包平台