Arjun Nagathankandy
12/22/2023, 12:36 PMJared Schlicht
12/23/2023, 2:35 AMJared Schlicht
12/23/2023, 2:37 AMJared Schlicht
12/23/2023, 2:39 AMArjun Nagathankandy
12/23/2023, 9:39 AMArjun Nagathankandy
12/23/2023, 9:41 AMJared Schlicht
12/23/2023, 11:17 PMminimumIdle: 20
maximumPoolSize: 20
For the r2dbc pool, I'd do this:
pool:
enabled: true
initial-size: 20
max-size: 20
(You had a bit of a bug here... R2DBC got an idle timeout of 10 minutes. Hikari got a timeout of 10 seconds. Doesn't matter in the test, but you shouldn't have different settings. A fixed connection pool means it won't try to idle timeout anyway)Jared Schlicht
12/23/2023, 11:20 PMJared Schlicht
12/23/2023, 11:22 PMJared Schlicht
12/23/2023, 11:23 PMJared Schlicht
12/23/2023, 11:23 PMJared Schlicht
12/23/2023, 11:24 PMJared Schlicht
12/23/2023, 11:24 PMJared Schlicht
12/23/2023, 11:25 PMJared Schlicht
12/23/2023, 11:25 PMJared Schlicht
12/23/2023, 11:29 PMArjun Nagathankandy
12/24/2023, 8:29 AMArjun Nagathankandy
12/24/2023, 10:02 AM@Transaction
annotation in the product service. Spring was unable to inject the transaction.
• Since we are using customised configuration. we also need to create an r2dbc transaction bean with the connection factory.
• added it below commit
• https://github.com/arjunbalussery/kotlin-async/commit/018dd66affdb41d2b036fc2adfc742e4d3c3afd7
• now we are bale to see begin and commit
kotlin-postgres-1 | 2023-12-24 09:59:38.809 UTC [65] LOG: statement: SHOW TRANSACTION ISOLATION LEVEL
kotlin-postgres-1 | 2023-12-24 09:59:38.810 UTC [65] LOG: statement: SELECT oid, typname FROM pg_catalog.pg_type WHERE typname IN ('hstore','geometry')
kotlin-postgres-1 | 2023-12-24 09:59:38.813 UTC [65] LOG: statement: BEGIN READ WRITE
kotlin-kotlin-1 | ********* reached********
kotlin-postgres-1 | 2023-12-24 09:59:38.825 UTC [66] LOG: statement: SHOW TRANSACTION ISOLATION LEVEL
kotlin-postgres-1 | 2023-12-24 09:59:38.826 UTC [66] LOG: statement: SELECT oid, typname FROM pg_catalog.pg_type WHERE typname IN ('hstore','geometry')
kotlin-postgres-1 | 2023-12-24 09:59:38.829 UTC [66] LOG: execute S_0/B_3: insert into "public"."product" ("id", "name") values (cast($1 as uuid), $2) returning "public"."product"."id"
kotlin-postgres-1 | 2023-12-24 09:59:38.829 UTC [66] DETAIL: parameters: $1 = 'aa3e94e5-440b-4ba6-8699-6596ee9db992', $2 = 'bus123'
kotlin-kotlin-1 | ********* completed********
kotlin-postgres-1 | 2023-12-24 09:59:38.831 UTC [65] LOG: statement: COMMIT
• It seems performance has again decreased. now even reaching 100 parallel requests we are only getting 91-93 % success.
Regarding number of PIDs. will have a lookArjun Nagathankandy
12/24/2023, 10:03 AMJared Schlicht
12/24/2023, 10:06 AMJared Schlicht
12/24/2023, 10:07 AMArjun Nagathankandy
12/24/2023, 10:11 AMArjun Nagathankandy
01/01/2024, 6:18 PMArjun Nagathankandy
01/01/2024, 6:19 PM