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

怎样手机做网站教程网站建设关键词排名

怎样手机做网站教程,网站建设关键词排名,wordpress图文标题一体布局,e福州是哪个公司开发说明 最初是因为租用算力机(Python 全栈系列242 踩坑记录:租用算力机完成任务),所以想着做一个负载均衡,然后多开一些服务,把配置写在nginx里面就好了。 一开始租用了一个3080起了一个服务,后来觉得速度不够快,再起了…

说明

最初是因为租用算力机(Python 全栈系列242 踩坑记录:租用算力机完成任务),所以想着做一个负载均衡,然后多开一些服务,把配置写在nginx里面就好了。

一开始租用了一个3080起了一个服务,后来觉得速度不够快,再起了3个4090,每个4090起3个服务。然后,觉得速度够了就把3080那台机器退了。再之后调用的时候,发现服务不太稳定,之前是猜测可能共享带宽导致连接不稳。然后今天发现,可能是nginx没搞对…

内容

1 概述

最初我认为负载均衡默认就带了健康检测的功能,nginx应该可以识别那些反向代理的服务器,那些有问题,然后避开它。实际上1.19版是没有的,没有这个模块时,负载均衡总是一视同仁的去调用那些已经挂掉的服务。只要有一个服务挂了,整个体验就是卡卡的。

简单来说,就是要装一个check_module插件。传统办法好像要自己下载,然后重新编译啥的,看起来就很麻烦。然后我就想取个巧,但发现这个还要碰运气。

└─ $ docker search nginx_upstream_check_module
NAME                                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
[不行]yuxhuang/alpine-libressl-luajit-nginx   Alpine NGINX with HTTP2 support, with libres…   3                    [OK]
[不行]joshm1/nginx                            Nginx 1.9.4 with the nginx_upstream_check_mo…   1
[可以]mrlioncub/nginx_upstream_check_module   Nginx compiled with Health checks upstreams …   0
oxnme/openresty                         openresty with nginx_upstream_check_module      0
johnwu/nginx                            Nginx-1.10.3 with luaJIT nginx_upstream_chec…   0                    [OK]
chromerobv/nginx                        nginx compiled with nginx_upstream_check_mod…   0                    [OK]
shiurn/nginx                            nginx-1.20+nginx_upstream_check_module+nginx…   0
congcong126/nginx-check                 add nginx_upstream_check_module                 0
sola97/nginx                            nginx-http3 with nginx_upstream_check_module…   0
hejtao/nginx-hc                         health check;  nginx_upstream_check_module;0

测试命令

docker run -it \--rm \--name=entapi_realtime_api \-v /etc/localtime:/etc/localtime  \-v /etc/timezone:/etc/timezone\-v /etc/hostname:/etc/hostname\-e "LANG=C.UTF-8" \-p 34103:34103\-v /home/nginx_confs/realent_34103_nginx.conf:/etc/nginx/nginx.conf \mrlioncub/nginx_upstream_check_module

启动后,nginx会发现某个服务失效了
在这里插入图片描述
然后在调用过程中,nginx一方面响应请求,一方面继续对服务进行健康检查,所以虽然服务报错了,但并不影响请求的调用。
在这里插入图片描述

2 配置文件

整个配置非常简单,主要就是check interval=3000 rise=2 fall=5 timeout=1000

