upstream设备状态值

  • A+
所属分类:运维教程

upstream还可以为每个设备设置状态值,这些状态值的含义分别如下:

down

表示单前面的server暂时不参与负载。

weight

默认为1,weight值越大,负载的权重就越大。

max_fails

允许请求失败次数,默认为1,当超过最大次数时,返回proxy_next_upstream模块定义的错误。

fail_timeout

max_fails次失败后暂停的时间。

backup

其它所有的非backup机器down或者忙的时候,会请求backup机器,所以这台服务器压力会很轻。

  1. upstream birdteam {
  2. ip_hash;
  3. server 192.168.18.251 down;
  4. server 192.168.18.252 weight=2;
  5. server 192.168.18.253;
  6. server 192.168.18.254 backup;
  7. }
  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:26   其中:访客  26   博主  0

    • avatar click site

      I like what you guys are up too. Such intelligent work and reporting! Keep up the superb works guys I¦ve incorporated you guys to my blogroll. I think it’ll improve the value of my site :)

      • avatar grolyrtolemcs

        That is very interesting, You’re an excessively skilled blogger. I have joined your rss feed and sit up for in quest of more of your fantastic post. Additionally, I’ve shared your web site in my social networks!

        • avatar gold leaf strain review

          I definitely wanted to write down a quick remark to say thanks to you for all of the splendid techniques you are placing at this site. My incredibly long internet investigation has finally been honored with brilliant content to go over with my good friends. I would say that most of us website visitors are unquestionably endowed to dwell in a superb network with very many lovely individuals with beneficial points. I feel quite lucky to have used your entire website and look forward to plenty of more fabulous times reading here. Thank you once more for all the details.

          • avatar cbd oil that works 2020

            I have to thank you for the efforts you have put in writing this blog.

            I am hoping to view the same high-grade content by you later on as well.
            In truth, your creative writing abilities has inspired me to get my
            very own website now ;)

            • avatar cbd oil that works 2020

              There is certainly a great deal to learn about this topic.

              I really like all the points you have made.

              • avatar ecoups.net

                Terrific article! This is the kind of info that are meant to be shared across the internet.
                Shame on the search engines for now not positioning
                this submit upper! Come on over and talk over
                with my site . Thanks =)