0
甲骨文的文檔說以下有關緩存TTL -由於networkaddress.cache.ttl設置,JVM是否緩存url?
networkaddress.cache.ttl
Specified in java.security to indicate the caching policy for successful name lookups from the name service.. The value is specified as integer to indicate the number of seconds to cache the successful lookup.
這將如何影響設置DNS的方式得到解決?我在地理負載均衡器後面有兩個節點,我將它們連接到一個服務。現在,如果他們切換爲指向其他兩個節點,並且上述設置設置爲-1,它是否仍會嘗試更早解析的DNS並嘗試轉到可能不再存在的節點?如果我不使用安全管理器,那麼這個設置是否有任何價值?
在此先感謝。
查看您提供的鏈接,似乎不建議更改緩存設置。 – JUG
是的,因爲他們使用dns名稱爲每個服務aws ec2's。 – Ravi