c916cd1238ce79d18c685b40f7971b22f90f2253
API/CodeSamples/WebFarmNodesRsUrls.md
| ... | ... | @@ -10,7 +10,9 @@ |
| 10 | 10 | **Impacted Features:** schema, filtered list, and query cache invalidation for webfarms using multiple URLs |
| 11 | 11 | **Purpose:** Gets or sets response server urls of other machines in webfarm |
| 12 | 12 | **Usage:** This setting is used to ensure that Izenda is aware of all rs.aspx URLs when issuing server commands such as invalidating the server's schema cache on the filesystem. |
| 13 | -**Caveats:** This setting is only to be used when the webfarm in question uses different URLs for routing and does not ensure that caches will be successfully invalidated if load balancing with a single website URL is used as there is no way to know strictly through the URL what machine is being accessed. Other measures need to be taken to ensure schema cache invalidation successfully occurs in that scenario. |
|
| 13 | +**Notes:** This setting is only to be used when the webfarm in question uses different URLs for routing, and does not ensure that caches will be successfully invalidated if load balancing with a single website URL is used. There is no way to know strictly through the URL what machine is being accessed. Other measures need to be taken to ensure schema cache invalidation successfully occurs in that scenario. On every machine in the webfarm, just assign an array of strings with urls of ResponseServer pages of every machine in webfarm, like this: |
|
| 14 | + |
|
| 15 | + AdHocSettings.WebFarmNodesRsUrls = new string[] { "http://192.168.0.10/mysite/rs.aspx", "http://192.168.0.11/mysite/rs.aspx", "http://192.168.0.12/mysite/rs.aspx" }; |
|
| 14 | 16 | |
| 15 | 17 | ##Code Samples |
| 16 | 18 | ###Global.asax (C♯) |