Closed davidemarrone closed 3 months ago
just FYI I have discovered that the AWS aws-mysql-jdbc is almost deprecated:
https://github.com/awslabs/aws-mysql-jdbc/blob/main/RELEASE_POLICY.md
New features will not be added to the aws-jdbc-driver going forward. Future development will be taking place in the aws-advanced-wrapper driver. The aws-mysql-jdbc project follows the semantic versioning specification for assigning version numbers to releases. We recommend to adopt the new wrapper driver before the maintenance window of current version ends on July 25, 2024.
And I also found out that anyway it doesn't support pools with long lived connections. But the new aws-jdbc-driver will support pools with long lived connections, to use it with tigase anyway should be needed a way to specify the AWS JDBC Driver protocol prefix / DriverManager that now is hardcoded in tigase
@woj-tek is this problem has been fixed with Tigase Server 8.4 ?
Hi,
Issue migrated to: https://tigase.dev/tigase/_server/server-core/~issues/1496
Let's continue there
Problem with DNS cache I was testing the AWS Aurora mysql failover procedure with tigase, reading the documentation I have found: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZSingleStandby.html scrolling to: "Setting the JVM TTL for DNS name lookups"
explains that is important to set a TTL for the java cache otherwise the failover does not work properly.
I was testing it on an instance of tigase and during my test I have found that tigase does not auto recover, after triggering a failover manually, in the logs there is:
this means that is still using the old endpoint of the DNS and it not switching to the new endpoint, I have left over 10 minutes always printing the same message.
Restarting the server resolves the problem but I need an automatic recovery.
I have change on the system in
/etc/java-11-openjdk/security/java.security
the value fornetworkaddress.cache.ttl
as suggested in the AWS doc but I have the same results. There is any other way to set this parameter? Do you know why tigase do not consider the system configuration?System info: