【发布时间】:2021-04-06 08:26:23
【问题描述】:
我们即将在运行 Java 8(不是 Corretto 8)的 Elastic Beanstalk 上部署 Spring Boot 2.3 应用程序。
我们正在考虑将 Multi AZ 用于 RDS,我正在阅读自述文件
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html
并且有一部分指出我们应该注意 DNS 缓存以防故障转移Setting the JVM TTL for DNS name lookups
它说的是以下内容
The default TTL can vary according to the version of your JVM and whether a
security manager is installed.
Many JVMs provide a default TTL less than 60 seconds.
If you're using such a JVM and not using a security manager,
you can ignore the rest of this topic. For more information on security managers
in Oracle, see The security manager in the Oracle documentation.
Elastic Beanstalk 中 Java 8 的默认值是多少?好像没找到。
同样根据我的理解,如果 ttl 值很大,并且数据库发生故障,它不会故障转移到另一个 AZ 中的实例,因为 DNS 不会改变。对吗?
也是默认值太大,Spring Boot 不使用 XML 文件设置该属性的方式是什么?
提前非常感谢
【问题讨论】:
-
这个答案可能对你有帮助:stackoverflow.com/questions/29579589/…
标签: java amazon-web-services spring-boot amazon-elastic-beanstalk amazon-rds