Gehel added a comment.

We could probably set networkaddress.cache.negative.ttl to 0 - I do not see where we would have any use for negative DNS caching at all.

I'm not exactly sure which cases are covered by networkaddress.cache.negative.ttl. It probably covers both failed queries, and queries with negative response. In case of a negative response by DNS, caching the result is the correct behaviour, to reduce load on DNS. In both cases, caching will enable immediate failure which is in general a good thing (in our case, we probably don't care). So setting it to a small value (10 seconds?) is probably better.

All that DNS caching behaviour in Java is not well documented and I don't understand it as well as I should, so I'd prefer to have a test scenario before changing the current behaviour.


TASK DETAIL
https://phabricator.wikimedia.org/T188413

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Gehel
Cc: Smalyshev, Gehel, Aklapper, Lahi, Gq86, Darkminds3113, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, Jonas, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to