Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlouros/multisubnetfailover-testapp
Applications to test System.Data.SqlClient MultiSubnetFailover
https://github.com/jlouros/multisubnetfailover-testapp
c-sharp sql-server
Last synced: 29 days ago
JSON representation
Applications to test System.Data.SqlClient MultiSubnetFailover
- Host: GitHub
- URL: https://github.com/jlouros/multisubnetfailover-testapp
- Owner: jlouros
- License: mit
- Created: 2015-12-05T02:44:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T04:10:10.000Z (about 9 years ago)
- Last Synced: 2024-11-08T21:52:58.033Z (3 months ago)
- Topics: c-sharp, sql-server
- Language: C#
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multi-subnet-failover test applications
Applications to test [System.Data].SqlClient 'MultiSubnetFailover'.
There's .Net 4.5 and .Net 4.6.1 versions.
The code is exactly the same, just targeting different .Net versions.
Modify 'App.config' with settings that match your environment.
'App.Config' contains the following settings:
- 'DatabaseHostName': DNS entry targeting your database environment. Should contain at least 2 associated IPs
- 'SleepTimeForLongPooling': time the application will wait between SQL requests on a long pooling test (in milliseconds)
- 'dbConnString' (connection string): for .Net 4.5 'MultisubnetFailover=true' must be set. On .Net 4.6.1 that setting is not required
Additionally, under the scripts folder you can find a PowerShell script that toggles SQL Server service state for the provided database host name.
You can read more about this project at http://johnlouros.com/blog/leveraging-multi-subnet-failover