当前位置:主页 > 邵阳 >

蚁人

Nginx upstream健康检查:后端挂了自动踢出局_我的网站

整蛊专家

一 |     A former Ohio State University student-athlete is speaking out against Rep. Jim Jordan's bid for House speaker, saying Jordan "turned a blind eye" to allegations of abuse against a team doctor during his time as assistant coach for the university's wrestling team.Rocky Ratliff is now an attorney who also represents several other former OSU wrestlers in an ongoing lawsuit against the university."I think the wrestlers that I represent, not one of us, would back him for such a leadership position," Ratliff told ABC News Live Prime anchor Linsey Davis.He continued, "He's abandoned us for his own selfish reasons when he could have helped us. He's chosen not to. So that is not the good makings of any type of leadership or any type of leader that he would have put up with at Ohio State. It's just not. None of us wrestlers believe he should get that position."A spokesperson for Jordan, R-Ohio, told ABC News, "Chairman Jordan never saw or heard of any abuse, and if he had, he would have dealt with it."The allegations of abuse were against Dr. Richard Strauss, an Ohio State team doctor and sports medicine researcher. Strauss is accused of sexually abusing at least 177 men over an 18-year period from 1979 to 1997 -- nearly his entire time at Ohio State, according to an independent report released in 2019.Investigators determined that university officials ignored nearly two decades of accusations of sexual abuse against Strauss, who killed himself in 2006 at age 67, seven years after retiring from the university.The accusations of abuse involved athletes from at least 16 sports including wrestling, hockey and swimming, and included Strauss' work at the student health center and an off-campus clinic that he founded late in his tenure, according to the report.The university removed Strauss as a school physician in 1996 after a flurry of student complaints and reported his actions to the State Medical Board of Ohio. However, the school allowed Strauss to retain his tenured faculty position while he operated an off-campus clinic, where the report says he continued to abuse students.Ohio State University has since admitted that it failed to protect students from Strauss, paying out $60 million in settlements to some 296 victims.Jordan, who was an assistant coach on the team from 1986 to 1994, came under fire in 2018 when several former OSU wrestlers took their allegations against Strauss to the media and claimed Jordan was aware of Strauss' inappropriate behavior and failed to report it. The university then announced it was opening an investigation into the allegations against Strauss.Jordan also denied knowing about the abuse when the allegations first came out in 2018.Jordan is now facing renewed scrutiny amid the ongoing battle for House speaker. After again failing to receive enough GOP support, the congressman and chair of the House Judiciary Committee was defeated a second time after a vote on Wednesday afternoon."We believe very strongly, especially all the wrestlers that were there at the time, that Jim Jordan knew what was going on," Ratliff said on Wednesday.Ratliff continued, "Jordan should come forward and tell the truth about what happened. At least meet with the guys. He's failed to do that -- to hear our side, he's failed. You know, even if you believe what Jim Jordan says, he has never once reached out to any wrestler to say, 'Hey, I missed it. I'm sorry. How are you feeling?'"ABC News' Eric Ortega, Imtiyaz Delawala, Lindsey Griswold, and Andrea Amiel contributed to this report.。    

     一键部署OpenClaw        

单台后端出问题时,如果Nginx还继续把请求发过去,用户看到的不是502就是超时。upstream配置里的max_fails和fail_timeout可以让Nginx自动把失败节点暂时下线,保证正常请求不受影响。    

这是被动健康检查,不需要商业模块。Nginx在指定时间内检测到多次失败,就把节点标记为不可用,等fail_timeout过后再尝试恢复。

二 |     

upstream backend {
server 192.168.1.11:8080 weight=5 max_fails=3 fail_timeout=30s;
server 192.168.1.12:8080 weight=5 max_fails=3 fail_timeout=30s;
server 192.168.1.13:8080 backup;
}

server {
location / {
proxy_pass http://backend;
proxy_next_upstream error timeout http_500 http_502 http_503;
proxy_connect_timeout 5s;
}
}
    

proxy_next_upstream很关键,它告诉Nginx在什么情况下把请求换一台后端重试。但只建议对幂等请求开启GET/HEAD重试,POST请求重复提交可能带来业务风险。    

如果有条件,建议用Nginx Plus的主动健康检查模块,会周期性向后端发探测请求,比被动检测更早发现问题。免费版用被动方案也基本够用了。    数据来源:Nginx官方文档 ngx_http_upstream_module(max_fails / fail_timeout / proxy_next_upstream)

        
    

申请创业报道,分享创业好点子。

三 | 点击此处,共同探讨创业新机遇!。

Current article:http://2jri9tu.recuigoutoubaozukai.pics/my21/20260826/8588606.html

Published on:06:24:55


Copyright @ 2016-2017 我的网站 版权所有