Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling dns cache with dns-ttl doesn't seem to work #693

Open
vsmart-duo opened this issue Jul 23, 2024 · 0 comments
Open

Disabling dns cache with dns-ttl doesn't seem to work #693

vsmart-duo opened this issue Jul 23, 2024 · 0 comments

Comments

@vsmart-duo
Copy link

vsmart-duo commented Jul 23, 2024

Hi, thanks for building vegeta, it's been very useful for my testing!

Version and Runtime

Version: 12.11.1                                                                             
Commit:                                                                                      
Runtime: go1.21.3 darwin/arm64                                                               
Date: 2023-10-02T09:03:39Z

Expected Behaviour

I'm using vegeta to send traffic to a host like my-server.com.
In the background during the load test, I'm updating the dns record for my-server.com to another host.
Once dig resolves to the new server I expected vegeta (30s to 1min after the update) to send traffic to the new server.
TTL on the records is 60 seconds.

Actual Behaviour

No matter what I input to the dns-ttl flag (-1 for disabled, 1s etc), the old record seems to be cached by vegeta. It only updates after 7-8minutes. Until then the old server receives no or very few requests from vegeta.

Steps to Reproduce

echo "GET http:/my-server.com" | vegeta attack -duration=1800s -rate=30 -dns-ttl=-1 | tee results.bin | vegeta report
  • Update my-sever.com record during the test
  • Observe vegeta only send traffic to first server.

Additional Context

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant