大网数据广告活动
服务器运维问答

NetScaler retry next server if failed

· 52CE 我爱测

I have 8 servers that are loadbalanced by NetScaler VPX (10). How to make NetScaler load balancer to resend request to next server if previous server responded with the 502 status?

问题原文

原帖链接 · Jonas · CC BY-SA 3.0

I have 8 servers that are loadbalanced by NetScaler VPX (10). How to make NetScaler load balancer to resend request to next server if previous server responded with the 502 status?

已采纳解答

原帖链接 · Jan · CC BY-SA 3.0

It all depends on your configuration. However, in all cases, it is not the NetScaler appliance itself which will retry to the next server. You'd have to create a construction in your configuration so that when the backend server returns a HTTP 502, the response to the client is rewritten to have the client retry the request. The new request which enters the NetScaler must be identified at that point, so you can force the backend server being used for that request.

An option is to configure the members of your server group with a server id, and use that server id to perform explicit load balancing. The initial failed response must then return a cookie containing the server id.

If the cookie is present on the second request, and holds a valid server id, then that backend server will be used.

In short, you would have to be using following components on NetScaler:

  • Content Switching (does the request have a server id cookie or not)
  • Load balancing with Server Id definitions for each service group binding
  • Rewrite of the response of the initial request.

If your application does not support redirects, you are out of luck as the NetScaler cannot retry the original request based on the original response from the first server.

Cheers, Jan

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。