forked from TykTechnologies/tyk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP]feature/issue-495-Cache_DNS (TykTechnologies#2040)
* Init implementation * add cache hook for api's defaultTransport(). add unit test(unfinished) * more tests move dns cache init to tyk/dns_cache.go * issue/495: finish unit tests for storage;config,reverse_proxy tests&linting * remove log * add lint tests * refactor mock dns server config push/pull in unit tests * add ws/wss unit tests * fixes * issue/495: make config.dns optional; allow non-expired dns cache configurations(dns.check_interval == -1) * fix failed tests * review fixes * review fixes * test branch build * fix build * Update main.go * REVERTME: check timeouts on CI * fix ">go run -race " call * fix ">go vet" & ">gofmt" * fix ">goimports ..." * Fixed race conditions for CI: - redis legacy driver(SingleRedisMode rw access); - dns server (DefaultResolver rw access) * fix go vet errors * fix mock dns race condition * gofmt fix * REVERTME: ci timeout * REVERTME: ci timeout * fix timeout * Revert "REVERTME: ci timeout" This reverts commit d1991eb * REVERTME: ci timeout; revert 300ms timeout * fix timeouts * revert travis config * goimports fix * goimports revert fix; fix -race within host_checker.go * fix gofmt; fix race * fix race redisStorage; fix api_id rate limit collision in TestRateLimitForAPIAndRateLimitAndQuotaCheck * revert ci-test.sh * review fix https://github.com/TykTechnologies/tyk/pull/2040/files#r251038351 * review: rename dns_cache to dnscache * gofmt fix * review docs * review docs * review docs * review: rename *.conf dns { enable_caching... } -> dns_cache { enabled... }; add defaults 1h/1m ( for ttl/check_interval ) to *example.conf. * use seconds for config values in order to be unix-time compatible; add unit tests for default config; * review docs * review fix * fix for integration with updated TykTechnologies/redigocluster. Requires this PR to be merged - TykTechnologies/redigocluster#4 * Update redis_cluster.go * update redigocluster in ./vendor * review: fix {interface{},*struct) covariance * fix host & port parsing. add DialContext error handling * unit-tests fix * go fmt fix * goimports fix * fix net.DefaultResolver r/w race * fix gofmt/goimports * goimports fix/gofmt fix * fix log * review fix * format docs * review fixes * review fix: REMOVE dns_cache.check_interval from configs * add dns_cache.multiple_ips_handle_strategy: config update+unit tests * add init strategies implementation to dnsCachingManager. RandomStrategy should be implemented * fix random caching * remove item.IsEqualsTo->test.IsDnsRecordsAddrsEqualsTo * fix manager/storage tests * fmt/import fix * review fix
- Loading branch information
Showing
39 changed files
with
1,455 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.