Discussion:
關於IIS兩台共用服務發生timeout的問題
(时间太久无法回复)
smokehouse
2006-01-07 10:41:02 UTC
Permalink
您好

目前我在一個FQDN上指定兩台IIS主機
例如
www.test.com.tw 去指定兩台IIS網頁服務主機去分擔負載
IIS上執行ASP與元件服務
當我輸入http://www.test.com.tw並登入後
如果我許久不去移動畫面
會發生 !警告 : 您為非法使用者或是閒置時間過長,請重新登入!

因為兩台IIS主機並未做NLB , 只是利用DNS的輪詢動作來分擔工作

問題點 : 是因為我沒有使用NLB導致發生兩台服務沒有同步嗎?

另外這是因為一台cookie的過期導致timeout?
還是當閒置時間過久重新連線因為DNS在做輪詢時連線主機不同導致timeout或不合法使用者?
如果是用L4 Switch來做Load Balance 一樣會發生這問題嗎?

謝謝了
Bernard Cheah [MVP]
2006-01-08 07:07:46 UTC
Permalink
I still not sure where is the problem.
So you are NOT running NLB, instead you use DNS round robin, to direct
request for you two IIS hosts.
As for the session timeout warning, I think this is application related,
because once you are connected to one of the IIS, you are not asking the DNS
again, and your browser is expected to communicated to that ONE particular
IIS during the entire session I believe.

To test it out, if you connect directly to one of the IIS host, after idle
for a while, I think you will get the same warning message.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
±zŠn
šÒŠp
www.test.com.tw ¥h«ü©wšâ¥xIISºô­¶ªA°È¥DŸ÷¥h€ÀŸá­tžü
IIS€W°õŠæASP»P€ž¥óªA°È
·í§Ú¿é€Jhttp://www.test.com.twšÃµn€J«á
ŠpªG§Ú³\€[€£¥h²Ÿ°Êµe­±
·|µo¥Í !ĵ§i : ±z¬°«DªkšÏ¥ÎªÌ©Î¬O¶¢žm®É¶¡¹Lªø,œÐ­«·sµn€J!
°ÝÃDÂI : ¬OŠ]¬°§ÚšSŠ³šÏ¥ÎNLBŸÉ­Pµo¥Íšâ¥xªA°ÈšSŠ³ŠPšB¶Ü?
ÁÙ¬O·í¶¢žm®É¶¡¹L€[­«·s³sœuŠ]¬°DNSŠb°µœüžß®É³sœu¥DŸ÷€£ŠPŸÉ­Ptimeout©Î€£ŠXªkšÏ¥ÎªÌ?
ÁÂÁ€F
smokehouse
2006-01-09 03:31:03 UTC
Permalink
Dear Bernard

我想應該是我提供的資訊不足導致您這邊無法做有利的解答

首先 有兩台IIS 主機 , 執行ASP&元件服務 , IIS未指定IP .
每台IIS主機的同一張網路卡有兩組不同的IP (一共有四組IP )
兩台IIS主機的另一張網路卡有不同網段的IP ( DNS不會指向該兩個IP )
DNS Server將一個FQDN指定這四組IP , 讓這四組IP來做輪替方式

當我們只有啟動一台主機時 , 並未發生這種情況 .
如果我們同時啟動兩台機器時 , 就會發生非法使用者的問題 .
這是否代表我們的應用程式在做連接上的問題?

在您給我建議
我是否可以大膽假設 : 基本上跟DNS與網路並無絕對關係?
因為一但連接上IIS主機 , DNS的服務也算是結束 .
反倒是應用程式引導瀏覽器在做重新連接時 ,
因為連接要求上發生的問題?

感謝您的支援

Cloud



"Bernard Cheah [MVP]" 來函:
Post by Bernard Cheah [MVP]
I still not sure where is the problem.
So you are NOT running NLB, instead you use DNS round robin, to direct
request for you two IIS hosts.
As for the session timeout warning, I think this is application related,
because once you are connected to one of the IIS, you are not asking the DNS
again, and your browser is expected to communicated to that ONE particular
IIS during the entire session I believe.
To test it out, if you connect directly to one of the IIS host, after idle
for a while, I think you will get the same warning message.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
Bernard Cheah [MVP]
2006-01-18 10:58:45 UTC
Permalink
Sorry, I was busy :)
Now, so you have 2 IP in each host, with 2 hosts you got 4 IP address for
the websites in the IIS server.
With round-robin DNS, it will returns the next host ip address in the DNS
records, which merely just give the client IP addresss, the client which
then take the IP and connect to the IIS host.

You are saying now if you have machine ON with 2 IP address, you don't see
this issue?
but you bump into this when you have another machine ON with total of 4 IP
address?

Let's do a simple analysis..... where do you think the problem is?
2 IP addresses 1 host - no issue
4 IP address 2 hosts - issue found

While you can skip the DNS part, as I don't think they will be any issue
with that.
of coz - make sure with 1 host 2 IP, you have got client talking to the 2 IP
addresses, not just one.

So, again - this would be tough to troubleshoot. but I would suggest you put
in tracing code, like response.write ip address, etc
to help you keep track of those important variable. then from there find out
why is missing, etc?

I still feel that this is coding issue.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
Post by smokehouse
Dear Bernard
??????????????????????????
?? ???IIS ?? , ??ASP&???? , IIS???IP .
??IIS???????????????IP (?????IP )
??IIS???????????????IP ( DNS???????IP )
DNS Server???FQDN?????IP , ????IP??????
???????????? , ???????? .
????????????? , ???????????? .
?????????????????????
??????
????????? : ????DNS??????????
???????IIS?? , DNS???????? .
??????????????????? ,
?????????????
??????
Cloud
Post by Bernard Cheah [MVP]
I still not sure where is the problem.
So you are NOT running NLB, instead you use DNS round robin, to direct
request for you two IIS hosts.
As for the session timeout warning, I think this is application related,
because once you are connected to one of the IIS, you are not asking the DNS
again, and your browser is expected to communicated to that ONE particular
IIS during the entire session I believe.
To test it out, if you connect directly to one of the IIS host, after idle
for a while, I think you will get the same warning message.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
继续阅读narkive:
Loading...