I want to configure ASP.NET Website Project using WCF Service[NetTcp] (both in c#) for web-farm (for website) and NLB Load balancing (for service). I would like to configure following options for same.
NetTcpBinding.maxConcurrentCalls, NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections
Note: During single machine configuration when I changed value of NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections in WCF Service project to more that 10, which is default value. I got exception. When I changed this value in Website it was working fine. Due to this I had to keep in default configuration. Not sure why this is the case. If anyone could explain this it would be helpful.
Following reference gives idea how to configure in given environment but does not tell how to go about it.
Ref: http://msdn.microsoft.com/en-us/library/ee377061%28BTS.10%29.aspx
Update:
Let me simplify a bit. Lets say I have following configuration.
- 2 IIS servers in Web Farm.
- 3 WCF Service Servers (NetTcp) in NLB
- Default config. for single instance.
- NetTcpBinding.ListenBacklog: 10
- NetTcpBinding.MaxConnections: 10
- NetTcpBinding.maxConcurrentCalls: 16
Now what will be my configuration setting in this environment. Will it be same as above or will be as follows.
- Suggested config. for single WebFarm/NLB
- NetTcpBinding.ListenBacklog: 30 (10*3)
- NetTcpBinding.MaxConnections: 30 (10*3)
- NetTcpBinding.maxConcurrentCalls: 48 (16*3)