aws-advanced-jdbc-wrapper: Perfomance degradation with "auroraConnectionTracker,failover,efm2" and version 2.3.4

Describe the bug

Using version 2.3.4 with "auroraConnectionTracker,failover,efm2", we have noticed a performance degradation. When enabled, we noticed a 94.85% decrease in performance.

Expected Behavior

We would expect no performance degradation.

What plugins are used? What other connection properties were set?

“auroraConnectionTracker,failover,efm2”

Current Behavior

I ran a stress test on our service, once using our current main branch’s code, once using version 2.3.3 with “auroraConnectionTracker,failover,efm2”, and once using version 2.3.4 with “auroraConnectionTracker,failover,efm2”.

Over the course of 12 minutes here were the results:

  1. On main (no aws-advanced-jdbc-wrapper) we saw 10974 total requests and around 15.2335 req/s
  2. With version 2.3.3 and “auroraConnectionTracker,failover,efm2” plugins we saw 11041 total requests and around 15.310103 req/s. We did however encounter the ConcurrentModificationException issue that was fixed by version 2.3.4
  3. With version 2.3.4 and “auroraConnectionTracker,failover,efm2” plugins we saw 1776 total requests and around 2.464188 req/s. We also experienced a connection leak.

Reproduction Steps

  1. Using version 2.3.4 of the aws-advanced-jdbc-wrapper, and the "auroraConnectionTracker,failover,efm2" plugins, run a stress test
  2. Using version 2.3.3 of the aws-advanced-jdbc-wrapper, and the "auroraConnectionTracker,failover,efm2" plugins, run a stress test

Possible Solution

No response

Additional Information/Context

It looks like benchmarks indicate that there was degraded performance when using the efm2 plugin.

The AWS Advanced JDBC Driver version used

2.3.4 and 2.3.3

JDK version used

openjdk version “11.0.17”

Operating System and version

MacOS Sonoma 14.2.1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

We’ve been stable in production with 2.3.5

@aaronchung-bitquill in my graphs you see the maximum execution times of the database requests… which shows the outliers for long requests… and we can see there that with 2.3.3 the maximum is only 20% of 2.3.4 and 50% of 2.3.5

The second graphs shows the amount of free connections… when this is dropping it indicates that the connections/requests are taking a lot of time to return, which is also an indicator for low running requests. So there we see that with 2.3.3 we are not hitting 0 free connections but with 2.3.4 we hit 0 free connections over a longer period which results in timeouts with 2.3.5 is pretty good again but not as good with 2.3.3

but for now we are also fine with 2.3.5 as we are not hitting any limits anymore 👍