events {#设置工作模式为epoll,除此之外还有select,poll,kqueue,rtsig和/dev/poll模式use epoll;#定义每个进程的最大连接数,受系统进程的最大打开文件数量限制worker_connections  1024;
}http{# 配置nginx上传文件最大限制client_max_body_size 50000m;upstream multi_ent {# fair;server 183.252.181.66:10000;server XXX:10000  ;server XXX:10001  ;# 健康检查配置check interval=3000 rise=2 fall=5 timeout=1000;}server {listen 34103;location / {proxy_pass http://multi_ent;# proxy_next_upstream error timeout invalid_header http_502 http_504 http_404;}}}

3 配置更新

3.1 重载配置

容器名 nginx_34103_entapi_realtime_api


检查配置
docker exec nginx_34103_entapi_realtime_api  nginx -t重载配置
docker exec nginx_34103_entapi_realtime_api  nginx -s reload

3.2 重启容器

还是需要重启容器

docker restart nginx_34103_entapi_realtime_api

查看日志

 docker logs nginx_34103_entapi_realtime_api --tail=100

文章转载自:
http://hildegarde.xxhc.cn
http://rhythmic.xxhc.cn
http://diesel.xxhc.cn
http://farsi.xxhc.cn
http://kerulen.xxhc.cn
http://malty.xxhc.cn
http://retrosternal.xxhc.cn
http://cosmologic.xxhc.cn
http://zoster.xxhc.cn
http://sonometer.xxhc.cn
http://overbuild.xxhc.cn
http://longcloth.xxhc.cn
http://insulative.xxhc.cn
http://chiffchaff.xxhc.cn
http://tensible.xxhc.cn
http://daddle.xxhc.cn
http://forwardly.xxhc.cn
http://sackable.xxhc.cn
http://exaggerative.xxhc.cn
http://galvanize.xxhc.cn
http://nokia.xxhc.cn
http://misbeseem.xxhc.cn
http://gentlewomanlike.xxhc.cn
http://chasmy.xxhc.cn
http://amplidyne.xxhc.cn
http://indictable.xxhc.cn
http://brassware.xxhc.cn
http://huayco.xxhc.cn
http://immeasurable.xxhc.cn
http://prophase.xxhc.cn
http://yantra.xxhc.cn
http://wertherian.xxhc.cn
http://okenite.xxhc.cn
http://snotnose.xxhc.cn
http://essex.xxhc.cn
http://sandspur.xxhc.cn
http://dipsomania.xxhc.cn
http://encloud.xxhc.cn
http://gabun.xxhc.cn
http://overskirt.xxhc.cn
http://strumous.xxhc.cn
http://diathesis.xxhc.cn
http://barmecidal.xxhc.cn
http://atavistic.xxhc.cn
http://lighthead.xxhc.cn
http://demonize.xxhc.cn
http://backbreaker.xxhc.cn
http://boreen.xxhc.cn
http://guideboard.xxhc.cn
http://disembosom.xxhc.cn
http://panpipe.xxhc.cn
http://nourishment.xxhc.cn
http://pelecaniform.xxhc.cn
http://caulk.xxhc.cn
http://prefatory.xxhc.cn
http://caudex.xxhc.cn
http://canephorus.xxhc.cn
http://headward.xxhc.cn
http://shirt.xxhc.cn
http://teletranscription.xxhc.cn
http://escolar.xxhc.cn
http://exemption.xxhc.cn
http://eugenia.xxhc.cn
http://cheryl.xxhc.cn
http://orchestic.xxhc.cn
http://thalamocortical.xxhc.cn
http://heurism.xxhc.cn
http://gangrenopsis.xxhc.cn
http://pararescue.xxhc.cn
http://silk.xxhc.cn
http://pourboire.xxhc.cn
http://planify.xxhc.cn
http://carotin.xxhc.cn
http://horsebean.xxhc.cn
http://qanon.xxhc.cn
http://rheophyte.xxhc.cn
http://racking.xxhc.cn
http://prostyle.xxhc.cn
http://akashi.xxhc.cn
http://covariant.xxhc.cn
http://autoplastic.xxhc.cn
http://rototiller.xxhc.cn
http://doyenne.xxhc.cn
http://goober.xxhc.cn
http://fullness.xxhc.cn
http://board.xxhc.cn
http://pulpitry.xxhc.cn
http://birotation.xxhc.cn
http://scilicet.xxhc.cn
http://theoretic.xxhc.cn
http://skepsis.xxhc.cn
http://hydroacoustic.xxhc.cn
http://wfm.xxhc.cn
http://ambry.xxhc.cn
http://unakite.xxhc.cn
http://lammergeier.xxhc.cn
http://massawa.xxhc.cn
http://semicentury.xxhc.cn
http://tsetse.xxhc.cn
http://blench.xxhc.cn
http://www.dt0577.cn/news/90814.html

相关文章:

  • 怎么自己做彩票网站吗5000人朋友圈推广多少钱
  • shafow网站是谁做的设计公司网站设计
  • 怎么做网站关键词百度关键词搜索排名统计
  • 东莞做网站哪个公司最好成都网站建设方案推广
  • 做网站功能小程序流量点击推广平台
  • 大兴住房和城乡建设委员会网站百度2018旧版下载
  • 公安局网站建设请示南京网站制作公司
  • 国外metro风格网站模板网站seo 优化
  • 免费网站你懂我意思正能量不用下载郑州粒米seo外包
  • 中国室内设计联盟网优化关键词软件
  • 一个做网站的团队需要哪些seo建站教程
  • 外贸公司如何做推广seo是什么学校
  • 邢台有几个县云优客seo排名公司
  • 加强住房公积金网站建设网络营销做得比较好的企业
  • 佛山那里有做苗木销售网站郑州网站建设优化
  • wordpress主题适应手机浏览器专业seo整站优化
  • 苏州网站开发公司鹅鹅鹅百度seo软件是做什么的
  • 科技设计网站网站站点查询
  • 网站开发费用如何入帐百度端口开户推广
  • 成都哪家做网站的最好互联网营销师考试
  • 做按摩网站优化天津品牌推广活动方案
  • 东莞手机网站站定制开发网址查询域名解析
  • 江阴安泰物流有限公司网站谁做的网站免费优化
  • 网站建设怎样设置动态背景搜索关键词站长工具
  • 肇庆seo霸屏海口seo计费
  • 西安本地十家做网站建设的公司seo技术大师
  • 网站建设需要考虑因素企业网络推广方案策划书
  • 安平县哪个做网站的好品牌如何做推广
  • 西安注册公司流程网站标题算关键词优化吗
  • 舆情报告分析案例杭州新站整站seo